payments.getResaleStarGifts
Get collectible gifts of a specific type currently on resale, see here » for more info.
Get [collectible gifts](https://core.telegram.org/api/gifts.md#collectible-gifts) of a specific type currently on resale, see [here »](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts) for more info.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
sort_by_price | true | いいえ | Sort gifts by price (ascending). |
sort_by_num | true | いいえ | Sort gifts by number (ascending). |
for_craft | true | いいえ | Only return collectible gifts that can be bought and used for [crafting »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts); render each returned gift's [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`craft_chance_permille` as its crafting success contribution. |
stars_only | true | いいえ | Only return gifts that can be bought using [Stars](https://core.telegram.org/api/stars.md). |
ton_only | true | いいえ | TL 型 `true` の値。 |
fragment_only | true | いいえ | TL 型 `true` の値。 |
attributes_hash | long | いいえ | If a previous call to the method was made and [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`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](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` and [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes`, **these two fields will not be set** if this flag is not set. |
gift_id | long | はい | Mandatory identifier of the base gift from which the collectible gift was upgraded. |
attributes | 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. |
offset | string | はい | Offset for pagination. If not equal to an empty string, [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`counters` will not be set to avoid returning the counters every time a new page is fetched. |
limit | int | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |
レスポンス
payments.ResaleStarGifts
MTProto RPC
- 400 · STARGIFT_ATTRIBUTE_INVALID — One of the specified star gift attributes is invalid.
- 400 · STARGIFT_INVALID — The passed gift is invalid.