Skip to main content
This section covers advanced interaction methods and configuration options.

Inline Mode

Inline mode allows users to interact with your bot from any chat by typing @your_bot_username followed by a query.

answerInlineQuery

Use this method to send answers to an inline query. No more than 50 results per query are allowed.
BLP Example

Bot Configuration

setMyCommands

Use this method to change the list of the bot’s commands. These commands appear in the Telegram menu button.
BLP Example

deleteMyCommands

Use this method to delete the list of the bot’s commands for the given scope and user language.
BLP Example

getMyCommands

Use this method to get the current list of the bot’s commands.
BLP Example

setChatMenuButton

Use this method to change the bot’s menu button in a private chat, or the default menu button.
BLP Example

Bot.Transfer

Use this method to programmatically transfer the ownership of the bot to another user via their registered email or username on the Bots.LT platform. By default, it transfers the current bot, but you can also transfer another bot you own by passing bot_id.
BLP Example

Bot.Clone

Use this method to programmatically create an exact copy of the bot, including all its commands and code. If you provide a bot_token, the new bot will be attached to that token immediately.
BLP Example

Internal BLP Engine Methods

Next Command Handling

You can explicitly tell the BLP engine which command to execute on the user’s next message using Bot.handleNextCommand().
BLP Example

Triggering Other Commands

You can programmatically trigger another command’s code from within your current command using Bot.runCommand().
BLP Example