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: 227

  • 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
├── ton → true (optional)
├── slug → string
└── to_id → InputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── channel_id → long
│ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example

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