Get a token for a new bot
- Open @BotFather in Telegram and tap Start.
- Send
/newbot. - Send a name for your bot, like My Shop Helper.
- Send a username that ends in
bot, likemyshop_helper_bot. If it's taken, try another.
BotFather replies with a message that contains your token. It looks like this:
7123456789:AAHk3x9Lm2Qp-Rz8vWc4TnB...
The part before the colon is your bot's ID. The part after it is the secret. Copy the whole thing.
Find the token of a bot you already made
- Open @BotFather and send
/mybots. - Tap the bot you want.
- Tap API Token. BotFather shows the current token.
Reset a token that leaked
If someone else might have your token, reset it. The old token stops working right away.
- Open @BotFather and send
/mybots, then tap your bot. - Tap API Token, then Revoke current token.
- Copy the new token and paste it wherever your bot runs. On Echo Maker, reconnect the bot with the new token.
Keep your token safe
- Anyone who has the token can read your bot's messages and post as your bot.
- Never post it in a group, a screenshot or a public code repository.
- Only paste it into a service you trust to run your bot.
- Revoking the token is the fastest way to lock everyone else out.
What to do with the token
Paste it into whatever runs your bot. With Echo Maker, open @mkfrbot, pick a template, and paste the token when it asks. Your bot goes live in seconds. See how to create a Telegram bot for the full walkthrough.
Questions
Is the bot token the same as my Telegram password?
No. The token only controls one bot. It doesn't give access to your personal Telegram account.
Does a bot token expire?
No. A token works until you revoke it in BotFather.
I lost my token. Do I need a new bot?
No. Open BotFather, send /mybots, pick the bot and tap API Token to see it again.
Is it safe to give my token to Echo Maker?
Echo Maker needs the token to run the bot for you, like any bot host. You stay the owner in BotFather, and you can revoke the token at any time to disconnect it.