mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
if (chat) {
|
||||||
message.textWithTags.text += '@' + bot->username();
|
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));
|
sendMessage(std::move(message));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue