class
Hamilton::Types::OwnedGiftRegular
- Hamilton::Types::OwnedGiftRegular
- Reference
- Object
Overview
Describes a regular gift 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_upgraded : Bool | Nil
True, if the gift can be upgraded to a unique gift; for gifts received on behalf of business accounts only.
-
#can_be_upgraded=(can_be_upgraded : Bool | Nil)
True, if the gift can be upgraded to a unique gift; for gifts received on behalf of business accounts only.
-
#convert_star_count : Int32 | Nil
Number of Telegram Stars that can be claimed by the receiver instead of the gift; omitted if the gift cannot be converted to Telegram Stars.
-
#convert_star_count=(convert_star_count : Int32 | Nil)
Number of Telegram Stars that can be claimed by the receiver instead of the gift; omitted if the gift cannot be converted to Telegram Stars.
-
#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 regular gift.
-
#gift=(gift : Hamilton::Types::Gift)
Information about the regular 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_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.
-
#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 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 gift for the bot; for gifts received on behalf of business accounts only.
-
#prepaid_upgrade_star_count : Int32 | Nil
Number of Telegram Stars that were paid 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 paid by the sender for the ability to upgrade the gift.
-
#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.
-
#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.
-
#type : String
Type of the gift, always “regular”.
-
#type=(type : String)
Type of the gift, always “regular”.
-
#was_refunded : Bool | Nil
True, if the gift was refunded and isn't available anymore.
-
#was_refunded=(was_refunded : Bool | Nil)
True, if the gift was refunded and isn't available anymore.
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; for gifts received on behalf of business accounts only.
True, if the gift can be upgraded to a unique gift; for gifts received on behalf of business accounts only.
Number of Telegram Stars that can be claimed by the receiver instead of the gift; omitted if the gift cannot be converted to Telegram Stars.
Number of Telegram Stars that can be claimed by the receiver instead of the gift; omitted if the gift cannot be converted to Telegram Stars.
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 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.
Unique identifier of the gift for the bot; for gifts received on behalf of business accounts only.
Unique identifier of the gift for the bot; for gifts received on behalf of business accounts only.
Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift.
Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift.
Sender of the gift if it is a known user.
True, if the gift was refunded and isn't available anymore.