StarAmount

@Serializable
data class StarAmount(val amount: Int, val nanostarAmount: Int? = null)(source)

Describes an amount of Telegram Stars.

Api reference

Constructors

Link copied to clipboard
constructor(amount: Int, nanostarAmount: Int? = null)

Properties

Link copied to clipboard
val amount: Int

Integer amount of Telegram Stars, rounded to 0; can be negative

Link copied to clipboard
val nanostarAmount: Int? = null

Optional. The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be negative if and only if amount is non-positive