class
TD::Game
Included Modules
- JSON::Serializable
Defined in:
telegram/types/game.crConstructors
- .new(id : String, short_name : String, title : String, text : TD::FormattedText, description : String, photo : TD::Photo, animation : Union(TD::Animation, Nil))
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #animation : TD::Animation?
- #animation=(animation : Nil | TD::Animation)
- #description : String
- #description=(description : String)
- #id : String
- #id=(id : String)
- #object_type : String
- #object_type=(object_type : String)
- #photo : TD::Photo
- #photo=(photo : TD::Photo)
- #short_name : String
- #short_name=(short_name : String)
- #text : TD::FormattedText
- #text=(text : TD::FormattedText)
- #title : String
- #title=(title : String)
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, short_name : String, title : String, text : TD::FormattedText, description : String, photo : TD::Photo, animation : Union(TD::Animation, Nil))
#