InputInvoiceStarGiftPrepaidUpgrade

class pyrogram.raw.types.InputInvoiceStarGiftPrepaidUpgrade

Separately prepay for the upgrade of a gift ».

Constructor of InputInvoice.

Details:
  • Layer: 223

  • ID: 9A0B48B8

Parameters:
  • peer (InputPeer) – The peer that owns the gift.

  • hash (str) – The upgrade hash from messageActionStarGift.prepaid_upgrade_hash or savedStarGift.prepaid_upgrade_hash.

TL Schema

inputInvoiceStarGiftPrepaidUpgrade#9a0b48b8
peer:InputPeer
hash:string

= InputInvoice

Parameter Tree

InputInvoiceStarGiftPrepaidUpgrade
├── 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
└── hashstring

Example

InputInvoiceStarGiftPrepaidUpgrade(
    peer=await app.resolve_peer(chat_id),
    hash="text",
)