Interface WriteGeneratedFilePart

Writes a part of a generated file. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file. Request type for Tdjson#writeGeneratedFilePart.

interface WriteGeneratedFilePart {
    @type: "writeGeneratedFilePart";
    data: string;
    generation_id: string;
    offset: number;
}

Properties

@type: "writeGeneratedFilePart"
data: string

The data to write.

generation_id: string

The identifier of the generation process.

offset: number

The offset from which to write the data to the file.