InputInvoiceStarGiftResale

class pyrogram.raw.types.InputInvoiceStarGiftResale

Used to buy a collectible gift currently up on resale, see here for more info on the full flow.

Constructor of InputInvoice.

Details:
  • Layer: 223

  • ID: C39F5324

Parameters:
  • slug (str) – Slug of the gift to buy.

  • to_id (InputPeer) – The receiver of the gift.

  • ton (bool, optional) – Buy the gift using TON.

TL Schema

inputInvoiceStarGiftResale#c39f5324
flags:#
ton:flags.0?true
slug:string
to_id:InputPeer

= InputInvoice

Parameter Tree

InputInvoiceStarGiftResale
├── tontrue (optional)
├── slugstring
└── to_idInputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

InputInvoiceStarGiftResale(
    slug="text",
    to_id=await app.resolve_peer(chat_id),
)