InputFile

public indirect enum InputFile : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum

Points to a file

  • A file defined by its unique ID

    • id: Unique file identifier

    Declaration

    Swift

    case id(id: Int32)
  • A file defined by its remote ID. The remote ID is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib. -For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the client

    • id: Remote file identifier

    Declaration

    Swift

    case remote(id: String)
  • A file defined by a local path

    • path: Local path to the file

    Declaration

    Swift

    case local(path: String)
  • A file generated by the client

    • originalPath: Local path to a file from which the file is generated; may be empty if there is no such file
    • conversion: String specifying the conversion applied to the original file; should be persistent across application restarts. Conversions beginning with ‘#’ are reserved for internal TDLib usage
    • expectedSize: Expected size of the generated file; 0 if unknown

    Declaration

    Swift

    case generated(originalPath: String, conversion: String, expectedSize: Int32)