class
Hamilton::Types::KeyboardButtonPollType
- Hamilton::Types::KeyboardButtonPollType
- Reference
- Object
Overview
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/keyboard_button_poll_type.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#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.
-
#type : String | Nil
If quiz is passed, the user will be allowed to create only polls in the quiz mode.
-
#type=(type : String | Nil)
If quiz is passed, the user will be allowed to create only polls in the quiz mode.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.
If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.