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_star_count : Int32 | Nil
For gifts bought from other users, the price paid for the gift.
-
#last_resale_star_count=(last_resale_star_count : Int32 | Nil)
For gifts bought from other users, the price paid for the gift.
-
#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.
For gifts bought from other users, the price paid for the gift.
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.
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.
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.