class
TD::Sticker
- TD::Sticker
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/sticker.crConstructors
- .new(set_id : String, width : Int32, height : Int32, emoji : String, mask_position : Union(TD::MaskPosition, Nil), outline : Array(TD::ClosedVectorPath), thumbnail : Union(TD::Thumbnail, Nil), sticker : TD::File, is_animated : Bool = false, is_mask : Bool = false)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #emoji : String
- #emoji=(emoji : String)
- #height : Int32
- #height=(height : Int32)
- #is_animated : Bool
- #is_animated=(is_animated : Bool)
- #is_mask : Bool
- #is_mask=(is_mask : Bool)
- #mask_position : TD::MaskPosition?
- #mask_position=(mask_position : Nil | TD::MaskPosition)
- #object_type : String
- #object_type=(object_type : String)
- #outline : Array(TD::ClosedVectorPath)
- #outline=(outline : Array(TD::ClosedVectorPath))
- #set_id : String
- #set_id=(set_id : String)
- #sticker : TD::File
- #sticker=(sticker : TD::File)
- #thumbnail : TD::Thumbnail?
- #thumbnail=(thumbnail : Nil | TD::Thumbnail)
- #width : Int32
- #width=(width : 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(set_id : String, width : Int32, height : Int32, emoji : String, mask_position : Union(TD::MaskPosition, Nil), outline : Array(TD::ClosedVectorPath), thumbnail : Union(TD::Thumbnail, Nil), sticker : TD::File, is_animated : Bool = false, is_mask : Bool = false)
#