Skip to main content

messageMediaGiveaway

Contains info about a giveaway, see here » for more info.

type tg.MessageMediaGiveaway struct { /* ... */ }

Implements MessageMedia.

Fields

NameTypeRequiredDescription
OnlyNewSubscribersboolIf set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway.
WinnersAreVisibleboolIf 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.
Channels[]int64yesThe channels that the user must join to participate in the giveaway.
CountriesISO2[]stringIf 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.
PrizeDescriptionstringCan contain a textual description of additional giveaway prizes.
QuantityintyesNumber of Telegram Premium subscriptions given away.
MonthsintDuration in months of each Telegram Premium subscription in the giveaway.
Starsint64For Telegram Star giveaways, the total number of Telegram Stars being given away.
UntilDateintyesThe end date of the giveaway.

References