Skip to main content

autoDownloadSettings

Autodownload settings

type tg.AutoDownloadSettings struct { /* ... */ }

Fields​

NameTypeRequiredDescription
Disabledbool—Disable automatic media downloads?
VideoPreloadLargebool—Whether to preload the first seconds of videos larger than the specified limit
AudioPreloadNextbool—Whether to preload the next audio track when you're listening to music
PhonecallsLessDatabool—Whether to enable data saving mode in phone calls
StoriesPreloadbool—Whether to preload stories; in particular, the first documentAttributeVideo preload_prefix_size bytes of story videos should be preloaded.
PhotoSizeMaxintyesMaximum size of photos to preload
VideoSizeMaxint64yesMaximum size of videos to preload
FileSizeMaxint64yesMaximum size of other files to preload
VideoUploadMaxbitrateintyesMaximum suggested bitrate for uploading videos
SmallQueueActiveOperationsMaxintyesA limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files smaller than 20MB.
LargeQueueActiveOperationsMaxintyesA limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB.

References​