InputBotInlineMessageMediaInvoice

class pyrogram.raw.types.InputBotInlineMessageMediaInvoice

An invoice

Constructor of InputBotInlineMessage.

Details:
  • Layer: 227

  • 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
├── title → string
├── description → string
├── photo → InputWebDocument (optional)
│ └── InputWebDocument
│ ├── url → string
│ ├── size → int
│ ├── mime_type → string
│ └── attributes → Vector < DocumentAttribute >
│ │ ├── w → int
│ │ └── h → int
│ │ ├── mask → true (optional)
│ │ ├── alt → string
│ │ ├── stickerset → InputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ └── mask_coords → MaskCoords (optional)
│ │ └── MaskCoords
│ │ ├── round_message → true (optional)
│ │ ├── supports_streaming → true (optional)
│ │ ├── nosound → true (optional)
│ │ ├── duration → double
│ │ ├── w → int
│ │ ├── h → int
│ │ ├── preload_prefix_size → int (optional)
│ │ ├── video_start_ts → double (optional)
│ │ └── video_codec → string (optional)
│ │ ├── voice → true (optional)
│ │ ├── duration → int
│ │ ├── title → string (optional)
│ │ ├── performer → string (optional)
│ │ └── waveform → bytes (optional)
│ │ └── file_name → string
│ ├── free → true (optional)
│ ├── text_color → true (optional)
│ ├── alt → string
│ └── stickerset → InputStickerSet
│ ├── InputStickerSetEmpty
│ ├── InputStickerSetID
│ ├── InputStickerSetDice
├── invoice → Invoice
│ └── Invoice
│ ├── test → true (optional)
│ ├── name_requested → true (optional)
│ ├── phone_requested → true (optional)
│ ├── email_requested → true (optional)
│ ├── shipping_address_requested → true (optional)
│ ├── flexible → true (optional)
│ ├── phone_to_provider → true (optional)
│ ├── email_to_provider → true (optional)
│ ├── recurring → true (optional)
│ ├── currency → string
│ ├── prices → Vector < LabeledPrice >
│ │ └── LabeledPrice
│ │ ├── label → string
│ │ └── amount → long
│ ├── max_tip_amount → long (optional)
│ ├── suggested_tip_amounts → Vector < long > (optional)
│ ├── terms_url → string (optional)
│ └── subscription_period → int (optional)
├── payload → bytes
├── provider → string
├── provider_data → DataJSON
│ └── DataJSON
│ └── data → string
└── reply_markup → ReplyMarkup (optional)
│ └── selective → true (optional)
│ ├── single_use → true (optional)
│ ├── selective → true (optional)
│ └── placeholder → string (optional)
│ ├── resize → true (optional)
│ ├── single_use → true (optional)
│ ├── selective → true (optional)
│ ├── persistent → true (optional)
│ ├── rows → Vector < KeyboardButtonRow >
│ │ └── KeyboardButtonRow
│ │ └── buttons → Vector < KeyboardButton >
│ │ ├── KeyboardButton
│ │ ├── KeyboardButtonUrl
│ │ ├── KeyboardButtonCallback
│ │ ├── KeyboardButtonRequestPhone
│ │ ├── KeyboardButtonSwitchInline
│ │ ├── KeyboardButtonGame
│ │ ├── KeyboardButtonBuy
│ │ ├── KeyboardButtonUrlAuth
│ │ ├── InputKeyboardButtonUrlAuth
│ │ ├── KeyboardButtonRequestPoll
│ │ ├── KeyboardButtonUserProfile
│ │ ├── KeyboardButtonWebView
│ │ ├── KeyboardButtonSimpleWebView
│ │ ├── KeyboardButtonRequestPeer
│ │ └── KeyboardButtonCopy
│ └── placeholder → string (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"),
)