Layer 227
MessageMediaGiveaway
Contains info about a giveaway, see here for more info.
constructor
messageMediaGiveaway#aa073beb flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.2?true channels:Vector<long> countries_iso2:flags.1?Vector<string> prize_description:flags.3?string quantity:int months:flags.4?int stars:flags.5?long until_date:int = MessageMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| OnlyNewSubscribers | flags .0? true | If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway. |
| WinnersAreVisible | flags .2? true | If set, giveaway winners are public and will be listed in a message Media Giveaway Results message that will be automatically sent to the channel once the giveaway ends. |
| Channels | Vector < long > | The channels that the user must join to participate in the giveaway. |
| CountriesIso2 | flags .1? Vector < string > | If set, only users residing in these countries can participate in the giveaway, (specified as a list of two-letter ISO 3166-1 alpha-2 country codes); otherwise there are no country-based limitations. |
| PrizeDescription | flags .3? string | Can contain a textual description of additional giveaway prizes. |
| Quantity | int | Number of Telegram Premium subscriptions given away. |
| Months | flags .4? int | Duration in months of each Telegram Premium subscription in the giveaway. |
| Stars | flags .5? long | For Telegram Star giveaways, the total number of Telegram Stars being given away. |
| UntilDate | int | The end date of the giveaway. |
Returns
MessageMediaGogram Example
// Creating MessageMediaGiveaway constructor obj := &tg.MessageMediaGiveaway{ OnlyNewSubscribers: nil, WinnersAreVisible: nil, Channels: &tg.VectorLong{}, CountriesIso2: "Hello, World!", PrizeDescription: "Hello, World!", Quantity: 42, // ... more required fields }