Skip to main content

payments.paymentReceipt

Receipt

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

Implements payments.PaymentReceipt.

Fields

NameTypeRequiredDescription
DateintyesDate of generation
BotIDint64yesBot ID
ProviderIDint64yesProvider ID
TitlestringyesTitle
DescriptionstringyesDescription
PhotoWebDocumentClassPhoto
InvoiceInvoiceyesInvoice
InfoPaymentRequestedInfoInfo
ShippingShippingOptionSelected shipping option
TipAmountint64Tipped amount
CurrencystringyesThree-letter ISO 4217 currency code
TotalAmountint64yesTotal amount 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).
CredentialsTitlestringyesPayment credential name
Users[]UserClassyesUsers

References