payments.paymentReceipt
Receipt
type tg.PaymentsPaymentReceipt struct { /* ... */ }
Implements payments.PaymentReceipt.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Date | int | yes | Date of generation |
BotID | int64 | yes | Bot ID |
ProviderID | int64 | yes | Provider ID |
Title | string | yes | Title |
Description | string | yes | Description |
Photo | WebDocumentClass | — | Photo |
Invoice | Invoice | yes | Invoice |
Info | PaymentRequestedInfo | — | Info |
Shipping | ShippingOption | — | Selected shipping option |
TipAmount | int64 | — | Tipped amount |
Currency | string | yes | Three-letter ISO 4217 currency code |
TotalAmount | int64 | yes | Total 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). |
CredentialsTitle | string | yes | Payment credential name |
Users | []UserClass | yes | Users |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.paymentReceipt#70c4fe03