Link Search Menu Expand Document

Constructor: autoDownloadSettings

Back to constructors index

Autodownload settings

Attributes:

NameTypeRequiredDescription
disabledBoolOptionalDisable automatic media downloads?
video_preload_largeBoolOptionalWhether to preload the first seconds of videos larger than the specified limit
audio_preload_nextBoolOptionalWhether to preload the next audio track when you’re listening to music
phonecalls_less_dataBoolOptionalWhether to enable data saving mode in phone calls
stories_preloadBoolOptionalWhether to preload stories; in particular, the first documentAttributeVideo.preload_prefix_size bytes of story videos should be preloaded.
photo_size_maxintYesMaximum size of photos to preload
video_size_maxlongYesMaximum size of videos to preload
file_size_maxlongYesMaximum size of other files to preload
video_upload_maxbitrateintYesMaximum suggested bitrate for uploading videos
small_queue_active_operations_maxintYesA 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_maxintYesA limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB.

Type: AutoDownloadSettings

Example:

$autoDownloadSettings = ['_' => 'autoDownloadSettings', 'disabled' => Bool, 'video_preload_large' => Bool, 'audio_preload_next' => Bool, 'phonecalls_less_data' => Bool, 'stories_preload' => Bool, '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];