Layer 224
constructor
inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult;

Parameters

Name Type Description
Id string Result ID
Type string Result type (see bot API docs )
Photo InputPhoto Photo to send
SendMessage InputBotInlineMessage Message to send when the result is selected

Gogram Example

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