UpgradedGift

class pyrogram.types.UpgradedGift

Describes an upgraded gift that can be gifted to another user or transferred to TON blockchain as an NFT.

Parameters:
  • id (``int``) – Unique identifier of the gift.

  • title (``str``) – The title of the upgraded gift.

  • name (``str``) – Unique name of the upgraded gift.

  • number (``int``) – Unique number of the upgraded gift among gifts upgraded from the same gift.

  • total_upgraded_count (``int``) – Total number of gifts that were upgraded from the same gift.

  • max_upgraded_count (``int``) – The maximum number of gifts that can be upgraded from the same gift.

  • owner_id (:obj:`~pyrogram.types.User`, *optional*) – User identifier of the user or the chat that owns the upgraded gift; may be None if unknown.

  • owner_address (``str``, *optional*) – Address of the gift NFT owner in TON blockchain.

  • owner_name (``str``, *optional*) – Name of the owner for the case when owner identifier and address aren’t known.

  • gift_address (``str``, *optional*) – Address of the gift NFT in TON blockchain.

  • link (``str``, *property*) – The link is a link to an upgraded gift.