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
SamePeerboolIf set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field.
StyleKeyboardButtonStyleButton style, see here » for more info on button styles.
TextstringyesButton label
QuerystringyesThe inline query to use
PeerTypes[]InlineQueryPeerTypeClassFilter to use when selecting chats.

References