Back to Article List

Connect OpenClaw to Telegram using BotFather

Connect OpenClaw to Telegram using BotFather

If you see “BotFather” in OpenClaw guides and you’re thinking “cool, what is that?”, this article is for you.

BotFather is Telegram’s official bot management account. It creates Telegram bots and hands you a token. OpenClaw uses that token to connect your Telegram bot to your self-hosted agent running on a VPS or home server.

So the relationship is simple: BotFather creates the Telegram bot and OpenClaw is the brain that replies to messages through it.

If you want a broader overview first, read what OpenClaw is and how it works. If you just installed OpenClaw and want a general sanity check, your first message to OpenClaw covers the basic end-to-end idea.

What you need before you start

  • A OpenClaw install that can run the Gateway
  • Access to your OpenClaw config file on the server
  • A Telegram account to talk to BotFather

If you are onboarding on a VPS over SSH and want to keep the web UI private, use the LumaDock KB guide for secure SSH port forwarding: OpenClaw quickstart onboarding over SSH.

Step 1: Create a Telegram bot with BotFather

Open Telegram and search for @BotFather. Start the chat and send:

/newbot

BotFather asks for two things:

  • Bot name which is the display name people see
  • Username which must be unique and must end in bot (example: my_openclaw_helper_bot)

When you finish, BotFather gives you a bot token. It looks like a long string with a colon in the middle.

Do not paste that token into chat rooms and do not commit it to Git. Anyone with it can impersonate your bot. Telegram’s own tutorial describes the token step in the official docs: From BotFather to “Hello World”.

Step 2: Add the token to OpenClaw config

On your server, open your OpenClaw config file and add Telegram under channels.

Example:

{
  "channels": {
    "telegram": {
      "enabled": true,
      "botToken": "PASTE_YOUR_TOKEN_HERE",
      "dmPolicy": "pairing"
    }
  }
}

dmPolicy pairing is a good default. It means random people who discover your bot username do not get full access.

After saving config, restart your OpenClaw Gateway if it’s already running.

Step 3: Start the Gateway and confirm it’s listening

Start the Gateway in a terminal session:

openclaw gateway --port 18789 --verbose

If you are hosting on a VPS, do not expose port 18789 publicly. Keep it bound to localhost and use SSH port forwarding or a private tunnel. Your security baseline is covered here: how to host OpenClaw securely on a VPS.

Step 4: Send /start then approve pairing

In Telegram, search for your bot username, open the chat, and send:

/start

If pairing is enabled, OpenClaw replies with a pairing code. Approve it on your server:

openclaw pairing approve telegram YOUR_CODE_HERE

Now send your first real message:

Hello

You should get a reply in a few seconds.

What just happened

Telegram routes your message to your bot identity based on the token you got from BotFather. OpenClaw listens for those updates through the Gateway, calls your model provider, then replies back through Telegram.

If you also want Telegram as part of a multi-channel setup (WhatsApp, Discord, Slack), read OpenClaw multi-channel setup.

Common problems and quick fixes

Bot does not reply to /start

  • Confirm the Gateway is running
  • Confirm the token was pasted correctly
  • Check logs for errors then retry /start

Token is invalid

  • Copy the token again directly from BotFather
  • If you leaked it, revoke it immediately and generate a new one

Pairing code expired

  • Send /start again to generate a new code then approve it quickly

Bot replies but feels “dumb” or slow

Your idea deserves better hosting

24/7 support 30-day money-back guarantee Cancel anytime
Számlázási ciklus

1 GB RAM VPS

$3.99 Save  50 %
$1.99 havonta
  • 1 vCPU AMD EPYC
  • 30 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Tűzfal kezelése
  • Szerver megfigyelés

2 GB RAM VPS

$4.99 Save  20 %
$3.99 havonta
  • 2 vCPU AMD EPYC
  • 30 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Tűzfal kezelése
  • Szerver megfigyelés

6 GB RAM VPS

$13.99 Save  29 %
$9.99 havonta
  • 6 vCPU AMD EPYC
  • 70 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P1

$6.99 Save  29 %
$4.99 havonta
  • 2 vCPU AMD EPYC
  • 4 GB RAM memória
  • 40 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P2

$12.99 Save  31 %
$8.99 havonta
  • 2 vCPU AMD EPYC
  • 8 GB RAM memória
  • 80 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P4

$25.99 Save  31 %
$17.99 havonta
  • 4 vCPU AMD EPYC
  • 16 GB RAM memória
  • 160 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P5

$32.49 Save  29 %
$22.99 havonta
  • 8 vCPU AMD EPYC
  • 16 GB RAM memória
  • 180 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P6

$48.99 Save  31 %
$33.99 havonta
  • 8 vCPU AMD EPYC
  • 32 GB RAM memória
  • 200 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P7

$61.99 Save  35 %
$39.99 havonta
  • 16 vCPU AMD EPYC
  • 32 GB RAM memória
  • 240 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G1

$4.99 Save  20 %
$3.99 havonta
  • 1 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 1 GB DDR5 RAM memória
  • 25 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G2

$9.99 Save  20 %
$7.99 havonta
  • 2 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 4 GB DDR5 RAM memória
  • 50 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G4

$18.99 Save  32 %
$12.99 havonta
  • 4 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 8 GB DDR5 RAM memória
  • 100 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G5

$29.99 Save  27 %
$21.99 havonta
  • 4 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 16 GB DDR5 RAM memória
  • 150 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G6

$34.99 Save  23 %
$26.99 havonta
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 16 GB DDR5 RAM memória
  • 200 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G7

$57.99 Save  26 %
$42.99 havonta
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 32 GB DDR5 RAM memória
  • 250 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

FAQ

How do I connect OpenClaw to Telegram using BotFather?

Create a Telegram bot with /newbot in BotFather, copy the token into OpenClaw config, start the Gateway, then /start the bot and approve pairing.

Automate faster, for less

Bring your winning ideas to life with AMD power, NVMe speed and unmetered bandwidth. Everything backed by 24/7 support, plus a 30-day refund period.