messageMediaGiveawayResults
A giveaway with public winners has finished, this constructor contains info about the winners.
type tg.MessageMediaGiveawayResults struct { /* ... */ }
Implements MessageMedia.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
OnlyNewSubscribers | bool | — | If set, only new subscribers starting from the giveaway creation date participated in the giveaway. |
Refunded | bool | — | If set, the giveaway was canceled and was fully refunded. |
ChannelID | int64 | yes | ID of the channel/supergroup that was automatically boosted by the winners of the giveaway for duration of the Premium subscription. |
AdditionalPeersCount | int | — | Number of other channels that participated in the giveaway. |
LaunchMsgID | int | yes | Identifier of the message with the giveaway in channel_id. |
WinnersCount | int | yes | Total number of winners in the giveaway. |
UnclaimedCount | int | yes | Number of not-yet-claimed prizes. |
Winners | []int64 | yes | Up to 100 user identifiers of the winners of the giveaway. |
Months | int | — | Duration in months of each Telegram Premium subscription in the giveaway. |
Stars | int64 | — | For Telegram Star giveaways, the total number of Telegram Stars being given away. |
PrizeDescription | string | — | Can contain a textual description of additional giveaway prizes. |
UntilDate | int | yes | Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in initial parameters of the giveaway. |
References
- Official documentation
- Generated Go reference
- TL definition:
messageMediaGiveawayResults#ceaa3ea1