Constructor: keyboardButtonSwitchInline

Back to constructors index

Button to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field.

Attributes:

Name Type Required Description
same_peer Bool Optional If set, pressing the button will insert the bot‘s username and the specified inline query in the current chat’s input field.
text string Yes Button label
query string Yes The inline query to use

Type: KeyboardButton

Example:

$keyboardButtonSwitchInline = ['_' => 'keyboardButtonSwitchInline', 'same_peer' => Bool, 'text' => 'string', 'query' => 'string'];

Or, if you’re into Lua:

keyboardButtonSwitchInline={_='keyboardButtonSwitchInline', same_peer=Bool, text='string', query='string'}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.