Skip to main content

payments.giveawayInfo

Contains info about an ongoing giveaway. If neither the participating, joined_too_early_date, admin_disallowed_chat_id or disallowed_country flags are set, the user is not currently participating in the giveaway but could participate by joining all the channels specified in the messageMediaGiveaway.channels field.

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

Implements payments.GiveawayInfo.

Fields

NameTypeRequiredDescription
ParticipatingboolThe current user is participating in the giveaway.
PreparingResultsboolIf set, the giveaway has ended and the results are being prepared.
StartDateintyesWhen was the giveaway started
JoinedTooEarlyDateintThe current user can't participate in the giveaway, because they were already a member of the channel when the giveaway started, and the only_new_subscribers was set when starting the giveaway.
AdminDisallowedChatIDint64If set, the current user can't participate in the giveaway, because they are an administrator in one of the channels (ID specified in this flag) that created the giveaway.
DisallowedCountrystringIf set, the current user can't participate in this giveaway, because their phone number is from the specified disallowed country (specified as a two-letter ISO 3166-1 alpha-2 country code).

References