Send a message
telegram_message_sendSends a plain-text Telegram message to a chat by ID, with optional forum topic or reply target. Use it to deliver exact text up to 4096 characters without Markdown or HTML parsing.
Instructions
Sends one text to a chat by id: a person, a group, a forum topic or Saved Messages (the user's own chat), optionally as a reply. chat is a chat id from telegram_chat_read, never a name, username or phone number. text goes out exactly as written, never read as Markdown or HTML, surrounding blank space trimmed, at most 4096 characters; a longer text is several calls. topic names a forum topic (an id from telegram_chat_read topics); reply_to replies to a message of that chat by its id. Needs the sync service running. Sending files is a separate tool. A result means Telegram accepted the message, not that anyone has read it. duplicate means an earlier delivery of this same call had already gone out: it was sent once, and it must not be sent again. A failure uncertain means the message may have gone out: check the chat in Telegram (the error lists the matching messages of the user's that the mirror saw) and never send it again without the user checking.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat": "<chat>",
"text": "<text>"
},
"name": "telegram_message_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | The chat id, from `telegram_chat_read`, such as 123456789 or -1001234567890. Saved Messages is the user's own chat (`kind` `self`). A name, username or phone number is not a chat. | |
| text | Yes | The text exactly as it should arrive; it is never read as Markdown or HTML. Surrounding blank space is trimmed, and what is left is 1 to 4096 characters. | |
| topic | No | The forum topic to send to, an id from `telegram_chat_read` `topics`; the General topic is 1. Only for a chat with topics. | |
| account | No | The account label; may be left out when only one account is logged in. | |
| reply_to | No | The id of a message of that chat to reply to, as `telegram_chat_read` gives it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The sent message's id in that chat; absent when Telegram had already received it and it is not known. | |
| chat | Yes | The chat the message was sent to. | |
| note | Yes | What the result means. | |
| time | No | When Telegram dated it, in local time with offset. | |
| duplicate | No | Set when Telegram had already received this same call: the message went out once, and no second exists. |