class

Tourmaline::PollOption

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(text : String, voter_count : Int32 | Int64, 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. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts

Source
text_entities=(text_entities : Array(Tourmaline::MessageEntity))

Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts

Source
voter_count

Number of users that voted for this option

Source
voter_count=(voter_count : Int32 | Int64)

Number of users that voted for this option

Source