class TD::InputMessageContent::Poll

Included Modules

Defined in:

telegram/types/input_message_content/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(question : String, options : Array(String), type : TD::PollType, open_period : Union(Int32, Nil), close_date : Union(Int32, Nil), is_closed : Union(Bool, Nil), is_anonymous : 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 | Nil) #

def is_anonymous : Bool #

def is_anonymous=(is_anonymous : Bool) #

def is_closed : Bool? #

def is_closed=(is_closed : Bool | Nil) #

def object_type : String #

def object_type=(object_type : String) #

def open_period : Int32? #

def open_period=(open_period : Int32 | Nil) #

def options : Array(String) #

def options=(options : Array(String)) #

def question : String #

def question=(question : String) #

def type : TD::PollType #

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