UploadFile

public struct UploadFile : Codable, Equatable, TDFunction

Asynchronously uploads a file to the cloud without sending it in a message. 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

  • Undocumented

    Declaration

    Swift

    public typealias Result = File
  • File to upload

    Declaration

    Swift

    public let file: InputFile
  • File type

    Declaration

    Swift

    public let fileType: FileType
  • Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two files are equal, then the first one for which uploadFile was called will be uploaded first

    Declaration

    Swift

    public let priority: Int32
  • Asynchronously uploads a file to the cloud without sending it in a message. 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

    Declaration

    Swift

    public init(file: InputFile, fileType: FileType, priority: Int32)

    Parameters

    file

    File to upload

    fileType

    File type

    priority

    Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two files are equal, then the first one for which uploadFile was called will be uploaded first