Layer 220
InputBotInlineMessageMediaInvoice
An invoice
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 |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| 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 |
Returns
InputBotInlineMessageGogram Example
// Creating InputBotInlineMessageMediaInvoice constructor obj := &tg.InputBotInlineMessageMediaInvoice{ Title: "...", Description: "...", Invoice: &tg.Invoice{}, Payload: []byte{}, Provider: "...", ProviderData: &tg.DataJson{}, // Optional fields: // Photo: &tg.InputWebDocument{}, // ReplyMarkup: &tg.ReplyKeyboardMarkup{Rows: []tg.KeyboardButtonRow{}}, }