StarGift#

class pyrogram.raw.types.StarGift#

Represents a star gift, see here for more info.

Constructor of StarGift.

Details:
  • Layer: 214

  • ID: 80AC53C3

Parameters:
  • id (int 64-bit) – Identifier of the gift

  • sticker (Document) – Sticker that represents the gift.

  • stars (int 64-bit) – Price of the gift in Telegram Stars.

  • convert_stars (int 64-bit) – The receiver of this gift may convert it to this many Telegram Stars, instead of displaying it on their profile page.convert_stars will be equal to stars only if the gift was bought using recently bought Telegram Stars, otherwise it will be less than stars.

  • limited (bool, optional) – Whether this is a limited-supply gift.

  • sold_out (bool, optional) – Whether this gift sold out and cannot be bought anymore.

  • birthday (bool, optional) – Whether this is a birthday-themed gift

  • require_premium (bool, optional) – N/A

  • limited_per_user (bool, optional) – N/A

  • availability_remains (int 32-bit, optional) – For limited-supply gifts: the remaining number of gifts that may be bought.

  • availability_total (int 32-bit, optional) – For limited-supply gifts: the total number of gifts that was available in the initial supply.

  • availability_resale (int 64-bit, optional) – The total number of (upgraded to collectibles) gifts of this type currently on resale

  • first_sale_date (int 32-bit, optional) – For sold out gifts only: when was the gift first bought.

  • last_sale_date (int 32-bit, optional) – For sold out gifts only: when was the gift last bought.

  • upgrade_stars (int 64-bit, optional) – The number of Telegram Stars the user can pay to convert the gift into a collectible gift ».

  • resell_min_stars (int 64-bit, optional) – The minimum price in Stars for gifts of this type currently on resale.

  • title (str, optional) – Title of the gift

  • released_by (Peer, optional) – This gift was released by the specified peer.

  • per_user_total (int 32-bit, optional) – N/A

  • per_user_remains (int 32-bit, optional) – N/A

  • locked_until_date (int 32-bit, optional) – N/A