Skip to main content
Module

x/grammy_hydrate/deps.deno.ts>Context#deleteMessages

Hydration plugin for API calls and context objects.
Latest
method Context.prototype.deleteMessages
Re-export
import { Context } from "https://deno.land/x/grammy_hydrate@v1.4.1/deps.deno.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

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