Notification Setup

  1. Create an “Action” block and find the External Request option.

  2. Click Edit to open this block.

  3. Select POST as the request type, and in the URL field enter:

 
https://api.telegram.org/bot<MyToken>/sendMessage

  1. Go to Telegram and find the BotFather bot. Send the command /mybots, select the required bot, click API Token, and copy it.

  2. In the previously created external request, replace <MyToken> with the copied token and save the changes.

Getting the ID of a private channel or group

  1. Open the channel or group in the Web version of Telegram and copy the numbers from the URL — they are at the end of the link. Save them somewhere (e.g., in a text file) to avoid losing them.

  2. Important: The ID must start with 1 or 2. If it starts with 4 or another number, temporarily make the channel public, then close it again. The ID will update and become correct.


Setting up the request body

Go back to the bot, open the Action block, go to the Body tab, and enter:

 
{
"chat_id": "-100<id>",
"text": "Test",
"parse_mode": "MarkdownV2"
}
  • Replace <id> with the copied ID from the Web version of Telegram.

  • Instead of "Test", you can write any text (text formatting options are described below).

Save the step and go to your Telegram group/channel. Assign the bot Administrator privileges with all rights.

Run the Action, and the specified text will appear in the channel.

Formatting

You can format text when sending messages. Supported parsing modes (example uses MarkdownV2):

  • Markdown (legacy, still usable)

  • MarkdownV2 (current Markdown version)

  • HTML (more flexible formatting)

Markdown (Legacy)

Simple Markdown with limited options:

 
*bold text*

_italic_

`monospace`

Example:

 
{
"chat_id": "-100<id>",
"text": "*Bold* and _italic_, `code`",
"parse_mode": "Markdown"
}

MarkdownV2 (from example)

Stricter and more extended syntax:

 
*bold*
__bold (alternative)__
_italic_
~strikethrough~
`monospace`
[link](https://google.com)

Example:

 
{
"chat_id": "-100<id>",
"text": "*Bold* and _italic_, ~strikethrough~, [link](https://google.com)",
"parse_mode": "MarkdownV2"
}

HTML

More powerful formatting:

 
<b>bold</b>
<i>italic</i>
<u>underlined</u>
<s>strikethrough</s>
<code>monospace</code>
<pre>code block</pre>
<a href='https://google.com'>link</a>

Example:

 
{
"chat_id": "-100<id>",
"text": "<b>Bold</b>, <i>italic</i>, <s>strikethrough</s>, <a href='https://google.com'>link</a>",
"parse_mode": "HTML"
}


If you haven’t found the answer to your question, ask us in the chat inside your account, write to us in Telegram at @BotHelpSupportBot, or email us at hello@bothelp.io.

Get 14 days of full access to BotHelp — a platform for creating newsletters, automated funnels, and chatbots.

Get 14 days free

Была ли статья полезна?

Спасибо за обратную связь!