GiveawayWinners class

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

Constructors

GiveawayWinners({required Chat chat, required int giveawayMessageId, required int winnersSelectionDate, required int winnerCount, required List<User> winners, int? additionalChatCount, int? premiumSubscriptionMonthCount, int? unclaimedPrizeCount, bool? onlyNewMembers, bool? wasRefunded, String? prizeDescription, int? prizeStarCount})
Constructor
const
GiveawayWinners.fromJson(Map<String, dynamic> json)
Constructor from JSON data
factory

Properties

additionalChatCount int?
The number of other chats the user had to join in order to be eligible for the giveaway
final
chat Chat
The chat that created the giveaway
final
giveawayMessageId int
Identifier of the messsage with the giveaway in the chat
final
hashCode int
The hash code for this object.
no setterinherited
onlyNewMembers bool?
True, if only users who had joined the chats after the giveaway started were eligible to win
final
premiumSubscriptionMonthCount int?
The number of months the Telegram Premium subscription won from the giveaway will be active for
final
prizeDescription String?
Description of additional giveaway prize
final
prizeStarCount int?
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unclaimedPrizeCount int?
Number of undistributed prizes
final
wasRefunded bool?
True, if the giveaway was canceled because the payment for it was refunded
final
winnerCount int
Total number of winners in the giveaway
final
winners List<User>
List of up to 100 winners of the giveaway
final
winnersSelectionDate int
Point in time (Unix timestamp) when winners of the giveaway were selected
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON encodable Map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited