class Telegram::API::PollAnswer

Overview

This object represents an answer of a user in a non-anonymous 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(poll_id : String, user : User, option_ids : Array(Int32) = Array(Int32).new) #

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

This object represents an answer of a user in a non-anonymous poll.


[View source]

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.


[View source]
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.


[View source]
def poll_id : String #

Unique poll identifier


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

Unique poll identifier


[View source]
def user : User #

The user, who changed the answer to the poll


[View source]
def user=(user : User) #

The user, who changed the answer to the poll


[View source]