Improve managed bot creation.

This commit is contained in:
John Preston
2026-03-21 00:12:50 +07:00
parent 4069e4412c
commit d455d6ee32
13 changed files with 154 additions and 63 deletions
-12
View File
@@ -2111,18 +2111,6 @@ void Updates::feedUpdate(const MTPUpdate &update) {
}
} break;
case mtpc_updateManagedBot: {
const auto &d = update.c_updateManagedBot();
if (const auto user = session().data().userLoaded(
UserId(d.vuser_id().v))) {
session().api().requestFullPeer(user);
}
if (const auto bot = session().data().userLoaded(
UserId(d.vbot_id().v))) {
session().api().requestFullPeer(bot);
}
} break;
case mtpc_updatePendingJoinRequests: {
const auto &d = update.c_updatePendingJoinRequests();
if (const auto peer = session().data().peerLoaded(peerFromMTP(d.vpeer()))) {