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