GetFileMimeType

public struct GetFileMimeType : Codable, Equatable, TDFunction

Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously

  • Undocumented

    Declaration

    Swift

    public typealias Result = Text
  • The name of the file or path to the file

    Declaration

    Swift

    public let fileName: String
  • Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously

    Declaration

    Swift

    public init(fileName: String)

    Parameters

    fileName

    The name of the file or path to the file