class
Tourmaline::OwnedGiftUnique
- Tourmaline::OwnedGiftUnique
- Reference
- Object
Overview
Describes a unique gift received and owned by a user or a chat.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(type : String, gift : Tourmaline::UniqueGift, send_date : Time, owned_gift_id : String | Nil = nil, sender_user : Tourmaline::User | Nil = nil, is_saved : Bool | Nil = nil, can_be_transferred : Bool | Nil = nil, transfer_star_count : Int32 | Int64 | Nil = nil, next_transfer_date : Int32 | Int64 | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#can_be_transferred=(can_be_transferred : Bool | Nil)
Optional.
-
#can_be_transferred? : Bool | Nil
Optional.
-
#gift : Tourmaline::UniqueGift
Information about the unique gift
-
#gift=(gift : Tourmaline::UniqueGift)
Information about the unique gift
-
#is_saved=(is_saved : Bool | Nil)
Optional.
-
#is_saved? : Bool | Nil
Optional.
-
#next_transfer_date : Time | Nil
Optional.
-
#next_transfer_date=(next_transfer_date : Time | Nil)
Optional.
-
#owned_gift_id : String | Nil
Optional.
-
#owned_gift_id=(owned_gift_id : String | Nil)
Optional.
-
#send_date : Time
Date the gift was sent in Unix time
-
#send_date=(send_date : Time)
Date the gift was sent in Unix time
-
#sender_user : Tourmaline::User | Nil
Optional.
-
#sender_user=(sender_user : Tourmaline::User | Nil)
Optional.
-
#transfer_star_count : Int32 | Int64 | Nil
Optional.
-
#transfer_star_count=(transfer_star_count : Int32 | Int64 | Nil)
Optional.
-
#type : String
Type of the gift, always "unique"
-
#type=(type : String)
Type of the gift, always "unique"
Constructor Detail
Instance Method Detail
Optional. True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only
Optional. True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only
Optional. True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only
Optional. True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only
Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now
Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now
Optional. Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only
Optional. Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only
Optional. Sender of the gift if it is a known user
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift