Layer 227
StarGiftCollectionObj
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 |
|---|---|---|
| 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 StarGiftCollectionObj constructor obj := &tg.StarGiftCollectionObj{ CollectionId: 42, Title: "Hello, World!", Icon: nil, GiftsCount: 42, Hash: int64(1234567890), }