GetSavedStarGiftsRequest

Both users and bots may be able to use this request. See code examples.

---functions---
payments.getSavedStarGifts#23830de9 flags:# exclude_unsaved:flags.0?true exclude_saved:flags.1?true exclude_unlimited:flags.2?true exclude_limited:flags.3?true exclude_unique:flags.4?true sort_by_value:flags.5?true peer:InputPeer offset:string limit:int = payments.SavedStarGifts

Returns

payments.SavedStarGifts

This type can only be an instance of:

SavedStarGifts

Parameters

peerInputPeerAnything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.).
offsetstring
limitint
exclude_unsavedflagThis argument defaults to None and can be omitted.
exclude_savedflagThis argument defaults to None and can be omitted.
exclude_unlimitedflagThis argument defaults to None and can be omitted.
exclude_limitedflagThis argument defaults to None and can be omitted.
exclude_uniqueflagThis argument defaults to None and can be omitted.
sort_by_valueflagThis argument defaults to None and can be omitted.

Known RPC errors

This request can't cause any RPC error as far as we know.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.payments.GetSavedStarGiftsRequest(
        peer='username',
        offset='some string here',
        limit=100,
        exclude_unsaved=True,
        exclude_saved=True,
        exclude_unlimited=True,
        exclude_limited=True,
        exclude_unique=True,
        sort_by_value=True
    ))
    print(result.stringify())