Layer 220
StarsGiveawayWinnersOption
Allowed options for the number of giveaway winners.
constructor
starsGiveawayWinnersOption#54236209 flags:# default:flags.0?true users:int per_user_stars:long = StarsGiveawayWinnersOption;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Default | flags.0?true | If set, this option must be pre-selected by default in the option list. |
| Users | int | The number of users that will be randomly chosen as winners. |
| PerUserStars | long | The number of Telegram Stars each winner will receive. |
Returns
StarsGiveawayWinnersOptionGogram Example
// Creating StarsGiveawayWinnersOption constructor obj := &tg.StarsGiveawayWinnersOption{ Users: 0, PerUserStars: int64(0), // Optional fields: // Default: true, }