Giveaway class
This object represents a message about a scheduled giveaway.
Constructors
-
Giveaway({required List<
Chat> chats, required int winnersSelectionDate, required int winnerCount, bool? onlyNewMembers, bool? hasPublicWinners, String? prizeDescription, List<String> ? countryCodes, int? prizeStarCount}) -
Constructor
const
-
Giveaway.fromJson(Map<
String, dynamic> json) -
Constructor from JSON data
factory
Properties
-
chats
→ List<
Chat> -
The list of chats which the user must join to participate in the giveaway
final
-
countryCodes
→ List<
String> ? -
A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPublicWinners → bool?
-
True, if the list of giveaway winners will be visible to everyone
final
- onlyNewMembers → bool?
-
True, if only users who join the chats after the giveaway started should be eligible to win
final
-
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
- winnerCount → int
-
The number of users which are supposed to be selected as winners of the giveaway
final
- winnersSelectionDate → int
-
Point in time (Unix timestamp) when winners of the giveaway will be 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