UpgradedGiftValueInfo

class pyrogram.types.UpgradedGiftValueInfo

Contains information about value of an upgraded gift.

Parameters:
  • currency (str) – ISO 4217 currency code of the currency in which the prices are represented.

  • value (int) – Estimated value of the gift; in the smallest units of the currency.

  • is_value_average (bool) – True, if the value is calculated as average value of similar sold gifts. Otherwise, it is based on the sale price of the gift.

  • initial_sale_date (int) – Point in time when the corresponding regular gift was originally purchased.

  • initial_sale_star_count (int) – Amount of Telegram Stars that were paid for the gift.

  • initial_sale_price (int) – Initial price of the gift; in the smallest units of the currency.

  • last_sale_date (datetime, optional) – Point in time (Unix timestamp) when the upgraded gift was purchased last time.

  • last_sale_price (int, optional) – Last purchase price of the gift; in the smallest units of the currency.

  • is_last_sale_on_fragment (bool, optional) – True, if the last sale was completed on Fragment.

  • minimum_price (int, optional) – The current minimum price of gifts upgraded from the same gift.

  • average_sale_price (int, optional) – The average sale price in the last month of gifts upgraded from the same gift.

  • telegram_listed_gift_count (int, optional) – Number of gifts upgraded from the same gift being resold on Telegram.

  • fragment_listed_gift_count (int, optional) – Number of gifts upgraded from the same gift being resold on Fragment.

  • fragment_url (str, optional) – The HTTPS link to the Fragment for the gift.