mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-07 13:34:59 +03:00
Fix iter_participants is failing when _total is None
This commit is contained in:
parent
2cf95ce2b9
commit
ce72fe9d91
|
@ -137,7 +137,8 @@ class ChatMethods(UserMethods):
|
||||||
if not isinstance(
|
if not isinstance(
|
||||||
full.full_chat.participants, types.ChatParticipants):
|
full.full_chat.participants, types.ChatParticipants):
|
||||||
# ChatParticipantsForbidden won't have ``.participants``
|
# ChatParticipantsForbidden won't have ``.participants``
|
||||||
_total[0] = 0
|
if _total:
|
||||||
|
_total[0] = 0
|
||||||
return
|
return
|
||||||
|
|
||||||
if _total:
|
if _total:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user