mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-11 11:19:37 +01:00
1.8 KiB
1.8 KiB
title | description |
---|---|
payments.paymentReceipt | payments_paymentReceipt attributes, type and example |
Constructor: payments.paymentReceipt
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}}