Skip to main content

$addCustomReaction

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

Parameters

ParameterDescription
custom_emojiThe custom 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: "addReaction",
code: `
$addCustomReaction[custom_emoji;true;123456789;-100123456789] // Replace 123456789 with the actual message ID and chat ID
`,
});