Layer 220
constructor
keyboardButtonSwitchInline#93b9fbb5 flags:# same_peer:flags.0?true text:string query:string peer_types:flags.1?Vector<InlineQueryPeerType> = KeyboardButton;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
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.
Text string Button label
Query string The inline query to use
PeerTypes Vector<InlineQueryPeerType> Filter to use when selecting chats.

Returns

KeyboardButton

Gogram Example

// Creating KeyboardButtonSwitchInline constructor
obj := &tg.KeyboardButtonSwitchInline{
    Text: "...",
    Query: "...",

    // Optional fields:
    // SamePeer: true,
    // PeerTypes: []tg.InlineQueryPeerType{&tg.InlineQueryPeerType{}},
}