#Is there a way to get media file extension without downloading?

3 messages · Page 1 of 1 (latest)

nova flare
#

From what I searched on discord and what I read on the docs, I will need to download the media instead of being able to filter them by their name/extension.

obsidian perch
#

For whatsapp processed media (media not sent as files/attachments/documents) there is no filename per say, but you can use message.deprecatedMms3Url to obtain the info

For actual media files you can use message.filename to get the file name without downloading

#

do note, downloadMedia doesnt save to disk, it just creates a buffer, so if your worry is diskspace, you dont need to worry about it