Skip to content

class Tourmaline::PollAnswer
inherits Reference #

This object represents an answer of a user in a non-anonymous poll.

Included modules

JSON::Serializable

Constructors#

.new(pull : JSON::PullParser) #

View source

.new(poll_id, option_ids : Array(Int32 | Int64) = [] of Int32 | Int64, voter_chat : Tourmaline::Chat? = nil, user : Tourmaline::User? = nil) #

View source

Methods#

#option_ids : Array(Int32 | Int64) #

0-based identifiers of chosen answer options. May be empty if the vote was retracted.

View source

#option_ids=(option_ids : Array(Int32 | Int64)) #

0-based identifiers of chosen answer options. May be empty if the vote was retracted.

View source

#poll_id : String #

Unique poll identifier

View source

#poll_id=(poll_id : String) #

Unique poll identifier

View source

#user : Tourmaline::User? #

Optional. The user that changed the answer to the poll, if the voter isn't anonymous

View source

#user=(user : Tourmaline::User?) #

Optional. The user that changed the answer to the poll, if the voter isn't anonymous

View source

#voter_chat : Tourmaline::Chat? #

Optional. The chat that changed the answer to the poll, if the voter is anonymous

View source

#voter_chat=(voter_chat : Tourmaline::Chat?) #

Optional. The chat that changed the answer to the poll, if the voter is anonymous

View source