Animated Message Reactions

Raw MD
React to incoming user messages with animated emojis (👍, 🔥, 🎉, ❤️, ⚡) using setMessageReaction.

The setMessageReaction Method

Telegram Bot API supports adding emoji reactions directly to user messages. This provides instant visual feedback before sending text replies.

setMessageReaction Helper
function react(string|int $chatId, int $messageId, string $emoji = '👍', bool $isBig = true): array {
    return bot('setMessageReaction', [
        'chat_id'    => $chatId,
        'message_id' => $messageId,
        'reaction'   => [
            ['type' => 'emoji', 'emoji' => $emoji]
        ],
        'is_big'     => $isBig
    ]);
}

// Usage Example on user message
if (!empty($msg['text'])) {
    react($chatId, $msg['message_id'], '🔥', true);
}

Popular Supported Emojis

Standard Unicode emojis supported by Telegram reactions: 👍, 👎, ❤️, 🔥, 🎉, 🤩, 👏, 😁, 🤔, 🤯, 😱, 🤬, 💩, ⚡, 🍌, 🍓, 🍾.