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
peer | InputPeer | Anything entity-like will work if the library can find its Input version (e.g., usernames, Peer , User or Channel objects, etc.). |
offset | string | |
limit | int | |
exclude_unsaved | flag | This argument defaults to None and can be omitted. |
exclude_saved | flag | This argument defaults to None and can be omitted. |
exclude_unlimited | flag | This argument defaults to None and can be omitted. |
exclude_limited | flag | This argument defaults to None and can be omitted. |
exclude_unique | flag | This argument defaults to None and can be omitted. |
sort_by_value | flag | This 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())