deleteAllMessageReactions()
Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat. The bot must have the 'can_delete_messages' administrator right in the chat. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
chat_id | number | string | required | Unique identifier for the target chat or username of the target supergroup in the format @username |
user_id | number | optional | Identifier of the user whose reactions will be removed, if the reactions were added by a user |
actor_chat_id | number | optional | Identifier of the chat whose reactions will be removed, if the reactions were added by a chat |
returns
boolean
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { DeleteAllMessageReactionsParams } from "@yaebal/types";
await bot.api.call<boolean>("deleteAllMessageReactions", {
chat_id: 123456789,
} satisfies DeleteAllMessageReactionsParams);context shortcut
also available as ctx.deleteAllMessageReactions() on
16
context types — see @yaebal/contexts.
/** Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat. The bot must have the 'can_delete_messages' administrator right in the chat. Returns *True* on success. */
ctx.deleteAllMessageReactions(params: Omit<DeleteAllMessageReactionsParams, "chat_id" | "user_id">)official Bot API docs: https://core.telegram.org/bots/api/#deleteallmessagereactions