telegram api constructor · layer 229 · #baa57628

autoDownloadSettings

Autodownload settings

definition

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;

parameters

nametypedescription
flags#Flags, see TL conditional fields
disabledflags.0?trueDisable automatic media downloads?
video_preload_largeflags.1?trueWhether to preload the first seconds of videos larger than the specified limit
audio_preload_nextflags.2?trueWhether to preload the next audio track when you're listening to music
phonecalls_less_dataflags.3?trueWhether to enable data saving mode in phone calls
stories_preloadflags.4?trueWhether to preload stories; in particular, the first documentAttributeVideo.preload_prefix_size bytes of story videos should be preloaded.
photo_size_maxintMaximum size of photos to preload
video_size_maxlongMaximum size of videos to preload
file_size_maxlongMaximum size of other files to preload
video_upload_maxbitrateintMaximum suggested bitrate for uploading videos
small_queue_active_operations_maxintA limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files smaller than 20MB.
large_queue_active_operations_maxintA limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB.

type

AutoDownloadSettings

history

present in layers 96–229 · constructor id changed 3×

idlayers
#d246fd4796–106
#e04232f3107–142
#8efab953143–158
#baa57628159–229