Interface BanChatMember

Bans a member in a chat; requires can_restrict_members administrator right. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first. Request type for Tdjson#banChatMember.

interface BanChatMember {
    @type: "banChatMember";
    banned_until_date: number;
    chat_id: number;
    member_id: MessageSender;
    revoke_messages?: boolean;
}

Properties

@type: "banChatMember"
banned_until_date: number

Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Ignored in basic groups and if a chat is banned.

chat_id: number

Chat identifier.

member_id: MessageSender

Member identifier.

revoke_messages?: boolean

Pass true to delete all messages in the chat for the user that is being removed. Always true for supergroups and channels.