Invoice

class pyrogram.raw.types.Invoice

Invoice.

Constructor type of Invoice.

Details
  • Layer: 126

  • ID: 0xc30aa358

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

  • prices (List of LabeledPrice) – Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.).

  • test (bool, optional) – Test invoice.

  • name_requested (bool, optional) – Set this flag if you require the user’s full name to complete the order.

  • phone_requested (bool, optional) – Set this flag if you require the user’s phone number to complete the order.

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

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

  • flexible (bool, optional) – Set this flag if the final price depends on the shipping method.

  • phone_to_provider (bool, optional) – Set this flag if user’s phone number should be sent to provider.

  • email_to_provider (bool, optional) – Set this flag if user’s email address should be sent to provider.