2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix inline via @bot click in additional windows

Fixes #24717.
This commit is contained in:
John Preston
2022-07-05 11:56:29 +04:00
parent 6d17226c7f
commit c01d9747e7
11 changed files with 273 additions and 285 deletions

View File

@@ -15,7 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_session.h"
#include "window/window_session_controller.h"
#include "ui/cached_round_corners.h"
#include "facades.h"
#include "api/api_bot.h"
#include "styles/style_widgets.h"
#include "styles/style_chat.h"
@@ -202,7 +202,7 @@ bool BotKeyboard::moderateKeyActivate(int key) {
if (!markup->data.rows.empty()
&& index >= 0
&& index < int(markup->data.rows.front().size())) {
App::activateBotCommand(_controller, item, 0, index);
Api::ActivateBotCommand(_controller, item, 0, index);
return true;
}
} else if (const auto user = item->history()->peer->asUser()) {