InputBotInlineMessageMediaInvoice

class pyrogram.raw.types.InputBotInlineMessageMediaInvoice

An invoice

Constructor of InputBotInlineMessage.

Details:
  • Layer: 223

  • ID: D7E78225

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

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

  • invoice (Invoice) – The invoice

  • payload (bytes) – Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.

  • provider (str) – Payments provider token, obtained via Botfather

  • provider_data (DataJSON) – A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.

  • photo (InputWebDocument, optional) – Invoice photo

  • reply_markup (ReplyMarkup, optional) – Inline keyboard

TL Schema

inputBotInlineMessageMediaInvoice#d7e78225
flags:#
title:string
description:string
photo:flags.0?InputWebDocument
invoice:Invoice
payload:bytes
provider:string
provider_data:DataJSON
reply_markup:flags.2?ReplyMarkup

= InputBotInlineMessage

Parameter Tree

InputBotInlineMessageMediaInvoice
├── titlestring
├── descriptionstring
├── photoInputWebDocument (optional)
│ └── InputWebDocument
│ ├── urlstring
│ ├── sizeint
│ ├── mime_typestring
│ └── attributesVector < DocumentAttribute >
│ │ ├── wint
│ │ └── hint
│ │ ├── masktrue (optional)
│ │ ├── altstring
│ │ ├── stickersetInputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ └── mask_coordsMaskCoords (optional)
│ │ └── MaskCoords
│ │ ├── round_messagetrue (optional)
│ │ ├── supports_streamingtrue (optional)
│ │ ├── nosoundtrue (optional)
│ │ ├── durationdouble
│ │ ├── wint
│ │ ├── hint
│ │ ├── preload_prefix_sizeint (optional)
│ │ ├── video_start_tsdouble (optional)
│ │ └── video_codecstring (optional)
│ │ ├── voicetrue (optional)
│ │ ├── durationint
│ │ ├── titlestring (optional)
│ │ ├── performerstring (optional)
│ │ └── waveformbytes (optional)
│ │ └── file_namestring
│ ├── freetrue (optional)
│ ├── text_colortrue (optional)
│ ├── altstring
│ └── stickersetInputStickerSet
│ ├── InputStickerSetEmpty
│ ├── InputStickerSetID
│ ├── InputStickerSetDice
├── invoiceInvoice
│ └── Invoice
│ ├── testtrue (optional)
│ ├── name_requestedtrue (optional)
│ ├── phone_requestedtrue (optional)
│ ├── email_requestedtrue (optional)
│ ├── shipping_address_requestedtrue (optional)
│ ├── flexibletrue (optional)
│ ├── phone_to_providertrue (optional)
│ ├── email_to_providertrue (optional)
│ ├── recurringtrue (optional)
│ ├── currencystring
│ ├── pricesVector < LabeledPrice >
│ │ └── LabeledPrice
│ │ ├── labelstring
│ │ └── amountlong
│ ├── max_tip_amountlong (optional)
│ ├── suggested_tip_amountsVector < long > (optional)
│ ├── terms_urlstring (optional)
│ └── subscription_periodint (optional)
├── payloadbytes
├── providerstring
├── provider_dataDataJSON
│ └── DataJSON
│ └── datastring
└── reply_markupReplyMarkup (optional)
│ └── selectivetrue (optional)
│ ├── single_usetrue (optional)
│ ├── selectivetrue (optional)
│ └── placeholderstring (optional)
│ ├── resizetrue (optional)
│ ├── single_usetrue (optional)
│ ├── selectivetrue (optional)
│ ├── persistenttrue (optional)
│ ├── rowsVector < KeyboardButtonRow >
│ │ └── KeyboardButtonRow
│ │ └── buttonsVector < KeyboardButton >
│ │ ├── KeyboardButton
│ │ ├── KeyboardButtonUrl
│ │ ├── KeyboardButtonCallback
│ │ ├── KeyboardButtonRequestPhone
│ │ ├── KeyboardButtonSwitchInline
│ │ ├── KeyboardButtonGame
│ │ ├── KeyboardButtonBuy
│ │ ├── KeyboardButtonUrlAuth
│ │ ├── InputKeyboardButtonUrlAuth
│ │ ├── KeyboardButtonRequestPoll
│ │ ├── KeyboardButtonUserProfile
│ │ ├── KeyboardButtonWebView
│ │ ├── KeyboardButtonSimpleWebView
│ │ ├── KeyboardButtonRequestPeer
│ │ └── KeyboardButtonCopy
│ └── placeholderstring (optional)

Example

InputBotInlineMessageMediaInvoice(
    title="text",
    description="text",
    invoice=Invoice(
        currency="text",
        prices=[
                LabeledPrice(
                    label="text",
                    amount=0
                )
            ]
    ),
    payload=b"data",
    provider="text",
    provider_data=DataJSON(data="text"),
)