GetRemoteFile

public struct GetRemoteFile : Codable, Equatable, TDFunction

Returns information about a file by its remote ID; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. -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

  • Undocumented

    Declaration

    Swift

    public typealias Result = File
  • Remote identifier of the file to get

    Declaration

    Swift

    public let remoteFileId: String
  • File type, if known

    Declaration

    Swift

    public let fileType: FileType
  • Returns information about a file by its remote ID; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. -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

    Declaration

    Swift

    public init(remoteFileId: String, fileType: FileType)

    Parameters

    remoteFileId

    Remote identifier of the file to get

    fileType

    File type, if known