mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Add admin log event.has_left (#1642)
This commit is contained in:
parent
2439404ad1
commit
12380207ba
|
@ -79,6 +79,13 @@ class ParticipantPermissions:
|
|||
"""
|
||||
return isinstance(self.participant, types.ChannelParticipantBanned)
|
||||
|
||||
@property
|
||||
def has_left(self):
|
||||
"""
|
||||
Whether the user left the chat.
|
||||
"""
|
||||
return isinstance(self.participant, types.ChannelParticipantLeft)
|
||||
|
||||
@property
|
||||
def add_admins(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user