Update API scheme to layer 226. Guard-bots.

This commit is contained in:
John Preston
2026-05-15 14:34:56 +04:00
parent b9ad1f7726
commit 5c5bacaf41
30 changed files with 1069 additions and 199 deletions
+9
View File
@@ -2232,6 +2232,15 @@ void Updates::feedUpdate(const MTPUpdate &update) {
session().data().webViewResultSent({ .queryId = d.vquery_id().v });
} break;
case mtpc_updateJoinChatWebViewDecision: {
const auto &d = update.c_updateJoinChatWebViewDecision();
session().data().joinChatWebViewDecision({
.peerId = peerFromMTP(d.vpeer()),
.queryId = uint64(d.vquery_id().v),
.result = d.vresult(),
});
} break;
case mtpc_updateBotMenuButton: {
const auto &d = update.c_updateBotMenuButton();
if (const auto bot = session().data().userLoaded(d.vbot_id())) {