inputStorePaymentStarsGiveaway
Used to pay for a star giveaway, see here » for more info.
type tg.InputStorePaymentStarsGiveaway struct { /* ... */ }
Implements InputStorePaymentPurpose.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
OnlyNewSubscribers | bool | — | If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway. |
WinnersAreVisible | bool | — | If set, giveaway winners are public and will be listed in a messageMediaGiveawayResults message that will be automatically sent to the channel once the giveaway ends. |
Stars | int64 | yes | Total number of Telegram Stars being given away (each user will receive stars/users stars). |
BoostPeer | InputPeerClass | yes | The channel/supergroup starting the giveaway, that the user must join to participate, that will receive the giveaway boosts; see here » for more info on giveaways. |
AdditionalPeers | []InputPeerClass | — | Additional channels that the user must join to participate to the giveaway can be specified here. |
CountriesISO2 | []string | — | The set of users that can participate to the giveaway can be restricted by passing here an explicit whitelist of up to giveaway_countries_max countries, specified as two-letter ISO 3166-1 alpha-2 country codes. |
PrizeDescription | string | — | Can contain a textual description of additional giveaway prizes. |
RandomID | int64 | yes | Random ID to avoid resending the giveaway |
UntilDate | int | yes | The end date of the giveaway, must be at most giveaway_period_max seconds in the future; see here » for more info on giveaways. |
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). |
Users | int | yes | Number of winners. |
References
- Official documentation
- Generated Go reference
- TL definition:
inputStorePaymentStarsGiveaway#751f08fa