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

x/mtkruto/tl/2_types.ts>AutoDownloadSettings_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class AutoDownloadSettings_
import { AutoDownloadSettings_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Autodownload settings

Constructors

new
AutoDownloadSettings_(params: { disabled?: true; video_preload_large?: true; audio_preload_next?: true; phonecalls_less_data?: true; stories_preload?: true; photo_size_max: number; video_size_max: bigint; file_size_max: bigint; video_upload_maxbitrate: number; small_queue_active_operations_max: number; large_queue_active_operations_max: number; })

Properties

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

Whether to preload the next audio track when you're listening to music

optional
disabled: true

Disable automatic media downloads?

file_size_max: bigint

Maximum size of other files to preload

large_queue_active_operations_max: number

A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB.

optional
phonecalls_less_data: true

Whether to enable data saving mode in phone calls

photo_size_max: number

Maximum size of photos to preload

small_queue_active_operations_max: number

A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files smaller than 20MB.

optional
stories_preload: true

Whether to preload stories; in particular, the first documentAttributeVideo.preload_prefix_size bytes of story videos should be preloaded.

optional
video_preload_large: true

Whether to preload the first seconds of videos larger than the specified limit

video_size_max: bigint

Maximum size of videos to preload

video_upload_maxbitrate: number

Maximum suggested bitrate for uploading videos

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc