ChatMemberUpdated

class pyrogram.types.ChatMemberUpdated

Represents changes in the status of a chat member.

Parameters:
  • chat (:obj:`~pyrogram.types.Chat`) – Chat the user belongs to.

  • from_user (:obj:`~pyrogram.types.User`) – Performer of the action, which resulted in the change.

  • date (:py:obj:`~datetime.datetime`) – Date the change was done.

  • old_chat_member (:obj:`~pyrogram.types.ChatMember`, *optional*) – Previous information about the chat member.

  • new_chat_member (:obj:`~pyrogram.types.ChatMember`, *optional*) – New information about the chat member.

  • invite_link (:obj:`~pyrogram.types.ChatInviteLink`, *optional*) – Chat invite link, which was used by the user to join the chat; for joining by invite link events only.

  • via_join_request (``bool``, *optional*) – True, if the user joined the chat after sending a direct join request and being approved by an administrator

  • via_chat_folder_invite_link (``bool``, *optional*) – True, if the user joined the chat via a chat folder invite link