2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Support bot emoji status access.

This commit is contained in:
John Preston
2024-11-08 21:56:54 +04:00
parent 4198203a7f
commit 3d77bff0c9
15 changed files with 179 additions and 5 deletions

View File

@@ -580,6 +580,9 @@ void ApplyUserUpdate(not_null<UserData*> user, const MTPDuserFull &update) {
} else {
user->setBotInfoVersion(-1);
}
if (const auto info = user->botInfo.get()) {
info->canManageEmojiStatus = update.is_bot_can_manage_emoji_status();
}
if (const auto pinned = update.vpinned_msg_id()) {
SetTopPinnedMessageId(user, pinned->v);
}