Interface DeleteChatMessagesByDate

Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages sent in the last 30 seconds will not be deleted. Request type for Tdjson#deleteChatMessagesByDate.

interface DeleteChatMessagesByDate {
    @type: "deleteChatMessagesByDate";
    chat_id: number;
    max_date: number;
    min_date: number;
    revoke?: boolean;
}

Properties

@type: "deleteChatMessagesByDate"
chat_id: number

Chat identifier.

max_date: number

The maximum date of the messages to delete.

min_date: number

The minimum date of the messages to delete.

revoke?: boolean

Pass true to delete chat messages for all users; private chats only.