diff --git a/telethon/client/chats.py b/telethon/client/chats.py index 5a5550f0..3680f7c2 100644 --- a/telethon/client/chats.py +++ b/telethon/client/chats.py @@ -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: