Skip to main content

Customer service

BotFather guide: create a Telegram bot and get its token

BotFather is Telegram's own bot for creating and managing bots. Here is every step from /newbot to a working token, the settings a business bot needs, what to do when the token leaks, and how to connect the bot to your team inbox.

MonoChat Team Updated: 4 min read

On this page
  1. Step 1: Create the bot with /newbot
  2. Step 2: Keep the token safe
  3. Step 3: Set up the profile customers see
  4. Step 4: Share the bot
  5. Step 5: Connect the bot to MonoChat
  6. Common mistakes
  7. Sources

BotFather (@BotFather) is Telegram’s official bot for creating and managing bots. You send it /newbot, choose a name and a username, and it replies with your bot’s token, the key that lets software such as MonoChat send and receive messages as your bot. The whole process takes about two minutes; the details below are what keep the bot working and safe later.

Step 1: Create the bot with /newbot

  1. In Telegram, search for @BotFather and open the account with the blue verification mark.
  2. Send /newbot.
  3. Send the name: what people see in chats, for example “Lumen Dental”. You can change it later with /setname.
  4. Send the username: 5 to 32 characters, Latin letters, numbers and underscores, ending in “bot”, such as lumendental_bot or LumenDentalBot. It is not case sensitive and cannot be changed later, so choose it the way you would choose a domain.
  5. BotFather confirms with a message that contains your bot’s link (t.me/lumendental_bot) and its token, which looks like 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw.

If BotFather says the username is taken, try a variant with your city or an underscore; usernames are unique across Telegram.

Step 2: Keep the token safe

The token is the bot’s password. Anyone who has it can read the messages your bot receives and send messages in its name.

  • Store it in your password manager, not in a chat, an e-mail or a shared document.
  • Paste it only into the tool that runs the bot.
  • If it leaks, or a former employee or agency had it, send /token in BotFather to generate a new one, then update the tool that uses it.
  • To see your bots and their settings at any time, send /mybots.

Step 3: Set up the profile customers see

These BotFather commands decide what a customer sees before the first message:

CommandWhat it setsTip for a business bot
/setuserpicProfile pictureYour logo, square and readable at small size
/setdescriptionThe text under “What can this bot do?” (up to 512 characters)What people can ask, and when a person answers
/setabouttextThe line on the profile and in shared links (up to 120 characters)One sentence and your opening hours
/setcommandsThe menu people see when they type ”/“/start, /help, plus two or three of your own, such as /order or /book
/setprivacyWhich group messages the bot receivesLeave privacy on unless the bot must read every group message
/setjoingroupsWhether the bot can be added to groupsTurn it off for a one-to-one support bot

Step 4: Share the bot

A bot cannot start a conversation: a person has to open it and tap Start, or add it to a group, first. So the link is your growth channel:

  • Put t.me/<username> on your website, receipts, packaging and social profiles, or show it as a QR code at the counter.
  • Add a parameter to see where people came from: t.me/lumendental_bot?start=instagram arrives at the bot as /start instagram. Parameters can use letters, numbers, _ and -, up to 64 characters.

Step 5: Connect the bot to MonoChat

MonoChat connects your bot with the token, without code:

  1. In MonoChat, go to Settings › Chat › Channels and click Connect.
  2. Choose Telegram Bot.
  3. Paste the token from BotFather into Telegram Bot Key and click Save.

Messages to your bot now arrive in the team inbox next to WhatsApp, Instagram and your other channels. From there you can let an AI assistant answer from your own content, hand chats over to your team, and send Telegram broadcasts to everyone who started the bot.

Common mistakes

  • Connecting one bot to two tools. A bot delivers its updates through one webhook or by polling, not both, so the second tool silently takes the messages away from the first. Use one bot per tool.
  • Deleting instead of renaming. /deletebot removes the bot and frees its username, and it cannot be undone. To rebrand, change the name and picture instead.
  • Handing the bot to an agency for good. You can transfer a bot with /mybots › your bot › Transfer ownership, only to someone who has used the bot, and the transfer is permanent. Keep the bot on a company account and share access through your tools instead.
  • Messaging too fast. Telegram asks bots to send no more than about one message per second in a chat and 20 per minute in a group, and about 30 messages per second for bulk sends.

Our guide to Telegram for business compares bots with Business accounts, channels and groups.

You can start free at app.monochat.ai.

Sources

FAQ

Frequently asked questions

Where do I find my Telegram bot token?

BotFather sends it in the message that confirms your new bot. If you lost it, or think someone else has it, send /token in BotFather to generate a new one and paste it into the tool that runs your bot.

Is BotFather free?

Yes. Creating and managing bots with BotFather costs nothing, and bots can message the people who started them at no cost. Only paid broadcasts above about 30 messages per second are charged, in Telegram Stars.

Can I change my bot's username later?

No. The username (the part that ends in "bot") is fixed once BotFather creates the bot. The display name, description, about text and picture can all be changed later.

What happens if someone gets my bot token?

They can control the bot: read the messages it receives and send messages in its name. Send /token in BotFather to generate a new token right away, then paste the new one into every tool that uses the bot.

Why does my bot stop answering after I connect it to a second tool?

A bot receives its messages either through one webhook or by polling, not both. When a second tool sets its own webhook, the first one stops getting messages. Connect each bot to one tool, and create a second bot for tests.

First month of Growth on us

Run WhatsApp, Instagram and Messenger from one inbox

Start free with MonoChat: shared team inbox, AI assistants, templates and campaigns on official Meta APIs.

One code per business • 30 days to redeem • No card needed

$150 to get started.

Claim