mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-20 17:11:59 +03:00
fix event.user_added returning False
In version 1.24.0 when adding a True user, this change tries to fix the event does not return this.
This commit is contained in:
parent
2357116f01
commit
65b8727dbc
|
@ -192,7 +192,7 @@ class ChatAction(EventBuilder):
|
|||
|
||||
if added_by is True or from_approval is True:
|
||||
self.user_joined = True
|
||||
elif added_by:
|
||||
elif added_by is None:
|
||||
self.user_added = True
|
||||
self._added_by = added_by
|
||||
self.user_approved = from_approval
|
||||
|
|
Loading…
Reference in New Issue
Block a user