autoDownloadSettings
Autodownload settings
type tg.AutoDownloadSettings struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Disabled | bool | — | Disable automatic media downloads? |
VideoPreloadLarge | bool | — | Whether to preload the first seconds of videos larger than the specified limit |
AudioPreloadNext | bool | — | Whether to preload the next audio track when you're listening to music |
PhonecallsLessData | bool | — | Whether to enable data saving mode in phone calls |
StoriesPreload | bool | — | Whether to preload stories; in particular, the first documentAttributeVideo preload_prefix_size bytes of story videos should be preloaded. |
PhotoSizeMax | int | yes | Maximum size of photos to preload |
VideoSizeMax | int64 | yes | Maximum size of videos to preload |
FileSizeMax | int64 | yes | Maximum size of other files to preload |
VideoUploadMaxbitrate | int | yes | Maximum suggested bitrate for uploading videos |
SmallQueueActiveOperationsMax | int | yes | A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files smaller than 20MB. |
LargeQueueActiveOperationsMax | int | yes | A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB. |
References
- Official documentation
- Generated Go reference
- TL definition:
autoDownloadSettings#baa57628