Skip to main content

botInlineMessageMediaInvoice

Send an invoice

type tg.BotInlineMessageMediaInvoice struct { /* ... */ }

Implements BotInlineMessage.

Fields

NameTypeRequiredDescription
ShippingAddressRequestedboolSet this flag if you require the user's shipping address to complete the order
TestboolTest invoice
TitlestringyesProduct name, 1-32 characters
DescriptionstringyesProduct description, 1-255 characters
PhotoWebDocumentClassProduct photo
CurrencystringyesThree-letter ISO 4217 currency code, or XTR for Telegram Stars.
TotalAmountint64yesTotal 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).
ReplyMarkupReplyMarkupClassInline keyboard

References