class
TD::Poll
Included Modules
- JSON::Serializable
Defined in:
telegram/types/poll.crConstructors
- .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)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #close_date : Int32
- #close_date=(close_date : Int32)
- #id : String
- #id=(id : String)
- #is_anonymous : Bool
- #is_anonymous=(is_anonymous : Bool)
- #is_closed : Bool
- #is_closed=(is_closed : Bool)
- #object_type : String
- #object_type=(object_type : String)
- #open_period : Int32
- #open_period=(open_period : Int32)
- #options : Array(TD::PollOption)
- #options=(options : Array(TD::PollOption))
- #question : String
- #question=(question : String)
- #recent_voter_user_ids : Array(Int64)
- #recent_voter_user_ids=(recent_voter_user_ids : Array(Int64))
- #total_voter_count : Int32
- #total_voter_count=(total_voter_count : Int32)
- #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(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)
#