ChatBoost class
This object contains information about a chat boost.
Constructors
- ChatBoost({required String boostId, required int addDate, required int expirationDate, required ChatBoostSource source})
-
Creates a chat boost.
const
-
ChatBoost.fromJson(Map<
String, dynamic> json) -
Creates a
ChatBoost
object from a JSON object.factory
Properties
- addDate → int
-
Point in time (Unix timestamp) when the chat was boosted
final
- boostId → String
-
Unique identifier of the boost
final
- expirationDate → int
-
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → ChatBoostSource
-
Source of the added boost
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
ChatBoost
object to a JSON object. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited