Skip to main content

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​

NameTypeRequiredDescription
SamePeerbool—If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field.
StyleKeyboardButtonStyle—Button style, see here » for more info on button styles.
TextstringyesButton label
QuerystringyesThe inline query to use
PeerTypes[]InlineQueryPeerTypeClass—Filter to use when selecting chats.

References​