Message Tool

Send, edit, delete, and react to messages across channels.

Actions

send

Send a message to a channel.

{
  "action": "send",
  "text": "Hello!",
  "channel": "telegram",
  "chatId": "123456"
}

Omit channel to broadcast to all connected channels.

ParameterRequiredDescription
actionYessend
textYesMessage content
channelNoTarget channel (telegram, http, etc.)
chatIdNoChat/conversation ID
filePathNoSingle media file to attach
contentNoArray for mixed text/media

edit

Edit an existing message.

{
  "action": "edit",
  "messageId": "789",
  "text": "Updated message"
}
ParameterRequiredDescription
actionYesedit
messageIdYesMessage to edit
textYesNew content

delete

Delete a message.

{
  "action": "delete",
  "messageId": "789"
}
ParameterRequiredDescription
actionYesdelete
messageIdYesMessage to delete

react

Add a reaction to a message.

{
  "action": "react",
  "messageId": "789",
  "emoji": "👍"
}
ParameterRequiredDescription
actionYesreact
messageIdYesMessage to react to
emojiYesReaction emoji

Media

Single File

{
  "action": "send",
  "text": "Check this out",
  "filePath": "/path/to/image.png"
}

Mixed Content

{
  "action": "send",
  "content": [
    {"type": "text", "text": "Here are the files:"},
    {"type": "media", "path": "/path/to/doc.pdf"},
    {"type": "media", "path": "/path/to/image.png"}
  ]
}

Channel Detection

When channel is omitted:

  • Uses the channel that triggered the current request
  • For broadcast, sends to all active channels

Supported Channels

ChannelSendEditDeleteReact
TelegramYesYesYesYes
HTTPYesNoNoNo

See Also