Layer 220
PaymentsSavedStarGifts
Represents a list of gifts.
constructor
payments.savedStarGifts#95f389b1 flags:# count:int chat_notifications_enabled:flags.1?Bool gifts:Vector<SavedStarGift> next_offset:flags.0?string chats:Vector<Chat> users:Vector<User> = payments.SavedStarGifts;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Count | int | Total number of results (can be less than the returned gifts, in which case next_offset will be set). |
| ChatNotificationsEnabled | flags.1?Bool | Ternary value: can be not set, set&true, set&false. Can only be set for channels we own: the value indicates whether we enabled gift notifications for this channel. |
| Gifts | Vector<SavedStarGift> | Gifts |
| NextOffset | flags.0?string | Offset to pass to payments. get Saved Star Gifts to fetch the next page of results. |
| Chats | Vector<Chat> | Channels mentioned in gifts |
| Users | Vector<User> | Users mentioned in gifts |
Returns
payments.SavedStarGiftsGogram Example
// Creating PaymentsSavedStarGifts constructor obj := &tg.PaymentsSavedStarGifts{ Count: 0, Gifts: []tg.SavedStarGift{&tg.SavedStarGift{}}, Chats: []tg.Chat{&tg.Chat{}}, Users: []tg.User{&tg.User{}}, // Optional fields: // ChatNotificationsEnabled: true, // NextOffset: "...", }