mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
parent
2d4305db76
commit
ff0f9b0e8f
|
@ -155,7 +155,10 @@ class _ParticipantsIter(RequestIter):
|
||||||
|
|
||||||
users = {user.id: user for user in full.users}
|
users = {user.id: user for user in full.users}
|
||||||
for participant in full.full_chat.participants.participants:
|
for participant in full.full_chat.participants.participants:
|
||||||
if isinstance(participant, types.ChannelParticipantBanned):
|
if isinstance(participant, types.ChannelParticipantLeft):
|
||||||
|
# See issue #3231 to learn why this is ignored.
|
||||||
|
continue
|
||||||
|
elif isinstance(participant, types.ChannelParticipantBanned):
|
||||||
user_id = participant.peer.user_id
|
user_id = participant.peer.user_id
|
||||||
else:
|
else:
|
||||||
user_id = participant.user_id
|
user_id = participant.user_id
|
||||||
|
|
Loading…
Reference in New Issue
Block a user