GiveawayWinners

data class GiveawayWinners(val chat: Chat, val giveawayMessageId: Int, val winnersSelectionDate: Int, val winnerCount: Int, val winners: List<User> = emptyList(), val additionalChatCount: Int? = null, val premiumSubscriptionMonthCount: Int? = null, val unclaimedPrizeCount: Int? = null, val onlyNewMembers: Boolean? = null, val wasRefunded: Boolean? = null, val prizeDescription: String? = null)(source)

GiveawayWinners

This object represents a message about the completion of a giveaway with public winners.

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(chat: Chat, giveawayMessageId: Int, winnersSelectionDate: Int, winnerCount: Int, winners: List<User> = emptyList(), additionalChatCount: Int? = null, premiumSubscriptionMonthCount: Int? = null, unclaimedPrizeCount: Int? = null, onlyNewMembers: Boolean? = null, wasRefunded: Boolean? = null, prizeDescription: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "additional_chat_count")
val additionalChatCount: Int? = null

Optional. The number of other chats the user had to join in order to be eligible for the giveaway

Link copied to clipboard
val chat: Chat

The chat that created the giveaway

Link copied to clipboard
@SerialName(value = "giveaway_message_id")
val giveawayMessageId: Int

Identifier of the message with the giveaway in the chat

Link copied to clipboard
@SerialName(value = "only_new_members")
val onlyNewMembers: Boolean? = null

Optional. True, if only users who had joined the chats after the giveaway started were eligible to win

Link copied to clipboard
@SerialName(value = "premium_subscription_month_count")
val premiumSubscriptionMonthCount: Int? = null

Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for

Link copied to clipboard
@SerialName(value = "prize_description")
val prizeDescription: String? = null

Optional. Description of additional giveaway prize

Link copied to clipboard
@SerialName(value = "unclaimed_prize_count")
val unclaimedPrizeCount: Int? = null

Optional. Number of undistributed prizes

Link copied to clipboard
@SerialName(value = "was_refunded")
val wasRefunded: Boolean? = null

Optional. True, if the giveaway was canceled because the payment for it was refunded

Link copied to clipboard
@SerialName(value = "winner_count")
val winnerCount: Int

Total number of winners in the giveaway

Link copied to clipboard

List of up to 100 winners of the giveaway

Link copied to clipboard
@SerialName(value = "winners_selection_date")
val winnersSelectionDate: Int

Point in time (Unix timestamp) when winners of the giveaway were selected