Layer 220
constructor
starsGiveawayOption#94ce852a flags:# extended:flags.0?true default:flags.1?true stars:long yearly_boosts:int store_product:flags.2?string currency:string amount:long winners:Vector<StarsGiveawayWinnersOption> = StarsGiveawayOption;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Extended flags.0?true 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 flags.1?true If set, this option must be pre-selected by default in the option list.
Stars long The number of Telegram Stars that will be distributed among winners
YearlyBoosts int Number of times the chat will be boosted for one year if the input Store Payment Stars Giveaway. boost_peer flag is populated
StoreProduct flags.2?string Identifier of the store product associated with the option, official apps only.
Currency string Three-letter ISO 4217 currency code
Amount long 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 Vector<StarsGiveawayWinnersOption> Allowed options for the number of giveaway winners.

Gogram Example

// Creating StarsGiveawayOption constructor
obj := &tg.StarsGiveawayOption{
    Stars: int64(0),
    YearlyBoosts: 0,
    Currency: "...",
    Amount: int64(0),
    Winners: []tg.StarsGiveawayWinnersOption{&tg.StarsGiveawayWinnersOption{}},

    // Optional fields:
    // Extended: true,
    // Default: true,
    // StoreProduct: "...",
}