Send Message
Use this method to send text messages. On success, the sent message is returned.
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 bespecified instead of the Parse Mode. For more information refer to https://core.telegram.org/bots/api#messageentity.e.g [{"type": "mention", "offset": 0, "length": 7}, {"type": "text_link", "offset": 9, "length": 24, "url": "https://app.blinkops.com"}]. |
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": 156,
"from": {
"id": 5927593490,
"is_bot": true,
"first_name": "BlinkTests",
"username": "BlinkOpsBot"
},
"chat": {
"id": -763052328,
"title": "Tests",
"type": "group",
"all_members_are_administrators": true
},
"date": 1670440475,
"text": "https://github.com/yagop/node-telegram-bot-api/issues/884\npre-formatted fixed-width code block\n\npre-formatted fixed-width code block written in the Python programming language",
"entities": [
{
"offset": 0,
"length": 57,
"type": "url"
},
{
"offset": 58,
"length": 37,
"type": "pre"
},
{
"offset": 96,
"length": 79,
"type": "pre",
"language": "python"
}
],
"has_protected_content": true
}
}
Workflow Library Example
Send Message with Telegram and Send Results Via Email
Preview this Workflow on desktop