The Telegram integration lets you connect an AI Employee (Agent) to one or more Telegram conversations—private chats, groups, or channels—via the official Telegram Bot API. Once configured, the AI automatically replies to new messages according to the workflows you set up in ZappWay, and you can jump in manually at any time through the Inbox interface.
Important: Telegram “bots” are special accounts controlled by a token, not by a phone number. A single bot can be added to many groups or channels, but every message must reach the bot (via a direct mention, reply, or channel post) for the AI to respond.
Open Telegram (desktop or mobile).
Search for @BotFather
and open the verified account.
Tap Start (or send /start
). BotFather displays a menu of commands.
Send /newbot
.
Follow the prompts:
bot
(e.g., zappway_support_bot
).BotFather replies with:
✅ Copy the token—you will paste it into ZappWay later.
Tip: Your bot is public by default. If you prefer to hide it from search, send
/setprivate
to BotFather.
/token
, then pick your bot./start
so the bot is allowed to message you.Create or open the group where customers will send messages.
Tap the group title ➜ Add Member ➜ search your bot’s username ➜ Add.
Promote it to Administrator (required so it can read and send all messages).
Why admin? Telegram only delivers all messages to bots that are admins; otherwise the bot sees mentions only.
Telegram delivers updates to one webhook URL per bot.
<YOUR_TOKEN>
, <CALLBACK_URL>
, <VERIFY_TOKEN>
with real values.{"ok":true, "result":true, ...}
if the webhook is set.Note:
- The URL must use HTTPS with a valid certificate.
- A single bot can point to one webhook at a time. Calling
setWebhook
again overwrites the previous URL.
Sign in to ZappWay ➜ Integrations ➜ Telegram ➜ Add Telegram Integration.
Paste the HTTP Token you copied from BotFather. Click Continue.
getMe
endpoint.ZappWay now displays two read-only fields:
secret_token
you passed to setWebhook
Click Save. The integration status changes to “Waiting for updates”.
If ZappWay shows “Invalid credentials,” re-check the token in BotFather and repeat Step 5.
From any Telegram account, send “Hello” to:
In ZappWay ➜ Inbox, you should see the incoming message.
If you configured auto-reply flows, the AI Employee should respond automatically.
Troubleshooting: No message in Inbox?
- Confirm webhook status with
https://api.telegram.org/bot<YOUR_TOKEN>/getWebhookInfo
.last_error_message
will reveal SSL or network issues.- Ensure the bot has permission to read group/channel messages (admin role).
getWebhookInfo
returns fields pending_update_count
and last_error_date/message
.last_error_date
means Telegram could not POST to ZappWay. Check firewall/SSL./revoke
command in BotFather ➜ Requires setting a new webhook.Error Code | Meaning | Fix |
---|---|---|
401 / 403 | Invalid token | Re-paste correct token in ZappWay & setWebhook again |
400 “chat not found” | Bot not admin | Add/promote bot in the group/channel |
429 | Flood control | Reduce message rate or chunk long replies |
Follow every step above and your Telegram integration with ZappWay will be live and ready to handle customer conversations automatically.