class
Tourmaline::AcceptedGiftTypes
- Tourmaline::AcceptedGiftTypes
- Reference
- Object
Overview
This object describes the types of gifts that can be gifted to a user or a chat.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(unlimited_gifts : Bool, limited_gifts : Bool, unique_gifts : Bool, premium_subscription : Bool, gifts_from_channels : Bool)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#gifts_from_channels=(gifts_from_channels : Bool)
True, if transfers of unique gifts from channels are accepted
-
#gifts_from_channels? : Bool
True, if transfers of unique gifts from channels are accepted
-
#limited_gifts=(limited_gifts : Bool)
True, if limited regular gifts are accepted
-
#limited_gifts? : Bool
True, if limited regular gifts are accepted
-
#premium_subscription=(premium_subscription : Bool)
True, if a Telegram Premium subscription is accepted
-
#premium_subscription? : Bool
True, if a Telegram Premium subscription is accepted
-
#unique_gifts=(unique_gifts : Bool)
True, if unique gifts or gifts that can be upgraded to unique for free are accepted
-
#unique_gifts? : Bool
True, if unique gifts or gifts that can be upgraded to unique for free are accepted
-
#unlimited_gifts=(unlimited_gifts : Bool)
True, if unlimited regular gifts are accepted
-
#unlimited_gifts? : Bool
True, if unlimited regular gifts are accepted
Constructor Detail
Instance Method Detail
True, if transfers of unique gifts from channels are accepted
True, if unique gifts or gifts that can be upgraded to unique for free are accepted
True, if unique gifts or gifts that can be upgraded to unique for free are accepted