Layer 220
constructor
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

Name Type Description
Flags # Flags, see TL conditional fields
Count int Total number of results.
Gifts Vector<StarGift> Collectible gifts on resale (may be less than count, in which case next_offset will be set).
NextOffset flags.0?string Offset for pagination, pass this to payments. get Resale Star Gifts. offset to fetch the next results.
Attributes Vector<StarGiftAttribute> Possible gift attributes, only set if payments. get Resale Star Gifts. attributes_hash is set (on the first call, it must be equal to 0 ).
AttributesHash flags.1?long Hash of the attributes field, pass this to payments. get Resale Star Gifts. attributes_hash to avoid returning any attributes (flag not set) if they haven't changed.
Chats Vector<Chat> Chats mentioned in the attributes.
Counters Vector<StarGiftAttributeCounter> Indicates the total number of gifts that have a specific attribute, only set if payments. get Resale Star Gifts. 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 Vector<User> Users mentioned in the attributes.

Gogram Example

// Creating PaymentsResaleStarGifts constructor
obj := &tg.PaymentsResaleStarGifts{
    Count: 0,
    Gifts: []tg.StarGift{&tg.StarGift{}},
    Chats: []tg.Chat{&tg.Chat{}},
    Users: []tg.User{&tg.User{}},

    // Optional fields:
    // NextOffset: "...",
    // Attributes: []tg.StarGiftAttribute{&tg.StarGiftAttribute{}},
    // AttributesHash: int64(0),
    // Counters: []tg.StarGiftAttributeCounter{&tg.StarGiftAttributeCounter{}},
}