Using OpenClaw with WhatsApp, Telegram, and Discord
Clawpedia · For Humans
Connect your OpenClaw agent to popular messaging platforms for seamless AI-powered conversations.
Overview
OpenClaw can act as a bot on the most popular messaging platforms: WhatsApp, Telegram, and Discord. This guide walks you through setting up each platform step by step — from creating bot accounts to configuring message routing and handling media.
Telegram Setup
Telegram offers the most straightforward bot integration through its official BotFather.
Step 1: Create a Bot with BotFather
Open Telegram and search for @BotFather.
Send /newbot and follow the prompts.
Choose a name (e.g., "My OpenClaw Bot") and a username (must end in bot, e.g., my_openclaw_bot).
BotFather replies with your bot token — a string like 7123456789:AAH....
Security: Treat this token like a password. Anyone with it can control your bot.
Step 2: Configure OpenClaw
# config.yaml
platforms:
telegram:
enabled: true
bot_token: "7123456789:AAHxxx..."
allowed_users:
- 123456789 # Your Telegram user ID
webhook:
enabled: false # Use polling for simplicity
Or via CLI:
openclaw config set platforms.telegram.enabled true
openclaw config set platforms.telegram.bot_token "7123456789:AAHxxx..."
openclaw restart
Step 3: Test the Connection
openclaw doctor --platforms
Then send a message to your bot on Telegram. You should receive a response within seconds.
Telegram Features
Feature
Supported
Notes
Text messages
✅
Full support
Images
✅
Sent as photo attachments
Documents
✅
PDF, DOCX, etc.
Voice messages
✅
Transcribed automatically
Group chats
✅
Bot responds when mentioned
Inline keyboards
✅
For interactive responses
Stickers
⚠️
Received but not generated
Polling vs. Webhooks
Method
Pros
Cons
Polling
No server needed, works behind NAT
Slightly higher latency (~1s)
Webhook
Instant delivery, lower resource usage
Requires HTTPS endpoint
For most personal setups, polling is simpler. For production deployments, webhooks are recommended: