For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create your first Telegram bot

Connect a Telegram bot to Bots.Business and make it reply to /start from the current mobile app, without writing code.

By the end of this guide, your bot will reply to /start in Telegram. You need a Telegram account and a signed-in Bots.Business account. If this is your first visit, create an account and sign in first.

1

Create the bot in Telegram

  1. Open the official @BotFather in Telegram and tap Start if shown. Send the following messages to BotFather, not to your new bot.

  2. Send /newbot to begin creating a bot.

  3. When asked for a name, send a display name, such as My first bot. This is the name people see in Telegram.

  4. When asked for a username, choose a unique one ending in bot, such as alex_practice_2026_bot. Use 5–32 characters: Latin letters, digits or underscores, with no spaces. If BotFather says it is taken, choose another and send it again.

  5. After BotFather confirms creation, copy the complete bot token from its reply. The token has digits before a colon (:) and a long string after it. Copy only that value, without surrounding text or spaces. The bot's @username and t.me/... link are not its token.

English BotFather chat showing /newbot, a display name, a username ending in bot, and the token location with the token hidden
Creating a bot in Telegram (English). The token is hidden. Choose your own name and username. Screenshot: Jozef Cipa.

Check: you now have a bot username and its token. Keep the token ready for the Token field in the next step. The new bot will start replying after you connect it and add a command below.

These steps follow Telegram's bot creation guide.

Mel’s tip

The token belongs to the bot. It is different from your Bots.Business password and account API key. Paste it only into the bot configuration; someone who has it can control the Telegram bot.

BotFather says the username is already taken

Choose another username and send it in the same BotFather conversation. For example, add a distinctive prefix or digits before the final bot. You do not need to start /newbot again.

English BotFather chat rejecting an occupied username and accepting a different one
When a username is taken, send a different one that still ends in bot. The names shown are examples. Screenshot: Turtle Techies.
Already have a bot, or cannot find its token?

If you already created the bot, use the token from its BotFather creation message and continue to the next step. You do not need to send /newbot again. A token that was later replaced will no longer work.

If you lost the token or need to replace an exposed one, Telegram documents the /token command. Send it to BotFather and follow its prompts for your bot. Put the replacement token into Bots.Business too: Dashboard → Edit bot → Token for a bot you already added.

2

Add it to Bots.Business

  1. Open My bots and choose Create bot. If the list already has bots, tap +.

  2. Enter a useful Name, such as My first bot.

  3. Paste your token into Token and tap CREATE below the form.

  4. Open the new bot to enter its workspace.

A bot can be saved before its token is supplied, but it needs a valid token to connect to Telegram. If you skipped the field, open Dashboard → Edit bot and add it.

The current New bot form with Name, Token, and the CREATE button
The current New bot form with Name, Token, and the CREATE button
3

Give /start an answer

  1. Open Commands.

  2. Tap + and choose New command.

  3. Set Command to /start.

  4. Set Answer to Hello! My bot is working.

  5. Leave Wait for answer off and the BJS code empty for this first example.

  6. Tap Create in the command form. For an existing command, open ⋮ → Options, change its fields, and tap Edit. The code editor's Save button is used for code changes.

The Answer field is enough for a simple response. You do not need to install a library or write JavaScript for this step.

Example of the /start Command and Answer fields in Edit metadata
Example of the /start Command and Answer fields in Edit metadata

The screenshot shows demonstration text. For this tutorial, keep the Answer you entered in step 4.

4

Launch and test

Open Dashboard, tap Launch bot, and check its status. Use Open to go to the bot in Telegram. Tap Telegram's Start button or send /start yourself.

You should receive Hello! My bot is working. Saving a command alone does not send it to a Telegram chat; sending /start triggers it.

Bot Dashboard with status, Open, Edit bot, and the launch control
Bot Dashboard with status, Open, Edit bot, and the launch control

If the answer does not arrive

  • Check that you opened the same bot username as the token you added.

  • Check that the bot is running and the command was saved.

  • Open Errors for the bot. Start with plain Answer text to avoid formatting errors.

  • Check that Wait for answer is off for this example and that no group restriction is set.

  • If another hosting service uses the same Telegram bot, check its connection before moving the bot between services.

Use Bot does not reply for the full checklist.

Next: add a menu

Create a second command and connect it to a reply keyboard. To start programming, follow JavaScript basics for BJS beginners. If you already know JavaScript, continue with BJS execution and APIs.

Last updated

Was this helpful?