telegram_publish_message
Publish a message to a Telegram channel by providing the channel ID and text. Supports Markdown or HTML formatting, link preview toggling, and silent notifications.
Instructions
Publish a message to a Telegram channel.
Use this tool to post new messages to a Telegram channel where the bot is an admin. The bot must have permission to post messages in the channel.
Args: channel_id: Channel username (e.g., '@mychannel') or numeric chat ID (e.g., '-1001234567890'). Use '@' prefix for public channels with username. text: The message text to publish. Supports Markdown or HTML formatting based on parse_mode. parse_mode: Text formatting mode. Options: 'Markdown', 'HTML', or 'None' for plain text. Default is 'Markdown'. disable_web_page_preview: If True, disables link preview for URLs in the message. Default is False. disable_notification: If True, sends the message silently (no notification to users). Default is False. response_format: Response format. Options: 'json' for structured data, 'markdown' for human-readable text. Default is 'markdown'.
Returns: A dictionary containing message_id, chat_id, date, text, and link. If response_format='markdown', returns formatted text content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| channel_id | Yes | ||
| parse_mode | No | Markdown | |
| response_format | No | markdown | |
| disable_notification | No | ||
| disable_web_page_preview | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||