mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Add missing check for permissions.is_creator (#1578)
This commit is contained in:
@@ -18,7 +18,10 @@ class ParticipantPermissions:
|
||||
|
||||
@property
|
||||
def is_creator(self):
|
||||
return isinstance(self.participant, types.ChannelParticipantCreator)
|
||||
return isinstance(self.participant, (
|
||||
types.ChannelParticipantCreator,
|
||||
types.ChatParticipantCreator
|
||||
))
|
||||
|
||||
@property
|
||||
def has_default_permissions(self):
|
||||
|
Reference in New Issue
Block a user