Layer 220
MessagesPreparedInlineMessage
Represents a prepared inline message received via a bot's mini app, that can be sent to some chats
constructor
messages.preparedInlineMessage#ff57708d query_id:long result:BotInlineResult peer_types:Vector<InlineQueryPeerType> cache_time:int users:Vector<User> = messages.PreparedInlineMessage;
Parameters
| Name | Type | Description |
|---|---|---|
| QueryId | long | The query_id to pass to messages. send Inline Bot Result |
| Result | BotInlineResult | The contents of the message, to be shown in a preview |
| PeerTypes | Vector<InlineQueryPeerType> | Types of chats where this message can be sent |
| CacheTime | int | Caching validity of the results |
| Users | Vector<User> | Users mentioned in the results |
Returns
messages.PreparedInlineMessageGogram Example
// Creating MessagesPreparedInlineMessage constructor obj := &tg.MessagesPreparedInlineMessage{ QueryId: int64(0), Result: &tg.BotInlineResult{}, PeerTypes: []tg.InlineQueryPeerType{&tg.InlineQueryPeerType{}}, CacheTime: 0, Users: []tg.User{&tg.User{}}, }