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

1.5 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
start_param string Yes Start param

Type: InputMedia

Example:

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

PWRTelegram json-encoded version:

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

Or, if you're into Lua:

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