Skip to content

class Tourmaline::PollOption
inherits Reference #

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

Included modules

JSON::Serializable

Constructors#

.new(text, voter_count, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity) #

View source

.new(pull : JSON::PullParser) #

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. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts

View 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

View source

#voter_count : Int32 | Int64 #

Number of users that voted for this option

View source

#voter_count=(voter_count : Int32 | Int64) #

Number of users that voted for this option

View source