Giveaway

@Serializable
data class Giveaway(val chats: List<PreviewChat>, val selectionDate: TelegramDate, val count: Int, val onlyNewMembers: Boolean = false, val publicWinners: Boolean = false, val additionalPrizeDescription: String? = null, val countries: List<IetfLang>? = null, val premiumMonths: Int? = null, val prizeStarCount: Int? = null) : GiveawayInfo.OptionallyStars, GiveawayInfo.OptionallyPremium, ReplyInfo.External.ContentVariant

Constructors

Link copied to clipboard
constructor(chats: List<PreviewChat>, selectionDate: TelegramDate, count: Int, onlyNewMembers: Boolean = false, publicWinners: Boolean = false, additionalPrizeDescription: String? = null, countries: List<IetfLang>? = null, premiumMonths: Int? = null, prizeStarCount: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "prize_description")
open override val additionalPrizeDescription: String? = null
Link copied to clipboard
@SerialName(value = "chats")
val chats: List<PreviewChat>
Link copied to clipboard
@SerialName(value = "winner_count")
val count: Int
Link copied to clipboard
@SerialName(value = "country_codes")
val countries: List<IetfLang>? = null
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 = "has_public_winners")
val publicWinners: Boolean = false
Link copied to clipboard
@SerialName(value = "winners_selection_date")
open override val selectionDate: TelegramDate