Voice
This object represents a voice note.
📝 Schema
Field | Type | Description |
---|---|---|
file_id | string | Identifier for this file, which can be used to download or reuse the file |
file_unique_id | string | 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. |
⚙️ 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.