class Telegram::API::PollOption
- Telegram::API::PollOption
- Telegram::API::Type
- Reference
- Object
Overview
This object contains information about one answer option in a poll.
Defined in:
telegram/api/generated/types.crConstructors
- .new(text : String, voter_count : Int32)
-
.new(pull : JSON::PullParser)
This object contains information about one answer option in a poll.
Instance Method Summary
-
#text : String
Option text, 1-100 characters
-
#text=(text : String)
Option text, 1-100 characters
-
#voter_count : Int32
Number of users that voted for this option
-
#voter_count=(voter_count : Int32)
Number of users that voted for this option
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 contains information about one answer option in a poll.