Telegram integration allows interaction with the Gclaw AI assistant directly from Telegram. This requires creating a Telegram bot and configuring the Gclaw instance with the bot token. A running Gclaw instance and a Telegram account are required.
Ask the Gclaw assistant directly: “How do I connect Telegram?” The assistant provides interactive instructions in the chat.
Step 1. Create a Telegram bot
To create a bot and obtain a bot token:
-
Open Telegram and search for @BotFather.
-
Start a chat with BotFather and send the command
/newbot.
-
Follow the prompts: enter a display name and a username ending with “bot”.
-
After successful creation, BotFather sends a message containing the bot token — a string in the format
123456789:ABCdefGHIjklMNOpqrSTUvwxYZ.
-
Copy and save this token for the next step.
Keep the bot token secure. Anyone with access to this token can control the bot.
Step 2. Add the token to OpenClaw
In the Gclaw chat interface, provide the bot token to the assistant:
“I have a Telegram bot token: YOUR_TOKEN_HERE - can you add it to my configuration?”
The assistant applies the token directly to the OpenClaw configuration. The gateway automatically restarts and the Telegram bot becomes active within seconds.
Step 3. Connect a Telegram account
Gclaw uses pairing mode by default to connect Telegram accounts:
-
Open Telegram and find the newly created bot by searching for its username.
-
Send any message to the bot.
-
The bot responds with a pairing code in the format
openclaw pairing approve telegram XXX123.
-
Paste the pairing code in the Gclaw chat interface. The assistant approves the pairing automatically.
Verify the connection
After completing the pairing, send a test message to the bot in Telegram. The Gclaw assistant responds to the message.
If no response is received, verify that the bot token is correct and the pairing was completed successfully. If the instance is unresponsive, click Restart in Settings.
Advanced configuration
Additional Telegram configuration options are available by asking the Gclaw assistant:
- “How do I set up group support for Telegram?”
- “Configure my Telegram bot to require @mentions in groups”
- “How do I allow multiple accounts on my Telegram bot?”