Twilio WhatsApp Messaging With Node Error

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

Hi Shan

Is the warning showing up I. The wix code console or the browser console?

Hey Steve,

The error is showing up on the wix code console. Have not checked for the browser yet