Rajaram Joshi

Results 4 comments of Rajaram Joshi

you can start with this then run the code using node const sulla = require('sulla'); sulla.create().then((client)=>{ client.sendText(`@c.us`, "Hello") .then(d => { console.log(d) }) .catch(e => { console.log(e) }) })

async function (){ const client= await sulla.create() await client.sendText(``@c.us, "Hello") }

> Hey mine is stuck in Authenticating... and didn't print any qrcode. How to start the project properly after i ran npm i sulla? > Delete Sessions folder

there must be `client.state()` but you can grab session state by trying this client.onStateChange((state) => { console.log(state); const conflits = [ sulla.SocketState.CONFLICT, sulla.SocketState.UNPAIRED, sulla.SocketState.UNLAUNCHED, ]; if (conflits.includes(state)) { client.useHere(); }...