GiveawayWinners

telegramium.bots.GiveawayWinners
final case class GiveawayWinners(chat: Chat, giveawayMessageId: Int, winnersSelectionDate: Int, winnerCount: Int, winners: List[User], additionalChatCount: Option[Int], premiumSubscriptionMonthCount: Option[Int], unclaimedPrizeCount: Option[Int], onlyNewMembers: Option[Boolean], wasRefunded: Option[Boolean], prizeDescription: Option[String])

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

Value parameters

additionalChatCount

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

chat

The chat that created the giveaway

giveawayMessageId

Identifier of the message with the giveaway in the chat

onlyNewMembers

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

premiumSubscriptionMonthCount

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

prizeDescription

Optional. Description of additional giveaway prize

unclaimedPrizeCount

Optional. Number of undistributed prizes

wasRefunded

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

winnerCount

Total number of winners in the giveaway

winners

List of up to 100 winners of the giveaway

winnersSelectionDate

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

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product