mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-12-02 06:13:45 +03:00
Fix iter_participants is failing when _total is None (#936)
This commit is contained in:
parent
2cf95ce2b9
commit
d0c566bbdb
|
@ -137,6 +137,7 @@ 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``
|
||||||
|
if _total:
|
||||||
_total[0] = 0
|
_total[0] = 0
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user