telegram api method · layer 229 · #a319e569

payments.getSavedStarGifts

usable by users

Fetch the full list of gifts owned by a peer.

definition

payments.getSavedStarGifts#a319e569 flags:# exclude_unsaved:flags.0?true exclude_saved:flags.1?true exclude_unlimited:flags.2?true exclude_unique:flags.4?true sort_by_value:flags.5?true exclude_upgradable:flags.7?true exclude_unupgradable:flags.8?true peer_color_available:flags.9?true exclude_hosted:flags.10?true peer:InputPeer collection_id:flags.6?int offset:string limit:int = payments.SavedStarGifts;

parameters

nametypedescription
flags#Flags, see TL conditional fields
exclude_unsavedflags.0?trueExclude gifts not pinned on the profile.
exclude_savedflags.1?trueExclude gifts pinned on the profile.
exclude_unlimitedflags.2?trueExclude gifts that do not have the starGift.limited flag set.
exclude_uniqueflags.4?trueExclude collectible gifts ».
sort_by_valueflags.5?trueIf set, sorts the gifts by price instead of reception date.
exclude_upgradableflags.7?trueExclude gifts that can be upgraded to collectible gifts ».
exclude_unupgradableflags.8?trueExclude gifts that cannot be upgraded to collectible gifts ».
peer_color_availableflags.9?true
exclude_hostedflags.10?true
peerInputPeerFetch 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.
collection_idflags.6?intOnly returns gifts within the specified collection ».
offsetstringOffset for pagination.
limitintMaximum number of results to return, see pagination

returns

payments.SavedStarGifts

errors (6)

codeerrordescription
400BUSINESS_CONNECTION_INVALIDThe connection_id passed to the wrapping invokeWithBusinessConnection call is invalid.
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400COLLECTION_ID_INVALIDThe specified collection ID is invalid.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 198–229 · constructor id changed 1×

idlayers
#23830de9198–209
#a319e569210–229