mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-11 16:42:28 +03:00
Add missing check for permissions.is_creator (#1578)
This commit is contained in:
parent
fc765f6014
commit
3e188d0344
|
@ -18,7 +18,10 @@ class ParticipantPermissions:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_creator(self):
|
def is_creator(self):
|
||||||
return isinstance(self.participant, types.ChannelParticipantCreator)
|
return isinstance(self.participant, (
|
||||||
|
types.ChannelParticipantCreator,
|
||||||
|
types.ChatParticipantCreator
|
||||||
|
))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def has_default_permissions(self):
|
def has_default_permissions(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user