Constructor: payments.paymentReceipt

Back to constructors index



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


$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}}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.