Document
public struct Document : Codable, Equatable, FunctionResult
Describes a document of any type
-
Original name of the file; as defined by the sender
Declaration
Swift
public let fileName: String
-
MIME type of the file; as defined by the sender
Declaration
Swift
public let mimeType: String
-
Document minithumbnail; may be null
Declaration
Swift
public let minithumbnail: Minithumbnail?
-
Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null
Declaration
Swift
public let thumbnail: PhotoSize?
-
File containing the document
Declaration
Swift
public let document: File
-
Describes a document of any type
Declaration
Swift
public init(fileName: String, mimeType: String, minithumbnail: Minithumbnail?, thumbnail: PhotoSize?, document: File)
Parameters
fileName
Original name of the file; as defined by the sender
mimeType
MIME type of the file; as defined by the sender
minithumbnail
Document minithumbnail; may be null
thumbnail
Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null
document
File containing the document