Raw.AutoDownloadSettings

Raw.AutoDownloadSettings

Autodownload settings

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;
export namespace Raw {
  export class AutoDownloadSettings {
    constructor(params: {
      disabled?: boolean;
      videoPreloadLarge?: boolean;
      audioPreloadNext?: boolean;
      phonecallsLessData?: boolean;
      storiesPreload?: boolean;
      photoSizeMax: number;
      videoSizeMax: bigint;
      fileSizeMax: bigint;
      videoUploadMaxbitrate: number;
      smallQueueActiveOperationsMax: number;
      largeQueueActiveOperationsMax: number;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xbaa57628

Property

  • disabled : boolean or undefined

    Disable automatic media downloads?

  • videoPreloadLarge : boolean or undefined

    Whether to preload the first seconds of videos larger than the specified limit

  • audioPreloadNext : boolean or undefined

    Whether to preload the next audio track when you’re listening to music

  • phonecallsLessData : boolean or undefined

    Whether to enable data saving mode in phone calls

  • storiesPreload : boolean or undefined

    Whether to preload stories; in particular, the first documentattributevideo.preloadPrefixSize bytes of story videos should be preloaded.

  • photoSizeMax : number

    Maximum size of photos to preload

  • videoSizeMax : bigint

    Maximum size of videos to preload

  • fileSizeMax : bigint

    Maximum size of other files to preload

  • videoUploadMaxbitrate : number

    Maximum suggested bitrate for uploading videos

  • smallQueueActiveOperationsMax : number

    A limit, specifying the maximum number of files that should be downloaded in parallel from the same dc, for files smaller than 20mb.

  • largeQueueActiveOperationsMax : number

    A limit, specifying the maximum number of files that should be downloaded in parallel from the same dc, for files bigger than 20mb.