MadelineProto/docs/API_docs/constructors/invoice.md
Daniil Gentili d4a5153b4d Update docs
2017-12-10 10:33:03 +00:00

1.7 KiB

title description
invoice invoice attributes, type and example

Constructor: invoice

Back to constructors index

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
phone_to_provider Bool Optional
email_to_provider 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, 'phone_to_provider' => Bool, 'email_to_provider' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice]];

PWRTelegram json-encoded version:

{"_": "invoice", "test": Bool, "name_requested": Bool, "phone_requested": Bool, "email_requested": Bool, "shipping_address_requested": Bool, "flexible": Bool, "phone_to_provider": Bool, "email_to_provider": 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, phone_to_provider=Bool, email_to_provider=Bool, currency='string', prices={LabeledPrice}}