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.
type tg.KeyboardButtonSwitchInline struct { /* ... */ }
Implements KeyboardButton.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
SamePeer | bool | — | If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. |
Style | KeyboardButtonStyle | — | Button style, see here » for more info on button styles. |
Text | string | yes | Button label |
Query | string | yes | The inline query to use |
PeerTypes | []InlineQueryPeerTypeClass | — | Filter to use when selecting chats. |
References
- Official documentation
- Generated Go reference
- TL definition:
keyboardButtonSwitchInline#991399fc