payments.GetSavedStarGifts#

class pyrogram.raw.functions.payments.GetSavedStarGifts#

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.

Details:
  • Layer: 214

  • ID: A319E569

Parameters:
peer (InputPeer):

Fetch only gifts owned by the specified peer, such as: a user, with peer=inputPeerUser; a channel, with peer=inputPeerChannel; a connected business user (when executing the method as a bot, over the business connection), with peer=inputPeerUser.

offset (str):

Offset for pagination.

limit (int 32-bit):

Maximum number of results to return, see pagination

exclude_unsaved (bool, optional):

Exclude gifts not pinned on the profile.

exclude_saved (bool, optional):

Exclude gifts pinned on the profile.

exclude_unlimited (bool, optional):

Exclude gifts that do not have the starGift.limited flag set.

exclude_unique (bool, optional):

Exclude collectible gifts ».

sort_by_value (bool, optional):

If set, sorts the gifts by price instead of reception date.

exclude_upgradable (bool, optional):

N/A

exclude_unupgradable (bool, optional):

N/A

collection_id (int 32-bit, optional):

N/A

Returns:

payments.SavedStarGifts