Interface ChatEventMemberRestricted

A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed. Subtype of ChatEventAction.

interface ChatEventMemberRestricted {
    @type: "chatEventMemberRestricted";
    member_id: MessageSender;
    new_status: ChatMemberStatus;
    old_status: ChatMemberStatus;
}

Properties

@type: "chatEventMemberRestricted"
member_id: MessageSender

Affected chat member identifier.

new_status: ChatMemberStatus

New status of the chat member.

old_status: ChatMemberStatus

Previous status of the chat member.