Layer 220
StarGiftAttributeModel
The model of a collectible gift.
constructor
starGiftAttributeModel#39d99013 name:string document:Document rarity_permille:int = StarGiftAttribute;
Parameters
| Name | Type | Description |
|---|---|---|
| Name | string | Name of the model |
| Document | Document | The sticker representing the upgraded gift |
| RarityPermille | int | The number of upgraded gifts that receive this backdrop for each 1000 gifts upgraded. |
Returns
StarGiftAttributeGogram Example
// Creating StarGiftAttributeModel constructor obj := &tg.StarGiftAttributeModel{ Name: "...", Document: &tg.Document{}, RarityPermille: 0, }