sendMessage
Send text messages to Telegram chats with formatting, reply markup, and message options. Returns the sent message for confirmation.
Instructions
Send text messages to a chat. Supports formatting, reply markup, and various message options. Returns the sent Message on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text of the message to be sent, 1-4096 characters after entities parsing. | |
| chat_id | Yes | Unique identifier for the target chat or username of the target channel (in the format @channelusername). | |
| entities | No | A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode. | |
| parse_mode | No | Mode for parsing entities in the message text. See formatting options for more details. Supported: 'Markdown', 'MarkdownV2', 'HTML'. | |
| reply_markup | No | Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. | |
| protect_content | No | Protects the contents of the sent message from forwarding and saving. | |
| reply_parameters | No | Description of the message to reply to. Object with fields: message_id (required), chat_id, allow_sending_without_reply, quote, quote_parse_mode, quote_entities, quote_position. | |
| message_effect_id | No | Unique identifier of the message effect to be added to the message; for private chats only. | |
| message_thread_id | No | Unique identifier for the target message thread (topic) of the forum; for forum supergroups only. | |
| allow_paid_broadcast | No | Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. | |
| disable_notification | No | Sends the message silently. Users will receive a notification with no sound. | |
| link_preview_options | No | Link preview generation options for the message. Object with fields: is_disabled, url, prefer_small_media, prefer_large_media, show_above_text. | |
| business_connection_id | No | Unique identifier of the business connection on behalf of which the message will be sent. | |
| direct_messages_topic_id | No | Unique identifier for the target direct messages topic; for bots only. | |
| suggested_post_parameters | No | Information about suggested post parameters; for channel chats only. |