Skip to main content
Module

x/grammy_files/deps.deno.ts>Api#setMessageReaction

Handle and download received media files.
Latest
method Api.prototype.setMessageReaction
import { Api } from "https://deno.land/x/grammy_files@v1.1.0/deps.deno.ts";

Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. In albums, bots must react to the first message. Returns True on success.

Parameters

chat_id: number | string

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

message_id: number

Identifier of the target message

reaction: ReactionType[]

New list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators.

optional
other: Other<R, "setMessageReaction", "chat_id" | "message_id" | "reaction">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#senddice