class
Hamilton::Types::StarAmount
- Hamilton::Types::StarAmount
- Reference
- Object
Overview
Describes an amount of Telegram Stars.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/star_amount.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#amount : Int32
Integer amount of Telegram Stars, rounded to 0; can be negative.
-
#amount=(amount : Int32)
Integer amount of Telegram Stars, rounded to 0; can be negative.
-
#nanostar_amount : Int32 | Nil
The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be negative if and only if amount is non-positive.
-
#nanostar_amount=(nanostar_amount : Int32 | Nil)
The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be negative if and only if amount is non-positive.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be negative if and only if amount is non-positive.
The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be negative if and only if amount is non-positive.