class Tourmaline::StarAmount

Overview

Describes an amount of Telegram Stars.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(amount : Int32 | Int64, nanostar_amount : Int32 | Int64 | Nil = nil) #

[View source]

Instance Method Detail

def amount : Int32 | Int64 #

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


[View source]
def amount=(amount : Int32 | Int64) #

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


[View source]
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


[View source]
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


[View source]