mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
fix: schedule tokenless bot start
This commit is contained in:
parent
6da6817037
commit
5bd66f9a76
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue