Layer 220
AutoDownloadSettings
Autodownload settings
constructor
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;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Disabled | flags.0?true | Disable automatic media downloads? |
| VideoPreloadLarge | flags.1?true | Whether to preload the first seconds of videos larger than the specified limit |
| AudioPreloadNext | flags.2?true | Whether to preload the next audio track when you're listening to music |
| PhonecallsLessData | flags.3?true | Whether to enable data saving mode in phone calls |
| StoriesPreload | flags.4?true | Whether to preload stories; in particular, the first document Attribute Video. preload_prefix_size bytes of story videos should be preloaded. |
| PhotoSizeMax | int | Maximum size of photos to preload |
| VideoSizeMax | long | Maximum size of videos to preload |
| FileSizeMax | long | Maximum size of other files to preload |
| VideoUploadMaxbitrate | int | Maximum suggested bitrate for uploading videos |
| SmallQueueActiveOperationsMax | int | A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files smaller than 20 MB. |
| LargeQueueActiveOperationsMax | int | A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20 MB. |
Returns
AutoDownloadSettingsGogram Example
// Creating AutoDownloadSettings constructor obj := &tg.AutoDownloadSettings{ PhotoSizeMax: 0, VideoSizeMax: int64(0), FileSizeMax: int64(0), VideoUploadMaxbitrate: 0, SmallQueueActiveOperationsMax: 0, LargeQueueActiveOperationsMax: 0, // Optional fields: // Disabled: true, // VideoPreloadLarge: true, // AudioPreloadNext: true, // PhonecallsLessData: true, // ... more optional fields }