MadelineProto/docs/API_docs/constructors/payments_paymentReceipt.md
2017-07-23 16:11:02 +02:00

1.7 KiB

title description
payments.paymentReceipt payments_paymentReceipt attributes, type and example

Constructor: payments.paymentReceipt

Back to constructors index

Attributes:

Name Type Required
date int Yes
bot_id int Yes
invoice Invoice Yes
provider_id int Yes
info PaymentRequestedInfo Optional
shipping ShippingOption Optional
currency string Yes
total_amount long Yes
credentials_title string Yes
users Array of User Yes

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], ];

PWRTelegram json-encoded version:

{"_":"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"]}

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