botInlineMessageMediaInvoice
Send an invoice
type tg.BotInlineMessageMediaInvoice struct { /* ... */ }
Implements BotInlineMessage.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
ShippingAddressRequested | bool | — | Set this flag if you require the user's shipping address to complete the order |
Test | bool | — | Test invoice |
Title | string | yes | Product name, 1-32 characters |
Description | string | yes | Product description, 1-255 characters |
Photo | WebDocumentClass | — | Product photo |
Currency | string | yes | Three-letter ISO 4217 currency code, or XTR for Telegram Stars. |
TotalAmount | int64 | yes | Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). |
ReplyMarkup | ReplyMarkupClass | — | Inline keyboard |
References
- Official documentation
- Generated Go reference
- TL definition:
botInlineMessageMediaInvoice#354a9b09