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.
-
#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.
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.