payments.getResaleStarGifts
获取当前正在转售的特定类型的收藏礼品,请参阅此处 » 了解更多信息。
获取目前正在转售的特定类型的[收藏礼品](https://core.telegram.org/api/gifts.md#collectible-gifts),请参阅[此处»](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts)了解更多信息。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
sort_by_price | true | 否 | 按价格对礼物进行排序(升序)。 |
sort_by_num | true | 否 | 按编号对礼物进行排序(升序)。 |
for_craft | true | 否 | 只返回可购买并用于[制作»](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts)的收藏礼物;将每个退回的礼物的 [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`craft_chance_permille` 作为其制作成功的贡献。 |
stars_only | true | 否 | 只返回可以使用[星星](https://core.telegram.org/api/stars.md)购买的礼物。 |
ton_only | true | 否 | TL 类型 `true` 的值。 |
fragment_only | true | 否 | TL 类型 `true` 的值。 |
attributes_hash | long | 否 | 如果之前调用了该方法并设置了 [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash`,请将其传递到此处以避免返回任何未更改的结果。 否则,设置此标志并传递 `0` 返回 [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` 和 [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes`,如果不设置此标志,**这两个字段将不会被设置**。 |
gift_id | long | 是的 | 升级收藏礼品的基础礼品的强制标识符。 |
attributes | Vector<StarGiftAttributeId> | 否 | (可选)过滤具有指定属性的礼物。如果未指定特定类型的属性,则允许该类型的所有属性。 |
offset | string | 是的 | 分页偏移量。如果不等于空字符串,则不会设置 [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`counters`,以避免每次获取新页面时返回计数器。 |
limit | int | 是的 | 返回结果的最大数量,[参见分页](https://core.telegram.org/api/offsets.md) |
回应
payments.ResaleStarGifts
MTProto RPC
- 400 · STARGIFT_ATTRIBUTE_INVALID — 指定的星星礼物属性之一无效。
- 400·STARGIFT_INVALID — 传递的礼物无效。