payments.StarGiftUpgradePreview#
- class pyrogram.raw.types.payments.StarGiftUpgradePreview[source]#
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 of
StarGiftUpgradePreview.- Details:
Layer:
224ID:
3DE1DFED
- Parameters:
sample_attributes (List of
StarGiftAttribute) – Possible gift attributesprices (List of
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.next_prices (List of
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).
- Functions:
This object can be returned by 1 function.
Obtain a preview of the possible attributes (chosen randomly) a gift can receive after upgrading it to a collectible gift , see here for more info.