ChatBoost constructor

const ChatBoost({
  1. @JsonKey(name: 'boost_id') required String boostId,
  2. @JsonKey(name: 'add_date') required int addDate,
  3. @JsonKey(name: 'expiration_date') required int expirationDate,
  4. @JsonKey(name: 'source') required ChatBoostSource source,
})

Creates a chat boost.

Implementation

const factory ChatBoost({
  /// Unique identifier of the boost
  @JsonKey(name: 'boost_id') required final String boostId,

  /// Point in time (Unix timestamp) when the chat was boosted
  @JsonKey(name: 'add_date') required final int addDate,

  /// Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged
  @JsonKey(name: 'expiration_date') required final int expirationDate,

  /// Source of the added boost
  @JsonKey(name: 'source') required final ChatBoostSource source,
}) = _ChatBoost;