> ## Documentation Index
> Fetch the complete documentation index at: https://www.agent37.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Telegram

> How to configure Telegram Bot for OpenClaw

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

<iframe src="https://www.youtube.com/embed/5bBp9cU-ZqQ" title="YouTube video player" frameborder="0" className="w-full aspect-video rounded-xl" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

### 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**.
2. 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`).
3. Copy the **Bot Token** BotFather returns.
   * This token is your API key. **Keep it secret**.

<Frame>
  <img src="https://mintcdn.com/agent37/apu7BDAiGjM9-Mt-/images/image-4.png?fit=max&auto=format&n=apu7BDAiGjM9-Mt-&q=85&s=c4057b8d9826071bbebca9a51b0a8558" alt="Image" width="1480" height="720" data-path="images/image-4.png" />

  <img src="https://mintcdn.com/agent37/apu7BDAiGjM9-Mt-/images/image.png?fit=max&auto=format&n=apu7BDAiGjM9-Mt-&q=85&s=4ec379bd124b95c0d99e764b02efe77c" alt="Image" width="1480" height="720" data-path="images/image.png" />

  <img src="https://mintcdn.com/agent37/apu7BDAiGjM9-Mt-/images/image-5.png?fit=max&auto=format&n=apu7BDAiGjM9-Mt-&q=85&s=977652cc1a882c6375e7698b9c0b02a2" alt="Image" width="1480" height="720" data-path="images/image-5.png" />
</Frame>

### Step 2: Open the Agent37 Terminal

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

### Step 3: Configure OpenClaw to use Telegram

Run:

```text theme={null}
openclaw configure
```

Then follow the prompts:

* **Where will the gateway run?** → Select `Local`
* **Select Section to Configure?** → `Channel`
* **Configure / Link**
* **Select Channel** → `Telegram`
* **Enter Telegram bot token** → Paste the token you copied
* Navigate to `Finish` → `Continue`

<Frame>
  <img src="https://mintcdn.com/agent37/apu7BDAiGjM9-Mt-/images/image-6.png?fit=max&auto=format&n=apu7BDAiGjM9-Mt-&q=85&s=356796f6d96d0e1f1964d9176769d012" alt="Image" width="1490" height="754" data-path="images/image-6.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/agent37/apu7BDAiGjM9-Mt-/images/image-8.png?fit=max&auto=format&n=apu7BDAiGjM9-Mt-&q=85&s=a6f565b8f7c6112440fd6523438884d1" alt="Image" width="1550" height="1098" data-path="images/image-8.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/agent37/apu7BDAiGjM9-Mt-/images/image-9.png?fit=max&auto=format&n=apu7BDAiGjM9-Mt-&q=85&s=3cf774a95ac6b5aebcc47338461fb36a" alt="Image" width="1490" height="754" data-path="images/image-9.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/agent37/apu7BDAiGjM9-Mt-/images/image-10.png?fit=max&auto=format&n=apu7BDAiGjM9-Mt-&q=85&s=99ded782a3f28543bc8d02c5c1e35855" alt="Image" width="1490" height="754" data-path="images/image-10.png" />
</Frame>

### Step 4: Pair the bot (approve pairing code)

In Telegram, open your bot and send `/start`.

<Frame>
  <img src="https://mintcdn.com/agent37/apu7BDAiGjM9-Mt-/images/image-11.png?fit=max&auto=format&n=apu7BDAiGjM9-Mt-&q=85&s=7a2168ac25ef2d0f047b5c9583b09e1c" alt="Image" width="1480" height="720" data-path="images/image-11.png" />
</Frame>

When Telegram shows a pairing code, run this in the instance terminal:

```text theme={null}
openclaw pairing approve telegram <code>
```

<Frame>
  <img src="https://mintcdn.com/agent37/apu7BDAiGjM9-Mt-/images/image-12.png?fit=max&auto=format&n=apu7BDAiGjM9-Mt-&q=85&s=969f31e897edef700e7a65149f51e36c" alt="Image" width="1490" height="698" data-path="images/image-12.png" />
</Frame>

### Step 5: Restart and test

1. Start/restart your OpenClaw service so the bot connection becomes active.
2. Send a message to your bot to confirm it responds.

You have successfully connected a **Telegram bot with OpenClaw**.
