Interface DeleteChatMessagesBySender

Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator privileges. Request type for Tdjson#deleteChatMessagesBySender.

interface DeleteChatMessagesBySender {
    @type: "deleteChatMessagesBySender";
    chat_id: number;
    sender_id: MessageSender;
}

Properties

@type: "deleteChatMessagesBySender"
chat_id: number

Chat identifier.

sender_id: MessageSender

Identifier of the sender of messages to delete.