method ApiMethods.deleteBusinessMessages
ApiMethods.deleteBusinessMessages(args: { business_connection_id: string; message_ids: number[]; }): true

Delete messages on behalf of a business account. Requires the can_delete_outgoing_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success.

Parameters

args: { business_connection_id: string; message_ids: number[]; }

Return Type

true

Usage

import { type ApiMethods } from "types";