Browser demo · Telegram Bot API

Try a simple Telegram bot in your browser

Connect a bot you control, select an example, then send /start in Telegram. The demo polls only while this page stays open.

1. Create or choose a bot

Create the Telegram bot you can keep

It takes about two minutes. The bot and token you create here can be used later in Bots.Business. Use a separate test bot so you do not interrupt a live project.

  1. 1

    Open @BotFather ↗ in Telegram.

  2. 2

    Send /newbot, then choose its display name and a username ending in bot.

  3. 3

    Copy the token BotFather sends you. Read Telegram's step-by-step guide ↗

Your token is a full-access credential. It is sent directly from this browser to Telegram, kept only in this tab's memory, and never saved, logged or sent to analytics.

1M+ Google Play downloads Building bots since 2016

Connect your bot, then choose an example below.

2. Pick a small pattern

Run a ready-made example

These are BJS equivalents based on the Bots.Business Bot functions guide ↗. This page runs a fixed browser adapter, not the full hosted BJS runtime.

BJS exampleSelected

Welcome and menu

Reply to /start with a message and a simple keyboard.

Bot.sendMessage("Welcome! Choose an option below.");
Bot.sendKeyboard("About, Help", "What would you like to know?");
BJS exampleSelected

Remember a name

Ask for a name, then keep it for this browser session.

// /start
Bot.sendMessage("What is your name?");

// /save_name (after the reply)
User.setProp("name", message, "string");
Bot.sendMessage("Nice to meet you, " + message);
BJS exampleSelected

Inline choice

Offer two inline buttons and react to the callback.

Bot.sendInlineKeyboard(
  [
    { title: "Build", command: "/build" },
    { title: "Explore", command: "/explore" }
  ],
  "Which path would you like to try?"
);