A Detailed Guide to BotFather Commands

A Detailed Guide to BotFather Commands
BotFather is the official Telegram bot used to create and manage Telegram bots. It offers a variety of commands that enable users to customize their bots with ease. In this guide, we’ll break down BotFather’s commands and how to use them effectively.
Essential BotFather Commands
1. /newbot
- Create a New Bot
This command allows you to create a new Telegram bot.
Steps to Use:
- Type
/newbot
and send it. - BotFather will ask you to enter a name for your bot.
Example: BudgetHelper - Next, it will ask you to set a username for your bot. The username must end with
bot
.
Example: BudgetHelperBot
Result:
- BotFather generates a unique API token for your bot.
- The token looks like this:
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
.
2. /mybots
- Manage Your Existing Bots
This command shows a list of all your bots and allows you to manage them.
Steps to Use:
- Type
/mybots
. - Select a bot from the list.
- You will see options such as:
Edit Bot
- Edit the bot's information.Delete Bot
- Delete the bot.API Token
- Regenerate or retrieve the API token.
3. /setname
- Change Bot Name
To change your bot’s display name, use this command.
Steps to Use:
- Type
/setname
. - Select your bot from the list.
- Enter the new name.
4. /setdescription
- Add a Description
This adds a short description that appears when users open your bot.
Steps to Use:
- Type
/setdescription
. - Select your bot.
- Enter a description, e.g.,
- "This bot helps you manage your daily budget."
5. /setabouttext
- Edit "About" Section
This adds additional information visible in the bot’s profile.
Steps to Use:
- Type
/setabouttext
. - Select your bot.
- Enter the text, e.g.,
- "Track your expenses, incomes, and manage your finances efficiently!"
6. /setuserpic
- Change Bot Avatar
To set or update your bot's profile picture, use this command.
Steps to Use:
- Type
/setuserpic
. - Select your bot.
- Upload an image (JPEG or PNG format).
7. /setcommands
- Set Bot Commands
You can define custom commands for your bot to guide users.
Steps to Use:
- Type
/setcommands
. - Select your bot.
- Enter the list of commands in the following format:
8. /deletebot
- Delete a Bot
To delete a bot you no longer need, use this command.
Steps to Use:
- Type
/deletebot
. - Select the bot from the list.
- Confirm the action.
Additional BotFather Commands
1. /revoke
- Revoke and Regenerate Token
If your API token is compromised, use this command to generate a new one.
Steps to Use:
- Type
/revoke
. - Select your bot.
- BotFather will generate a new token and deactivate the old one.
2. /setjoingroups
- Control Group Access
This command determines whether your bot can join groups.
Steps to Use:
- Type
/setjoingroups
. - Select your bot.
- Choose "Enable" or "Disable."
3. /setprivacy
- Adjust Message Access
This controls whether your bot receives all messages in a group or only those that mention it.
Steps to Use:
- Type
/setprivacy
. - Select your bot.
- Choose "Enable" (restricts to mentions) or "Disable" (receives all messages).
4. /setinline
- Enable Inline Mode
This allows your bot to work in inline mode, where users can interact with it directly in chats by typing @bot_username
.
Steps to Use:
- Type
/setinline
. - Select your bot.
- Confirm to enable inline mode.
Practical Example
A bot with the following functionality:
/start
- Sends a welcome message./help
- Displays usage instructions./balance
- Shows the user’s account balance.
Setting Commands:
- Type
/setcommands
. - Select your bot.
- Enter the following commands:
Conclusion
BotFather provides all the tools you need to create and manage Telegram bots. By mastering these commands, you can customize your bot to fit your needs perfectly.
Good luck creating your Telegram bot!
BotFather is the official Telegram bot used to create and manage Telegram bots. It offers a variety of commands that enable users to customize their bots with ease. In this guide, we’ll break down BotFather’s commands and how to use them effectively.
Essential BotFather Commands
1. /newbot
- Create a New Bot
This command allows you to create a new Telegram bot.
Steps to Use:
- Type
/newbot
and send it. - BotFather will ask you to enter a name for your bot.
Example: BudgetHelper - Next, it will ask you to set a username for your bot. The username must end with
bot
.
Example: BudgetHelperBot
Result:
- BotFather generates a unique API token for your bot.
- The token looks like this:
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
.
2. /mybots
- Manage Your Existing Bots
This command shows a list of all your bots and allows you to manage them.
Steps to Use:
- Type
/mybots
. - Select a bot from the list.
- You will see options such as:
Edit Bot
- Edit the bot's information.Delete Bot
- Delete the bot.API Token
- Regenerate or retrieve the API token.
3. /setname
- Change Bot Name
To change your bot’s display name, use this command.
Steps to Use:
- Type
/setname
. - Select your bot from the list.
- Enter the new name.
4. /setdescription
- Add a Description
This adds a short description that appears when users open your bot.
Steps to Use:
- Type
/setdescription
. - Select your bot.
- Enter a description, e.g.,
- "This bot helps you manage your daily budget."
5. /setabouttext
- Edit "About" Section
This adds additional information visible in the bot’s profile.
Steps to Use:
- Type
/setabouttext
. - Select your bot.
- Enter the text, e.g.,
- "Track your expenses, incomes, and manage your finances efficiently!"
6. /setuserpic
- Change Bot Avatar
To set or update your bot's profile picture, use this command.
Steps to Use:
- Type
/setuserpic
. - Select your bot.
- Upload an image (JPEG or PNG format).
7. /setcommands
- Set Bot Commands
You can define custom commands for your bot to guide users.
Steps to Use:
- Type
/setcommands
. - Select your bot.
- Enter the list of commands in the following format:
8. /deletebot
- Delete a Bot
To delete a bot you no longer need, use this command.
Steps to Use:
- Type
/deletebot
. - Select the bot from the list.
- Confirm the action.
Additional BotFather Commands
1. /revoke
- Revoke and Regenerate Token
If your API token is compromised, use this command to generate a new one.
Steps to Use:
- Type
/revoke
. - Select your bot.
- BotFather will generate a new token and deactivate the old one.
2. /setjoingroups
- Control Group Access
This command determines whether your bot can join groups.
Steps to Use:
- Type
/setjoingroups
. - Select your bot.
- Choose "Enable" or "Disable."
3. /setprivacy
- Adjust Message Access
This controls whether your bot receives all messages in a group or only those that mention it.
Steps to Use:
- Type
/setprivacy
. - Select your bot.
- Choose "Enable" (restricts to mentions) or "Disable" (receives all messages).
4. /setinline
- Enable Inline Mode
This allows your bot to work in inline mode, where users can interact with it directly in chats by typing @bot_username
.
Steps to Use:
- Type
/setinline
. - Select your bot.
- Confirm to enable inline mode.
Practical Example
A bot with the following functionality:
/start
- Sends a welcome message./help
- Displays usage instructions./balance
- Shows the user’s account balance.
Setting Commands:
- Type
/setcommands
. - Select your bot.
- Enter the following commands:
Conclusion
BotFather provides all the tools you need to create and manage Telegram bots. By mastering these commands, you can customize your bot to fit your needs perfectly.
Good luck creating your Telegram bot!