pranavms13 / whatsapp-node-api

A Simple NodeJS API Wrapper for WhatsApp
Other
471 stars 184 forks source link

Having a general Endpoint for sending media files #36

Open dhyeythumar opened 3 years ago

dhyeythumar commented 3 years ago

Currently, according to my understanding, there is only 2 type of endpoint available (image & pdf) to send the media files. But I think there should be a general endpoint for sending all sorts of media files & that endpoint might take media type as an query parameter or even find the media type on its own.

So I think this should solve any further issues in sending different type files, such as this issue here Send contact card (vcard)


For example: (roughly this both endpoints are doing the same thing) https://github.com/pranavms13/whatsapp-node-api/blob/f60e242a552b428f1739fb031e2ccf86782089f8/components/chatting.js#L30-L104