diff --git a/index.js b/index.js index e8b0343..d6476f6 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,6 @@ -import { Client, LocalAuth, Buttons } from 'whatsapp-web.js'; +import pkg from 'whatsapp-web.js'; +const { Client, LocalAuth, Buttons } = pkg; + import express from 'express'; import qrcode from 'qrcode'; import path from 'path';