GetSavedStarGifts

---functions---
payments.getSavedStarGifts#a319e569 exclude_unsaved:flags.0?true exclude_saved:flags.1?true exclude_unlimited:flags.2?true exclude_unique:flags.4?true sort_by_value:flags.5?true exclude_upgradable:flags.7?true exclude_unupgradable:flags.8?true peer_color_available:flags.9?true exclude_hosted:flags.10?true peer:InputPeer collection_id:flags.6?int offset:string limit:int = payments.SavedStarGifts

Returns

payments.SavedStarGifts

Parameters

exclude_unsavedtrueoptional
exclude_savedtrueoptional
exclude_unlimitedtrueoptional
exclude_uniquetrueoptional
sort_by_valuetrueoptional
exclude_upgradabletrueoptional
exclude_unupgradabletrueoptional
peer_color_availabletrueoptional
exclude_hostedtrueoptional
peerInputPeerrequired
collection_idintoptional
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.GetSavedStarGifts(
        peer='username',
        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.GetSavedStarGifts(
        exclude_unsaved=True,
        exclude_saved=True,
        exclude_unlimited=True,
        exclude_unique=True,
        sort_by_value=True,
        exclude_upgradable=True,
        exclude_unupgradable=True,
        peer_color_available=True,
        exclude_hosted=True,
        peer=raw.types.InputPeerSelf(),
        collection_id=42,
        offset='some string here',
        limit=100
    ))
    print(result)

asyncio.run(main())