mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Add anonymous permission to edit_admin and get_permissions
This commit is contained in:
@@ -111,3 +111,11 @@ class ParticipantPermissions:
|
||||
if self.is_chat:
|
||||
return True
|
||||
return self.participant.admin_rights.change_info
|
||||
|
||||
@property
|
||||
def anonymous(self):
|
||||
if not self.is_admin:
|
||||
return False
|
||||
if self.is_chat:
|
||||
return True
|
||||
return self.participant.admin_rights.anonymous
|
||||
|
Reference in New Issue
Block a user