4baac3178e
Add PHP, Lua language tag to Code area
1.5 KiB
1.5 KiB
title | description | image |
---|---|---|
invoice | invoice attributes, type and example | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: invoice
Attributes:
Name | Type | Required |
---|---|---|
test | Bool | Optional |
name_requested | Bool | Optional |
phone_requested | Bool | Optional |
email_requested | Bool | Optional |
shipping_address_requested | Bool | Optional |
flexible | Bool | Optional |
currency | string | Yes |
prices | Array of LabeledPrice | Yes |
Type: Invoice
Example:
$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice, LabeledPrice]];
PWRTelegram json-encoded version:
{"_": "invoice", "test": Bool, "name_requested": Bool, "phone_requested": Bool, "email_requested": Bool, "shipping_address_requested": Bool, "flexible": Bool, "currency": "string", "prices": [LabeledPrice]}
Or, if you're into Lua:
invoice={_='invoice', test=Bool, name_requested=Bool, phone_requested=Bool, email_requested=Bool, shipping_address_requested=Bool, flexible=Bool, currency='string', prices={LabeledPrice}}