mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-16 18:16:39 +00:00
Add ChannelForbidden check to utils.get_display_name
This commit is contained in:
parent
20434e5a9d
commit
6625327b4f
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user