Fix iter_participants is failing when _total is None (#936)

This commit is contained in:
Nikolay Tretyak 2018-08-04 12:30:24 +03:00 committed by Lonami
parent 2cf95ce2b9
commit d0c566bbdb

View File

@ -137,6 +137,7 @@ class ChatMethods(UserMethods):
if not isinstance(
full.full_chat.participants, types.ChatParticipants):
# ChatParticipantsForbidden won't have ``.participants``
if _total:
_total[0] = 0
return