payments.GetResaleStarGifts#

class pyrogram.raw.functions.payments.GetResaleStarGifts#

Get collectible gifts of a specific type currently on resale, see here for more info. sort_by_price and sort_by_num are mutually exclusive, if neither are set results are sorted by the unixtime (descending) when their resell price was last changed. See here for detailed documentation on this method.

Details:
  • Layer: 220

  • ID: 7A5FA236

Parameters:
gift_id (int 64-bit):

Mandatory identifier of the base gift from which the collectible gift was upgraded.

offset (str):

Offset for pagination. If not equal to an empty string, payments.resaleStarGifts.counters will not be set to avoid returning the counters every time a new page is fetched.

limit (int 32-bit):

Maximum number of results to return, see pagination

sort_by_price (bool, optional):

Sort gifts by price (ascending).

sort_by_num (bool, optional):

Sort gifts by number (ascending).

attributes_hash (int 64-bit, optional):

If a previous call to the method was made and payments.resaleStarGifts.attributes_hash was set, pass it here to avoid returning any results if they haven’t changed. Otherwise, set this flag and pass 0 to return payments.resaleStarGifts.attributes_hash and payments.resaleStarGifts.attributes, these two fields will not be set if this flag is not set.

attributes (List of StarGiftAttributeId, optional):

Optionally filter gifts with the specified attributes. If no attributes of a specific type are specified, all attributes of that type are allowed.

Returns:

payments.ResaleStarGifts