Interface ChatMemberUpdated

This object represents changes in the status of a chat member.

interface ChatMemberUpdated {
    chat: Chat;
    date: number;
    from: User;
    invite_link?: ChatInviteLink;
    new_chat_member: ChatMember;
    old_chat_member: ChatMember;
    via_chat_folder_invite_link?: boolean;
    via_join_request?: boolean;
}

Properties

chat: Chat

Chat the user belongs to

date: number

Date the change was done in Unix time

from: User

Performer of the action, which resulted in the change

invite_link?: ChatInviteLink

Chat invite link, which was used by the user to join the chat; for joining by invite link events only.

new_chat_member: ChatMember

New information about the chat member

old_chat_member: ChatMember

Previous information about the chat member

via_chat_folder_invite_link?: boolean

True, if the user joined the chat via a chat folder invite link

via_join_request?: boolean

True, if the user joined the chat after sending a direct join request without using an invite link without using an invite link and being approved by an administrator