Winners

@Serializable
data class Winners(val chat: PreviewChat, val messageId: MessageId, val selectionDate: TelegramDate, val count: Int, val winners: List<PreviewUser>, val additionalChats: Int = 0, val unclaimedCount: Int = 0, val onlyNewMembers: Boolean = false, val additionalPrizeDescription: String? = null, val premiumMonths: Int? = null, val prizeStarCount: Int? = null) : GiveawayPublicResults

Constructors

Link copied to clipboard
constructor(chat: PreviewChat, messageId: MessageId, selectionDate: TelegramDate, count: Int, winners: List<PreviewUser>, additionalChats: Int = 0, unclaimedCount: Int = 0, onlyNewMembers: Boolean = false, additionalPrizeDescription: String? = null, premiumMonths: Int? = null, prizeStarCount: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "additional_chat_count")
open override val additionalChats: Int = 0
Link copied to clipboard
@SerialName(value = "prize_description")
open override val additionalPrizeDescription: String? = null
Link copied to clipboard
@SerialName(value = "chats")
open override val chat: PreviewChat
Link copied to clipboard
@SerialName(value = "winner_count")
open override val count: Int
Link copied to clipboard
@SerialName(value = "giveaway_message_id")
open override val messageId: MessageId
Link copied to clipboard
@SerialName(value = "only_new_members")
open override val onlyNewMembers: Boolean = false
Link copied to clipboard
@SerialName(value = "premium_subscription_month_count")
open override val premiumMonths: Int? = null
Link copied to clipboard
@SerialName(value = "prize_star_count")
open override val prizeStarCount: Int? = null
Link copied to clipboard
@SerialName(value = "was_refunded")
@Required
@EncodeDefault
open override val refunded: Boolean = false
Link copied to clipboard
@SerialName(value = "winners_selection_date")
open override val selectionDate: TelegramDate
Link copied to clipboard
@SerialName(value = "unclaimed_prize_count")
open override val unclaimedCount: Int = 0
Link copied to clipboard
@SerialName(value = "winners")
open override val winners: List<PreviewUser>