import https from 'https'; const message = "🚨 Test Alert from Bot 🚨"; const to = "+918939139701"; const data = JSON.stringify({ message: message, toWhatsAppNumber: to }); const options = { hostname: 'www.zenhustles.com', port: 443, path: '/api/whatsapp/send', method: 'POST', headers: { 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(data) } }; const req = https.request(options, (res) => { let responseBody = ''; res.on('data', (chunk) => responseBody += chunk); res.on('end', () => { console.log(`Status: ${res.statusCode}`); console.log(`Body: ${responseBody}`); }); }); req.on('error', (e) => console.error(e)); req.write(data); req.end();