messageMediaInvoice
Invoice
type tg.MessageMediaInvoice struct { /* ... */ }
Implements MessageMedia.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
ShippingAddressRequested | bool | — | Whether the shipping address was requested |
Test | bool | — | Whether this is an example invoice |
Title | string | yes | Product name, 1-32 characters |
Description | string | yes | Product description, 1-255 characters |
Photo | WebDocumentClass | — | URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for. |
ReceiptMsgID | int | — | Message ID of receipt: if set, clients should change the text of the first keyboardButtonBuy button always attached to the message to a localized version of the word Receipt |
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). |
StartParam | string | yes | Unique bot deep-linking parameter that can be used to generate this invoice |
ExtendedMedia | MessageExtendedMediaClass | — | Deprecated |
References
- Official documentation
- Generated Go reference
- TL definition:
messageMediaInvoice#f6a548d3