Skip to content

export Class

Reactions ​

extends ​

Builder

Represents an array of reactions.

Constructor ​

ts
 new Reactions( ...emojis )
ParameterTypeDescription
...emojisEmojis[]The emojis of what the payload should contain.

Methods ​

add( emoji ) ​

ParameterTypeDescription
emojiEmojisThe emoji to add to the current payload.

Adds an emoji to the current payload.

Returns: Reactions

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.