MessagePremiumGiveawayWinners class final

A Telegram Premium giveaway with public winners has been completed for the chat

Inheritance

Constructors

MessagePremiumGiveawayWinners({required int boostedChatId, required int giveawayMessageId, required int additionalChatCount, required int actualWinnersSelectionDate, required bool onlyNewMembers, required bool wasRefunded, required int monthCount, required String prizeDescription, required int winnerCount, required List<int> winnerUserIds, required int unclaimedPrizeCount})
A Telegram Premium giveaway with public winners has been completed for the chat
const
MessagePremiumGiveawayWinners.fromJson(Map<String, dynamic> json)
Parses a MessagePremiumGiveawayWinners from TDLib JSON.
factory

Properties

actualWinnersSelectionDate → int
Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway
final
additionalChatCount → int
Number of other chats that participated in the giveaway
final
boostedChatId → int
Identifier of the channel chat, which was automatically boosted by the winners of the giveaway for duration of the Premium subscription
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
giveawayMessageId → int
Identifier of the message with the giveaway in the boosted chat
final
hashCode → int
The hash code for this object.
no setterinherited
monthCount → int
Number of months the Telegram Premium subscription will be active after code activation
final
onlyNewMembers → bool
True, if only new members of the chats were eligible for the giveaway
final
prizeDescription → String
Additional description of the giveaway prize
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 and was fully refunded
final
winnerCount → int
Total number of winners in the giveaway
final
winnerUserIds → List<int>
Up to 100 user identifiers of the winners of the giveaway
final

Methods

copyWith({int? boostedChatId, int? giveawayMessageId, int? additionalChatCount, int? actualWinnersSelectionDate, bool? onlyNewMembers, bool? wasRefunded, int? monthCount, String? prizeDescription, int? winnerCount, List<int>? winnerUserIds, int? unclaimedPrizeCount}) → MessagePremiumGiveawayWinners
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.