1.8 KiB
1.8 KiB
title | description | image |
---|---|---|
inputMediaInvoice | Generated invoice of a [bot payment](https://core.telegram.org/bots/payments) | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: inputMediaInvoice
Generated invoice of a bot payment
Attributes:
Name | Type | Required | Description |
---|---|---|---|
title | string | Yes | Product name, 1-32 characters |
description | string | Yes | Product description, 1-255 characters |
photo | InputWebDocument | Optional | URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for. |
invoice | Invoice | Yes | The actual invoice |
payload | bytes | Yes | Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. |
provider | string | Yes | Payments provider token, obtained via Botfather |
start_param | string | Yes | Start parameter |
Type: InputMedia
Example:
$inputMediaInvoice = ['_' => 'inputMediaInvoice', 'title' => 'string', 'description' => 'string', 'photo' => InputWebDocument, 'invoice' => Invoice, 'payload' => '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'}