MadelineProtoDocs/old_docs/API_docs_v68/constructors/invoice.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.7 KiB

title description image
invoice Invoice https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: invoice

Back to constructors index

Invoice

Attributes:

Name Type Required Description
test Bool Optional Test?
name_requested Bool Optional Name requested?
phone_requested Bool Optional Phone requested?
email_requested Bool Optional Email requested?
shipping_address_requested Bool Optional Shipping address requested?
flexible Bool Optional Flexible?
currency string Yes Currency
prices Array of LabeledPrice Yes Prices

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