Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/client/2_file_manager.ts>FileManager

Cross-runtime JavaScript library for building Telegram clients
Latest
class FileManager
import { FileManager } from "https://deno.land/x/mtkruto@0.6.2/client/2_file_manager.ts";

Constructors

new
FileManager(c: C)

Methods

download(fileId: string, params?: DownloadParams)
downloadInner(
location: Api.InputFileLocation,
dcId: number,
params: DownloadParams | undefined,
)
getCustomEmojiStickers(id: string | string[])
getStickerSetName(inputStickerSet: Api.inputStickerSetID, hash?)
upload(
file: FileSource,
params?: _UploadCommon,
checkName?: null | ((name: string) => string),
allowStream?,
): Promise<Api.InputFile>

Static Methods

validateChunkSize(chunkSize: number, max: number)
validateOffset(offset: number)