OpenClaw + Telegram
Chat with your AI assistant from your phone, anywhere in the world. Set up in 5 minutes.
What You Can Do
Text Chat
Send messages from any device
Voice Messages
Talk to your AI with voice notes
File Sharing
Send images, docs, code files
Notifications
Get alerts and reminders pushed to you
Group Support
Add OpenClaw to group chats
Inline Buttons
Interactive UI with button responses
Setup Guide
- Open Telegram and search for @BotFather
- Send
/newbot - Choose a name (e.g., "My AI Assistant")
- Choose a username ending in "bot" (e.g., "myai_assistant_bot")
- Copy the token (looks like
123456789:ABCdef...)
Example response from BotFather:
Done! Your bot is created.
Use this token to access the HTTP API:
7123456789:AAH2s-KxxxxxYYYYYzzzzz123456789
Keep this token secure!- Search for @userinfobot on Telegram
- Send any message
- Copy your numeric ID (e.g.,
123456789)
This ID ensures only you can use your OpenClaw bot.
Edit your openclaw.yaml config:
# ~/.openclaw/openclaw.yaml
channels:
telegram:
enabled: true
token: "7123456789:AAH2s-KxxxxxYYYYYzzzzz123456789"
allowedUsers:
- "123456789" # Your Telegram IDOr run openclaw setup to configure interactively.
# Restart OpenClaw to apply changes
openclaw restart
# Check status
openclaw statusYou should see:
✓ Telegram: connected (polling)Now message your bot on Telegram — it should respond!
Advanced Settings
channels:
telegram:
enabled: true
token: "YOUR_BOT_TOKEN"
# Security
allowedUsers:
- "123456789" # Your ID
- "987654321" # Another person's ID
allowedGroups:
- "-1001234567890" # Group chat ID (negative number)
# Features
voice:
enabled: true # Allow voice messages
transcribe: true # Convert speech to text
# Notifications
notifyOnStart: true # Message you when OpenClaw starts
# Behavior
typingIndicator: true # Show "typing..." while thinking
parseMode: "Markdown" # Format responses as Markdown
# Webhooks (advanced - for high traffic)
# webhook:
# enabled: true
# url: "https://your-domain.com/telegram/webhook"
# port: 3001Using in Group Chats
- Add your bot to a group
- Get the group ID by adding @getidsbot temporarily
- Add the group ID (starts with
-100) toallowedGroups - In groups, mention the bot to trigger it:
@your_bot_name what's the weather?
allowedGroups:
- "-1001234567890" # Work team
- "-1009876543210" # Family groupTroubleshooting
Check your token is correct. Run 'openclaw logs' to see errors.
Your Telegram ID isn't in allowedUsers. Get your ID from @userinfobot.
Enable voice in config. May need ffmpeg installed: brew install ffmpeg
Add group ID to allowedGroups. Disable privacy mode with /setprivacy in BotFather.
Want 24/7 Telegram Access?
Host OpenClaw in the cloud so your Telegram bot never goes offline. Use code OPENCLAW15 for 15% off.