Link Search Menu Expand Document

Constructor: payments.resaleStarGifts

Back to constructors index

List of gifts currently on resale ».

Attributes:

NameTypeRequiredDescription
countintYesTotal number of results.
giftsArray of StarGiftYesCollectible gifts on resale (may be less than count, in which case next_offset will be set).
next_offsetstringOptionalOffset for pagination, pass this to payments.getResaleStarGifts.offset to fetch the next results.
attributesArray of StarGiftAttributeOptionalPossible gift attributes, only set if payments.getResaleStarGifts.attributes_hash is set (on the first call, it must be equal to 0).
attributes_hashlongOptionalHash of the attributes field, pass this to payments.getResaleStarGifts.attributes_hash to avoid returning any attributes (flag not set) if they haven’t changed.
chatsArray of ChatYesChats mentioned in the attributes.
countersArray of StarGiftAttributeCounterOptionalIndicates 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).
usersArray of UserYesUsers mentioned in the attributes.

Type: payments.ResaleStarGifts

Example:

$payments_resaleStarGifts = ['_' => 'payments.resaleStarGifts', 'count' => int, 'gifts' => [StarGift, StarGift], 'next_offset' => 'string', 'attributes' => [StarGiftAttribute, StarGiftAttribute], 'attributes_hash' => long, 'chats' => [Chat, Chat], 'counters' => [StarGiftAttributeCounter, StarGiftAttributeCounter], 'users' => [User, User]];