Raw.AutoDownloadSettings
Autodownload settings
autoDownloadSettings#baa57628 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true stories_preload:flags.4?true photo_size_max:int video_size_max:long file_size_max:long video_upload_maxbitrate:int small_queue_active_operations_max:int large_queue_active_operations_max:int = AutoDownloadSettings;
export namespace Raw {
export class AutoDownloadSettings {
constructor(params: {
disabled?: boolean;
videoPreloadLarge?: boolean;
audioPreloadNext?: boolean;
phonecallsLessData?: boolean;
storiesPreload?: boolean;
photoSizeMax: number;
videoSizeMax: bigint;
fileSizeMax: bigint;
videoUploadMaxbitrate: number;
smallQueueActiveOperationsMax: number;
largeQueueActiveOperationsMax: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xbaa57628
Property
disabled
: boolean or undefinedDisable automatic media downloads?
videoPreloadLarge
: boolean or undefinedWhether to preload the first seconds of videos larger than the specified limit
audioPreloadNext
: boolean or undefinedWhether to preload the next audio track when you’re listening to music
phonecallsLessData
: boolean or undefinedWhether to enable data saving mode in phone calls
storiesPreload
: boolean or undefinedWhether to preload stories; in particular, the first documentattributevideo.preloadPrefixSize bytes of story videos should be preloaded.
photoSizeMax
: numberMaximum size of photos to preload
videoSizeMax
: bigintMaximum size of videos to preload
fileSizeMax
: bigintMaximum size of other files to preload
videoUploadMaxbitrate
: numberMaximum suggested bitrate for uploading videos
smallQueueActiveOperationsMax
: numberA limit, specifying the maximum number of files that should be downloaded in parallel from the same dc, for files smaller than 20mb.
largeQueueActiveOperationsMax
: numberA limit, specifying the maximum number of files that should be downloaded in parallel from the same dc, for files bigger than 20mb.