class
Hamilton::Types::AcceptedGiftTypes
- Hamilton::Types::AcceptedGiftTypes
- Reference
- Object
Overview
This object describes the types of gifts that can be gifted to a user or a chat.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/accepted_gift_types.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#limited_gifts : Bool
True, if limited regular gifts are accepted.
-
#limited_gifts=(limited_gifts : Bool)
True, if limited regular gifts are accepted.
-
#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.
-
#premium_subscription : Bool
True, if a Telegram Premium subscription is accepted.
-
#premium_subscription=(premium_subscription : Bool)
True, if a Telegram Premium subscription is accepted.
-
#unique_gifts : Bool
True, if unique gifts or gifts that can be upgraded to unique for free are accepted.
-
#unique_gifts=(unique_gifts : Bool)
True, if unique gifts or gifts that can be upgraded to unique for free are accepted.
-
#unlimited_gifts : Bool
True, if unlimited regular gifts are accepted.
-
#unlimited_gifts=(unlimited_gifts : Bool)
True, if unlimited regular gifts are accepted.
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 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.