SuggestedPostPaid constructor

const SuggestedPostPaid({
  1. @JsonKey(name: 'suggested_post_message') Message? suggestedPostMessage,
  2. @JsonKey(name: 'currency') required String currency,
  3. @JsonKey(name: 'amount') int? amount,
  4. @JsonKey(name: 'star_amount') StarAmount? starAmount,
})

Creates a new SuggestedPostPaid object.

Implementation

const factory SuggestedPostPaid({
  /// Optional. Message containing the suggested post. Note that the Message
  /// object in this field will not contain the reply_to_message field even
  /// if it itself is a reply.
  @JsonKey(name: 'suggested_post_message') Message? suggestedPostMessage,

  /// Currency in which the payment was made. Currently, one of "XTR" for
  /// Telegram Stars or "TON" for toncoins
  @JsonKey(name: 'currency') required String currency,

  /// Optional. The amount of the currency that was received by the channel
  /// in nanotoncoins; for payments in toncoins only
  @JsonKey(name: 'amount') int? amount,

  /// Optional. The amount of Telegram Stars that was received by the channel;
  /// for payments in Telegram Stars only
  @JsonKey(name: 'star_amount') StarAmount? starAmount,
}) = _SuggestedPostPaid;