fix: schedule tokenless bot start

This commit is contained in:
AlexeyZavar 2024-09-11 21:58:14 +03:00
parent 6da6817037
commit 5bd66f9a76

View file

@ -3978,6 +3978,13 @@ void ApiWrap::sendBotStart(
if (chat) {
message.textWithTags.text += '@' + bot->username();
}
const auto settings = &AyuSettings::getInstance();
if (settings->useScheduledMessages) {
auto current = base::unixtime::now();
message.action.options.scheduled = current + 12;
}
sendMessage(std::move(message));
return;
}