Auto-submit /start when paying for premium.

This commit is contained in:
John Preston
2022-05-23 15:45:22 +04:00
parent 1eccb34f86
commit ff030d0252
4 changed files with 10 additions and 2 deletions
@@ -346,6 +346,8 @@ void SessionNavigation::showPeerByLinkResolved(
// Show specific posts only in channels / supergroups.
const auto msgId = peer->isChannel()
? info.messageId
: info.startAutoSubmit
? ShowAndStartBotMsgId
: ShowAtUnreadMsgId;
const auto attachBotUsername = info.attachBotUsername;
if (bot && bot->botInfo->startToken != info.startToken) {