mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-06 14:43:13 +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_user = isinstance(self.entity, types.User)
|
||||||
self.is_group = (
|
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)
|
(isinstance(self.entity, types.Channel) and self.entity.megagroup)
|
||||||
)
|
)
|
||||||
self.is_channel = isinstance(self.entity, types.Channel)
|
self.is_channel = isinstance(self.entity, types.Channel)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user