account.SaveAutoDownloadSettings

class pyrogram.raw.functions.account.SaveAutoDownloadSettings

Change media autodownload settings

Details:
  • Layer: 223

  • ID: 76F36233

Parameters:
  • settings (AutoDownloadSettings) – Media autodownload settings

  • low (bool, optional) – Whether to save media in the low data usage preset

  • high (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
├── lowtrue (optional)
├── hightrue (optional)
└── settingsAutoDownloadSettings
├── disabledtrue (optional)
├── video_preload_largetrue (optional)
├── audio_preload_nexttrue (optional)
├── phonecalls_less_datatrue (optional)
├── stories_preloadtrue (optional)
├── photo_size_maxint
├── video_size_maxlong
├── file_size_maxlong
├── video_upload_maxbitrateint
├── small_queue_active_operations_maxint
└── large_queue_active_operations_maxint

Example

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
        ),
    )
)