Interface SetChatMemberStatus

Changes the status of a chat member; requires can_invite_users member right to add a chat member, can_promote_members administrator right to change administrator rights of the member, and can_restrict_members administrator right to change restrictions of a user. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed. Request type for Tdjson#setChatMemberStatus.

interface SetChatMemberStatus {
    @type: "setChatMemberStatus";
    chat_id: number;
    member_id: MessageSender;
    status: ChatMemberStatus;
}

Properties

@type: "setChatMemberStatus"
chat_id: number

Chat identifier.

member_id: MessageSender

Member identifier. Chats can be only banned and unbanned in supergroups and channels.

The new status of the member in the chat.