telegram api method · layer 229 · #7a5fa236

payments.getResaleStarGifts

usable by users

Get collectible gifts of a specific type currently on resale, see here » for more info.

definition

payments.getResaleStarGifts#7a5fa236 flags:# sort_by_price:flags.1?true sort_by_num:flags.2?true for_craft:flags.4?true stars_only:flags.5?true attributes_hash:flags.0?long gift_id:long attributes:flags.3?Vector<StarGiftAttributeId> offset:string limit:int = payments.ResaleStarGifts;

parameters

nametypedescription
flags#Flags, see TL conditional fields
sort_by_priceflags.1?trueSort gifts by price (ascending).
sort_by_numflags.2?trueSort gifts by number (ascending).
for_craftflags.4?true
stars_onlyflags.5?true
attributes_hashflags.0?longIf a previous call to the method was made and payments.resaleStarGifts.attributes_hash was set, pass it here to avoid returning any results if they haven't changed. Otherwise, set this flag and pass 0 to return payments.resaleStarGifts.attributes_hash and payments.resaleStarGifts.attributes, these two fields will not be set if this flag is not set.
gift_idlongMandatory identifier of the base gift from which the collectible gift was upgraded.
attributesflags.3?Vector<StarGiftAttributeId>Optionally filter gifts with the specified attributes. If no attributes of a specific type are specified, all attributes of that type are allowed.
offsetstringOffset for pagination. If not equal to an empty string, payments.resaleStarGifts.counters will not be set to avoid returning the counters every time a new page is fetched.
limitintMaximum number of results to return, see pagination

returns

payments.ResaleStarGifts

errors (4)

codeerrordescription
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.
400STARGIFT_ATTRIBUTE_INVALIDOne of the specified star gift attributes is invalid.
400STARGIFT_INVALIDThe passed gift 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 203–229

idlayers
#7a5fa236203–229