InputInvoiceMessage

class pyrogram.raw.types.InputInvoiceMessage

An invoice contained in a messageMediaInvoice message or paid media ».

Constructor of InputInvoice.

Details:
  • Layer: 223

  • ID: C5B56859

Parameters:
  • peer (InputPeer) – Chat where the invoice/paid media was sent

  • msg_id (int 32-bit) – Message ID

TL Schema

inputInvoiceMessage#c5b56859
peer:InputPeer
msg_id:int

= InputInvoice

Parameter Tree

InputInvoiceMessage
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── msg_idint

Example

InputInvoiceMessage(
    peer=await app.resolve_peer(chat_id),
    msg_id=0,
)