PreliminaryUploadFile constructor

const PreliminaryUploadFile({
  1. required InputFile file,
  2. FileType? fileType,
  3. required int priority,
})

Preliminary uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes. Updates updateFile will be used. to notify about upload progress and successful completion of the upload. The file will not have a persistent remote identifier until it will be sent in a message

Implementation

const PreliminaryUploadFile({
  required this.file,
  this.fileType,
  required this.priority,
});