Ensuring Proper File Name Display in WATI API
When sending files through an open WhatsApp chat session using the WATI API, the file name may appear as "null" or "untitled" if not properly configured.
How to Fix This
To ensure the file has a recognizable name, include a caption when making a request to:/api/v1/sendSessionFile/{whatsappNumber}
The caption provided in the API request will be used as the title of the file attachment.
By adding a caption, you can avoid "null" or "untitled" file names and improve the clarity of sent attachments.