Ignore ChannelParticipantLeft

Closes #3252.
This commit is contained in:
Lonami Exo 2022-03-02 13:01:28 +01:00
parent 07aadf9fbf
commit 2a750fa696

View File

@ -205,6 +205,10 @@ class _ParticipantsIter(requestiter.RequestIter):
else:
user_id = participant.user_id
if isinstance(participant, types.ChannelParticipantLeft):
# These participants should be ignored. See #3231.
continue
user = users[user_id]
if not self.filter_entity(user) or user.id in self.seen:
continue