Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Giveaway(val chats: List<Chat>, val winnersSelectionDate: Instant, val winnerCount: Int, val onlyNewMembers: Boolean? = null, val hasPublicWinners: Boolean? = null, val prizeDescription: String? = null, val countryCodes: List<String>? = null, val prizeStarCount: Int? = null, val premiumSubscriptionMonthCount: Int? = null)

This object represents a message about a scheduled giveaway.

Link copied to clipboard
@Serializable
data class GiveawayCompleted(val winnerCount: Int, val unclaimedPrizeCount: Int? = null, val giveawayMessage: Message? = null, val isStarGiveaway: Boolean? = null)

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

Link copied to clipboard
@Serializable
data class GiveawayCreated(val prizeStarCount: Int? = null)

This object represents a service message about the creation of a scheduled giveaway.

Link copied to clipboard
@Serializable
data class GiveawayWinners(val chat: Chat, val giveawayMessageId: Long, val winnersSelectionDate: Instant, val winnerCount: Int, val winners: List<User>, val additionalChatCount: Int? = null, val prizeStarCount: Int? = null, val premiumSubscriptionMonthCount: Int? = null, val unclaimedPrizeCount: Int? = null, val onlyNewMembers: Boolean? = null, val wasRefunded: Boolean? = null, val prizeDescription: String? = null)

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