class
Tourmaline::StarAmount
- Tourmaline::StarAmount
- Reference
- Object
Overview
Describes an amount of Telegram Stars.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(amount : Int32 | Int64, nanostar_amount : Int32 | Int64 | Nil = nil)
Instance Method Summary
-
#amount : Int32 | Int64
Integer amount of Telegram Stars, rounded to 0; can be negative
-
#amount=(amount : Int32 | Int64)
Integer amount of Telegram Stars, rounded to 0; can be negative
-
#nanostar_amount : Int32 | Int64 | Nil
Optional.
-
#nanostar_amount=(nanostar_amount : Int32 | Int64 | Nil)
Optional.
Constructor Detail
Instance Method Detail
def amount=(amount : Int32 | Int64)
#
Integer amount of Telegram Stars, rounded to 0; can be negative
def 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
def 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