mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-17 10:36:37 +00:00
parent
39e899294f
commit
b6fe4b8fec
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user