Layer 227
PaymentsGiveawayInfoObj
Contains info about an ongoing giveaway.
constructor
payments.giveawayInfo#4367daa0 flags:# participating:flags.0?true preparing_results:flags.3?true start_date:int joined_too_early_date:flags.1?int admin_disallowed_chat_id:flags.2?long disallowed_country:flags.4?string = payments.GiveawayInfo;
Parameters
| Name | Type | Description |
|---|---|---|
| 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 PaymentsGiveawayInfoObj constructor obj := &tg.PaymentsGiveawayInfoObj{ Participating: nil, PreparingResults: nil, StartDate: 42, JoinedTooEarlyDate: nil, AdminDisallowedChatId: nil, DisallowedCountry: "Hello, World!", }