MadelineProtoDocs/old_docs/API_docs_v53/constructors/keyboardButtonSwitchInline.md
2019-12-27 17:48:04 +01:00

1.2 KiB
Raw Blame History

title description image
keyboardButtonSwitchInline 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 bots username and the specified inline query in the input field. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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 bots username and the specified inline query in the input field.

Attributes:

Name Type Required Description
text string Yes Button label
query string Yes The inline query to use

Type: KeyboardButton

Example:

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

Or, if you're into Lua:

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