Layer 220
InputBotInlineResultDocument
Document (media of any type except for photos)
constructor
inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Id | string | Result ID |
| Type | string | Result type (see bot API docs ) |
| Title | flags.1?string | Result title |
| Description | flags.2?string | Result description |
| Document | InputDocument | Document to send |
| SendMessage | InputBotInlineMessage | Message to send when the result is selected |
Returns
InputBotInlineResultGogram Example
// Creating InputBotInlineResultDocument constructor obj := &tg.InputBotInlineResultDocument{ Id: "...", Type: "...", Document: &tg.InputDocument{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}, SendMessage: &tg.InputBotInlineMessageText{}, // Optional fields: // Title: "...", // Description: "...", }