Connect Telegram, Discord, and WhatsApp
Connecting your OpenClaw instance to messaging channels is how you turn a deployment into a working AI assistant. This tutorial covers all three major channels: Telegram, Discord, and WhatsApp.
Telegram (Recommended Starting Point)
Telegram is the easiest channel to set up and offers the best OpenClaw experience.
Step 1: Create a Telegram Bot
Open Telegram and search for @BotFather
Send the message /newbot
BotFather will ask for a name (e.g. "My Assistant") and username (must end in bot, e.g. myassistant_bot)
BotFather will give you a token: 1234567890:ABCdefGhIJKlmNoPQRstuVWXyz
Keep this token — you'll paste it into MyOpenClaw.
Step 2: Add Token to MyOpenClaw
Go to your MyOpenClaw dashboard
Navigate to Integrations
Find the Telegram card and click Connect
Paste your bot token and click Save
MyOpenClaw automatically registers the webhook. No server configuration needed.
Step 3: Test It
Search for your bot username in Telegram
Click Start
Send "Hello" — your assistant should reply within a few seconds
Discord
Step 1: Create a Discord Application
Go to discord.com/developers/applications
Click New Application and give it a name
Go to Bot in the left sidebar
Click Add Bot → Yes, do it!
Under Token, click Copy (or Reset Token if needed)
Step 2: Enable Required Intents
Still in the Bot settings:
Scroll down to Privileged Gateway Intents
Enable Message Content Intent ← This is required
Save Changes
Important: Without Message Content Intent, OpenClaw cannot read messages and will fail silently.
Step 3: Invite the Bot to Your Server
Go to OAuth2 → URL Generator
Under Scopes, check: bot
Under Bot Permissions, check: Send Messages, Read Message History, View Channels
Copy the generated URL and open it in your browser
Select your server and click Authorize
Step 4: Add Token to MyOpenClaw
In your dashboard, go to Integrations → Discord
Paste your bot token
Set the Channel ID where your bot should respond (right-click any channel → Copy Channel ID)
Click Save
WhatsApp
WhatsApp uses WASender (a WhatsApp API gateway) for integration.
Step 1: Get a WASender Account
Sign up at wasender.app
Create a new session
Scan the QR code with your WhatsApp app (Settings → Linked Devices → Link a Device)
Copy your API key and session name from the WASender dashboard
Step 2: Add to MyOpenClaw
In your dashboard, go to Integrations → WhatsApp
Enter your WASender API key and session name
Click Save
Step 3: Test
Send a WhatsApp message to the number you linked. Your assistant should respond.
Note: WhatsApp must stay linked on your device. If you unlink the session in WhatsApp, you'll need to re-scan the QR code.
Troubleshooting
Bot doesn't respond:
Check your instance is running (green status in dashboard)
Verify the token was saved correctly (try re-pasting it)
For Discord: confirm Message Content Intent is enabled
Discord error 4014:
This means Message Content Intent is missing from the Discord Developer Portal. Enable it under Bot → Privileged Gateway Intents.
Telegram webhook conflicts:
If you previously registered a webhook manually, run /deletewebhook via the Telegram Bot API before saving your token in MyOpenClaw.
Need more help? Contact support or ask in
Discord.