Black FridayCreate your account by 29 November and get 50% off your first paid month.Offer terms

Guide

Telegram bot token: where to find it and how to keep it safe

A Telegram bot token is the secret key BotFather gives every bot. Software uses the token to send and receive the bot's messages through Telegram's Bot API, so whoever holds it controls the bot. Here is where to find it, what it looks like and what to do if it leaks.

What does a Telegram bot token look like?

A token is the bot's numeric ID, a colon and a secret string, for example 4839574812:AAFD39kkdpWt3ywyRZergyOLMaJhac60qc (the example from Telegram's own tutorial). The number before the colon identifies the bot; the part after it is the secret.

Why must the token stay secret?

With the token, anyone can read what people send to your bot, send messages as the bot and point its updates somewhere else, which cuts off the tool you use today. That is why tools should store it encrypted and never show it again.

What should you do if the token leaks?

  • Generate a new token in BotFather: /mybots, choose the bot, then API Token. The old token stops working right away.
  • Paste the new token into every tool that runs the bot.
  • Check the bot's name, description and commands in BotFather for changes you didn't make.
  • Delete the leaked token from wherever it was posted.

Can one bot be connected to two tools?

Not for receiving messages. Telegram offers two mutually exclusive ways to receive a bot's updates, a webhook or polling, so only one tool gets the messages people send. Connecting a bot to a new tool takes over from the old one.

How does TeleManager store the token?

When you connect a bot, TeleManager encrypts the token before it is stored and never shows it in full again. Your team works with the bot in the dashboard without seeing the token. See how it works.

How to get your Telegram bot token

  1. Open BotFather

    Search for @BotFather in Telegram and open the verified account.

  2. Send /mybots

    BotFather lists the bots you created. Tap the one you need.

  3. Tap API Token

    BotFather shows the bot's current token, with an option to generate a new one.

  4. Paste it where it's needed

    Copy the token and paste it only into the tool that runs your bot, such as TeleManager.

Frequently asked questions

Is the bot token the same as an API ID and API hash?

No. The API ID and hash from my.telegram.org are for apps that sign in as a personal Telegram account. Bots use the token from BotFather.

Does a new token change the bot's username or subscribers?

No. The bot keeps its username, profile and the people who started it. Only the key changes, so you must paste the new token into your tools.

Where can I see the token after connecting it to TeleManager?

You can't, on purpose: TeleManager encrypts it and never shows it in full again. If you need the token, copy it from BotFather.

Sources

In short
Open @BotFather, send /mybots, choose your bot and tap API Token. The token is a number, a colon and a long code, like 4839574812:AAFD39kkdpWt3ywyRZergyOLMaJhac60qc.
Best for
Connecting a bot to a tool, or replacing a token that leaked.
Key features
  • Found in BotFather under /mybots
  • Works like a password for the bot
  • Can be replaced at any time
Limitations
Anyone with the token can control the bot, and an old token stops working as soon as you generate a new one, so update every tool that uses it. TeleManager works through Telegram's official Bot API, so bots can only message people who started them, and a bot can be connected to one service at a time. It is an independent tool, not a Telegram product.

Last updated: · How we write this site

Connect your first bot today.

Connect your bots in minutes and grow from there. Start with a free month, no card needed.

Start your free month

Start with a free month · No credit card required