Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.2.24/client/2_file_manager.ts";

Constructors

new
FileManager(c: C)

Methods

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

Static Methods

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