mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 11:02:29 +00:00
Add ChannelForbidden check to utils.get_display_name
This commit is contained in:
@@ -95,7 +95,8 @@ def get_display_name(entity):
|
||||
else:
|
||||
return ''
|
||||
|
||||
elif isinstance(entity, (types.Chat, types.ChatForbidden, types.Channel)):
|
||||
elif isinstance(entity, (
|
||||
types.Chat, types.ChatForbidden, types.Channel, types.ChannelForbidden)):
|
||||
return entity.title
|
||||
|
||||
return ''
|
||||
|
Reference in New Issue
Block a user