How to Connect OpenClaw to Telegram, Discord
One agent, four chat platforms, four application flows, four auth models, and four kinds of errors — with the docs scattered across pages. This guide folds the four integrations into one sequence: create the app, collect credentials, write the config, verify, plus a table of the errors you will actually hit.
📖 Keep reading
One Agent, Four Chat Platforms: Telegram, Discord, WhatsApp, Slack
The hard part is not the agent. It is four different application flows — a bot conversation on Telegram, intent switches on Discord, a business app review on WhatsApp, a manifest with scopes on Slack. The sequence that works: create the app, collect credentials, write config, verify one platform, then add the rest.
Telegram
Message @BotFather, send /newbot, pick a username ending in bot, save the token, write it into the config, restart the gateway. In groups, disable privacy mode with /setprivacy or the bot only sees mentions; a 401 usually means copied whitespace.
Discord
Create the application and bot in the Developer Portal, copy the token (shown once), then enable Message Content Intent — without it the bot looks broken. Generate an invite URL with bot and applications.commands, grant send and read-history permissions.
| Symptom | Cause | Fix |
|---|---|---|
| Online but silent | Intent off | Enable Message Content |
| 403 Missing Access | Permissions | Regenerate the invite |
| Wrong channel | Channel ID | Copy it again in developer mode |
Meta for Developers, add WhatsApp, start with the test number, configure an HTTPS webhook with a verify token, subscribe to messages. Two rules: the 24-hour window for free-form replies (templates outside it), and a publicly reachable callback — a tunnel in development, a real certificate in production.
Slack
Create an app from a manifest with bot scopes chat:write, app_mentions:read, im:history, subscribe to app_mention and message.im, enable Socket Mode so no public URL is needed, install and save both the xoxb- and xapp- tokens.
| Error | Meaning | Fix |
|---|---|---|
not_in_channel |
Bot not in channel | /invite @bot |
missing_scope |
Scope missing | Add and reinstall |
| No events | Not subscribed | Verify event subscriptions |
Running all four
Prefix session keys with the platform, normalise every message into one internal format so the agent never sees platform differences, and keep a separate send queue per channel because rate limits differ.
FAQ
All four at once? No — get one working so you can tell platform failures from agent failures.
Token storage? Environment variables or a secret manager; a leaked token lets anyone speak as your bot.
Mixed transports? Fine. Telegram supports both, Discord and Slack use gateway connections, WhatsApp is webhook-only.
Platform scopes and policies change; check official docs.
Related
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.