payments.SendStarGiftOffer

class pyrogram.raw.functions.payments.SendStarGiftOffer

{schema}

Details:
  • Layer: 223

  • ID: 8FB86B41

Parameters:
  • peer (InputPeer)

  • slug (str)

  • price (StarsAmount)

  • duration (int 32-bit)

  • random_id (int 64-bit)

  • allow_paid_stars (int 64-bit, optional)

Returns:

Updates

TL Schema

payments.sendStarGiftOffer#8fb86b41
flags:#
peer:InputPeer
slug:string
price:StarsAmount
duration:int
random_id:long
allow_paid_stars:flags.0?long

= Updates

Parameter Tree

SendStarGiftOffer
├── 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
├── slugstring
├── priceStarsAmount
│ ├── StarsAmount
│ │ ├── amountlong
│ │ └── nanosint
│ └── StarsTonAmount
│ └── amountlong
├── durationint
├── random_idlong
└── allow_paid_starslong (optional)

Example

await app.invoke(
    SendStarGiftOffer(
        peer=await app.resolve_peer(chat_id),
        slug="text",
        price=StarsAmount(
            amount=0,
            nanos=0
        ),
        duration=0,
        random_id=app.rnd_id(),
        allow_paid_stars=0,
    )
)