class
Hamilton::Types::UniqueGiftInfo
- Hamilton::Types::UniqueGiftInfo
- Reference
- Object
Overview
Describes a service message about a unique gift that was sent or received.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/unique_gift_info.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#gift : Hamilton::Types::UniqueGift
Information about the gift.
-
#gift=(gift : Hamilton::Types::UniqueGift)
Information about the gift.
-
#last_resale_amount : Int32 | Nil
For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins.
-
#last_resale_amount=(last_resale_amount : Int32 | Nil)
For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins.
-
#last_resale_currency : String | Nil
For gifts bought from other users, the currency in which the payment for the gift was done.
-
#last_resale_currency=(last_resale_currency : String | Nil)
For gifts bought from other users, the currency in which the payment for the gift was done.
-
#next_transfer_date : Int32 | Nil
Point in time (Unix timestamp) when the gift can be transferred.
-
#next_transfer_date=(next_transfer_date : Int32 | Nil)
Point in time (Unix timestamp) when the gift can be transferred.
-
#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.
-
#origin : String
Origin of the gift.
-
#origin=(origin : String)
Origin of the gift.
-
#owned_gift_id : String | Nil
Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.
-
#owned_gift_id=(owned_gift_id : String | Nil)
Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.
-
#transfer_star_count : Int32 | Nil
Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.
-
#transfer_star_count=(transfer_star_count : Int32 | Nil)
Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins.
For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins.
For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.
For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.
Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.
Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, or “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers.
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, or “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers.
Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.
Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.
Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.
Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.