Layer 224
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 |
|---|---|---|
| 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: "Hello, World!", Type: "Hello, World!", Document: &tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, SendMessage: &tg.InputBotInlineMessageText{}, // Optional fields: // Title: "Hello, World!", // Description: "Hello, World!", }