SuggestedPostParameters constructor
const
SuggestedPostParameters({
- @JsonKey(name: 'price') SuggestedPostPrice? price,
- @JsonKey(name: 'send_date') int? sendDate,
Creates a new SuggestedPostParameters object.
Implementation
const factory SuggestedPostParameters({
/// Optional. Proposed price for the post. If the field is omitted,
/// then the post is unpaid.
///
/// The price is specified in Telegram Stars and represents the cost
/// that users must pay to access or interact with the suggested post.
@JsonKey(name: 'price') SuggestedPostPrice? price,
/// Optional. Proposed send date of the post. If specified, then the date
/// must be between 300 second and 2678400 seconds (30 days) in the future.
/// If the field is omitted, then the post can be published at any time
/// within 30 days at the sole discretion of the user who approves it.
///
/// The value is a Unix timestamp representing when the post should be sent.
@JsonKey(name: 'send_date') int? sendDate,
}) = _SuggestedPostParameters;