Audio
Class that represents audio attachments.
Audio attachments cannot be sent from the application but can be received from an agent.
Methods
equals
fun equals(other: Any?
): Boolean
Parameters
other:
Any?
Returns
type:
Boolean
hashCode
fun hashCode(): Int
Returns
type:
Int
toString
fun toString(): String
Returns
type:
String
Props
duration
Read-only
val duration: Duration
Audio file duration.
Returns
type:
Duration
id
Read-only
val id: Long?
Attachment id.
Available only if a message with this attachment is successfully sent.
Returns
type:
Long?
mimeType
Read-only
val mimeType: String
Audio file MIME type.
Returns
type:
String
name
Read-only
val name: String
Audio file name.
Returns
type:
String
requestId
Read-only
val requestId: String?
Temporary attachment id.
Available only if a message with this attachment is sent from an application.
Returns
type:
String?
size
Read-only
val size: Long
Audio file size.
Returns
type:
Long
url
Read-only
val url: String?
URL to download the audio file.
Returns
type:
String?