class TD::LocalFile

Included Modules

Defined in:

telegram/types/local_file.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(path : String, download_offset : Int32, downloaded_prefix_size : Int32, downloaded_size : Int32, can_be_downloaded : Bool = false, can_be_deleted : Bool = false, is_downloading_active : Bool = false, is_downloading_completed : 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 can_be_deleted : Bool #

def can_be_deleted=(can_be_deleted : Bool) #

def can_be_downloaded : Bool #

def can_be_downloaded=(can_be_downloaded : Bool) #

def download_offset : Int32 #

def download_offset=(download_offset : Int32) #

def downloaded_prefix_size : Int32 #

def downloaded_prefix_size=(downloaded_prefix_size : Int32) #

def downloaded_size : Int32 #

def downloaded_size=(downloaded_size : Int32) #

def is_downloading_active : Bool #

def is_downloading_active=(is_downloading_active : Bool) #

def is_downloading_completed : Bool #

def is_downloading_completed=(is_downloading_completed : Bool) #

def object_type : String #

def object_type=(object_type : String) #

def path : String #

def path=(path : String) #