Getting started1 min read

Create a Telegram bot (@BotFather)

How to create your official bot in Telegram’s @BotFather, pick a name and username, and safely copy the HTTP API token.

What is @BotFather?

@BotFather is Telegram’s official bot for registering and managing all bots on Telegram. Every bot connected to StreamBot is first created in @BotFather, which issues the HTTP API token used to authenticate bot operations.

Step-by-step token generation

  1. Open Telegram and go to https://t.me/BotFather.
  2. Tap Start (/start) and send the command:
text
/newbot
  1. Choose a display name: type the name your customers will see in the chat header (e.g. CineFlix Catalog or VIP Community).
  2. Choose a @username: enter a unique username that must end in `bot` (e.g. cineflix_catalog_bot or vipcommunity_bot).
  3. @BotFather will confirm creation and return your HTTP API token:
text
1234567890:AAHfiqksKZ8WmR2z9xYpL0exampleTokenString

Token security rules

  • Whoever holds the token controls the bot: never share your token in public chats, screenshots, or repositories.
  • Encrypted storage in StreamBot: when you paste the token into StreamBot, it is validated via Telegram’s getMe endpoint, encrypted at rest with AES-256-GCM, and never displayed in plaintext again.
  • Instant revocation: if you suspect a token leak, send /revoke or /token to @BotFather and paste the new token under My bots in the dashboard.
Didn’t find what you need?

Talk to our team via live chat or open authenticated support in the dashboard.

Create a Telegram bot (@BotFather) — Documentation Center — StreamBot