Fixed sending of PlayGame user action.

This commit is contained in:
23rd
2020-07-14 19:23:14 +03:00
parent 9445ce4b09
commit f68e4d9d59
2 changed files with 21 additions and 22 deletions
+3 -7
View File
@@ -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) {