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

1.5 KiB

title description
inputMediaInvoice inputMediaInvoice attributes, type and example

Constructor: inputMediaInvoice

Back to constructors index

Attributes:

Name Type Required
title string Yes
description string Yes
photo InputWebDocument Optional
invoice Invoice Yes
payload bytes Yes
provider string Yes
provider_data DataJSON Yes
start_param string Yes

Type: InputMedia

Example:

$inputMediaInvoice = ['_' => 'inputMediaInvoice', 'title' => 'string', 'description' => 'string', 'photo' => InputWebDocument, 'invoice' => Invoice, 'payload' => 'bytes', 'provider' => 'string', 'provider_data' => DataJSON, 'start_param' => 'string'];

PWRTelegram json-encoded version:

{"_": "inputMediaInvoice", "title": "string", "description": "string", "photo": InputWebDocument, "invoice": Invoice, "payload": "bytes", "provider": "string", "provider_data": DataJSON, "start_param": "string"}

Or, if you're into Lua:

inputMediaInvoice={_='inputMediaInvoice', title='string', description='string', photo=InputWebDocument, invoice=Invoice, payload='bytes', provider='string', provider_data=DataJSON, start_param='string'}