class
Hamilton::Types::UniqueGift
- Hamilton::Types::UniqueGift
- Reference
- Object
Overview
This object describes a unique gift that was upgraded from a regular gift.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/unique_gift.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#backdrop : Hamilton::Types::UniqueGiftBackdrop
Backdrop of the gift.
-
#backdrop=(backdrop : Hamilton::Types::UniqueGiftBackdrop)
Backdrop of the gift.
-
#base_name : String
Human-readable name of the regular gift from which this unique gift was upgraded.
-
#base_name=(base_name : String)
Human-readable name of the regular gift from which this unique gift was upgraded.
-
#colors : Hamilton::Types::UniqueGiftColors | Nil
The color scheme that can be used by the gift's owner for the chat's name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only.
-
#colors=(colors : Hamilton::Types::UniqueGiftColors | Nil)
The color scheme that can be used by the gift's owner for the chat's name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only.
-
#gift_id : String
Identifier of the regular gift from which the gift was upgraded.
-
#gift_id=(gift_id : String)
Identifier of the regular gift from which the gift was upgraded.
-
#is_from_blockchain : Bool | Nil
True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram.
-
#is_from_blockchain=(is_from_blockchain : Bool | Nil)
True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram.
-
#is_premium : Bool | Nil
True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers.
-
#is_premium=(is_premium : Bool | Nil)
True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers.
-
#model : Hamilton::Types::UniqueGiftModel
Model of the gift.
-
#model=(model : Hamilton::Types::UniqueGiftModel)
Model of the gift.
-
#name : String
Unique name of the gift.
-
#name=(name : String)
Unique name of the gift.
-
#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.
-
#number : Int32
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
-
#number=(number : Int32)
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
-
#publisher_chat : Hamilton::Types::Chat
Information about the chat that published the gift.
-
#publisher_chat=(publisher_chat : Hamilton::Types::Chat)
Information about the chat that published the gift.
-
#symbol : Hamilton::Types::UniqueGiftSymbol
Symbol of the gift.
-
#symbol=(symbol : Hamilton::Types::UniqueGiftSymbol)
Symbol of 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
Human-readable name of the regular gift from which this unique gift was upgraded.
Human-readable name of the regular gift from which this unique gift was upgraded.
The color scheme that can be used by the gift's owner for the chat's name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only.
The color scheme that can be used by the gift's owner for the chat's name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only.
True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram.
True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram.
Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.
Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
Information about the chat that published the gift.