Link Search Menu Expand Document

Constructor: inputBotInlineMessageMediaInvoice

Back to constructors index

An invoice

Attributes:

NameTypeRequiredDescription
titlestringYesProduct name, 1-32 characters
descriptionstringYesProduct description, 1-255 characters
photoInputWebDocumentOptionalInvoice photo
invoiceInvoiceYesThe 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_dataDataJSONYesA 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_markupReplyMarkupOptionalInline 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];