TGBot builder
Docs
Pricing

Quick Start

Let’s create your first bot in TGBot Builder.

First of all, you need to create a bot in Telegram with BotFather. This is the place, where you configure the appearance of your bot.

BotFather

When the bot is created BotFather will show you API token.

Now, lets go to My bots page and click Create bot button.

Provide a name and a short description. From this moment, you can start configuring your bot. Let’s do the basic echo-bot example.

Init state

To configure the bot in Diagram section we see the diagram of user behaviour. Users that have not yet interacted with the bot are in "Init state". Because of security settings of Telegram users must contact bots first with /start command. That’s why only one command is available in this state.

Let’s add a new state "Echo". And add an action to /start command to change state to "Echo". Now, users that started conversations with the bot will transfer to our new state.

Echo stateChange state action

Now, we want all messages of users to be echoed back. Let's add a Message trigger with regexp/.*/ which will match all messages and add action Send message.

Message trigger

We use template variable {{ UPD.message_text }} to reply back what user sent us. You can read more about template variables here.

Everything’s ready, don't forget to click Save button. And then we can Activate the bot in Main info panel and test it in Telegram.

That’s all, the bot is ready!