4baac3178e
Add PHP, Lua language tag to Code area
1.5 KiB
1.5 KiB
title | description | image |
---|---|---|
inputMediaInvoice | inputMediaInvoice attributes, type and example | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: inputMediaInvoice
Attributes:
Name | Type | Required |
---|---|---|
title | string | Yes |
description | string | Yes |
photo | InputWebDocument | Optional |
invoice | Invoice | Yes |
payload | bytes | Yes |
provider | string | Yes |
start_param | string | Yes |
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'}