Automatically Instantly if bot receives a command

Telegram Bot

Trigger

It is triggered every time the bot receives a command.


Information provided

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

  • Tags

  • From User Id {{from_id}}

  • Message Id {{message_id}}

  • From Username {{from_name}}

  • From Chat Id {{chat_id}}

  • User message {{text}}

  • Reply to message Username {{reply_to_message_username}}

  • Reply to message Text {{reply_to_message_text}}

  • URL of the possible file or image that the user might have sent along with the command {{image_url}}

    URL of the image submitted by the user. The link expires after one month from the moment it is generated

  • Type of message {{type}}

  • Command {{command}}


Related automations

Send a command and ASIN code to a Telegram bot. It will then retrieve and share the Amazon product in a group or channel
A Telegram bot that, upon receiving an Amazon URL from the user, modifies or adds a specific affiliate tag and returns the resulting URL to the user
Telegram bot for cleaning Amazon Affiliate URLs using regular expressions
Telegram bot to convert specific Miravia product URLs into posts for a group or channel
Telegram bot that requests the name of a WhatsApp template and the recipient's number, then sends them the message
Telegram bot to check the balance of your Stripe account
Telegram bot to check the information of the chat in which the bot is located
Telegram bot to send URLs of products from Temu.com and post them with their image and price in a specific Telegram chat
Telegram Bot. It requests text and an image from the user, which it uses to create a post on a Facebook page
A Telegram bot that responds when users send a specific command to it
Send a command and AliExpress URL to a Telegram bot. It will then retrieve and share the product in a group or channel
Send a command along with an AliExpress URL to a Telegram bot. The bot will then retrieve and provide you with the details of the product
Telegram Bot for Appointment Booking with Google Calendar
Telegram bot that receives an ASIN or URL, extracts product data, requests a custom description, and publishes it in a chat
Telegram bot. It asks the user for a text and an image, and posts it to a specific Facebook page
Telegram bot that, upon receiving "/product" and a Collective Voice URL, returns the corresponding affiliate URL

Frequently Asked Questions


How can I limit who can interact with my bot?

You can limit who can interact with your bot by using the 'Task runs when receiving updates from a specific user, group or channel' field in the bot's settings. This field allows you to specify specific users, groups or channels that are able to interact with the bot.

Why can't my bot see messages posted in a Telegram group?

By default, Telegram bots are configured not to listen to messages posted in groups. To allow your bot to see messages in the group, follow these steps:

  • - In your Telegram app, search for the contact @Botfather and enter his chat.
  • - Type the command /mybots in the chat to see the list of Telegram bots you have created.
  • - Select the corresponding bot from the list.
  • - Tap on the 'Group Privacy' option.
  • - Make sure the 'Privacy Mode' option is set to 'Off' so your bot can listen to messages posted by other users in the group.
Another way to ensure that your bot can see all messages posted by group users is to grant it administrator permissions in the group.

How can I pass data to an automatic task that is triggered when a user presses a button?

Yes, by receiving the command from the pressed button in the same task that displays the buttons and then calling to execute the corresponding task as shown in the following video https://youtu.be/VBhifL0abZA

Common Errors


Command is mandatory

To trigger this task, send a message to the bot from the Telegram app with the required command.

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.