Raw.upload.GetFile

Raw.upload.GetFile

Returns content of a whole file or its part.

upload.getFile#be5335be flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:long limit:int = upload.File;
export namespace Raw {
  export namespace upload {
    export class GetFile {
      constructor(params: {
        precise?: boolean;
        cdnSupported?: boolean;
        location: Raw.TypeInputFileLocation;
        offset: bigint;
        limit: number;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xbe5335be

Property

  • precise : boolean or undefined

    Disable some checks on limit and offset values, useful for example to stream videos by keyframes

  • cdnSupported : boolean or undefined

    Whether the current client supports cdn downloads

  • location : Raw.TypeInputFileLocation

    File location

  • offset : bigint

    Number of bytes to be skipped

  • limit : number

    Number of bytes to be returned

Results

Raw.upload.TypeFile

Bots can use