Inline mode for inline commands and command groups in the Constructor

This article explains how to set up inline mode for inline commands and command groups in the Constructor.

058037bc49f087734c9c33e5d90b2afe.png

Important! Inline mode is also available for products and product categories on the Store tab. Learn more: Inline mode for products and product categories in the Store.

Inline mode is a Telegram feature that lets you call a bot from any chat by typing its username. For example: type @puzzlebot or @gif in any chat to show a search window above the text field.

Setting up inline mode takes two steps:

  1. Turn it on for your bot in @BotFather.

  2. Set it up in your puzzlebot account.

Let's look at each step separately.

Turning on inline mode in @BotFather

To activate inline mode in @BotFather:

  1. Open @BotFather.

  2. Send the "/mybots" command.

  3. Select the bot you need.

  4. Tap the "Bot Settings" button.

  5. Tap the "Inline Mod" button.

  6. Tap the "Turn on" button.

Inline mode is now on. If needed, you can change the placeholder with the "Edit inline placeholder" button (the default phrase shown after the username when nothing else is typed in the input field; "Search…" by default).

Setting up inline mode in the Constructor

Inline mode can be set up for inline commands and command groups.

Important! An inline command with inline mode turned on can contain only a text block.

Important! If an inline command is called via inline mode, the command's additional settings do not work.

Inline command

d92a86581078469ac92b78cf874dd834.png

To turn on inline mode, enable the corresponding item in the settings.

Let's go through the settings:

  1. Name — required for all inline mode items.

  2. Cover — optional. Lets you upload an image, video or animation up to 5 MB.

  3. Description — optional.

The search for an inline command takes into account the text in the Name and Description, as well as the Command synonyms set with the "Full match" and "Partial match" conditions.

Command group

To turn on inline mode, open the command group settings.

52a7376780aa90d1c00b060d3ec5b2b2.png

Important! When you turn on displaying a command group in inline mode, it works as an "intermediate phrase". This means the inline commands inside it are not shown unless the intermediate phrase itself is typed.

Example: An inline command in inline mode is named "Start". If inline mode is not turned on for the command group, the command can be found by typing "@username Start" in the input field. If the "Intermediate phrase for inline mode" option is turned on in the command group settings, the command can be found only by typing "@username Intermediate phrase Start".

When a user selects a command group in inline mode, they are sent a text block consisting of the Name (Intermediate phrase), Description, Cover (as a preview) and a "Search in "Intermediate phrase name" button, which inserts the intermediate phrase into the user's input field.

Let's go through the settings:

  1. Intermediate phrase — required. It serves as the name when the item is displayed in inline mode and as the phrase that lets users view the inline commands inside it.

  2. Cover — optional. Lets you upload an image, video or animation up to 5 MB.

  3. Description — optional.

Was this page helpful?