Skip to content

Message File Data DTO Reference

The NjoguAmos\Waha\Dto\MessageFileData represents a file (document) message to be sent.

chatIdstring

The recipient's chat ID.

filestring

The file source. This can be:

  • A URL to a remote file (e.g., https://example.com/document.pdf).
  • A base64-encoded string, preferably using a data URI (e.g., data:application/pdf;base64,...).

filenamestring or null

The name of the file. If null, the package will attempt to determine it from the URL or use a default value.

mimetypestring or NjoguAmos\Waha\Enums\FileType or null

The mimetype of the file. You may provide a string or use the FileType enum. If null, the package will attempt to determine it automatically.

reply_tostring or null

The ID of the message to reply to.

captionstring or null

Optional caption for the file.

Released under the MIT License.