mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 11:00:46 +00:00
Implement switch_webview and "web_app_switch_inline_query".
This commit is contained in:
@@ -289,10 +289,11 @@ bool SwitchInlineBotButtonReceived(
|
||||
}
|
||||
|
||||
void ActivateBotCommand(ClickHandlerContext context, int row, int column) {
|
||||
const auto controller = context.sessionWindow.get();
|
||||
if (!controller) {
|
||||
const auto strong = context.sessionWindow.get();
|
||||
if (!strong) {
|
||||
return;
|
||||
}
|
||||
const auto controller = not_null{ strong };
|
||||
const auto item = controller->session().data().message(context.itemId);
|
||||
if (!item) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user