Airgram

Guides
/
/
Methods

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:

NameTypeDescription
generationIdstring The identifier of the generation process
offsetnumber The offset from which to write the data to the file
datastring 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>
}