Skip to main content

autoDownloadSettings

Autodownload settings

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

Fields

NameTypeRequiredDescription
DisabledboolDisable automatic media downloads?
VideoPreloadLargeboolWhether to preload the first seconds of videos larger than the specified limit
AudioPreloadNextboolWhether to preload the next audio track when you're listening to music
PhonecallsLessDataboolWhether to enable data saving mode in phone calls
StoriesPreloadboolWhether 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