api.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
Parameters
WriteGeneratedFilePartParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
generationId | string | The identifier of the generation process |
offset | number | The offset from which to write the data to the file |
data | string | The data to write |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'writeGeneratedFilePart' | 'error'
airgram: Airgram
request: {
method: 'writeGeneratedFilePart'
params: WriteGeneratedFilePartParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}