class
Hamilton::Types::GiftInfo
- Hamilton::Types::GiftInfo
- Reference
- Object
Overview
Describes a service message about a regular gift that was sent or received.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/gift_info.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#can_be_upgraded : Bool | Nil
True, if the gift can be upgraded to a unique gift.
-
#can_be_upgraded=(can_be_upgraded : Bool | Nil)
True, if the gift can be upgraded to a unique gift.
-
#convert_star_count : Int32 | Nil
Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible.
-
#convert_star_count=(convert_star_count : Int32 | Nil)
Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible.
-
#entities : Array(Hamilton::Types::MessageEntity) | Nil
Special entities that appear in the text.
-
#entities=(entities : Array(Hamilton::Types::MessageEntity) | Nil)
Special entities that appear in the text.
-
#gift : Hamilton::Types::Gift
Information about the gift.
-
#gift=(gift : Hamilton::Types::Gift)
Information about the gift.
-
#is_private : Bool | Nil
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
-
#is_private=(is_private : Bool | Nil)
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
-
#is_upgrade_separate : Bool | Nil
True, if the gift's upgrade was purchased after the gift was sent.
-
#is_upgrade_separate=(is_upgrade_separate : Bool | Nil)
True, if the gift's upgrade was purchased after the gift was sent.
-
#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; 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.
-
#prepaid_upgrade_star_count : Int32 | Nil
Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift.
-
#prepaid_upgrade_star_count=(prepaid_upgrade_star_count : Int32 | Nil)
Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift.
-
#text : String | Nil
Text of the message that was added to the gift.
-
#text=(text : String | Nil)
Text of the message that was added to the gift.
-
#unique_gift_number : Int32 | Nil
Unique number reserved for this gift when upgraded.
-
#unique_gift_number=(unique_gift_number : Int32 | Nil)
Unique number reserved for this gift when upgraded.
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 upgraded to a unique gift.
Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible.
Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible.
Special entities that appear in the text.
Special entities that appear in the text.
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
True, if the gift's upgrade was purchased after the gift was sent.
True, if the gift's upgrade was purchased after the gift was sent.
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 were prepaid by the sender for the ability to upgrade the gift.
Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift.
Unique number reserved for this gift when upgraded. See the number field in Hamilton::Types::UniqueGift.
Unique number reserved for this gift when upgraded. See the number field in Hamilton::Types::UniqueGift.