class
TD::InputMessageContent::Poll
- TD::InputMessageContent::Poll
- TD::InputMessageContent
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/input_message_content/poll.crConstructors
- .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)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #close_date : Int32?
- #close_date=(close_date : Int32 | Nil)
- #is_anonymous : Bool
- #is_anonymous=(is_anonymous : Bool)
- #is_closed : Bool?
- #is_closed=(is_closed : Bool | Nil)
- #object_type : String
- #object_type=(object_type : String)
- #open_period : Int32?
- #open_period=(open_period : Int32 | Nil)
- #options : Array(String)
- #options=(options : Array(String))
- #question : String
- #question=(question : String)
- #type : TD::PollType
- #type=(type : TD::PollType)
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)
#