BotInlineMessageMediaInvoice#

class pyrogram.raw.types.BotInlineMessageMediaInvoice#

Send an invoice.

Constructor of BotInlineMessage.

Details:
  • Layer: 158

  • ID: 354A9B09

Parameters:
  • title (str) – Product name, 1-32 characters.

  • description (str) – Product description, 1-255 characters.

  • currency (str) – Three-letter ISO 4217 currency code.

  • total_amount (int 64-bit) – Total 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).

  • shipping_address_requested (bool, optional) – Set this flag if you require the user’s shipping address to complete the order.

  • test (bool, optional) – Test invoice.

  • photo (WebDocument, optional) – Product photo.

  • reply_markup (ReplyMarkup, optional) – Inline keyboard.