class Hamilton::Types::SuggestedPostPrice

Overview

Describes the price of a suggested post.

Included Modules

Defined in:

types/suggested_post_price.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 #

The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.


def amount=(amount : Int32) #

The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.


def currency : String #

Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for toncoins.


def currency=(currency : String) #

Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for toncoins.


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.