TSocial TSocial
Open in Telegram
Better in TelegramOpen in Telegram

BotFather Commands: What Each One Does

· 4 min read · 18+ readers

BotFather Commands: What Each One Does: TSocial guide cover card

bot icon BotFather is the official Telegram account that creates and manages bots. You talk to it in a normal chat. This page explains the commands people use most, what each does and which ones are risky. BotFather changes over time: some commands have moved into a button menu opened by /mybots, and new ones appear. If a command below is missing, open /help in BotFather and use the menu, which is always the current source of truth. Nothing here needs coding.

Before you start

Search for @BotFather and check the blue verification tick. Lookalike accounts exist and some try to steal tokens. Only ever type your commands to the verified account.

Mock BotFather /mybots screen with a bot list and buttons for API Token, Edit Bot, Bot Settings, Payments and Transfer Ownership
/mybots opens a button menu for each bot. Labels can change over time. Generic illustration, not a real chat or user data.

Creating and listing bots

  • /newbot starts the creation flow. You choose a display name, then a username that ends in bot. BotFather replies with an HTTP code icon API token. See how to create a bot step by step.
  • /mybots lists your bots. Choose one to open its settings as buttons: API Token, Edit Bot, Bot menu icon (three lines) Settings, Payments, Transfer Ownership, Delete Bot.
  • /token shows the token of a bot you own.
  • /revoke generates a new token and kills the old one. Use it at once if a token leaks. See keeping your token safe.
  • /deletebot permanently deletes a bot. It cannot be undone.

Editing the profile

  • /setname changes the display name.
  • /setdescription sets the text shown on an empty chat with the bot.
  • /setabouttext sets the short "About" text on the bot's profile.
  • /setuserpic sets the profile photo.
  • /setdescriptionpic sets a picture shown with the description.
  • /setcommands sets the list of commands shown in the menu. Each line is command - description.
  • /deletecommands removes the list.

Details are in setting description, commands and photo.

Behaviour and privacy

  • /setprivacy toggles group safety icon privacy mode. With it on, a bot in a group sees only commands, replies to its own messages and mentions. See privacy mode and group admin.
  • /setjoingroups allows or forbids adding the bot to groups.
  • /setinline turns on inline mode and sets the placeholder text. See inline bots.
  • /setinlinefeedback controls how often the bot receives feedback about chosen inline results.
  • /setdomain sets the domain allowed for the Login Widget. See Login Widget.

Mini Apps and menu button

  • /newapp creates a Mini App icon (grid) Mini App for the bot and gives it a direct link icon link name.
  • /myapps, /editapp and /deleteapp manage those apps.
  • /setmenubutton sets what the button next to the message box opens. Today the Bot Settings menu also offers a Menu Button option and a Configure Mini App option.

See create a Mini App and register it.

Payments, business and admin rights

  • Payments (in the bot's settings menu) connects payment providers. Telegram Stars star icon Telegram Stars need no provider token. See Stars payments in a bot.
  • Business Mode (in Bot Settings) lets the bot work through Telegram Business. See connecting a bot to Telegram Business.
  • Group and channel megaphone icon channel admin rights presets decide which rights are suggested when someone adds the bot as an admin.

Menu names move around. Look for the closest label.

Commands to treat with care

  • /revoke, /token and /deletebot affect access and cannot be undone.
  • Transfer Ownership hands your bot to someone else. Do it only to a person you trust, after agreeing terms in writing.
  • Never paste a token into any chat except to BotFather, and never share a screenshot that shows it.

Quick reference

GoalCommand or menu
Make a bot/newbot
Get or reset token/token, /revoke
Change look/setname, /setuserpic
Texts/setdescription, /setabouttext
Menu/setcommands
Groups/setprivacy, /setjoingroups
Inline/setinline
Mini App/newapp, /setmenubutton

Quick checklist

  • Only the verified BotFather is used.
  • Bots created with /newbot and tokens stored safely.
  • Profile set with /setname, /setdescription, /setabouttext and /setuserpic.
  • Commands set with /setcommands.
  • Privacy and group settings reviewed.
  • Mini App or menu button configured if needed.
  • /revoke practised and known by the team.
  • Ownership transfers handled with care.

Keep a record

Write down for each bot its purpose, owner, token location and settings. When you have several bots this saves time, and when someone leaves the team you will know exactly which tokens to rotate.

Frequently asked questions

Can I run BotFather commands from code?

No. BotFather is an interactive chat. The Bot API has methods that cover some of the same settings, for example setting commands, but creating bots and revoking tokens happen in BotFather.

Why can I not find a command?

BotFather moves features into menus and sometimes retires commands. Use /mybots and look under Bot Settings.

Does BotFather cost money?

No. Creating bots is free.

What if someone else got my token?

Send /revoke, choose the bot and update your app with the new token.

Related guides

More in Build on Telegram

All topics: Build on Telegram · Guide index · Explore Telegram · About TSocial

BotFather Commands: What Each One Does | TSocial