GiveawayCompleted class
This object represents a service message about the completion of a giveaway without public winners.
Constructors
- GiveawayCompleted({required int winnerCount, int? unclaimedPrizeCount, Message? giveawayMessage, bool? isStarGiveaway})
-
Constructor
const
-
GiveawayCompleted.fromJson(Map<
String, dynamic> json) -
Constructor from JSON data
factory
Properties
- giveawayMessage → Message?
-
Message with the giveaway that was completed, if it wasn't deleted
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isStarGiveaway → bool?
-
Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unclaimedPrizeCount → int?
-
Number of undistributed prizes
final
- winnerCount → int
-
Number of winners in the giveaway
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