Layer 224
PaymentsStarGiftUpgradePreviewObj
A preview of the possible attributes (chosen randomly) a gift can receive after upgrading it to a collectible gift, see here for more info.
constructor
payments.starGiftUpgradePreview#3de1dfed sample_attributes:Vector<StarGiftAttribute> prices:Vector<StarGiftUpgradePrice> next_prices:Vector<StarGiftUpgradePrice> = payments.StarGiftUpgradePreview;
Parameters
| Name | Type | Description |
|---|---|---|
| SampleAttributes | Vector<StarGiftAttribute> | Possible gift attributes |
| Prices | Vector<StarGiftUpgradePrice> | Contains a similar list of upgrade prices and timestamps, not as granular as in next_prices (i. e. prices are approximately 1 month apart), to be used mainly to scale the price graph, and to show a more general future overview of the upgrade price. |
| NextPrices | Vector<StarGiftUpgradePrice> | Contains the current upgrade price and a list of future prices, each associated to a UNIX timestamp that indicates when the price comes in effect (the current price is valid only until the next one comes into effect, and so on for all prices in the list). |
Returns
payments.StarGiftUpgradePreviewGogram Example
// Creating PaymentsStarGiftUpgradePreviewObj constructor obj := &tg.PaymentsStarGiftUpgradePreviewObj{ SampleAttributes: []tg.StarGiftAttribute{&tg.StarGiftAttribute{}}, Prices: []tg.StarGiftUpgradePrice{&tg.StarGiftUpgradePrice{}}, NextPrices: []tg.StarGiftUpgradePrice{&tg.StarGiftUpgradePrice{}}, }