2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 00:15:42 +00:00

Start main menu bots.

This commit is contained in:
John Preston
2023-09-06 13:41:23 +04:00
parent 73f3110403
commit fbd8abc1c6
12 changed files with 369 additions and 154 deletions

View File

@@ -596,6 +596,13 @@ void SessionNavigation::showPeerByLinkResolved(
contextUser->owner().history(contextUser))
: std::optional<Api::SendAction>()),
info.attachBotChooseTypes);
} else if (bot && info.attachBotMenuOpen) {
bot->session().attachWebView().requestAddToMenu(
bot,
std::nullopt,
parentController(),
std::optional<Api::SendAction>(),
{});
} else {
crl::on_main(this, [=] {
showPeerHistory(peer, params, msgId);