class Tourmaline::PollOption
- Tourmaline::PollOption
- Reference
- Object
Overview
This object contains information about one answer option in a poll.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(text : String, voter_count : Int32 | Int64, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity)
- .new(pull : JSON::PullParser)
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.
-
#voter_count : Int32 | Int64
Number of users that voted for this option
-
#voter_count=(voter_count : Int32 | Int64)
Number of users that voted for this option
Constructor Detail
def self.new(text : String, voter_count : Int32 | Int64, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity)
#
Instance Method Detail
def 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
def 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