payments.savedStarGifts #

Represents a list of gifts.

Layer 223

payments.savedStarGifts#95f389b1 flags:# count:int chat_notifications_enabled:flags.1?Bool gifts:Vector<SavedStarGift> next_offset:flags.0?string chats:Vector<Chat> users:Vector<User> = payments.SavedStarGifts;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
countintTotal number of results (can be less than the returned gifts, in which case next_offset will be set).
chat_notifications_enabledflags.1?BoolTernary 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.
giftsVector<SavedStarGift>Gifts
next_offsetflags.0?stringOffset to pass to payments.getSavedStarGifts to fetch the next page of results.
chatsVector<Chat>Channels mentioned in gifts
usersVector<User>Users mentioned in gifts

Type #

payments.SavedStarGifts

Telegram 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.

payments.getSavedStarGifts #

Fetch the full list of gifts » owned, received or hosted » 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.