MessageMediaInvoice

class pyrogram.raw.types.MessageMediaInvoice

Invoice

Constructor of MessageMedia.

Details:
  • Layer: 194

  • ID: F6A548D3

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).

  • start_param (str) – Unique bot deep-linking parameter that can be used to generate this invoice

  • shipping_address_requested (bool, optional) – Whether the shipping address was requested

  • test (bool, optional) – Whether this is an example invoice

  • photo (WebDocument, optional) – URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.

  • receipt_msg_id (int 32-bit, optional) – Message ID of receipt: if set, clients should change the text of the first keyboardButtonBuy button always attached to the message to a localized version of the word Receipt

  • extended_media (MessageExtendedMedia, optional) – Extended media

Functions:

This object can be returned by 3 functions.

messages.GetWebPagePreview

Get preview of webpage

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat)

messages.UploadImportedMedia

Upload a media file associated with an imported chat, click here for more info ».