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

1.7 KiB

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

Constructor: inputMediaInvoice

Back to constructors index

Media invoice

Attributes:

Name Type Required Description
title string Yes Title
description string Yes Description
photo InputWebDocument Optional Photo
invoice Invoice Yes Invoice
payload bytes Yes Payload
provider string Yes Provider
provider_data DataJSON Yes Provider data
start_param string Yes Start param

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", "bytes":"base64 encoded 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'}