Link Search Menu Expand Document

Constructor: botInlineMessageMediaInvoice

Back to constructors index

Send an invoice

Attributes:

NameTypeRequiredDescription
shipping_address_requestedBoolOptionalSet this flag if you require the user’s shipping address to complete the order
testBoolOptionalTest invoice
titlestringYesProduct name, 1-32 characters
descriptionstringYesProduct description, 1-255 characters
photoWebDocumentOptionalProduct photo
currencystringYesThree-letter ISO 4217 currency code
total_amountlongYesTotal price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
reply_markupReplyMarkupOptionalInline keyboard

Type: BotInlineMessage

Usage of reply_markup

You can provide bot API reply_markup objects here.

Example:

$botInlineMessageMediaInvoice = ['_' => 'botInlineMessageMediaInvoice', 'shipping_address_requested' => Bool, 'test' => Bool, 'title' => 'string', 'description' => 'string', 'photo' => WebDocument, 'currency' => 'string', 'total_amount' => long, 'reply_markup' => ReplyMarkup];