starsGiveawayOption
Contains info about a Telegram Star giveaway option.
type tg.StarsGiveawayOption struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Extended | bool | — | If set, this option must only be shown in the full list of giveaway options (i.e. they must be added to the list only when the user clicks on the expand button). |
Default | bool | — | If set, this option must be pre-selected by default in the option list. |
Stars | int64 | yes | The number of Telegram Stars that will be distributed among winners |
YearlyBoosts | int | yes | Number of times the chat will be boosted for one year if the inputStorePaymentStarsGiveaway.boost_peer flag is populated |
StoreProduct | string | — | Identifier of the store product associated with the option, official apps only. |
Currency | string | yes | Three-letter ISO 4217 currency code |
Amount | int64 | yes | Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). |
Winners | []StarsGiveawayWinnersOption | yes | Allowed options for the number of giveaway winners. |
Returned by
References
- Official documentation
- Generated Go reference
- TL definition:
starsGiveawayOption#94ce852a