Connect Telegram to Click2Reply live chat
Messages your customers send on Telegram arrive in Click2Reply as chats, and your agents’ replies go back through Telegram.
Connect in the agent app
Section titled “Connect in the agent app”- In the agent app, open Settings > Messaging apps and choose Telegram.
- Fill in the fields below.
- Under New chats go to, pick the group that answers this channel, then connect.
What you need
Section titled “What you need”Message @BotFather in Telegram, send /newbot, and copy the bot token it answers with.
| Field | Key | |
|---|---|---|
| Bot token | bot_token | required, secret |
A secret is stored encrypted and never shown again, only a hint of it.
Connect with the API
Section titled “Connect with the API”With a token holding channels.manage, connect with one call; group_id is optional:
curl -sS -X POST "https://api.click2reply.com/v1/channels/connections" \ -H "Authorization: Bearer $C2R_TOKEN" \ -H "Content-Type: application/json" \ -d '{"channel":"telegram","name":"Telegram support","credentials":{"bot_token":"<bot_token>"}}'The answer is { connections, manual_steps }: the connection, and each step left to do by hand as a code and the value to paste, such as the webhook URL.