Fix bot start token sending.

This commit is contained in:
John Preston 2022-04-14 16:13:06 +04:00
parent 87df42f8c1
commit 949caecb75
1 changed files with 1 additions and 1 deletions

View File

@ -3570,7 +3570,7 @@ void ApiWrap::sendBotStart(
}
auto &info = bot->botInfo;
auto &token = chat ? startTokenForChat : info->startToken;
const auto token = chat ? startTokenForChat : info->startToken;
if (token.isEmpty()) {
auto message = MessageToSend(
Api::SendAction(_session->data().history(chat