Hey guys,
I was sending WhatsApp Messages via Twilio using the Node Package. I noticed that whenever I hardcoded the message into the .jsw file, it goes without any warning but when I pass the message from the page it is giving me the following warning:
(node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Although the message is delivering properly, what does this error mean?
export function sendWhatsapp(msg) {
client.messages
.create({
body: msg, //getting error with this
export function sendWhatsapp() {
client.messages
.create({
body: 'This is a test message from https://www.dudelemon.com', //goes without any error message
-Shan