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

Moved sending of bot's CallbackData and CallbackGame to separate file.

This commit is contained in:
23rd
2020-06-29 16:33:27 +03:00
committed by John Preston
parent 515d8e78da
commit 9445ce4b09
9 changed files with 168 additions and 143 deletions

View File

@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "facades.h"
#include "api/api_bot.h"
#include "info/info_memento.h"
#include "core/click_handler_types.h"
#include "core/application.h"
@@ -106,9 +107,10 @@ void activateBotCommand(
case ButtonType::Callback:
case ButtonType::Game: {
if (const auto m = CheckMainWidget(&msg->history()->session())) {
m->app_sendBotCallback(button, msg, row, column);
}
Api::SendBotCallbackData(
const_cast<HistoryItem*>(msg.get()),
row,
column);
} break;
case ButtonType::Buy: {