class
TelegramBot::OwnedGiftRegular
- TelegramBot::OwnedGiftRegular
- TelegramBot::OwnedGift
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/gift.crConstructors
- .new(gift : Gift, send_date : Int32, owned_gift_id : String | Nil = nil, sender_user : User | Nil = nil, text : String | Nil = nil, entities : Array(MessageEntity) | Nil = nil, is_private : Bool | Nil = nil, is_saved : Bool | Nil = nil, can_be_upgraded : Bool | Nil = nil, was_refunded : Bool | Nil = nil, convert_star_count : Int32 | Nil = nil, prepaid_upgrade_star_count : Int32 | Nil = nil, is_upgrade_separate : Bool | Nil = nil, unique_gift_number : Int32 | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #can_be_upgraded=(can_be_upgraded : Bool | Nil)
- #can_be_upgraded? : Bool | Nil
- #convert_star_count : Int32 | Nil
- #convert_star_count=(convert_star_count : Int32 | Nil)
- #entities : Array(MessageEntity) | Nil
- #entities=(entities : Array(MessageEntity) | Nil)
- #gift : Gift
- #gift=(gift : Gift)
- #is_private=(is_private : Bool | Nil)
- #is_private? : Bool | Nil
- #is_saved=(is_saved : Bool | Nil)
- #is_saved? : Bool | Nil
- #is_upgrade_separate=(is_upgrade_separate : Bool | Nil)
- #is_upgrade_separate? : Bool | Nil
- #owned_gift_id : String | Nil
- #owned_gift_id=(owned_gift_id : String | Nil)
- #prepaid_upgrade_star_count : Int32 | Nil
- #prepaid_upgrade_star_count=(prepaid_upgrade_star_count : Int32 | Nil)
- #send_date : Int32
- #send_date=(send_date : Int32)
- #sender_user : User | Nil
- #sender_user=(sender_user : User | Nil)
- #text : String | Nil
- #text=(text : String | Nil)
- #type : String
- #type=(type : String)
- #unique_gift_number : Int32 | Nil
- #unique_gift_number=(unique_gift_number : Int32 | Nil)
- #was_refunded=(was_refunded : Bool | Nil)
- #was_refunded? : Bool | Nil
Instance methods inherited from class TelegramBot::OwnedGift
type : String
type,
type=(type : String)
type=
Constructor methods inherited from class TelegramBot::OwnedGift
new(pull : JSON::PullParser)new(*, __pull_for_json_serializable pull : JSON::PullParser) new
Constructor Detail
def self.new(gift : Gift, send_date : Int32, owned_gift_id : String | Nil = nil, sender_user : User | Nil = nil, text : String | Nil = nil, entities : Array(MessageEntity) | Nil = nil, is_private : Bool | Nil = nil, is_saved : Bool | Nil = nil, can_be_upgraded : Bool | Nil = nil, was_refunded : Bool | Nil = nil, convert_star_count : Int32 | Nil = nil, prepaid_upgrade_star_count : Int32 | Nil = nil, is_upgrade_separate : Bool | Nil = nil, unique_gift_number : Int32 | Nil = nil)
#