mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
pyrofork: Add raw attribute to ChatMemberUpdated
Co-authored-by: wulan17 <wulan17@nusantararom.org> Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
307b700df3
commit
b437bc1c46
1 changed files with 4 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ class ChatMemberUpdated(Object, Update):
|
|||
new_chat_member: "types.ChatMember",
|
||||
invite_link: "types.ChatInviteLink" = None,
|
||||
via_join_request: bool = None,
|
||||
via_chat_folder_invite_link: bool = False
|
||||
via_chat_folder_invite_link: bool = False,
|
||||
_raw: "raw.base.Update" = None
|
||||
):
|
||||
super().__init__(client)
|
||||
|
||||
|
|
@ -78,6 +79,7 @@ class ChatMemberUpdated(Object, Update):
|
|||
self.invite_link = invite_link
|
||||
self.via_join_request = via_join_request
|
||||
self.via_chat_folder_invite_link = via_chat_folder_invite_link
|
||||
self.raw = _raw
|
||||
|
||||
@staticmethod
|
||||
def _parse(
|
||||
|
|
@ -143,5 +145,6 @@ class ChatMemberUpdated(Object, Update):
|
|||
invite_link=invite_link,
|
||||
via_join_request=via_join_request,
|
||||
via_chat_folder_invite_link=getattr(update, "via_chatlist", False),
|
||||
_raw=update,
|
||||
client=client
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue