RENDER PROCESS:
1: Click "NEW".
2: Select "Web Service".
3: Click "Build and deploy from a Git repository".
4: Now Choose this forked git repo from list.
5: And JUST CLICK "Connect".
letSmd=VenocyberWASocket({printQRInTerminal: false,// make it false if you're using weblogger: pino({level: "silent"}),// make it silent to prevent baileys bufferingbrowser: Browsers.baileys("Desktop"),// awailable browsers : ubuntu, macOS, baileys.auth: state});
Getting Session in BASE64
letCREDS=fs.readFileSync(__dirname+'/auth_info_baileys/creds.json')varScan_Id=Buffer.from(CREDS).toString('base64')// converting into Base64 ---- IMPLEMENT ACCOEDING TO YOUR NEED// res.json({status:true,Scan_Id })
Environment variable
constPORT=process.env.PORT||5000constMESSAGE=process.env.MESSAGE||"Don't Provide your session id to someone!"// Set Confirmation Message According to your need!