class

Tourmaline::InputPollOption

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(text : String, text_parse_mode : String | Nil = nil, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

text

Option text, 1-100 characters

Source
text=(text : String)

Option text, 1-100 characters

Source
text_entities

Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode

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

Source
text_parse_mode

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

Source
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

Source