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