class TD::Sticker

Included Modules

Defined in:

telegram/types/sticker.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(__json : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def emoji : String #

def emoji=(emoji : String) #

def height : Int32 #

def height=(height : Int32) #

def is_animated : Bool #

def is_animated=(is_animated : Bool) #

def is_mask : Bool #

def is_mask=(is_mask : Bool) #

def mask_position : TD::MaskPosition? #

def mask_position=(mask_position : Nil | TD::MaskPosition) #

def object_type : String #

def object_type=(object_type : String) #

def outline : Array(TD::ClosedVectorPath) #

def outline=(outline : Array(TD::ClosedVectorPath)) #

def set_id : String #

def set_id=(set_id : String) #

def sticker : TD::File #

def sticker=(sticker : TD::File) #

def thumbnail : TD::Thumbnail? #

def thumbnail=(thumbnail : Nil | TD::Thumbnail) #

def width : Int32 #

def width=(width : Int32) #