DaggieBlanqx / whatsappcloudapi_wrapper

An easy way to build Whatsapp Chatbots on top of the new Whatsapp Cloud API
129 stars 66 forks source link

⚠ warning WARNING: "headers" is missing. #12

Closed GENESIS-PLUS closed 6 months ago

GENESIS-PLUS commented 2 years ago

The terminal constantly throws an error when calling function:

await Whatsapp.sendText({
        message: body,
        recipientPhone: recipientPhone,
 });

⚠ warning WARNING: "headers" is missing.

Bintang73 commented 1 year ago

just edit the code lib on index.js

if (!headers && !defaultHeaders()) { signale.warn(WARNING: "headers" is missing.); }