diff --git a/telethon/utils.py b/telethon/utils.py index 18723dc7..e9c1468d 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -102,7 +102,7 @@ def get_display_name(entity): else: return '' - elif isinstance(entity, (types.Chat, types.Channel)): + elif isinstance(entity, (types.Chat, types.ChatForbidden, types.Channel)): return entity.title return ''