Back to Article List

BotFather Telegram guide for OpenClaw: Menus, privacy and groups

BotFather Telegram guide for OpenClaw: Menus, privacy and groups

Once OpenClaw replies on Telegram, the next question is not “does it work?” but “can I make it behave like a real tool?”.

This is where BotFather becomes useful again. BotFather is not only for creating bots. It also manages bot profile settings, command menus, and privacy defaults. Those little details matter if you plan to use OpenClaw in groups, in a team chat, or as a semi-public bot with strict access rules.

If you have not connected Telegram yet, do that first: connect OpenClaw to Telegram using BotFather.

BotFather settings that are worth adjusting

Open Telegram, search for @BotFather, then pick the command you need. Some of these show as buttons, some you type manually.

Set a command menu with /setcommands

If you want Telegram users to see a clean list of what your bot can do, set commands. This is mostly UX but it also reduces “random prompt spam” because users pick a command and follow a pattern.

Example command list you can paste into BotFather when it asks for commands:

help - Show what I can do
status - Check agent and gateway status
pair - Start pairing flow
summary - Summarize recent messages
ping - Quick responsiveness test

Even if OpenClaw supports free-form chat, a command menu makes groups less chaotic.

Adjust privacy behavior with /setprivacy

Telegram bots have a privacy mode concept for group chats. In privacy mode, a bot receives fewer messages in groups unless it is directly addressed. In non-privacy mode, it sees more group traffic.

For OpenClaw, most people want the conservative default. Keep group noise low and require mention. Combine Telegram’s privacy settings with OpenClaw’s own rules so the bot only responds when called.

This pairs nicely with the multi-channel design patterns in OpenClaw multi-channel setup.

Rotate tokens fast with /revoke

If a bot token ever leaks, treat it like a password leak. Revoke it and rotate immediately. Telegram’s docs note that tokens can be revoked and replaced through BotFather. The official tutorial mentions token management at a high level: BotFather setup guide.

After rotation, update the token in your OpenClaw config and restart the Gateway.

Polish the bot profile with /setdescription and /setabouttext

This is optional, but if you run OpenClaw for a team, a short description stops confusion.

Keep it plain and honest. Example:

Self-hosted assistant running on our VPS. Use /help for commands. Pairing required.

Polling vs webhooks for Telegram updates

This is the part that impacts reliability at scale.

Telegram has two main ways to deliver updates to your bot:

  • getUpdates long polling where your bot asks Telegram for new messages
  • setWebhook where Telegram pushes messages to your server endpoint

Telegram’s webhook doc explains the difference plainly: Telegram webhooks. The Bot API reference also documents getUpdates on the same site: Telegram Bot API.

When long polling is the better choice

  • Your bot runs on a home server behind NAT
  • You do not want to expose any inbound port
  • You want the simplest operational model

Long polling is also very forgiving. If your VPS restarts, your bot comes back and resumes polling. No TLS certificates, no public endpoint, less surface area.

When webhooks are the better choice

  • You want lower latency for busy bots
  • You expect higher message volume
  • You already have a clean HTTPS endpoint and know how to secure it

Webhooks are not “more secure by default.” They are a different delivery model. If you expose a webhook endpoint publicly, you must defend it properly.

If you are hosting OpenClaw on a VPS, read how to host OpenClaw securely on a VPS before you expose anything inbound.

Telegram group setup that does not annoy people

A Telegram bot that replies to everything in a group becomes unusable fast.

A practical setup for team chats looks like this:

  • Bot is in the group
  • Bot responds only when mentioned
  • Bot has a short command menu so requests are consistent
  • Pairing or allowlist is enabled so random people cannot drive it

If you are going beyond Telegram and want the same assistant across WhatsApp, Discord, and Slack, multi-channel is the real win. That’s here: run OpenClaw across multiple chat apps.

Hardening tips specific to Telegram tokens and access

Telegram is easier than WhatsApp because it is an official API. That also means token security is the main thing you must get right.

  • Store tokens outside repos and restrict file permissions
  • Rotate tokens immediately if exposed
  • Keep pairing enabled unless you have a controlled private bot username
  • Use allowlists in OpenClaw so even paired users are constrained

Also, remember that “best model” debates matter more with agents than with chatbots. If you see weird tool choices or sloppy reasoning, revisit model selection: choose a model for OpenClaw.

Your idea deserves better hosting

24/7 support 30-day money-back guarantee Cancel anytime
Ciclo de Pagamento

1 GB RAM VPS

$3.99 Save  50 %
$1.99 Mensalmente
  • 1 vCPU AMD EPYC
  • 30 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Gestão de firewall
  • Monitor grátis

2 GB RAM VPS

$4.99 Save  20 %
$3.99 Mensalmente
  • 2 vCPU AMD EPYC
  • 30 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Gestão de firewall
  • Monitor grátis

6 GB RAM VPS

$13.99 Save  29 %
$9.99 Mensalmente
  • 6 vCPU AMD EPYC
  • 70 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Gestão de firewall
  • Monitor grátis

AMD EPYC VPS.P1

$6.99 Save  29 %
$4.99 Mensalmente
  • 2 vCPU AMD EPYC
  • 4 GB memória RAM
  • 40 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

AMD EPYC VPS.P2

$12.99 Save  31 %
$8.99 Mensalmente
  • 2 vCPU AMD EPYC
  • 8 GB memória RAM
  • 80 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

AMD EPYC VPS.P4

$25.99 Save  31 %
$17.99 Mensalmente
  • 4 vCPU AMD EPYC
  • 16 GB memória RAM
  • 160 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

AMD EPYC VPS.P5

$32.49 Save  29 %
$22.99 Mensalmente
  • 8 vCPU AMD EPYC
  • 16 GB memória RAM
  • 180 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

AMD EPYC VPS.P6

$48.99 Save  31 %
$33.99 Mensalmente
  • 8 vCPU AMD EPYC
  • 32 GB memória RAM
  • 200 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

AMD EPYC VPS.P7

$61.99 Save  35 %
$39.99 Mensalmente
  • 16 vCPU AMD EPYC
  • 32 GB memória RAM
  • 240 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

EPYC Genoa VPS.G1

$4.99 Save  20 %
$3.99 Mensalmente
  • 1 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4.ª geração 9xx4 com 3.25 GHz ou equivalente, baseada na arquitetura Zen 4.
  • 1 GB DDR5 memória RAM
  • 25 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

EPYC Genoa VPS.G2

$9.99 Save  20 %
$7.99 Mensalmente
  • 2 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4.ª geração 9xx4 com 3.25 GHz ou equivalente, baseada na arquitetura Zen 4.
  • 4 GB DDR5 memória RAM
  • 50 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

EPYC Genoa VPS.G4

$18.99 Save  32 %
$12.99 Mensalmente
  • 4 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4.ª geração 9xx4 com 3.25 GHz ou equivalente, baseada na arquitetura Zen 4.
  • 8 GB DDR5 memória RAM
  • 100 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

EPYC Genoa VPS.G5

$29.99 Save  27 %
$21.99 Mensalmente
  • 4 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4.ª geração 9xx4 com 3.25 GHz ou equivalente, baseada na arquitetura Zen 4.
  • 16 GB DDR5 memória RAM
  • 150 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

EPYC Genoa VPS.G6

$34.99 Save  23 %
$26.99 Mensalmente
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4.ª geração 9xx4 com 3.25 GHz ou equivalente, baseada na arquitetura Zen 4.
  • 16 GB DDR5 memória RAM
  • 200 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

EPYC Genoa VPS.G7

$57.99 Save  26 %
$42.99 Mensalmente
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4.ª geração 9xx4 com 3.25 GHz ou equivalente, baseada na arquitetura Zen 4.
  • 32 GB DDR5 memória RAM
  • 250 GB NVMe disco
  • Ilimitada largura de banda
  • IPv4 e IPv6 incluídos O suporte a IPv6 não está disponível em França, Finlândia ou Países Baixos.
  • 1 Gbps rede
  • Cópia automática incluída
  • Gestão de firewall
  • Monitor grátis

FAQ

What is BotFather and why do I need it for OpenClaw?

BotFather is Telegram’s official bot manager. You use it to create a Telegram bot and get a token. OpenClaw uses that token to receive and send messages.

Automate faster, for less

Bring your winning ideas to life with AMD power, NVMe speed and unmetered bandwidth. Deploy your VPS in seconds, with a pre-installed OpenClaw template on Ubuntu 24.04.