Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts>upload_getFile_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class upload_getFile_
extends Function_<enums.upload.File>
import { upload_getFile_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Returns content of a whole file or its part.

Constructors

new
upload_getFile_(params: { precise?: true; cdn_supported?: true; location: enums.InputFileLocation; offset: bigint; limit: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
cdn_supported: true

Whether the current client supports CDN downloads

limit: number

Number of bytes to be returned

location: enums.InputFileLocation

File location

offset: bigint

Number of bytes to be skipped

optional
precise: true

Disable some checks on limit and offset values, useful for example to stream videos by keyframes

Static Properties

__F: (params: { precise?: true; cdn_supported?: true; location: enums.InputFileLocation; offset: bigint; limit: number; }) => enums.upload.File
readonly
[name]: string
readonly
[paramDesc]: ParamDesc