OpenClaw Telegram Setup: Complete Guide

Telegram is the most popular first channel for OpenClaw โ€” and for good reason. The setup takes 5 minutes, the bot API is generous, and Telegram's features (inline buttons, voice messages, file sharing, groups) make it ideal for AI agent interaction. This guide covers everything from initial setup to advanced features.

Why Telegram First?

Compared to other channels:

Step 1: Create Your Telegram Bot

  1. Open Telegram and search for @BotFather
  2. Send /newbot
  3. Choose a display name (e.g., "My Agent")
  4. Choose a username (must end in "bot", e.g., my_agent_bot)
  5. BotFather gives you a token like: 7123456789:AAH...
  6. Save this token securely โ€” it's the key to your bot

Configure Bot Settings in BotFather

Before connecting to OpenClaw, set these in BotFather:

/setdescription - Set a description shown before first message /setabouttext - Set the bot's "About" section /setuserpic - Upload a profile picture /setcommands - Set command suggestions (optional)

For group usage, also set:

/setprivacy - Set to DISABLED to see all messages in groups # (By default, bots only see /commands in groups)

Step 2: Connect to OpenClaw

# Add the Telegram channel openclaw channel add telegram --token "YOUR_BOT_TOKEN" # Verify connection openclaw gateway status # You should see: # Channels: telegram (connected)

That's it. Open Telegram, find your bot, and send a message. Your OpenClaw agent will respond using whatever AI model and personality you've configured.

Step 3: Test Basic Functionality

Send these test messages to verify everything works:

  1. "Hello" โ€” Verify basic response
  2. "Tell me about yourself" โ€” Verify SOUL.md is loaded
  3. "Search the web for today's weather" โ€” Verify skill access
  4. Send a photo โ€” Verify image handling
  5. Send a voice message โ€” Verify voice transcription

Setting Up for Group Chats

OpenClaw agents work beautifully in Telegram groups, but you need to configure behavior carefully:

Adding the Bot to a Group

  1. Open the group โ†’ Add members โ†’ Search for your bot username
  2. Grant the bot appropriate permissions (at minimum: send messages)
  3. If you disabled privacy mode in BotFather, the bot sees all messages

Configuring Group Behavior

In your SOUL.md, add rules for group behavior:

## In Group Chats - I'm a participant, not a moderator - Speak only when directly mentioned or when I can add genuine value - Never reveal private information from MEMORY.md - Keep responses concise โ€” groups move fast - One thoughtful response beats three short ones

Without these rules, your agent might respond to every message, which quickly becomes annoying in active groups. The key principle: in groups, your agent should behave like a considerate human participant โ€” speaking when relevant, silent when not.

๐Ÿ“– Advanced Channel Configuration in the Book

The Personal Agent Revolution covers multi-channel orchestration, channel-specific personality tuning, and advanced Telegram features like scheduled messages and media galleries.

Get the Book โ€” $29.95 โ†’

Advanced Telegram Features

Inline Buttons

OpenClaw supports Telegram's inline keyboard buttons. Your agent can present choices, confirmations, and navigation options as tappable buttons below messages. This is especially useful for:

Voice Messages

OpenClaw handles voice in both directions:

File and Media Handling

Your agent can receive and process:

It can also send back:

Reactions

OpenClaw can send emoji reactions to messages. This is especially useful in group contexts where a simple reaction (๐Ÿ‘, โœ…, ๐Ÿค”) is more appropriate than a full text response.

Telegram-Specific Tips

Message Formatting

Telegram supports markdown formatting, and OpenClaw takes advantage of it. Your agent's responses will include bold, italic, code blocks, and links when appropriate. If formatting looks broken, ensure your agent's model is outputting valid Telegram-compatible markdown.

Message Length

Telegram has a 4,096-character message limit. OpenClaw automatically splits longer responses into multiple messages. If your agent tends toward very long responses, add a brevity rule to SOUL.md.

Notification Management

If your agent sends proactive messages (morning briefings, alerts), consider:

Troubleshooting

Bot Doesn't Respond

  1. Check gateway status: openclaw gateway status
  2. Check gateway logs: openclaw gateway logs
  3. Verify the bot token is correct
  4. Make sure you're messaging the right bot
  5. Check if the AI model API key is valid

Bot Doesn't See Group Messages

By default, Telegram bots can only see /commands in groups. To see all messages:

  1. Message @BotFather
  2. Send /setprivacy
  3. Select your bot
  4. Choose Disable

Note: You may need to remove and re-add the bot to the group after changing this setting.

Slow Responses

Response time depends on your AI model provider's latency. If responses are consistently slow:

Frequently Asked Questions

Create a bot via @BotFather, copy the token, run openclaw channel add telegram --token YOUR_TOKEN. Done in 5 minutes.
Yes. Add the bot to a group and configure group behavior rules in SOUL.md. Disable privacy mode in BotFather for full message visibility.
Yes, both directions. Incoming voice is transcribed, and the agent can send voice messages back using TTS.
Yes. OpenClaw supports Telegram inline keyboards for interactive choices, confirmations, and navigation.
๐Ÿ‘จโ€๐Ÿ’ป

Rudi Ribeiro Jr.

Early OpenClaw Adopter ยท HubSpot AE ยท Author of The Personal Agent Revolution

Rudi runs a personal AI agent daily and wrote The Personal Agent Revolution based on hundreds of hours of real-world experience. He is not the creator of OpenClaw โ€” he's a power user who documented everything he learned.

๐Ÿ“– Master OpenClaw with the Book

37 chapters, 187 pages, 3 bonus resources. Complete channel setup guides for every platform.

Get the Book โ€” $29.95 โ†’