class Tourmaline::PollOption

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, voter_count : Int32 | Int64, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def text : String #

Option text, 1-100 characters


[View source]
def text=(text : String) #

Option text, 1-100 characters


[View source]
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


[View source]
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


[View source]
def voter_count : Int32 | Int64 #

Number of users that voted for this option


[View source]
def voter_count=(voter_count : Int32 | Int64) #

Number of users that voted for this option


[View source]