MessageMediaGiveaway class

Message Media Giveaway.

ID: aa073beb.

Inheritance

Constructors

MessageMediaGiveaway({required bool onlyNewSubscribers, required bool winnersAreVisible, required List<int> channels, List<String>? countriesIso2, String? prizeDescription, required int quantity, int? months, int? stars, required DateTime untilDate})
Message Media Giveaway constructor.
const
MessageMediaGiveaway.deserialize(BinaryReader reader)
Deserialize.
factory

Properties

channels → List<int>
Channels.
final
countriesIso2 → List<String>?
Countries Iso2.
final
flags → int
Flags.
no setter
hashCode → int
The hash code for this object.
no setterinherited
months → int?
Months.
final
onlyNewSubscribers → bool
only_new_subscribers: bit 0 of flags.0?true
final
prizeDescription → String?
Prize Description.
final
quantity → int
Quantity.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stars → int?
Stars.
final
untilDate → DateTime
Until Date.
final
winnersAreVisible → bool
winners_are_visible: bit 2 of flags.2?true
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(List<int> buffer) → void
Serialize.
override
toJson() → Map<String, dynamic>
Converts an object to JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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