Link Search Menu Expand Document

Constructor: inputMediaInvoice

Back to constructors index

Generated invoice of a bot payment

Attributes:

NameTypeRequiredDescription
titlestringYesProduct name, 1-32 characters
descriptionstringYesProduct description, 1-255 characters
photoInputWebDocumentOptionalURL 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.
invoiceInvoiceYesThe actual invoice
payloadbytesYesBot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
providerstringYesPayments provider token, obtained via Botfather
provider_dataDataJSONYesJSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.
start_paramstringOptionalUnique bot deep links start parameter. If present, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice.
extended_mediaMessageMedia, Message, Update or InputMediaOptionalExtended media

Type: InputMedia

Example:

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