#Is there a way to get media file extension without downloading?
3 messages · Page 1 of 1 (latest)
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