Module

x/grammy/mod.ts>Context#deleteMessages

The Telegram Bot Framework.
Very Popular
Go to Latest
method Context.prototype.deleteMessages
import { Context } from "https://dotland.deno.dev/x/grammy@v1.24.1/mod.ts";

Context-aware alias for api.deleteMessages. Use this method to delete multiple messages simultaneously. Returns True on success.

Parameters

message_ids: number[]

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

optional
signal: AbortSignal

A list of 1-100 identifiers of messages to delete. See deleteMessage for limitations on which messages can be deleted