payments.SendStarGiftOffer¶
- class pyrogram.raw.functions.payments.SendStarGiftOffer[source]¶
Send an offer to purchase a collectible gift », see here » for the full flow.
Usable by Users Bots- Details:
Layer:
229ID:
8FB86B41
- Parameters:
peer (
InputPeer) – Owner of the collectible gift: equal to starGiftUnique.owner_id.slug (
str) – Identifier of the collectible gift: equal to starGiftUnique.slug.price (
StarsAmount) – Offer price, in stars or TON.duration (
int32-bit) – Duration of the offer, in seconds: must be one of21600,43200,86400,129600,172800, or259200; can also be120in test mode.random_id (
int64-bit) – Random 64-bit identifier used to avoid sending the same offer twice in case of network issues. See here » for more info on random ID deduplication and updateMessageID mapping.allow_paid_stars (
int64-bit, optional) – If the destination peer has paid messages » enabled, specifies the amount of Telegram Stars the sending user has agreed to pay in order to send the offer (in addition to the amount for the offer itself, contained inprice).
- Returns: