From 07ba84c8572b6dab1ab1d2800367d3eacba86e2b Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 25 Nov 2021 19:24:08 +0400 Subject: [PATCH] Fix requesting bots list in megagroup. --- Telegram/SourceFiles/api/api_chat_participants.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/api/api_chat_participants.cpp b/Telegram/SourceFiles/api/api_chat_participants.cpp index ee5c9da64d..89edb5e32e 100644 --- a/Telegram/SourceFiles/api/api_chat_participants.cpp +++ b/Telegram/SourceFiles/api/api_chat_participants.cpp @@ -411,7 +411,7 @@ void ChatParticipants::requestBots(not_null channel) { _botsRequests.remove(channel); result.match([&](const MTPDchannels_channelParticipants &data) { const auto &[availableCount, list] = Parse(channel, data); - ApplyLastList(channel, availableCount, list); + ApplyBotsList(channel, availableCount, list); }, [](const MTPDchannels_channelParticipantsNotModified &) { LOG(("API Error: " "channels.channelParticipantsNotModified received!")); @@ -518,6 +518,7 @@ ChatParticipants::Parsed ChatParticipants::Parse( not_null channel, const TLMembers &data) { channel->owner().processUsers(data.vusers()); + channel->owner().processChats(data.vchats()); auto list = ParseList(data, channel); if (channel->mgInfo) { RefreshChannelAdmins(channel, list);