class
TD::Background
- TD::Background
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/background.crConstructors
- .new(id : String, name : String, document : Union(TD::Document, Nil), type : TD::BackgroundType, is_default : Bool = false, is_dark : Bool = false)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #document : TD::Document?
- #document=(document : Nil | TD::Document)
- #id : String
- #id=(id : String)
- #is_dark : Bool
- #is_dark=(is_dark : Bool)
- #is_default : Bool
- #is_default=(is_default : Bool)
- #name : String
- #name=(name : String)
- #object_type : String
- #object_type=(object_type : String)
- #type : TD::BackgroundType
- #type=(type : TD::BackgroundType)
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, name : String, document : Union(TD::Document, Nil), type : TD::BackgroundType, is_default : Bool = false, is_dark : Bool = false)
#