How to configure Telegram Bot for OpenClaw

Step-by-step Telegram integration for OpenClaw: generate a Telegram bot token, add token to config, restart the gateway, and verify your bot responds to messages.

Do not index
In this tutorial, you will learn how to configure a Telegram bot and connect it with OpenClaw.
Follow the steps below or watch the full video tutorial.

Video walkthrough

Video preview

Prerequisites

  • An Agent37 account and an OpenClaw instance
  • Access to the instance Terminal

Step 1: Create a Telegram bot (BotFather)

  1. Open Telegram and search for @BotFather.
  1. Start a chat and send /newbot.
      • Give your bot a name (e.g., “My OpenClaw Assistant”).
      • Give it a username (must end in bot, e.g., my_openclaw_assistant_bot).
  1. Copy the Bot Token BotFather returns.
      • This token is your API key. Keep it secret.
notion image
notion image
notion image

Step 2: Open the Agent37 Terminal

  1. Go to the Agent37 dashboard: https://www.agent37.com/dashboard
  1. Create an instance (or open an existing one).
  1. Open Terminal.

Step 3: Configure OpenClaw to use Telegram

Run:
openclaw configure
Then follow the prompts:
  • Where will the gateway run? → Select Local
  • Select Section to Configure?Channel
  • Configure / Link
  • Select ChannelTelegram
  • Enter Telegram bot token → Paste the token you copied
  • Navigate to FinishContinue
notion image
notion image
notion image
notion image
notion image

Step 4: Pair the bot (approve pairing code)

  1. In Telegram, open your bot and send /start.
notion image
  1. When Telegram shows a pairing code, run this in the instance terminal:
openclaw pairing approve telegram <code>
notion image

Step 5: Restart and test

  1. Start/restart your OpenClaw service so the bot connection becomes active.
  1. Send a message to your bot to confirm it responds.
You have successfully connected a Telegram bot with OpenClaw.