Skip to content

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

  1. In CodeMeet, search for @botfather and open the direct chat.
  2. Send /start or 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)

  1. Send /newbot or click the New Bot button.
  2. Enter a Display Name (e.g., Support Assistant).
  3. Choose a unique Username:
    • Must end in bot (e.g., SupportAssistantBot or support_assistant_bot).
    • Length: 5 to 32 characters, using alphanumeric characters and underscores (_).
  4. 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:

cc88a81be3ef:jDbheaJb1yh1cFBb96zPHMd99pQb4kulF_K1Fsoj6pk


Profile & Setting Operations

1. Change Name (/setname)

Updates the display name of your bot (1–100 characters):

/setname @MyCustomBot My Awesome Assistant

2. Change Description (/setdescription)

Updates the introductory text shown to users before they start the bot (up to 512 characters):

/setdescription @MyCustomBot This bot helps you track orders and get instant support.

3. Change About Info (/setabouttext)

Updates the bio text shown on the bot's profile page (up to 120 characters):

/setabouttext @MyCustomBot 24/7 automated assistant for CodeMeet.

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 /:

start - Open main menu
help - Show help and instructions
status - Check account status

6. Revoking Tokens (/revoke)

If a token is compromised, run /revoke @MyCustomBot to immediately invalidate the old token and issue a fresh one.