Layer 220
StarGiftCollection
Represents a star gift collection.
constructor
starGiftCollection#9d6b13b0 flags:# collection_id:int title:string icon:flags.0?Document gifts_count:int hash:long = StarGiftCollection;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| CollectionId | int | The ID of the collection. |
| Title | string | Title of the collection. |
| Icon | flags.0?Document | Optional icon for the collection, taken from the first gift in the collection. |
| GiftsCount | int | Number of gifts in the collection. |
| Hash | long | Field to use instead of collection_id when generating the hash to pass to payments. get Star Gift Collections. |
Returns
StarGiftCollectionGogram Example
// Creating StarGiftCollection constructor obj := &tg.StarGiftCollection{ CollectionId: 0, Title: "...", GiftsCount: 0, Hash: int64(0), // Optional fields: // Icon: &tg.Document{}, }