← Back to Blog
February 10, 2026 · 4 min read

How to Set Up an OpenClaw Telegram Bot — Complete Guide

Telegram is the most popular platform for running OpenClaw. This guide shows you how to create a Telegram bot, connect it to OpenClaw, and customize it for your needs.

Step 1: Create a Telegram Bot

Every Telegram bot starts with BotFather — Telegram's built-in bot creation tool.

  1. Open Telegram and search for @BotFather
  2. Send the command /newbot
  3. Choose a display name for your bot (e.g., "My AI Assistant")
  4. Choose a username ending in "bot" (e.g., "my_ai_assistant_bot")
  5. BotFather will give you a token like 123456789:ABCdefGHIjklMNOpqrsTUVwxyz

Save this token — you'll need it for OpenClaw configuration.

Step 2: Configure Your Bot's Profile

While still chatting with BotFather, customize your bot:

/setdescription — Add a description shown when users open the bot
/setabouttext — Brief text shown in the bot's profile
/setuserpic — Upload a profile picture for your bot
/setcommands — Define bot commands (e.g., /start, /help)

Step 3: Connect to OpenClaw

Add the Telegram bot token to your OpenClaw configuration:

{
  "telegram_bot_token": "123456789:ABCdefGHIjklMNO",
  "anthropic_api_key": "sk-ant-your-key",
  "system_prompt": "You are a helpful personal assistant."
}

Start OpenClaw and the bot should come online within seconds.

Step 4: Test Your Bot

Open Telegram and find your bot by its username. Send a few test messages:

Advanced: Group Chat Support

OpenClaw can work in Telegram group chats too. Add your bot to a group and configure how it responds:

Configure this in config.json under telegram.group_mode.

Advanced: Inline Mode

Enable inline mode to use your bot from any Telegram chat by typing @yourbotname query. The bot responds with suggestions right in the chat.

Troubleshooting

The Easy Way

With Clawby, you skip all the server configuration. Just paste your Telegram bot token into the dashboard, click Launch, and your bot is live in minutes. Automatic restarts, monitoring, and updates included.

Skip the setup. Use Clawby.

Get a fully managed OpenClaw instance in one click. No servers, no terminal, no stress.

Get Clawby