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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user