Setting this to true will block any network calls to WhatsApp's crash log servers. This should keep anything you do under the radar.
Setting this to false turn off the cache. This may improve memory usage.
This allows you to pass any array of custom chrome/chromium argument strings to the puppeteer instance. You can find all possible arguements here.
You may set a custom user agent to prevent detection by WhatsApp. However, due to recent developments, this is not really neccessary any more.
You can enable remote devtools by setting this to trye. If you set this to true there will be security on the devtools url. If you want, you can also pass a username & password.
Some features, like video upload, do not work without a chrome instance. Puppeteer only provides a chromium instance out of the box. Set this to the path of your chrome instance or you can use useChrome:true
to automatically detect a chrome instance for you.
By default, all instances of sulla are headless (i.e you don't see a chrome window open), you can set this to false to show the chrome/chromium window.
This determines how long the process should wait for a QR code to be scanned before killing the process entirely.
In order to unlock the functionality to send texts to unknown numbers, you need an License key. One License Key is valid for each number. Each License Key is £5 per month or £50 per year.
For now the process happens through Buy Me A Coffee (BMAC)
How to get an License key:
Notes:
This determines the interval at which to refresh the QR code.
JSON object that is required to migrate a session from one instance to another or ot just restart an existing instance. This sessionData is provided in a generated JSON file upon QR scan or an event. You can capture the event like so:
import {create, ev} from 'sulla-hotfix';
ev.on('sessionData', async (sessionData, sessionId) =>{
console.log(sessionId, sessionData)
})
This is the name of the session. You have to make sure that this is unique for every session.
Setting this to true will throw an error if a session is not able to get a QR code or is unable to restart a session.
If true, the program will automatically try to detect the instance of chorme on the machine. Please note this overrides executablePath.
Setting this to true will result in new QR codes being generated if the end user takes too long to scan the QR code.