Interface DeleteMessages

Deletes messages. Request type for Tdjson#deleteMessages.

interface DeleteMessages {
    @type: "deleteMessages";
    chat_id: number;
    message_ids: number[];
    revoke?: boolean;
}

Properties

@type: "deleteMessages"
chat_id: number

Chat identifier.

message_ids: number[]

Identifiers of the messages to be deleted. Use messageProperties.can_be_deleted_only_for_self and messageProperties.can_be_deleted_for_all_users to get suitable messages.

revoke?: boolean

Pass true to delete messages for all chat members. Always true for supergroups, channels and secret chats.