mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Fix Dialog.is_group for types.ChatForbidden
This commit is contained in:
parent
34cefed9ff
commit
b219da6b87
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user