MadelineProtoDocs/old_docs/API_docs_v35/constructors/payments.paymentReceipt.md
2020-06-16 17:50:25 +02:00

2.1 KiB

title description image redirect_from
payments.paymentReceipt Receipt https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/payments_paymentReceipt.html

Constructor: payments.paymentReceipt

Back to constructors index

Receipt

Attributes:

Name Type Required Description
date int Yes Date of generation
bot_id int Yes Bot ID
invoice Invoice Yes Invoice
provider_id int Yes Provider ID
info PaymentRequestedInfo Optional Info
shipping ShippingOption Optional Selected shipping option
currency string Yes Three-letter ISO 4217 currency code
total_amount long 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).
credentials_title string Yes Payment credential name
users Array of User Yes Users

Type: payments.PaymentReceipt

Example:

$payments.paymentReceipt = ['_' => 'payments.paymentReceipt', 'date' => int, 'bot_id' => int, 'invoice' => Invoice, 'provider_id' => int, 'info' => PaymentRequestedInfo, 'shipping' => ShippingOption, 'currency' => 'string', 'total_amount' => long, 'credentials_title' => 'string', 'users' => [User, User]];

Or, if you're into Lua:

payments.paymentReceipt={_='payments.paymentReceipt', date=int, bot_id=int, invoice=Invoice, provider_id=int, info=PaymentRequestedInfo, shipping=ShippingOption, currency='string', total_amount=long, credentials_title='string', users={User}}