Layer 224
constructor
inputBotInlineMessageMediaInvoice#d7e78225 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;

Parameters

Name Type Description
Title string Product name, 1-32 characters
Description string Product description, 1-255 characters
Photo flags.0?InputWebDocument Invoice photo
Invoice Invoice The invoice
Payload bytes Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
Provider string Payments provider token, obtained via Botfather
ProviderData DataJSON A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.
ReplyMarkup flags.2?ReplyMarkup Inline keyboard

Gogram Example

// Creating InputBotInlineMessageMediaInvoice constructor
obj := &tg.InputBotInlineMessageMediaInvoice{
    Title: "Hello, World!",
    Description: "Hello, World!",
    Invoice: &tg.Invoice{},
    Payload: []byte{0x01, 0x02, 0x03},
    Provider: "Hello, World!",
    ProviderData: &tg.DataJson{},

    // Optional fields:
    // Photo: &tg.InputWebDocument{},
    // ReplyMarkup: &tg.ReplyKeyboardMarkup{Rows: []tg.KeyboardButtonRow{{Buttons: []tg.KeyboardButton{&tg.KeyboardButton{Text: "Click Me"}}}}},
}