class
TD::PollOption
- TD::PollOption
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/poll_option.crConstructors
- .new(text : String, voter_count : Int32, vote_percentage : Int32, is_chosen : Bool = false, is_being_chosen : Bool = false)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #is_being_chosen : Bool
- #is_being_chosen=(is_being_chosen : Bool)
- #is_chosen : Bool
- #is_chosen=(is_chosen : Bool)
- #object_type : String
- #object_type=(object_type : String)
- #text : String
- #text=(text : String)
- #vote_percentage : Int32
- #vote_percentage=(vote_percentage : Int32)
- #voter_count : Int32
- #voter_count=(voter_count : Int32)
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(text : String, voter_count : Int32, vote_percentage : Int32, is_chosen : Bool = false, is_being_chosen : Bool = false)
#