How to Connect OpenClaw to Telegram, Discord

🔧 AI Tools 2026-07-12 · Updated 2026-10-24 2 min read

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.

📜 Table of Contents

📖 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

WhatsApp

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

Related Articles
2026-08-14
AI SEO Writing Assistant 2026: 8 Tools That Research While You Write
2026-08-28
Best AI Medical Scribe in Tampa 2026: 6 Tools That Cut Charting Time
2026-08-25
Best AI Show Notes Generator for Podcasters in 2026: 6 Tools That Turn Episodes into Content
2026-08-14
AI Scheduling Assistant for Outlook 2026: 6 Tools That Kill Email Ping-Pong
2026-11-29
SQLite FTS5 Code Search: Trigram Won 40/40, Then Lost at 43k Chunks
2026-07-26
AI Image Generators Without Sign Up

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.

💬 Comments (0)

No comments yet. Be the first!

Login to comment