Skip to main content

messageMediaInvoice

Invoice

type tg.MessageMediaInvoice struct { /* ... */ }

Implements MessageMedia.

Fields

NameTypeRequiredDescription
ShippingAddressRequestedboolWhether the shipping address was requested
TestboolWhether this is an example invoice
TitlestringyesProduct name, 1-32 characters
DescriptionstringyesProduct description, 1-255 characters
PhotoWebDocumentClassURL 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.
ReceiptMsgIDintMessage 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
CurrencystringyesThree-letter ISO 4217 currency code, or XTR for Telegram Stars.
TotalAmountint64yesTotal 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).
StartParamstringyesUnique bot deep-linking parameter that can be used to generate this invoice
ExtendedMediaMessageExtendedMediaClassDeprecated

References