class Telegram::API::PollAnswer
- Telegram::API::PollAnswer
- Telegram::API::Type
- Reference
- Object
Overview
This object represents an answer of a user in a non-anonymous poll.
Defined in:
telegram/api/generated/types.crConstructors
- .new(poll_id : String, user : User, option_ids : Array(Int32) = Array(Int32).new)
-
.new(pull : JSON::PullParser)
This object represents an answer of a user in a non-anonymous poll.
Instance Method Summary
-
#option_ids : Array(Int32)
0-based identifiers of answer options, chosen by the user.
-
#option_ids=(option_ids : Array(Int32))
0-based identifiers of answer options, chosen by the user.
-
#poll_id : String
Unique poll identifier
-
#poll_id=(poll_id : String)
Unique poll identifier
-
#user : User
The user, who changed the answer to the poll
-
#user=(user : User)
The user, who changed the answer to the poll
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(pull : JSON::PullParser)
#
This object represents an answer of a user in a non-anonymous poll.
Instance Method Detail
def option_ids : Array(Int32)
#
0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
def option_ids=(option_ids : Array(Int32))
#
0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.