account.SaveAutoDownloadSettings
- class pyrogram.raw.functions.account.SaveAutoDownloadSettings
Change media autodownload settings
- Details:
Layer:
223ID:
76F36233
- Parameters:
settings (
AutoDownloadSettings) – Media autodownload settingslow (
bool, optional) – Whether to save media in the low data usage presethigh (
bool, optional) – Whether to save media in the high data usage preset
- Returns:
bool
TL Schema
account.saveAutoDownloadSettings#76f36233
flags:#
low:flags.0?true
high:flags.1?true
settings:AutoDownloadSettings
= Bool
Parameter Tree
SaveAutoDownloadSettings
├── low →
true (optional)├── high →
true (optional)└── settings →
AutoDownloadSettings├── disabled →
true (optional)├── video_preload_large →
true (optional)├── audio_preload_next →
true (optional)├── phonecalls_less_data →
true (optional)├── stories_preload →
true (optional)├── 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 →
intExample
await app.invoke(
SaveAutoDownloadSettings(
low=None,
high=None,
settings=AutoDownloadSettings(
disabled=None,
video_preload_large=None,
audio_preload_next=None,
phonecalls_less_data=None,
stories_preload=None,
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
),
)
)