Skip to main content
Glama

send_reaction

Send emoji reactions to specific Telegram messages using message ID, enabling interactive bot responses and user engagement in channels.

Instructions

Send a reaction to a message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emojiYesEmoji to send as reaction
message_idYesMessage ID to react to

Implementation Reference

  • The handler for 'send_reaction' tool that calls TelegramBot.setMessageReaction to add the specified emoji reaction to the given message ID in the channel and returns a success message.
    case 'send_reaction': { const { message_id, emoji } = args as { message_id: number; emoji: string; }; await bot.setMessageReaction(CHANNEL_ID, message_id, { reaction: [{ type: 'emoji', emoji: emoji as any }], }); return { content: [ { type: 'text', text: `✅ Reaction sent successfully!\n\n📱 Channel: ${CHANNEL_ID}\n📝 Message ID: ${message_id}\n😀 Emoji: ${emoji}`, }, ], }; }
  • The input schema for the send_reaction tool defining the required message_id (number) and emoji (string) parameters with descriptions.
    inputSchema: { type: 'object', properties: { message_id: { type: 'number', description: 'ID of the message to react to', }, emoji: { type: 'string', description: 'Emoji to send as reaction (e.g., 👍, ❤️, 😂)', }, }, required: ['message_id', 'emoji'], },
  • src/index.ts:133-151 (registration)
    The tool registration in the ListTools response, including name, description, and input schema for send_reaction.
    { name: 'send_reaction', description: 'Send a reaction to a message', inputSchema: { type: 'object', properties: { message_id: { type: 'number', description: 'ID of the message to react to', }, emoji: { type: 'string', description: 'Emoji to send as reaction (e.g., 👍, ❤️, 😂)', }, }, required: ['message_id', 'emoji'], }, }, {

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bobidk91-ops/telegram-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server