How to create a Telegram bot in Bot Panel

1. Get a token from @BotFather

  1. Open @BotFather in Telegram and send /newbot.
  2. Enter a display name, then a username - it must end in bot, for example shop_helper_bot.
  3. BotFather sends a token like 123456789:AA.... This is the access key to your bot - never share it.

2. Create the bot in the panel

  1. Click "Create new app" on the dashboard or "New bot" at the bottom of the list.
  2. Name - Latin letters, no spaces, for example shop_helper_bot.
  3. Platform - Telegram (Discord, WhatsApp and Viber are also available).
  4. Language - Python, Node.js, PHP or Ruby.
  5. Code template - ready starter code: Basic (/start and /help commands), Echo, Menu (buttons), Broadcast, Inline.
  6. You can fill in "Bot token" now or leave it empty and add the token later in Config Vars. Click "Create".
The create bot window
The create bot window

The bot appears in the list on the left, and the panel installs dependencies (requirements.txt, package.json, etc.) automatically.

3. Set the token in Config Vars

Open the bot - Config Vars tab. Paste the token into the BOT_TOKEN row and click "Save". The "Check token" button tells you right away whether Telegram accepts it.

The BOT_TOKEN variable in the Config Vars tab
The BOT_TOKEN variable in the Config Vars tab

You can add any variables of your own here: + Variable adds a row, "Raw text" switches to a KEY=value list, one per line. In code they are environment variables: Python - os.environ.get('BOT_TOKEN'), Node.js - process.env.BOT_TOKEN, PHP - getenv('BOT_TOKEN').

Do not put the token in the code or publish it on GitHub: anyone with the token can control your bot. If the token leaks, get a new one from @BotFather with /revoke.

4. Start the bot

Click the green "Start" button. Open your bot in Telegram and send /start - it will reply. More about starting and autostart: running and managing a bot.

Questions and answers
Check that the token is set in Config Vars and the bot is running ("Start"). Then open the Logs tab - the error will be there. See the article on logs and diagnostics.
Yes. Each bot is a separate project in the list on the left, with its own code, token and logs.
Latin letters, digits and underscores, no spaces. It is the project folder name and does not have to match the bot username in Telegram.