class Hamilton::Types::SuggestedPostPaid

Overview

Describes a service message about a successful payment for a suggested post.

Included Modules

Defined in:

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

The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only.


def amount=(amount : Int32 | Nil) #

The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only.


def currency : String #

Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.


def currency=(currency : String) #

Currency in which the payment was made. Currently, 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.


def star_amount : Hamilton::Types::StarAmount #

The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.


def star_amount=(star_amount : Hamilton::Types::StarAmount) #

The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.


def suggested_post_message : Hamilton::Types::Message | Nil #

Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.


def suggested_post_message=(suggested_post_message : Hamilton::Types::Message | Nil) #

Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.