Layer 227
PaymentsSavedStarGiftsObj
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 |
|---|---|---|
| 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 PaymentsSavedStarGiftsObj constructor obj := &tg.PaymentsSavedStarGiftsObj{ Count: 42, ChatNotificationsEnabled: nil, Gifts: &tg.VectorSavedStarGift{}, NextOffset: "Hello, World!", Chats: &tg.VectorChat{}, Users: &tg.VectorUser{}, }