sulla icon indicating copy to clipboard operation
sulla copied to clipboard

How to run this project? Sorry still a noob

Open afdhalrashid opened this issue 4 years ago • 11 comments

afdhalrashid avatar May 08 '20 11:05 afdhalrashid

you can start with this then run the code using node

const sulla = require('sulla');

sulla.create().then((client)=>{ client.sendText(<phone number with country code>@c.us, "Hello") .then(d => { console.log(d) }) .catch(e => { console.log(e) }) })

TheCBKM avatar May 08 '20 11:05 TheCBKM

Thanks @TheCBKM , successfully send the message.

afdhalrashid avatar May 08 '20 14:05 afdhalrashid

How to use the async / await code?

afdhalrashid avatar May 08 '20 15:05 afdhalrashid

How to use the async / await code?

Async is used do declare asynchronous functions, await is used inside async functions.

More information: https://blog.bitsrc.io/understanding-javascript-async-and-await-with-examples-a010b03926ea

lhgrigio avatar May 08 '20 23:05 lhgrigio

async function (){ const client= await sulla.create() await client.sendText(<phone number with country code>@c.us, "Hello") }

TheCBKM avatar May 08 '20 23:05 TheCBKM

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

EdoWahdana avatar May 24 '20 09:05 EdoWahdana

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

try deleting session folder

elianiva avatar May 24 '20 22:05 elianiva

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

TheCBKM avatar May 24 '20 22:05 TheCBKM

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

Still stuck

0xkarambit avatar May 25 '20 16:05 0xkarambit

Deleting session folder didn't work for me,i set the headless config to false and it worked for me.

EdoWahdana avatar May 26 '20 03:05 EdoWahdana

the repository is deprecated use

Install npm i @s2click/venom https://github.com/s2click/venom

joedutra avatar Jun 06 '20 23:06 joedutra