class
Tourmaline::GiftInfo
- Tourmaline::GiftInfo
- Reference
- Object
Overview
Describes a service message about a regular gift that was sent or received.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(gift : Tourmaline::Gift, owned_gift_id : String | Nil = nil, convert_star_count : Int32 | Int64 | Nil = nil, prepaid_upgrade_star_count : Int32 | Int64 | Nil = nil, is_upgrade_separate : Bool | Nil = nil, can_be_upgraded : Bool | Nil = nil, text : String | Nil = nil, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, is_private : Bool | Nil = nil, unique_gift_number : Int32 | Int64 | Nil = nil)
Instance Method Summary
-
#can_be_upgraded=(can_be_upgraded : Bool | Nil)
Optional.
-
#can_be_upgraded? : Bool | Nil
Optional.
-
#convert_star_count : Int32 | Int64 | Nil
Optional.
-
#convert_star_count=(convert_star_count : Int32 | Int64 | Nil)
Optional.
-
#entities : Array(Tourmaline::MessageEntity)
Optional.
-
#entities=(entities : Array(Tourmaline::MessageEntity))
Optional.
-
#gift : Tourmaline::Gift
Information about the gift
-
#gift=(gift : Tourmaline::Gift)
Information about the gift
-
#is_private=(is_private : Bool | Nil)
Optional.
-
#is_private? : Bool | Nil
Optional.
-
#is_upgrade_separate=(is_upgrade_separate : Bool | Nil)
Optional.
-
#is_upgrade_separate? : Bool | Nil
Optional.
-
#owned_gift_id : String | Nil
Optional.
-
#owned_gift_id=(owned_gift_id : String | Nil)
Optional.
-
#prepaid_upgrade_star_count : Int32 | Int64 | Nil
Optional.
-
#prepaid_upgrade_star_count=(prepaid_upgrade_star_count : Int32 | Int64 | Nil)
Optional.
-
#text : String | Nil
Optional.
-
#text=(text : String | Nil)
Optional.
-
#unique_gift_number : Int32 | Int64 | Nil
Optional.
-
#unique_gift_number=(unique_gift_number : Int32 | Int64 | Nil)
Optional.
Constructor Detail
Instance Method Detail
Optional. True, if the gift can be upgraded to a unique gift
Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible
Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible
Optional. Special entities that appear in the text
Optional. Special entities that appear in the text
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
Optional. True, if the gift's upgrade was purchased after the gift was sent
Optional. True, if the gift's upgrade was purchased after the gift was sent
Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
Optional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift
Optional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift