Implement switch_webview and "web_app_switch_inline_query".

This commit is contained in:
John Preston
2023-03-01 17:27:13 +04:00
committed by 23rd
parent 34c1bd950e
commit 4fe568cb82
17 changed files with 415 additions and 152 deletions
+3 -2
View File
@@ -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;