Fix Dialog.is_group for types.ChatForbidden

This commit is contained in:
Lonami Exo 2018-10-15 18:43:53 +02:00
parent 34cefed9ff
commit b219da6b87

View File

@ -83,7 +83,7 @@ class Dialog:
self.is_user = isinstance(self.entity, types.User)
self.is_group = (
isinstance(self.entity, types.Chat) or
isinstance(self.entity, (types.Chat, types.ChatForbidden)) or
(isinstance(self.entity, types.Channel) and self.entity.megagroup)
)
self.is_channel = isinstance(self.entity, types.Channel)