mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
parent
bc6bcd31ad
commit
9285e50c63
|
@ -233,6 +233,9 @@ class _ParticipantsIter(RequestIter):
|
||||||
for participant in participants.participants:
|
for participant in participants.participants:
|
||||||
|
|
||||||
if isinstance(participant, types.ChannelParticipantBanned):
|
if isinstance(participant, types.ChannelParticipantBanned):
|
||||||
|
if not isinstance(participant.peer, types.PeerUser):
|
||||||
|
# May have the entire channel banned. See #3105.
|
||||||
|
continue
|
||||||
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