mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: schedule tokenless bot start
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user