Skip to content

UpgradedGiftValueInfo

Type · TDLib 1.8.67 · d1085f9c

Contains information about value of an upgraded gift

UpgradedGiftValueInfo(
  currency: string,
  value: int53,
  is_value_average: Bool,
  initial_sale_date: int32,
  initial_sale_star_count: int53,
  initial_sale_price: int53,
  last_sale_date: int32,
  last_sale_price: int53,
  is_last_sale_on_fragment: Bool,
  minimum_price: int53,
  average_sale_price: int53,
  telegram_listed_gift_count: int32,
  fragment_listed_gift_count: int32,
  fragment_url: string
) → UpgradedGiftValueInfo

currency

string

ISO 4217 currency code of the currency in which the prices are represented

value

int53

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

int32

Point in time (Unix timestamp) when the corresponding regular gift was originally purchased

initial_sale_star_count

int53

The Telegram Star amount that was paid for the gift

initial_sale_price

int53

Initial price of the gift; in the smallest units of the currency

last_sale_date

int32

Point in time (Unix timestamp) when the upgraded gift was purchased last time; 0 if never

last_sale_price

int53

Last purchase price of the gift; in the smallest units of the currency; 0 if the gift has never been resold

is_last_sale_on_fragment

Bool

True, if the last sale was completed on Fragment

minimum_price

int53

The current minimum price of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there are no such gifts

average_sale_price

int53

The average sale price in the last month of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there were no such sales

telegram_listed_gift_count

int32

Number of gifts upgraded from the same gift being resold on Telegram

fragment_listed_gift_count

int32

Number of gifts upgraded from the same gift being resold on Fragment

fragment_url

string

The HTTPS link to the Fragment for the gift; may be empty if there are no such gifts being sold on Fragment