ChatBoostSource.giftCode constructor
const
ChatBoostSource.giftCode({
- @JsonKey(name: 'source') @Default(ChatBoostSourceType.giftCode) ChatBoostSourceType source,
- @JsonKey(name: 'user') required User user,
The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
Implementation
const factory ChatBoostSource.giftCode({
/// Source of the boost, always "gift_code"
@JsonKey(name: 'source')
@Default(ChatBoostSourceType.giftCode)
final ChatBoostSourceType source,
/// User for which the gift code was created
@JsonKey(name: 'user') required User user,
}) = ChatBoostSourceGiftCode;