Layer 227
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

Gogram Example

// Creating InputBotInlineResultDocument constructor
obj := &tg.InputBotInlineResultDocument{
    Id: "Hello, World!",
    Type: "Hello, World!",
    Title: "Hello, World!",
    Description: "Hello, World!",
    Document: &tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}},
    SendMessage: &tg.InputBotInlineMessageText{},
}