Add ChannelForbidden check to utils.get_display_name

This commit is contained in:
wkpn 2025-05-13 17:05:23 +02:00 committed by Lonami
parent 20434e5a9d
commit 6625327b4f

View File

@ -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 ''