payments.GetResaleStarGifts

class pyrogram.raw.functions.payments.GetResaleStarGifts

Get collectible gifts of a specific type currently on resale, see here » for more info.

Details:
  • Layer: 223

  • 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).

  • for_craft (bool, optional)

  • 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

TL Schema

payments.getResaleStarGifts#7a5fa236
flags:#
sort_by_price:flags.1?true
sort_by_num:flags.2?true
for_craft:flags.4?true
attributes_hash:flags.0?long
gift_id:long
attributes:flags.3?Vector<StarGiftAttributeId>
offset:string
limit:int

= payments.ResaleStarGifts

Parameter Tree

GetResaleStarGifts
├── sort_by_pricetrue (optional)
├── sort_by_numtrue (optional)
├── for_crafttrue (optional)
├── attributes_hashlong (optional)
├── gift_idlong
├── attributesVector < StarGiftAttributeId > (optional)
│ │ └── document_idlong
│ │ └── document_idlong
│ └── backdrop_idint
├── offsetstring
└── limitint

Example

await app.invoke(
    GetResaleStarGifts(
        sort_by_price=None,
        sort_by_num=None,
        for_craft=None,
        attributes_hash=0,
        gift_id=0,
        attributes=[
                StarGiftAttributeIdModel(document_id=0)
            ],
        offset="text",
        limit=0,
    )
)