payments.SendStarGiftOffer
- class pyrogram.raw.functions.payments.SendStarGiftOffer
{schema}
- Details:
Layer:
223ID:
8FB86B41
- Parameters:
peer (
InputPeer)slug (
str)price (
StarsAmount)duration (
int32-bit)random_id (
int64-bit)allow_paid_stars (
int64-bit, optional)
- Returns:
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
├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long├── slug →
string├── price →
StarsAmount│ ├──
StarsAmount│ │ ├── amount →
long│ │ └── nanos →
int│ └──
StarsTonAmount│ └── amount →
long├── duration →
int├── random_id →
long└── allow_paid_stars →
long (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,
)
)