class Tourmaline::InputPollOption
- Tourmaline::InputPollOption
- Reference
- Object
Overview
This object contains information about one answer option in a poll to be sent.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(text : String, text_parse_mode : String | Nil = nil, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity)
Instance Method Summary
-
#text : String
Option text, 1-100 characters
-
#text=(text : String)
Option text, 1-100 characters
-
#text_entities : Array(Tourmaline::MessageEntity)
Optional.
-
#text_entities=(text_entities : Array(Tourmaline::MessageEntity))
Optional.
-
#text_parse_mode : String | Nil
Optional.
-
#text_parse_mode=(text_parse_mode : String | Nil)
Optional.
Constructor Detail
def self.new(text : String, text_parse_mode : String | Nil = nil, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity)
#
Instance Method Detail
def text_entities : Array(Tourmaline::MessageEntity)
#
Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode
def text_entities=(text_entities : Array(Tourmaline::MessageEntity))
#
Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode
def text_parse_mode : String | Nil
#
Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed
def text_parse_mode=(text_parse_mode : String | Nil)
#
Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed