class

Tourmaline::StarAmount

Inherits JSON::Serializable < Reference < Object

Describes an amount of Telegram Stars.

Constructors

new(amount : Int32 | Int64, nanostar_amount : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

amount

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

Source
amount=(amount : Int32 | Int64)

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

Source
nanostar_amount

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

Source
nanostar_amount=(nanostar_amount : Int32 | Int64 | Nil)

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

Source