Skip to content

Commit

Permalink
Add _raw to ChatMemberUpdated
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Nov 16, 2024
1 parent 962eca2 commit a3d5d42
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyrogram/types/user_and_chats/chat_member_updated.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def __init__(
new_chat_member: "types.ChatMember",
invite_link: "types.ChatInviteLink" = None,
via_join_request: bool = None,
via_chat_folder_invite_link: bool = None
via_chat_folder_invite_link: bool = None,
_raw = None,
):
super().__init__(client)

Expand All @@ -77,6 +78,7 @@ def __init__(
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(
Expand Down Expand Up @@ -142,5 +144,6 @@ def _parse(
invite_link=invite_link,
client=client,
via_join_request=via_join_request,
via_chat_folder_invite_link=getattr(update, "via_chatlist", False)
via_chat_folder_invite_link=getattr(update, "via_chatlist", None),
_raw=update,
)

0 comments on commit a3d5d42

Please sign in to comment.