2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-07 13:46:05 +00:00

Allow creating group / channel for the bot.

This commit is contained in:
John Preston
2023-01-13 17:59:15 +04:00
parent 809610817e
commit de5bbf2cb9
5 changed files with 273 additions and 112 deletions

View File

@@ -424,7 +424,11 @@ void ActivateBotCommand(ClickHandlerContext context, int row, int column) {
peer->session().api().applyUpdates(result);
}).send();
};
ShowChoosePeerBox(controller, chosen, query);
if (const auto bot = item->getMessageBot()) {
ShowChoosePeerBox(controller, bot, query, chosen);
} else {
LOG(("API Error: Bot not found for RequestPeer button."));
}
} break;
case ButtonType::SwitchInlineSame: