hasMediaproperty. Then, you can actually download the data by using
downloadMediafunction returns an object of type MessageMedia. This will give you access to its mimetype, base64 data and filename, if specified.
executablePathoption to puppeteer while creating the client:
executablePathvalue will depend on your OS and install location for Chrome, but here are some defaults by OS:
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
C:/Program Files (x86)/Google/Chrome/Application/chrome.exe