GetResaleStarGifts

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

Returns

payments.ResaleStarGifts

Parameters

sort_by_pricetrueoptional
sort_by_numtrueoptional
for_crafttrueoptional
stars_onlytrueoptional
attributes_hashlongoptional
gift_idlongrequired
attributesVector<StarGiftAttributeId>optional
offsetstringrequired
limitintrequired

Example

The examples below use placeholder values. Replace them with real data before running the code.

Minimal
import asyncio
from ferogram import Client

app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")

async def main():
    await app.start()
    result = await app.raw.payments.GetResaleStarGifts(
        gift_id=-12398745604826,
        offset='some string here',
        limit=100
    )
    print(result)

asyncio.run(main())

The minimal example uses Ferogram's raw proxy shorthand. Peers can be passed as strings and required primitives get safe defaults. Expand Full API to see every parameter.

Full API
import asyncio
from ferogram import Client, raw

app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")

async def main():
    await app.start()
    result = await app(raw.functions.payments.GetResaleStarGifts(
        sort_by_price=True,
        sort_by_num=True,
        for_craft=True,
        stars_only=True,
        attributes_hash=-12398745604826,
        gift_id=-12398745604826,
        attributes=[raw.types.StarGiftAttributeId()],
        offset='some string here',
        limit=100
    ))
    print(result)

asyncio.run(main())