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

Parameters

Name Type Description
SamePeer flags .0? true If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field.
Style flags .10? KeyboardButtonStyle Button style, see here for more info on button styles.
Text string Button label
Query string The inline query to use
PeerTypes flags .1? Vector < InlineQueryPeerType > Filter to use when selecting chats.

Returns

KeyboardButton

Gogram Example

// Creating KeyboardButtonSwitchInline constructor
obj := &tg.KeyboardButtonSwitchInline{
    SamePeer: nil,
    Style: nil,
    Text: "Hello, World!",
    Query: "Hello, World!",
    PeerTypes: nil,
}