payments.resaleStarGifts
List of gifts currently on resale ».
type tg.PaymentsResaleStarGifts struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Count | int | yes | Total number of results. |
Gifts | []StarGiftClass | yes | Collectible gifts on resale (may be less than count, in which case next_offset will be set). |
NextOffset | string | — | Offset for pagination, pass this to payments.getResaleStarGifts.offset to fetch the next results. |
Attributes | []StarGiftAttributeClass | — | Possible gift attributes, only set if payments.getResaleStarGifts.attributes_hash is set (on the first call, it must be equal to 0). |
AttributesHash | int64 | — | Hash of the attributes field, pass this to payments.getResaleStarGifts attributes_hash to avoid returning any attributes (flag not set) if they haven't changed. |
Chats | []ChatClass | yes | Chats mentioned in the attributes. |
Counters | []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). |
Users | []UserClass | yes | Users mentioned in the attributes. |
Returned by
References
- Official documentation
- Generated Go reference
- TL definition:
payments.resaleStarGifts#947a12df