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
- Open Telegram and go to https://t.me/BotFather.
- Tap Start (
/start) and send the command:
/newbot- Choose a display name: type the name your customers will see in the chat header (e.g.
CineFlix CatalogorVIP Community). - Choose a @username: enter a unique username that must end in `bot` (e.g.
cineflix_catalog_botorvipcommunity_bot). @BotFatherwill confirm creation and return your HTTP API token:
1234567890:AAHfiqksKZ8WmR2z9xYpL0exampleTokenStringToken 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
getMeendpoint, encrypted at rest with AES-256-GCM, and never displayed in plaintext again. - Instant revocation: if you suspect a token leak, send
/revokeor/tokento@BotFatherand paste the new token under My bots in the dashboard.