Telegram Setup Guide
Connect OpenClaw to Telegram in 5 minutes
Why Telegram?
Easiest Setup
Official Bot API, no complex configuration needed
Works Behind NAT
No public IP, domain, or SSL certificate required
Voice Support
Send voice messages for hands-free interaction
Reliable
Stable connection using long-polling technology
Prerequisites
- βOpenClaw installed and running
- βA Telegram account (phone number required)
- βAI model API key configured (Anthropic, OpenAI, etc.)
Don't have OpenClaw installed yet? Follow our installation guide β
Step-by-Step Setup
Create a Telegram Bot
Open Telegram and search for @BotFather, the official bot for creating bots.
1. Send this command to BotFather:
/newbot2. Enter a name for your bot:
3. Enter a username (must end with 'bot'):
4. Copy the bot token:
1234567890:ABCdefGHIjklMNOpqrsTUVwxyzβ οΈ Keep this token secret! Anyone with it can control your bot.
Configure OpenClaw
Run the OpenClaw onboarding wizard if you haven't already, or add Telegram to an existing setup.
Run the onboarding wizard:
openclaw onboardOr add Telegram to existing config:
openclaw config set telegram.token YOUR_BOT_TOKENThe wizard will prompt you to paste your Telegram bot token when you select Telegram as a messaging platform.
Start the Bot & Pair
Start OpenClaw and initiate the pairing process with your Telegram bot.
1. Start OpenClaw:
openclaw start2. Open your bot in Telegram and send:
/start3. You'll receive a pairing code. Approve it:
openclaw pairing approve telegram PAIRING_CODETest Your Setup
Send a message to your bot to verify everything is working.
Try these test messages:
Troubleshooting
Bot doesn't respond to messages
Check if OpenClaw is running with 'openclaw status'. Verify your bot token is correct. Check logs with 'openclaw logs --follow'.
Pairing code not appearing
Make sure you've sent /start to your bot first. Check that the Telegram gateway is enabled in your config.
Connection keeps dropping
This is usually a network issue. OpenClaw uses long-polling which should work behind most firewalls. Try restarting with 'openclaw gateway restart'.
Voice messages not working
Voice transcription requires additional configuration. Check the OpenClaw docs for voice setup instructions.
Platform Comparison
| Telegram | Discord | ||
|---|---|---|---|
| Setup Difficulty | Easy β | Medium | Medium |
| Official API | Yes β | No β | Yes β |
| Voice Messages | Yes β | Yes β | Yes β |
| Requires Public IP | No β | No β | No β |
| Stability | High | Variable | High |
| Best For | Personal use | Mobile-first | Teams |
Need Help Setting Up?
Our team can set up OpenClaw with Telegram for you completely free. We'll handle all the configuration and make sure everything works perfectly.