telegram api constructor · layer 228 · #991399fc

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.

not in the latest layer 229: last defined in layer 228

definition

keyboardButtonSwitchInline#991399fc flags:# same_peer:flags.0?true style:flags.10?KeyboardButtonStyle text:string query:string peer_types:flags.1?Vector<InlineQueryPeerType> = KeyboardButton;

parameters

nametypedescription
flags#Flags, see TL conditional fields
same_peerflags.0?trueIf set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field.
styleflags.10?KeyboardButtonStyle
textstringButton label
querystringThe inline query to use
peer_typesflags.1?Vector<InlineQueryPeerType>Filter to use when selecting chats.

type

KeyboardButton · 17 other constructors

history

present in layers 62–228 · constructor id changed 2×

idlayers
#0568a74862–156
#93b9fbb5158–221
#991399fc222–228