class
Hamilton::Types::SuggestedPostPaid
- Hamilton::Types::SuggestedPostPaid
- Reference
- Object
Overview
Describes a service message about a successful payment for a suggested post.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/suggested_post_paid.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#amount : Int32 | Nil
The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only.
-
#amount=(amount : Int32 | Nil)
The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only.
-
#currency : String
Currency in which the payment was made.
-
#currency=(currency : String)
Currency in which the payment was made.
-
#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.
-
#star_amount : Hamilton::Types::StarAmount
The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.
-
#star_amount=(star_amount : Hamilton::Types::StarAmount)
The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.
-
#suggested_post_message : Hamilton::Types::Message | Nil
Message containing the suggested post.
-
#suggested_post_message=(suggested_post_message : Hamilton::Types::Message | Nil)
Message containing the suggested post.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only.
The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only.
Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.
Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.
The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.
The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.
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.
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.