Audio
public struct Audio : Codable, Equatable, FunctionResult
Describes an audio file. Audio is usually in MP3 or M4A format
-
Duration of the audio, in seconds; as defined by the sender
Declaration
Swift
public let duration: Int32
-
Title of the audio; as defined by the sender
Declaration
Swift
public let title: String
-
Performer of the audio; as defined by the sender
Declaration
Swift
public let performer: String
-
Original name of the file; as defined by the sender
Declaration
Swift
public let fileName: String
-
The MIME type of the file; as defined by the sender
Declaration
Swift
public let mimeType: String
-
The minithumbnail of the album cover; may be null
Declaration
Swift
public let albumCoverMinithumbnail: Minithumbnail?
-
The thumbnail of the album cover; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null
Declaration
Swift
public let albumCoverThumbnail: PhotoSize?
-
File containing the audio
Declaration
Swift
public let audio: File
-
Describes an audio file. Audio is usually in MP3 or M4A format
Declaration
Swift
public init(duration: Int32, title: String, performer: String, fileName: String, mimeType: String, albumCoverMinithumbnail: Minithumbnail?, albumCoverThumbnail: PhotoSize?, audio: File)
Parameters
duration
Duration of the audio, in seconds; as defined by the sender
title
Title of the audio; as defined by the sender
performer
Performer of the audio; as defined by the sender
fileName
Original name of the file; as defined by the sender
mimeType
The MIME type of the file; as defined by the sender
albumCoverMinithumbnail
The minithumbnail of the album cover; may be null
albumCoverThumbnail
The thumbnail of the album cover; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null
audio
File containing the audio