payments.SendStarGiftOffer#

class pyrogram.raw.functions.payments.SendStarGiftOffer#

Send an offer to purchase a collectible gift, see here for the full flow.

Usable by Users Bots
Details:
  • Layer: 225

  • ID: 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 (int 32-bit) – Duration of the offer, in seconds: must be one of 21600, 43200, 86400, 129600, 172800, or 259200; can also be 120 in test mode.

  • random_id (int 64-bit) – Random 64-bit identifier used to avoid sending the same offer twice in case of network issues.

  • allow_paid_stars (int 64-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 in price).

Returns:

Updates