How to register your bot in Telegram via BotFather

How to register your bot in Telegram via BotFather

Ruslan Kayumov

EN | RU

You’ll need a token to use a Telegram bot. A token is a secret key that grants control over your bot.

Steps to Get a Token via BotFather:

  1. Open Telegram → Search for @BotFather (the official bot for creating bots).
  2. Start the chat → Tap /start, then select /newbot.
  3. Choose a bot name (e.g., MyTestBot) → Send.
  4. Create a username → Must end with …_bot (e.g., MyTest123_bot). Important: You won’t be able to change it later.
  5. Get your token → After confirmation, BotFather will send a message containing your token (format: 1234567890:ABCdefGhIJKlmNoPQRsTUVwxyz).
Example of a successfully generated token

Important Notes:

▪️ The token is your bot’s password. Never share it or publish it publicly.

▪️ If the token is compromised → Use /revoke in @BotFather to generate a new one.

Done! Use the token to connect your bot to the API or integrate it with external services. For example, services like HostRoom Telegram Hosting allow you to run bots directly within Telegram.


Report Page