Basic Parameters
| Parameter | Description |
|---|---|
| Chat ID | Unique identifier for the target chat or username of the target channel (in the format @channelusername). You can easily retrieve a channel’s ID from it’s web view link at https://web.telegram.org/ - e.g the channel at https://web.telegram.org/z/#-863152528 has the id -863152528. |
| Parse Mode | Mode for parsing entities in the message text. See formatting options (https://core.telegram.org/bots/api/#formatting-options) for more details. |
| Text | Text of the message to be sent, 1-4096 characters after entities parsing. |
Advanced Parameters
| Parameter | Description |
|---|---|
| Allow Sending Without Reply | Pass True, if the message should be sent even if the specified replied-to message is not found. |
| Disable Notification | Sends the message silently. Users will receive a notification with no sound. |
| Disable Web Page Preview | Disables link previews for links in this message. |
| Entities | Comma-separated JSON list of special entities that appear in message text, which can be specified instead of the Parse Mode. For more information refer to https://core.telegram.org/bots/api#messageentity. e.g . |
| Message Thread ID | Unique identifier for the target message thread (topic) of the forum. For forum supergroups only. |
| Protect Content | Protects the contents of the sent message from forwarding and saving. |
| Reply Markup | Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. For more information, refer to https://core.telegram.org/bots/features#keyboards. |
| Reply To Message ID | If the message is a reply, ID of the original message. |
Example Output
{
"ok": true,
"result": {
"message_id": 801,
"from": {
"id": 4927193903,
"is_bot": true,
"first_name": "<string>",
"username": "<string>"
},
"chat": {
"id": 1347616517347,
"title": "<string>",
"type": "<string>"
},
"date": 554721660,
"text": "<string>",
"entities": [
{
"offset": 1,
"length": 51,
"type": "<string>"
},
{
"offset": 60,
"length": 11,
"type": "<string>"
}
],
"link_preview_options": {
"url": "<string>"
}
}
}