Fix get_display_name not getting a name from ChatForbidden

Fixes #1616
This commit is contained in:
hematogender 2020-11-04 20:48:06 +02:00
parent 39e899294f
commit b091e4b22d

View File

@ -102,7 +102,7 @@ def get_display_name(entity):
else: else:
return '' return ''
elif isinstance(entity, (types.Chat, types.Channel)): elif isinstance(entity, (types.Chat, types.ChatForbidden, types.Channel)):
return entity.title return entity.title
return '' return ''