Skip to main content

$addEmojiReaction

This function adds an emoji reaction to a message in a specified chat.

Parameters

ParameterDescription
emojiThe emoji to be added as a reaction.
is_bigAn optional boolean parameter specifying if the emoji is big. Defaults to true.
message_idAn optional message ID to which the reaction will be added. Defaults to the ID of the received message.
chatIdAn optional chat ID where the reaction will be added. Defaults to the ID of the received message's chat.

Example

<AoiClient>.addCommand({
name: "addEmojiReaction",
code: `
$addEmojiReaction[👍;true;123456789;-100123456789] // Replace 123456789 with the actual message ID and chat ID
`,
});