Telegram
Add your bot to Telegram using the official integration.
The official Telegram integration allows users to chat with your bot by messaging a Telegram bot.
Setup
You will need:
Visual learner? Check out our Telegram guide on YouTube.
Install the integration in Botpress
First, install the integration to your bot:
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the Telegram integration.
- Select Install Integration.
In the Configuration menu, you should see one field:
- Bot Token
Leave it empty for now—you’ll come back to it after completing the setup in Telegram.
Your Telegram integration is ready—users can now chat with your Botpress bot by messaging your Telegram bot. You can use the integration’s Cards to manage the bot’s typing indicators.
Cards
startTypingIndicator
inputobjectstopTypingIndicator
inputobjectTriggers
Tags
You can read event tags to get information about an active Telegram conversation:
Telegram conversation ID
To get the Telegram conversation ID:
{
{
event.tags.conversation['telegram:id']
}
}
Telegram user ID
To get the Telegram user ID:
{
{
event.tags.user['telegram:id']
}
}
Telegram message ID
To get the Telegram message ID:
{
{
event.tags.message['telegram:id']
}
}