Skip to content

Message Voice Data DTO Reference

The NjoguAmos\Waha\Dto\MessageVoiceData represents a voice message to be sent.

chatIdstring

The recipient's chat ID.

filestring

The voice file. Can be a URL (e.g., https://...) or a base64 data URI (e.g., data:audio/ogg;base64,...).

filenamestring or null

The name of the file to be sent. If not provided, it will be automatically determined from the URL or set to file for base64 data.

mimetypestring or NjoguAmos\Waha\Enums\FileType or null

The mimetype of the file. If not provided, it will be automatically determined from the URL or base64 data.

convertbool

Whether to convert the input file to the required format (OGG/OPUS) using ffmpeg before sending. Default: false.

reply_tostring or null

The ID of the message to reply to.

Released under the MIT License.