class
Hamilton::Types::InputPollOption
- Hamilton::Types::InputPollOption
- Reference
- Object
Overview
This object contains information about one answer option in a poll to be sent.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/input_poll_option.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.
-
#text : String
Option text, 1-100 characters.
-
#text=(text : String)
Option text, 1-100 characters.
-
#text_entities : Array(Hamilton::Types::MessageEntity)
A JSON-serialized list of special entities that appear in the poll option text.
-
#text_entities=(text_entities : Array(Hamilton::Types::MessageEntity))
A JSON-serialized list of special entities that appear in the poll option text.
-
#text_parse_mode : String | Nil
Mode for parsing entities in the text.
-
#text_parse_mode=(text_parse_mode : String | Nil)
Mode for parsing entities in the text.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode.
A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode.
Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed.
Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed.