class TD::Poll

Included Modules

Defined in:

telegram/types/poll.cr

Constructors

Instance Method Summary

Instance methods inherited from class TD::Base

extract_abstract_type(__json : JSON::Any) extract_abstract_type, extract_type(__json : JSON::Any, class_type : Class) extract_type

Macros inherited from class TD::Base

object_attributes(type) object_attributes, object_type(type) object_type

Constructor Detail

def self.new(id : String, question : String, options : Array(TD::PollOption), total_voter_count : Int32, recent_voter_user_ids : Array(Int64), type : TD::PollType, open_period : Int32, close_date : Int32, is_anonymous : Bool = false, is_closed : Bool = false) #

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

[View source]
def self.new(__json : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def close_date : Int32 #

def close_date=(close_date : Int32) #

def id : String #

def id=(id : String) #

def is_anonymous : Bool #

def is_anonymous=(is_anonymous : Bool) #

def is_closed : Bool #

def is_closed=(is_closed : Bool) #

def object_type : String #

def object_type=(object_type : String) #

def open_period : Int32 #

def open_period=(open_period : Int32) #

def options : Array(TD::PollOption) #

def options=(options : Array(TD::PollOption)) #

def question : String #

def question=(question : String) #

def recent_voter_user_ids : Array(Int64) #

def recent_voter_user_ids=(recent_voter_user_ids : Array(Int64)) #

def total_voter_count : Int32 #

def total_voter_count=(total_voter_count : Int32) #

def type : TD::PollType #

def type=(type : TD::PollType) #