Creating & Managing Bots with BotFather¶
The official @BotFather account in CodeMeet is the central hub for creating bots, configuring profiles, obtaining tokens, and managing settings.
Interacting with BotFather¶
- In CodeMeet, search for
@botfatherand open the direct chat. - Send
/startor click Start. The command menu and inline buttons will appear:
/newbot - Create a new bot
/mybots - View and manage your bots
Edit Bot Details:
/setname - Change bot's display name
/setdescription - Change bot description
/setabouttext - Change bot about/bio info
/setuserpic - Change bot profile picture
/setcommands - Change list of bot commands
/deletebot - Permanently delete a bot
Settings & Security:
/token - View current API token prefix
/revoke - Revoke token and generate a new one
/setwebhook - Configure webhook URL and secret
/deletewebhook - Remove webhook delivery
/cancel - Cancel the ongoing command
Step-by-Step: Creating a Bot (/newbot)¶
- Send
/newbotor click the New Bot button. - Enter a Display Name (e.g.,
Support Assistant). - Choose a unique Username:
- Must end in
bot(e.g.,SupportAssistantBotorsupport_assistant_bot). - Length: 5 to 32 characters, using alphanumeric characters and underscores (
_).
- Must end in
- BotFather will confirm creation and provide your HTTP API Token:
/// warning | Keep Your Token Secret Your bot token grants full control over your bot account. Never expose it in client-side code or public version control repositories. ///
Example Token:
Profile & Setting Operations¶
1. Change Name (/setname)¶
Updates the display name of your bot (1–100 characters):
2. Change Description (/setdescription)¶
Updates the introductory text shown to users before they start the bot (up to 512 characters):
3. Change About Info (/setabouttext)¶
Updates the bio text shown on the bot's profile page (up to 120 characters):
4. Update Profile Picture (/setuserpic)¶
Send /setuserpic @MyCustomBot, then upload an image to immediately set it as the bot's avatar.
5. Configure Commands Menu (/setcommands)¶
Define autocomplete commands visible when users type /:
6. Revoking Tokens (/revoke)¶
If a token is compromised, run /revoke @MyCustomBot to immediately invalidate the old token and issue a fresh one.