AutoDownloadSettings
- class pyrogram.raw.types.AutoDownloadSettings
Autodownload settings
Constructor of
AutoDownloadSettings.- Details:
Layer:
223ID:
BAA57628
- Parameters:
photo_size_max (
int32-bit) – Maximum size of photos to preloadvideo_size_max (
int64-bit) – Maximum size of videos to preloadfile_size_max (
int64-bit) – Maximum size of other files to preloadvideo_upload_maxbitrate (
int32-bit) – Maximum suggested bitrate for uploading videossmall_queue_active_operations_max (
int32-bit) – A 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_max (
int32-bit) – A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB.disabled (
bool, optional) – Disable automatic media downloads?video_preload_large (
bool, optional) – Whether to preload the first seconds of videos larger than the specified limitaudio_preload_next (
bool, optional) – Whether to preload the next audio track when you’re listening to musicphonecalls_less_data (
bool, optional) – Whether to enable data saving mode in phone callsstories_preload (
bool, optional) – Whether to preload stories; in particular, the first documentAttributeVideo.preload_prefix_size bytes of story videos should be preloaded.
TL Schema
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
Parameter Tree
true (optional)true (optional)true (optional)true (optional)true (optional)intlonglongintintintExample
AutoDownloadSettings(
photo_size_max=0,
video_size_max=0,
file_size_max=0,
video_upload_maxbitrate=0,
small_queue_active_operations_max=0,
large_queue_active_operations_max=0,
)