TransactionPartner.telegramApi constructor

  1. @Assert('type == TransactionPartnerType.telegramApi', 'type must be TransactionPartnerType.telegramApi')
const TransactionPartner.telegramApi({
  1. @JsonKey(name: 'type') @Default(TransactionPartnerType.telegramApi) TransactionPartnerType type,
  2. @JsonKey(name: 'request_count') int? requestCount,
})

Represents transaction with payment for paid broadcasting

Implementation

@Assert(
  'type == TransactionPartnerType.telegramApi',
  'type must be TransactionPartnerType.telegramApi',
)
const factory TransactionPartner.telegramApi({
  /// Type of the transaction partner, must be "telegram_api"
  @JsonKey(name: 'type')
  @Default(TransactionPartnerType.telegramApi)
  TransactionPartnerType type,

  /// The number of successful requests that exceeded regular limits and were
  /// therefore billed.
  @JsonKey(name: 'request_count') final int? requestCount,
}) = TransactionPartnerTelegramApi;