Skip to main content

Voice

This object represents a voice note.

📝 Schema

FieldTypeDescription
file_idstringIdentifier for this file, which can be used to download or reuse the file
file_unique_idstringUnique 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.

⚙️ Get methods

getFileId()

Retrieves the identifier for this file, which can be used to download or reuse the file.

$voiceFileId = $voiceObject->getFileId();

getFileUniqueId()

Retrieves the unique identifier for this file, which remains constant over time and across different bots.

$voiceFileUniqueId = $voiceObject->getFileUniqueId();

➕ More

tip

For further information, refer to the official Bale documentation for more details.