Public Directory
import { WhatsappJS } from '@efesoroglu/whatsappjs'
const client = new WhatsappJS("<your-api-key>", "<channel-phone-number>");
client.webhookServer({
port: 8080,
events: ["whatsapp.message.new"],
host_name: "https://<your_sub>.ngrok-free.app",
public: {
name: "/public" // this is public path on your hostname. For example: https://<your_sub>.ngrok-free.app/public
path: "path/to/public/dir" // this is public files dir
}
});Last updated