Send Telegram Message
telegram_send_messageSend text messages to Telegram chats, groups, channels, or users via bot for notifications and updates.
Instructions
Send a text message to a Telegram chat, group, channel, or user via the bot.
This is the primary tool for pushing notifications, alerts, or updates into Telegram — e.g. from a scheduled routine or automation.
Args:
chat_id (string | number): Target chat ID or '@channel_username'
text (string): Message body, 1-4096 characters
parse_mode ('Markdown' | 'MarkdownV2' | 'HTML' | 'none'): Text formatting (default: 'none')
disable_notification (boolean): Send silently (default: false)
reply_to_message_id (number, optional): Reply to a specific earlier message
Returns: Confirmation text including the chat and the new message_id (needed later to edit/delete/pin it).
Error Handling:
"chat not found" -> the chat_id is wrong, or the user has never started a chat with the bot. Ask the user to send /start to the bot first, or use telegram_get_updates to find the right chat_id.
403 Forbidden -> the bot was blocked by the user or removed from the group/channel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Message text to send, e.g. 'Deploy finished successfully ✅' | |
| chat_id | Yes | Target chat. Use a numeric chat ID (e.g. 123456789 for a user, -1001234567890 for a supergroup/channel) or a public channel username with a leading '@' (e.g. '@my_channel'). If unknown, call telegram_get_updates after the user messages the bot to discover it. | |
| parse_mode | No | Text formatting mode. 'HTML' supports <b>, <i>, <a href>, <code>, <pre>. 'MarkdownV2' requires escaping special characters (_*[]()~`>#+-=|{}.!) with a backslash. 'none' sends plain text. | none |
| reply_to_message_id | No | If set, sends this message as a reply to the given message_id in the same chat | |
| disable_notification | No | If true, sends the message silently (no notification sound for recipients) |