Layer 231
InlineButtonTypeSwitchInline
Inline button that inserts the bot's username and a query into an input field to start an inline query.
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 |
Returns
InlineButtonTypeGogram Example
// Creating InlineButtonTypeSwitchInline constructor obj := &tg.InlineButtonTypeSwitchInline{ Query: "search term", // Optional fields: // SamePeer: true, // PeerTypes: []tg.InlineQueryPeerType{&tg.InlineQueryPeerTypeBotPm{}}, }