Layer 220
BotInlineMediaResult
Media result
constructor
botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Id | string | Result ID |
| Type | string | Result type (see bot API docs ) |
| Photo | flags.0?Photo | If type is photo, the photo to send |
| Document | flags.1?Document | If type is document, the document to send |
| Title | flags.2?string | Result title |
| Description | flags.3?string | Description |
| SendMessage | BotInlineMessage | Depending on the type and on the constructor, contains the caption of the media or the content of the message to be sent instead of the media |
Returns
BotInlineResultGogram Example
// Creating BotInlineMediaResult constructor obj := &tg.BotInlineMediaResult{ Id: "...", Type: "...", SendMessage: &tg.BotInlineMessage{}, // Optional fields: // Photo: &tg.Photo{}, // Document: &tg.Document{}, // Title: "...", // Description: "...", }