4baac3178e
Add PHP, Lua language tag to Code area
1.8 KiB
1.8 KiB
title | description | image |
---|---|---|
payments.paymentReceipt | payments_paymentReceipt attributes, type and example | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
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, 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}}