Skip to main content
Very Popular
Go to Latest
method InlineKeyboard.prototype.switchInlineCurrent
import { InlineKeyboard } from "";

Adds a new inline query button that act on the current chat. The selected chat will be prefilled with the name of your bot. You may provide a text that is specified along with it. This will start an inline query.

Your bot will in turn receive updates for inline queries. You can listen to inline query updates like this:

bot.on('inline_query', ctx => { ... })


text: string

The text to display


The (optional) inline query string to prefill