class Hamilton::Types::StarAmount

Overview

Describes an amount of Telegram Stars.

Included Modules

Defined in:

types/star_amount.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def amount : Int32 #

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


def amount=(amount : Int32) #

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


def 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.


def 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.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.