class Tourmaline::PollAnswer
inherits Reference
#
This object represents an answer of a user in a non-anonymous poll.
Included modules
JSON::Serializable
Constructors#
.new(poll_id, option_ids : Array(Int32 | Int64) = [] of Int32 | Int64, voter_chat : Tourmaline::Chat? = nil, user : Tourmaline::User? = nil)
#
(poll_id, option_ids : Array(Int32 | Int64) = [] of Int32 | Int64, voter_chat : Tourmaline::Chat? = nil, user : Tourmaline::User? = nil)
Methods#
#option_ids : Array(Int32 | Int64)
#
: Array(Int32 | Int64)
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
#option_ids=(option_ids : Array(Int32 | Int64))
#
(option_ids : Array(Int32 | Int64))
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
#user : Tourmaline::User?
#
: Tourmaline::User?
Optional. The user that changed the answer to the poll, if the voter isn't anonymous
#user=(user : Tourmaline::User?)
#
(user : Tourmaline::User?)
Optional. The user that changed the answer to the poll, if the voter isn't anonymous
#voter_chat : Tourmaline::Chat?
#
: Tourmaline::Chat?
Optional. The chat that changed the answer to the poll, if the voter is anonymous
#voter_chat=(voter_chat : Tourmaline::Chat?)
#
(voter_chat : Tourmaline::Chat?)
Optional. The chat that changed the answer to the poll, if the voter is anonymous