All Tutorials

Telegram Integration

Follow these steps to connect OpenClaw to Telegram via the Bot API.

1

Get Your Bot Token from BotFather

To find and use BotFather on Telegram, search for @BotFather in the app and select the account with the blue verified tick. Use the /newbot command to create a new bot and follow the instructions to set a name and username. Get Token: BotFather will provide an API Token, which you must save securely to connect your OpenClaw.

Get Your Bot Token from BotFather
Get Your Bot Token from BotFather
2

Run the Config Wizard

Launch the OpenClaw configuration wizard to begin setting up an integration. When prompted for the deployment type, choose "Local" to configure a local integration.

$ openclaw config --section channels
Run the Config Wizard
3

Select "Configure/link"

In the channel setup screen, select "Configure/link" (add or update channels) to continue.

Select "Configure/link"
4

Select "Telegram (Bot API)"

Choose "Telegram (Bot API)" from the available channel options.

Select "Telegram (Bot API)"
5

Enter Your Telegram Bot Token

Paste the Telegram bot token obtained from BotFather in the previous steps when prompted.

Enter Your Telegram Bot Token
6

Approve the Pairing

Open your bot in Telegram and send /start. The bot replies with a pairing code (and may show a sample approve command). On the machine running OpenClaw, continue with the next step to list pending requests and approve using that code.

Approve the Pairing
7

List and Approve the Pairing (CLI)

On the OpenClaw host, run the list command to see pending Telegram pairing requests and confirm the code. Then run the approve command, replacing <CODE> with the pairing code from the table or the one shown in Telegram.

$ openclaw pairing list telegram$ openclaw pairing approve telegram <CODE>
List and Approve the Pairing (CLI)
Telegram chat: /start, user introduction, and bot personality setup (example with UD.hk CS)
infinite cat

Our experienced technical team can craft customized AI solutions tailored to your unique business needs, unlocking transformative possibilities.

epand enquiry box