ChatBoost constructor
const
ChatBoost({
- @JsonKey(name: 'boost_id') required String boostId,
- @JsonKey(name: 'add_date') required int addDate,
- @JsonKey(name: 'expiration_date') required int expirationDate,
- @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;