Fix iter_participants is failing when _total is None

This commit is contained in:
Nikolay Tretyak 2018-08-04 12:25:52 +03:00 committed by GitHub
parent 2cf95ce2b9
commit ce72fe9d91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: