2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

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

View File

@@ -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) {