SuggestedPostPrice

@Serializable
data class SuggestedPostPrice(val currency: String, val amount: Long)(source)

Desribes price of a suggested post.

Api reference

Constructors

Link copied to clipboard
constructor(currency: String, amount: Long)

Properties

Link copied to clipboard

The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.

Link copied to clipboard

Currency in which the post will be paid. Currently, must be one of "XTR" for Telegram Stars or "TON" for toncoins