payments.UniqueStarGiftValueInfo

class pyrogram.raw.types.payments.UniqueStarGiftValueInfo

Information about the value of a collectible gift ».

Constructor of UniqueStarGiftValueInfo.

Details:
  • Layer: 223

  • ID: 512FE446

Parameters:
  • currency (str) – Three-letter ISO 4217 currency code (a localized fiat currency used to represent prices and price estimations in this constructor).

  • value (int 64-bit) – Estimated value of the gift, in the smallest unit of the currency specified in currency.

  • initial_sale_date (int 32-bit) – Initial purchase date of the gift.

  • initial_sale_stars (int 64-bit) – Initial purchase price in Stars.

  • initial_sale_price (int 64-bit) – Initial purchase price in the smallest unit of the currency specified in currency (automatically converted from initial_sale_stars).

  • last_sale_on_fragment (bool, optional) – If set, the last sale was completed on Fragment.

  • value_is_average (bool, optional) – If set, the value is calculated from the average value of sold gifts of the same type. Otherwise, it is based on the sale price of the gift.

  • last_sale_date (int 32-bit, optional) – Last resale date of the gift.

  • last_sale_price (int 64-bit, optional) – Last resale price, in the smallest unit of the currency specified in currency.

  • floor_price (int 64-bit, optional) – The current minimum price of collectible gifts of the same type, in the smallest unit of the currency specified in currency.

  • average_price (int 64-bit, optional) – The current average sale price of collectible gifts of the same type, in the smallest unit of the currency specified in currency.

  • listed_count (int 32-bit, optional) – Number of gifts of the same type currently being resold on Telegram.

  • fragment_listed_count (int 32-bit, optional) – Number of gifts of the same type currently being resold on fragment.

  • fragment_listed_url (str, optional) – Fragment link to the listing of gifts of the same type currently being resold on fragment.

Functions:

This object can be returned by 1 function.

payments.GetUniqueStarGiftValueInfo

Get information about the value of a collectible gift ».

TL Schema

payments.uniqueStarGiftValueInfo#512fe446
flags:#
last_sale_on_fragment:flags.1?true
value_is_average:flags.6?true
currency:string
value:long
initial_sale_date:int
initial_sale_stars:long
initial_sale_price:long
last_sale_date:flags.0?int
last_sale_price:flags.0?long
floor_price:flags.2?long
average_price:flags.3?long
listed_count:flags.4?int
fragment_listed_count:flags.5?int
fragment_listed_url:flags.5?string

= payments.UniqueStarGiftValueInfo

Parameter Tree

UniqueStarGiftValueInfo
├── last_sale_on_fragmenttrue (optional)
├── value_is_averagetrue (optional)
├── currencystring
├── valuelong
├── initial_sale_dateint
├── initial_sale_starslong
├── initial_sale_pricelong
├── last_sale_dateint (optional)
├── last_sale_pricelong (optional)
├── floor_pricelong (optional)
├── average_pricelong (optional)
├── listed_countint (optional)
├── fragment_listed_countint (optional)
└── fragment_listed_urlstring (optional)

Example

UniqueStarGiftValueInfo(
    currency="text",
    value=0,
    initial_sale_date=0,
    initial_sale_stars=0,
    initial_sale_price=0,
)