Layer 231
constructor
inlineButtonTypeSwitchInline#93773ff5 flags:# same_peer:flags.0?true query:string peer_types:flags.1?Vector<InlineQueryPeerType> = InlineButtonType;

Parameters

Name Type Description
SamePeer flags.0?true If set, the inline query is started in the current chat
Query string Inline query to insert
PeerTypes Vector<InlineQueryPeerType> Types of chats the user can choose from to start the inline query

Gogram Example

// Creating InlineButtonTypeSwitchInline constructor
obj := &tg.InlineButtonTypeSwitchInline{
    Query: "search term",

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