ChatBoostSource.premium constructor

const ChatBoostSource.premium({
  1. @JsonKey(name: 'source') @Default(ChatBoostSourceType.premium) ChatBoostSourceType source,
  2. @JsonKey(name: 'user') required User user,
})

The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.

Implementation

const factory ChatBoostSource.premium({
  /// Source of the boost, always "premium"
  @JsonKey(name: 'source')
  @Default(ChatBoostSourceType.premium)
  final ChatBoostSourceType source,

  /// User that boosted the chat
  @JsonKey(name: 'user') required User user,
}) = ChatBoostSourcePremium;