Add admin log event.has_left (#1642)

This commit is contained in:
x0x8x
2020-12-04 16:51:15 +03:00
committed by GitHub
parent 2439404ad1
commit 12380207ba

View File

@@ -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):
"""