class
Hamilton::Types::OwnedGiftUnique
- Hamilton::Types::OwnedGiftUnique
- Reference
- Object
Overview
Describes a unique gift received and owned by a user or a chat.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/owned_gift.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#can_be_transferred : Bool | Nil
True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only.
-
#can_be_transferred=(can_be_transferred : Bool | Nil)
True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only.
-
#gift : Hamilton::Types::UniqueGift
Information about the unique gift.
-
#gift=(gift : Hamilton::Types::UniqueGift)
Information about the unique gift.
-
#is_saved : Bool | Nil
True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only.
-
#is_saved=(is_saved : Bool | Nil)
True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only.
-
#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.
-
#owned_gift_id : String | Nil
Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only.
-
#owned_gift_id=(owned_gift_id : String | Nil)
Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only.
-
#send_date : Int32
Date the gift was sent in Unix time.
-
#send_date=(send_date : Int32)
Date the gift was sent in Unix time.
-
#sender_user : Hamilton::Types::User | Nil
Sender of the gift if it is a known user.
-
#sender_user=(sender_user : Hamilton::Types::User | Nil)
Sender of the gift if it is a known user.
-
#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.
-
#type : String
Type of the gift, always "unique".
-
#type=(type : String)
Type of the gift, always "unique".
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only.
True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only.
True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only.
True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only.
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.
Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only.
Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only.
Sender of the gift if it is a known user.
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.