MadelineProtoDocs/old_docs/API_docs_v102/constructors/autoDownloadSettings.md
2019-06-24 15:45:02 +02:00

1.5 KiB

title description image
autoDownloadSettings Autodownload settings https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: autoDownloadSettings

Back to constructors index

Autodownload settings

Attributes:

Name Type Required Description
disabled Bool Optional Disabled?
video_preload_large Bool Optional Preload large videos?
audio_preload_next Bool Optional Preload audios?
phonecalls_less_data Bool Optional Use less data in phonecalls?
photo_size_max int Yes Maximum photo file size to preload
video_size_max int Yes Maximum video file size to preload
file_size_max int Yes Maximum file size to preload

Type: AutoDownloadSettings

Example:

$autoDownloadSettings = ['_' => 'autoDownloadSettings', 'disabled' => Bool, 'video_preload_large' => Bool, 'audio_preload_next' => Bool, 'phonecalls_less_data' => Bool, 'photo_size_max' => int, 'video_size_max' => int, 'file_size_max' => int];

Or, if you're into Lua:

autoDownloadSettings={_='autoDownloadSettings', disabled=Bool, video_preload_large=Bool, audio_preload_next=Bool, phonecalls_less_data=Bool, photo_size_max=int, video_size_max=int, file_size_max=int}