Fix get_display_name not handling ChatForbidden (#1617)

Closes #1616.
This commit is contained in:
hematogender
2020-11-04 20:28:04 +01:00
committed by GitHub
parent 39e899294f
commit b6fe4b8fec
+1 -1
View File
@@ -102,7 +102,7 @@ def get_display_name(entity):
else:
return ''
elif isinstance(entity, (types.Chat, types.Channel)):
elif isinstance(entity, (types.Chat, types.ChatForbidden, types.Channel)):
return entity.title
return ''