Layer 220
PaymentsGiveawayInfo
Contains info about an ongoing giveaway.
constructor
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Participating | flags.0?true | The current user is participating in the giveaway. |
| PreparingResults | flags.3?true | If set, the giveaway has ended and the results are being prepared. |
| StartDate | int | When was the giveaway started |
| JoinedTooEarlyDate | flags.1?int | The 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. |
| AdminDisallowedChatId | flags.2?long | If 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. |
| DisallowedCountry | flags.4?string | If 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). |
Returns
payments.GiveawayInfoGogram Example
// Creating PaymentsGiveawayInfo constructor obj := &tg.PaymentsGiveawayInfo{ StartDate: 0, // Optional fields: // Participating: true, // PreparingResults: true, // JoinedTooEarlyDate: 0, // AdminDisallowedChatId: int64(0), // ... more optional fields }