InputInvoiceStarGiftTransfer

class pyrogram.raw.types.InputInvoiceStarGiftTransfer

Used to pay to transfer a collectible gift to another peer, see the gifts » documentation for more info.

Constructor of InputInvoice.

Details:
  • Layer: 223

  • ID: 4A5F5BD9

Parameters:

TL Schema

inputInvoiceStarGiftTransfer#4a5f5bd9
stargift:InputSavedStarGift
to_id:InputPeer

= InputInvoice

Parameter Tree

InputInvoiceStarGiftTransfer
├── stargiftInputSavedStarGift
│ │ └── msg_idint
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── saved_idlong
│ └── 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

InputInvoiceStarGiftTransfer(
    stargift=InputSavedStarGiftUser(msg_id=0),
    to_id=await app.resolve_peer(chat_id),
)