Fix get_display_name not handling ChatForbidden (#1617)

Closes #1616.
This commit is contained in:
hematogender 2020-11-04 21:28:04 +02:00 committed by GitHub
parent 39e899294f
commit b6fe4b8fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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