mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-05 03:14:28 +00:00
Fixed sending of PlayGame user action.
This commit is contained in:
@@ -48,7 +48,6 @@ void SendBotCallbackData(
|
||||
}
|
||||
|
||||
using ButtonType = HistoryMessageMarkupButton::Type;
|
||||
const auto gameProgressType = Api::SendProgressType::PlayGame;
|
||||
const auto isGame = (button->type == ButtonType::Game);
|
||||
|
||||
auto flags = MTPmessages_GetBotCallbackAnswer::Flags(0);
|
||||
@@ -87,12 +86,9 @@ void SendBotCallbackData(
|
||||
link,
|
||||
item->fullId());
|
||||
BotGameUrlClickHandler(bot, scoreLink).onClick({});
|
||||
|
||||
if (history->mySendActionUpdated(gameProgressType, true)) {
|
||||
session->sendProgressManager().update(
|
||||
history,
|
||||
gameProgressType);
|
||||
}
|
||||
session->sendProgressManager().update(
|
||||
history,
|
||||
Api::SendProgressType::PlayGame);
|
||||
}
|
||||
});
|
||||
}).fail([=](const RPCError &error, auto id) {
|
||||
|
||||
Reference in New Issue
Block a user