Gem: Telegram How To

Commands, the menu button and inline mode

What it is

Commands start with /; typing / lists them with descriptions. The Menu button next to the message field opens that list or launches a Mini App. Inline mode lets people use your bot in any chat: they type `@your_bot` and a query and pick a result.

How to do it

  1. Commands: send /setcommands to @BotFather, pick the bot, send one per line: `help - What this bot can do`.
  2. Support /start and /help, plus /settings if your bot has settings.
  3. Menu button: /setmenubutton, then the button text and your Mini App's address; by default it opens the command list.
  4. Inline mode: /setinline, pick the bot and send the placeholder people see after typing its name.
  5. To use it: type `@your_bot` and a query in any chat and tap a result. The message shows "via @your_bot".

Watch out

With Gem

Gem doesn't set these up: your own bot isn't available on Gem yet. Your project lives in @gembot (/newproject, /myprojects, /dashboard, /newapp), with its Mini App page at `t.me/gembot?startapp=<name>`.

Sources

Open in Telegram โ†—