Voice

fun Voice(fileId: String, fileUniqueId: String, duration: Int, mimeType: String? = null, fileSize: Int? = null)

Parameters

fileId

Identifier for this file, which can be used to download or reuse the file

fileUniqueId

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

duration

Duration of the audio in seconds as defined by sender

mimeType

Optional. MIME type of the file as defined by sender

fileSize

Optional. File size