How to trigger a Telegram chatbot flow

With SendPulse, you can create automated chatbot flows triggered by events or subscribers' actions in Telegram, including messages to a private account (if you have Telegram Business connected) or adding a subscriber to a group.

In this article, we will talk about how to set up and customize Telegram chatbot flow triggers.

You can use the Welcome message, Standard reply, and Unsubscription from the bot standard triggers in any chatbot. To create your own triggers, use keywords and Automation 360 events.

Read more: How to manage chatbot flow triggers.

Join a Telegram group or channel

You can create a Telegram chatbot trigger to send private messages to subscribers and group or channel members.

Create a trigger

Go to your Telegram bot, and click Create a new trigger in the list of triggers on the left.

Select the Join a Telegram group or channel checkbox in the trigger settings, and choose the group or channel with your chatbot.

If you add a chatbot to a channel, this channel must be private, and its invite links must have the Request Admin Approval enabled. To do this, click the group or channel name > Edit. Go to the Members tab, and turn on the Request Admin Approval toggle.

Flow messages will be sent only to the contacts who have joined your group or channel and subscribed to your bot.

If you haven't added your chatbot to your group yet, click Add to a group. Afterward, you will be redirected to Telegram, where you can select a group or channel and add your chatbot there.

Click Add to save the trigger.

Set up a flow

At the start of your flow, you will see the Filter element with the Subscription to the bot condition. Next, there is the Action element with the Unblock in a group or channel or accept a join request and Block in a group or channel commands that apply based on a user's subscription status. This setup ensures that only those who have paid for chatbot access can enter your group chat.

If the filter conditions match and the user is a chatbot subscriber, the Message element is added next.

You can add more elements and commands based on your scenario. For example, you can filter not only chatbot subscribers but also group members.

Read more: How to use chatbot builder elements.

Messages for Telegram Business

Telegram Premium users can use Telegram Business tools to sync messages between their personal business account and SendPulse and set up flow launching.

Click Create a new trigger. Select Messages for Telegram Business, enter keywords, and select a recognition method (Matches with or Contains). Click Save.

The system recognizes individual words and phrases as commands, for example, hi, price, working hours, how much does it cost. The maximum keyword length is 32 characters.

Read also: How to use Telegram Business in chatbots.

    Rate this article about "How to trigger a Telegram chatbot flow"

    User Rating: 5 / 5 (9)

    Previous

    How to create a chatbot in Telegram

    Next

    How to create an automated flow for a Telegram chatbot

    Popular in Our Blog

    Create a free Telegram chatbot