class Telegram::API::PollOption

Overview

This object contains information about one answer option in a poll.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

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(text : String, voter_count : Int32) #

[View source]
def self.new(pull : JSON::PullParser) #

This object contains information about one answer option in a poll.


[View source]

Instance Method Detail

def text : String #

Option text, 1-100 characters


[View source]
def text=(text : String) #

Option text, 1-100 characters


[View source]
def voter_count : Int32 #

Number of users that voted for this option


[View source]
def voter_count=(voter_count : Int32) #

Number of users that voted for this option


[View source]