send_message
Send messages to Telegram chats or forum topics. Include optional reply-to, topic targeting, and markdown/HTML formatting for context-rich communication.
Instructions
Send a message to a chat. For forum supergroups, pass topic_id to post into a specific topic (1 for the General topic). Combine with reply_to to reply to a specific message within that topic.
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_id": "<chat_id>",
"text": "<text>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| chat_id | Yes | ||
| reply_to | No | Reply to a specific message ID. | |
| topic_id | No | Forum topic root message ID. Use 1 for General. Required to target a specific topic in a forum supergroup. | |
| parse_mode | No | Message formatting: 'md' for Markdown, 'html' for HTML |