diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index fe4c6fa92..12392a71f 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -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; }