telegrambot

Send a message

Send a message, an image/video/document or both to a specific chat, group or channel.

Telegram Bot Action


Automating tasks with Telegram Bot allows you to send messages, images, videos, or documents to specific chats, groups, or channels efficiently. This integration supports HTML tags like bold, italic, and links, as well as interactive buttons that can direct users to URLs or trigger other automations.

Customize your messages dynamically using tags from other applications, Spintax, and Mustache to keep your posts engaging and varied. You can also include your own images or those generated from keywords with Unsplash, and add buttons that redirect users or initiate private chats with the bot.



  • The following tags are currently supported in the messages: b, strong , i, em, u, ins, s, strike, del, a, code, pre.
  • You can include URL Buttons and Callback Buttons in posts.







Customization Options

Configurable fields you can adjust in your automation

  • Enable Rules
  • Message Filters
  • Message Text
  • Photo File
  • Media Position
  • Buttons
  • Keyboard
  • Message Thread ID
  • Disable Link Preview
  • Disable Notification
  • Enable Output Variable Renaming
  • Output Variables

Dynamic messages

Supports tags from any other app, Spintax and Mustache so your posts always vary and look attractive.

🎁 Emojis, bold, Strikethrough text, Hyperlinks...

Posts with images

Own images or for example obtained from a keyword with Unsplash.

You can also generate your own images with Product Templates.

Posts with buttons

Buttons that send the user to the web or URL that you indicate.

And Buttons that when pressed by the user activate certain automations that you have programmed. For example: Open a private chat between the bot and the user who has clicked on it.

Rich text/HTML formatting

You can include the following HTML tags in your posts to format the text and make it more visually attractive to the reader.

Tag Example Result
<B> <b>Bold</b> text Bold text
<STRONG> <strong>Bold</strong> text Bold text
<I> <i>Italic</i> text Italic text
<EM> <em>Italic</em> text Italic text
<U> <u>Underlined</u> text Underlined text
<INS> <ins>Underlined</ins> text Underlined text
<S> <s>Strikethrough</s> text Strikethrough text
<STRIKE> <strike>Strikethrough</strike> text Strikethrough text
<SPAN CLASS="TG-SPOILER"> Text <span class="tg-spoiler">hidden</span> Text β–‘β–‘β–‘β–‘β–‘β–‘
<DEL> <del>Strikethrough</del> text Strikethrough text
<A> <a href="https://google.es">Hyperlink</a> text Hyperlink text
<CODE> <code>Preformatted</code> text1 Preformatted text
<PRE> <pre>Preformatted</pre> text1 Preformatted text

1. This format has the property of automatically copying the text to the user's clipboard when clicked.



Troubleshooting

Error messages and suggestions to fix it.





Information provided

When executed, this operation delivers the following data, which can be used in the same automatic task.

  • Tags

  • Message Id {{message_id}}

  • Chat Id {{chat_id}}

  • File Id {{file_id}}




Related automations

  • type
  • foursquare β†’ checkins_friend_category
  • telegrambot β†’ send_message_photo
Share my friends’ check-ins in the Telegram group
  • type
  • zohoprojects β†’ new_milestone_update
  • telegrambot β†’ send_message_photo
Communicate in our Telegram group every new milestone achieved
  • type
  • zohoprojects β†’ new_task_update
  • telegrambot β†’ send_message_photo
Communicate in our Telegram group every new task that is created for the project
  • type
  • infojobs β†’ offers_by_query
  • telegrambot β†’ send_message_photo
Share in my group every job offers for Ruby or Python in Barcelona or Madrid
  • type
  • coc β†’ clan
  • btzfilters β†’ process
  • telegrambot β†’ send_message_photo
Notify your Telegram group when your clan levels up
  • type
  • rss β†’ rss_new
  • telegrambot β†’ send_message_photo
Post the headline and link of each new entry from a feed or RSS channel in a Telegram chat
  • type
  • telegrambot β†’ webhook
  • telegrambot β†’ send_message_photo
What you write to a Telegram bot is published in a Telegram channel/group
  • type
  • giphy β†’ new_gif_from_keyword
  • telegrambot β†’ send_message_photo
Send each new GIF on a topic you specify to a Telegram chat or group
  • type
  • plugin_talk β†’ post_message
  • fpages β†’ public_status
  • telegrambot β†’ send_message_photo
Publish to Facebook Pages and to a chat or Telegram group at the same time
  • type
  • trabber β†’ one_destination
  • telegrambot β†’ send_message_photo
Post Madrid-Barcelona flight offers on a Telegram channel
  • type
  • telegrambot β†’ webhook
  • btzfilters β†’ process
  • telegrambot β†’ send_message_photo
Forward only messages that contain links to a channel
  • type
  • telegrambot β†’ webhook
  • telegrambot β†’ send_message_photo
Forward only messages containing the word IMPORTANT to a channel
  • type
  • telegrambot β†’ webhook
  • telegrambot β†’ send_message_photo
Bot to copy received text messages to another chat
  • type
  • telegrambot β†’ webhook
  • telegrambot β†’ send_message_photo
  • telegrambot β†’ send_message_photo
Forward user messages to different channels
  • type
  • site_inspector β†’ site_down
  • telegrambot β†’ send_message_photo
Send an alert to a Telegram group if a website is down
  • type
  • gcalendar β†’ alert_events
  • telegrambot β†’ send_message_photo
Share Google Calendar events an hour in advance on a Telegram channel
  • type
  • public_channels β†’ new_post
  • telegrambot β†’ send_message_photo
Copy the text of messages and the first image from posts in a public Telegram channel to my group/channel/chat
  • type
  • gspreadsheet β†’ read_random_row
  • telegrambot β†’ send_message_photo
Every hour post a random row of a spreadsheet on a Telegram channel
  • type
  • plugin_talk β†’ post_message
  • telegrambot β†’ send_message_photo
Every hour select a message from a list and send it to me
  • type
  • plugin_talk β†’ post_message
  • telegrambot β†’ send_message_photo
Every hour choose a message from a list and send it to a group
  • type
  • plugin_talk β†’ post_message
  • telegrambot β†’ send_message_photo
Every hour choose a message from a list and send it to a Telegram channel/group
  • type
  • plugin_talk β†’ post_message
  • telegrambot β†’ send_message_photo
Send automatic messages to a Telegram contact
  • type
  • ganalytics β†’ get_metrics
  • telegrambot β†’ send_message_photo
Share the analytics of the last 7 days with a contact from your agenda
  • type
  • aliexpress_associates β†’ search_by_category
  • telegrambot β†’ send_message_photo
Post AliExpress products from a category to a public channel
  • type
  • site_inspector β†’ site_updated
  • telegrambot β†’ send_message_photo
Notify a Telegram group when a website is updated
  • type
  • gspreadsheet β†’ read_row
  • amazon_associates β†’ get_product_detail
  • telegrambot β†’ send_message_photo
Post Amazon affiliate links on Telegram
  • type
  • dropbox β†’ new_file
  • telegrambot β†’ send_message_photo
Send images from a Dropbox folder to a Telegram channel
  • type
  • amazon_associates β†’ search_by_keyword
  • telegrambot β†’ send_message_photo
Post Amazon products from a keyword to Telegram
  • type
  • gspreadsheet β†’ read_row
  • telegrambot β†’ send_message_photo
Extract each row from a Google Sheets containing products, create a message with the cell values, and post it on Telegram
  • type
  • gspreadsheet β†’ search_row_by_column_v2
  • telegrambot β†’ send_message_photo
Post the rows that match a certain value to Telegram
  • type
  • public_channels β†’ new_post
  • deepl β†’ translate
  • telegrambot β†’ send_message_photo
Translate an existing channel into another language
  • type
  • paypal β†’ new_transaction
  • telegrambot β†’ send_message_photo
Send a message when a transaction occurs in PayPal
  • type
  • paypal β†’ new_transaction
  • btzfilters β†’ process
  • telegrambot β†’ send_message_photo
Send a message whenever a charge over 100 Euros arrives
  • type
  • drive β†’ get_document_by_id
  • telegrambot β†’ send_message_photo
Every day download an spreadsheet as CSV and share it on Telegram
  • type
  • gspreadsheet β†’ read_row
  • btztextparser β†’ text_parser
  • btzfilters β†’ process
  • telegrambot β†’ send_message_photo
Extract the price from product descriptions and publish it on Telegram
  • type
  • public_channels β†’ new_post
  • btztextparser β†’ text_parser
  • telegrambot β†’ send_message_photo
Extract product prices and publish them on a Telegram channel
  • type
  • plugin_talk β†’ post_message
  • telegrambot β†’ send_message_photo
Every 2 days send a message from a list to the Telegram group
  • type
  • twitter β†’ likes_from_me
  • telegrambot β†’ send_message_photo
Share my favorite tweets in the Telegram group with a link to the tweet
  • type
  • telegram_channels β†’ webhook_all
  • telegrambot β†’ send_message_photo
Copies the text and the first image from each post in a public group to another one of mine
  • type
  • gspreadsheet β†’ read_row
  • scrapingrobot β†’ html_request_scraper
  • amazon_lightning β†’ parse_single_product_html
  • telegrambot β†’ send_message_photo
Extract Amazon products without API and send them to Telegram
  • type
  • telegrambot β†’ send_message_photo
Webhook to post to Telegram from a spreadsheet
  • type
  • amazon_lightning β†’ search_deals
  • telegrambot β†’ send_message_photo
Retrieve Amazon deals and post them on Telegram
  • type
  • amazon_lightning β†’ search_deals
  • bitly β†’ shorten
  • telegrambot β†’ send_message_photo
Extract Amazon offers, shorten the affiliate link with Bitly, and post them on Telegram
  • type
  • gspreadsheet β†’ read_row
  • telegrambot β†’ send_message_photo
Post links saved in a spreadsheet to Telegram
  • type
  • telegrambot β†’ webhook_command
  • amazon_associates β†’ get_product_detail
  • telegrambot β†’ send_message_photo
  • telegrambot β†’ reply
Send a command and ASIN code to a Telegram bot. It will then retrieve and share the Amazon product in a group or channel
  • type
  • amazon_associates β†’ search_by_category
  • producttemplates β†’ template_to_image
  • telegrambot β†’ send_message_photo
Accessories with discounts of 2% or more
  • type
  • amazon_lightning β†’ search_deals
  • producttemplates β†’ template_to_image
  • telegrambot β†’ send_message_photo
Publish Amazon deals with customized images on Telegram
  • type
  • aliexpress_associates β†’ search_by_keyword
  • producttemplates β†’ template_to_image
  • telegrambot β†’ send_message_photo
Publish AliExpress products to Telegram with customized images

Frequently Asked Questions


How do I create a button in Telegram that when pressed opens a chat with a specific user or bot?

When creating the button in Botize, indicate the URL "https://t.me/username". This will create a button that when pressed will open a chat with the specified user/bot. Simply replace username with the Telegram username of the user or bot you want to talk to. For example, if the username of the user you want to talk to is 'Botize', the URL would be "https://t.me/botize". Clicking on this button will automatically open a conversation with that user on Telegram.

I receive the error: Can't parse entities. Can't find end tag corresponding to start tag strong

This error indicates that in the message that is being attempted to be sent through Telegram, contains a HTML 'strong' opening tag (or start) that does not have its corresponding closing tag (or end).

To fix it, check the message that is attempting to be sent and make sure all opening tags have a corresponding closing tag.

I receive the error: Can't parse entities. Tag <span> must have class 'tg-spoiler'

This error indicates that the message being sent through Telegram contains an HTML tag <span>, but it does not have the 'tg-spoiler' class.

Telegram only allows the <span> tag within a message if it is accompanied by the 'tg-spoiler' class. Otherwise, the tag should be removed from the message.

How do I get the ID of a topic?

To find the ID of a topic in Telegram, post a message in that topic and then copy the message link (right-click or long-press on mobile). When you paste it into a text editor, you'll see a URL similar to this: https://t.me/c/XXXXXXX/YY/ZZ. The number that appears in the YY position is the topic ID.

How do I get the URL of a public Telegram channel or group?

From the Telegram app on iOS/Android:

  1. Open your public channel or group and tap the name at the top.
  2. Tap Share link and you'll see a URL like https://t.me/<username>; copy it from there.
Note: If Share link doesn’t appear or you don’t see a @username, the chat is private.

Common Errors


Bad Request: need administrator rights in the channel chat

To enable the bot to post messages in the specified chat, Telegram requires you to add the bot to the chat and grant it administrator permissions.

If you have already added the bot to the chat, please make sure that in the bot's permissions settings, under 'What can this bot do?', the 'Post messages' option is enabled.

Bad Request: wrong file identifier/HTTP URL specified

This error occurs when attempting to send a file that does not meet certain requirements set by Telegram.

Here's why this error can occur:

  • File Type: Telegram only supports sending videos, images and GIF, PDF, and ZIP files.
  • Voice Messages: Telegram only supports voice messages of type 'audio/ogg' and must not exceed 1MB in size.
We suggest verifying that the file your automated task is attempting to send complies with the specific requirements and size limitations.

Bad Request: message caption is too long

In Telegram, the text that accompanies images has a maximum limit of 1,024 characters. You should therefore review any caption you send and shorten it so it does not exceed this limit, since Telegram will reject anything longer.

As an alternativeβ€”and to avoid the restriction Telegram imposes on messages that include imagesβ€”you can consider sending the image and the text in two separate messages.

Bad Request: too many messages to send as an album

Telegram sets a maximum of 10 photos or videos per post.

Edit your automation task and reduce the number of URLs to include in a single post.

Forbidden: bot can't initiate conversation with a user

This error occurs because Telegram bots cannot initiate a conversation with a user proactively. They can only respond to users who have sent them at least one message at some point. If the user has never interacted with the bot, the bot will not have permission to send them messages.

Error 'TOPIC_CLOSED'

This error message means that you're trying to send a message to a topic or thread in Telegram that has already been closed.

Telegram does not allow sending messages to closed topics, even if the bot or user has permissions in the group or channel.

To resolve this issue, edit your automation task and make sure you're using a topic that is currently open. If the topic was closed manually or automatically by Telegram, you'll need to select another valid topic in your task settings.

Write us

By email or by Telegram.
Monday to Friday from 7 a.m. to 1 p.m. (Spain).

Let's talk

Choose day and time.
We share the screen and answer all your questions.