Connect a Telegram bot
Create a bot in @BotFather, paste the token into Happ, and the agent starts answering customers in Telegram.
What you need
- A Telegram account.
- A Happ agent that will answer in the bot. No agent yet? Create one from a template.
Create a bot in @BotFather
Open @BotFather, send /newbot, set the bot name and username. BotFather sends a token like 123456789:AA....
Connect the bot in Happ
Open Integrations, find Telegram Bot and click the card. Paste the token and confirm. The bot appears in My integrations.
Assign the agent
Open the agent, Integrations tab, and bind the bot to it. Without this step the bot receives messages but does not reply.
Check it
Write to the bot from your personal Telegram. The conversation shows up in Chats and the agent replies within seconds.
The token is access to the bot
Never paste the token into chats or publish it. If it leaks, issue a new one in @BotFather with /revoke and reconnect the bot.
Troubleshooting
| Symptom | What to do |
|---|---|
| The bot does not reply | Check the bot is bound to an agent and AI mode is on in the chat. |
| Error while connecting | Copy the token again in full, without leading or trailing spaces. |
| It replies in groups but should not | Disable group access in @BotFather: /setjoingroups. |
Next
- Inbox: how a manager takes over a conversation.
- Telegram: connect a personal account instead of a bot.
Help me solve it
Happ answers right away and hands over to a manager when needed.
Did this help?