Represents a list of gifts.
Constructor schema is available as of layer 198. Switch »
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
count | int | Total number of results (can be less than the returned gifts , in which case next_offset will be set). |
chat_notifications_enabled | flags.1?Bool | Ternary value: can be not set, set&true, set&false. Can only be set for channels we own: the value indicates whether we enabled gift notifications for this channel. |
gifts | Vector<SavedStarGift> | Gifts |
next_offset | flags.0?string | Offset to pass to payments.getSavedStarGifts to fetch the next page of results. |
chats | Vector<Chat> | Channels mentioned in gifts |
users | Vector<User> | Users mentioned in gifts |
Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.
Fetch the full list of gifts owned by a peer.
Note that unlike what the name suggests, the method can be used to fetch both "saved" and "unsaved" gifts (aka gifts both pinned and not pinned) to the profile, depending on the passed flags.