Telegram Integration
Connect your own Telegram bot to automatically respond to messages with your AI chatbot.
Overview
The Telegram integration allows you to connect your own Telegram bot to your Blocktell chatbot. Once connected, your Telegram bot will automatically respond to messages using your trained AI chatbot.
Key Benefits
- Use your own branded Telegram bot
- 24/7 automated AI responses
- Conversation history maintained per user
- Message analytics and tracking
Prerequisites
Before you begin, make sure you have:
- 1
A Blocktell account with at least one trained chatbot
- 2
A Telegram account
Step 1: Create a Telegram Bot
First, you need to create a Telegram bot using BotFather - Telegram's official bot for creating bots.
Create a New Bot
Send the following command to BotFather:
Name Your Bot
BotFather will ask for a display name. This can be anything, like My Company Support
Choose a Username
BotFather will ask for a username. This must end in bot, like mycompany_support_bot
Copy the Bot Token
BotFather will send you a message with your bot token. It looks like this:
Step 2: Add Bot to Blocktell
Now add your Telegram bot to Blocktell.
Click on Telegram
Find the Telegram card and click "Connect" to open the Telegram integration modal.
Click "Add Telegram Bot"
Click the button to add a new Telegram bot to your account.
Paste Your Bot Token
Paste the bot token you received from BotFather and click "Add Bot".
Step 3: Link Your Chatbot
Finally, link your Telegram bot to one of your trained chatbots.
Select a Chatbot
In the Telegram bot card, use the dropdown to select which chatbot should power your Telegram bot.
Click the Link Button
Click the link icon button to connect your chatbot. You'll see a confirmation that the chatbot is linked.
You're all set!
Your Telegram bot is now connected. Anyone who messages your bot will receive AI-powered responses from your trained chatbot.
Available Commands
Your Telegram bot supports the following commands:
| Command | Description |
|---|---|
| /start | Start a conversation with the bot |
| /new | Clear conversation history and start fresh |
| /help | Show available commands |
Managing Your Bot
Changing Linked Chatbot
To link a different chatbot, first unlink the current one by clicking the unlink button, then select and link a new chatbot from the dropdown.
Removing a Bot
To remove a Telegram bot from Blocktell, click the trash icon on the bot card. This will stop the bot from responding to messages but won't delete the bot from Telegram.
Troubleshooting
Bot not responding?
- •Make sure the bot is linked to a chatbot (you should see "Linked to..." in the bot card)
- •Verify your chatbot has training data and is working in the playground
- •Check that you haven't exceeded your message limits
"Invalid bot token" error?
- •Make sure you copied the complete token from BotFather
- •The token format should be:
number:alphanumeric - •If you regenerated the token in BotFather, use the new token
"Bot already registered" error?
Each Telegram bot can only be connected to one Blocktell account. If you see this error, the bot is already registered by you or another user.