MadelineProtoDocs/docs/API_docs/constructors/inputBotInlineMessageMediaInvoice.md
2024-05-01 14:53:46 +02:00

1.8 KiB

title description nav_exclude image
inputBotInlineMessageMediaInvoice An invoice true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputBotInlineMessageMediaInvoice

Back to constructors index

An invoice

Attributes:

Name Type Required Description
title string Yes Product name, 1-32 characters
description string Yes Product description, 1-255 characters
photo InputWebDocument Optional Invoice photo
invoice Invoice Yes The 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
provider_data DataJSON Yes A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.
reply_markup ReplyMarkup Optional Inline keyboard

Type: InputBotInlineMessage

Usage of reply_markup

You can provide bot API reply_markup objects here.

Example:

$inputBotInlineMessageMediaInvoice = ['_' => 'inputBotInlineMessageMediaInvoice', 'title' => 'string', 'description' => 'string', 'photo' => InputWebDocument, 'invoice' => Invoice, 'payload' => 'bytes', 'provider' => 'string', 'provider_data' => DataJSON, 'reply_markup' => ReplyMarkup];