Creating a Telegram Bot with @BotFather

Except for the classic text commands we wrote about in the article.How to create a bot in Telegram via @BotFather and connect mini appBotFather has its own Mini App — is a visual interface with buttons and forms instead of correspondence. You can create a bot in three touches without a single command.

Step 1. Open BotFather and press "Create a New Bot"

Open the dialogue with @BotFather Instead of chat, — will open its mini-app with a list of bots you have already created (“My bots”). At the top of the — list is the button to create a new bot.

Mini-app BotFather with a list of bots and button Create a New Bot

Step 2. Fill out the new bot form

The usual form will open instead of a series of messages: bot name, optional description (About) and username. The Username must be unique and must end in the bot — address availability t.me/... It is checked immediately as you enter.

Form of creating a new bot: name, description, username

Press. Create Bot.

Step 3. Bot created by — Take the token

Immediately opens the bot management page: access token (buttons) Copy and Revoke), and below — all other management is in the form of a regular menu, not commands: Edit Info, Commands, Mini Apps, Bot Settings, Login Widget, Gamesand separately — monetization: Payments, Telegram Stars.

Bot screen with access token and settings sections

— token is full access to the botTelegram directly warns about this on the same page. Do not publish it in code and repositories, store it in environment variables. If the token still fell into the wrong hands — press RevokeThe old token will immediately stop working, and a new one will appear in its place.

Then you can immediately set commands from the same menu.Commands) or connect mini XQ2QXZ (Mini Apps) — or by using the same classical BotFather commands as in the article “How to create a bot in Telegram via @BotFather and connect mini app? The difference is only in the interface, the result is the same: a working bot and a token to connect to its code.


Let’s discuss your project

Tell me what you would like to build. I will reply by email.

Or message me on Telegram @ifwcom