Layer 224
AutoDownloadSettingsObj
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 |
|---|---|---|
| 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 AutoDownloadSettingsObj constructor obj := &tg.AutoDownloadSettingsObj{ PhotoSizeMax: 42, VideoSizeMax: int64(1234567890), FileSizeMax: int64(1234567890), VideoUploadMaxbitrate: 42, SmallQueueActiveOperationsMax: 42, LargeQueueActiveOperationsMax: 42, // Optional fields: // Disabled: true, // VideoPreloadLarge: true, // AudioPreloadNext: true, // PhonecallsLessData: true, // ... more optional fields }