telegram api constructor · layer 229 · #947a12df

payments.resaleStarGifts

List of gifts currently on resale ».

definition

payments.resaleStarGifts#947a12df flags:# count:int gifts:Vector<StarGift> next_offset:flags.0?string attributes:flags.1?Vector<StarGiftAttribute> attributes_hash:flags.1?long chats:Vector<Chat> counters:flags.2?Vector<StarGiftAttributeCounter> users:Vector<User> = payments.ResaleStarGifts;

parameters

nametypedescription
flags#Flags, see TL conditional fields
countintTotal number of results.
giftsVector<StarGift>Collectible gifts on resale (may be less than count, in which case next_offset will be set).
next_offsetflags.0?stringOffset for pagination, pass this to payments.getResaleStarGifts.offset to fetch the next results.
attributesflags.1?Vector<StarGiftAttribute>Possible gift attributes, only set if payments.getResaleStarGifts.attributes_hash is set (on the first call, it must be equal to 0).
attributes_hashflags.1?longHash of the attributes field, pass this to payments.getResaleStarGifts.attributes_hash to avoid returning any attributes (flag not set) if they haven't changed.
chatsVector<Chat>Chats mentioned in the attributes.
countersflags.2?Vector<StarGiftAttributeCounter>Indicates the total number of gifts that have a specific attribute, only set if payments.getResaleStarGifts.offset is empty (since this field is not related to the current result page but to all of them, it's only returned on the first page).
usersVector<User>Users mentioned in the attributes.

type

payments.ResaleStarGifts

history

present in layers 203–229

idlayers
#947a12df203–229