Tourmaline::PollAnswer
Inherits JSON::Serializable < Reference < Object
This object represents an answer of a user in a non-anonymous poll.
Constructors
new(pull : JSON::PullParser)
Sourcenew(poll_id : String, option_ids : Array(Int32 | Int64) = [] of Int32 | Int64, voter_chat : Tourmaline::Chat | Nil = nil, user : Tourmaline::User | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
option_ids
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
Optional. The user that changed the answer to the poll, if the voter isn't anonymous
Optional. The chat that changed the answer to the poll, if the voter is anonymous