Skip to content

class Tourmaline::InputPollOption
inherits Reference #

This object contains information about one answer option in a poll to send.

Included modules

JSON::Serializable

Constructors#

.new(pull : JSON::PullParser) #

View source

.new(text, text_parse_mode : String? = nil, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity) #

View source

Methods#

#text : String #

Option text, 1-100 characters

View source

#text=(text : String) #

Option text, 1-100 characters

View source

#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

View source

#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

View source

#text_parse_mode : String? #

Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed

View source

#text_parse_mode=(text_parse_mode : String?) #

Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed

View source