mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.5 KiB
1.5 KiB
title | description | nav_exclude | 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 bot's username and the specified inline query in the input field. | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: 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 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 |
peer_types | Array of InlineQueryPeerType | Optional | Filter to use when selecting chats. |
Type: KeyboardButton
Example:
$keyboardButtonSwitchInline = ['_' => 'keyboardButtonSwitchInline', 'same_peer' => Bool, 'text' => 'string', 'query' => 'string', 'peer_types' => [InlineQueryPeerType, InlineQueryPeerType]];