function start(client) {
client.onMessage((message) => {
if (message.body === 'Hi') {
client.sendText(message.from, '👋 Hello from sulla!');
}
});
}
After scanning the qr-code my whatsapp shows the connection, but the bot can not establish a connection and keeps loading at "Authenticate to continue".
Using the minimal example:
const sulla = require('sulla');
sulla.create().then((client) => start(client));
function start(client) { client.onMessage((message) => { if (message.body === 'Hi') { client.sendText(message.from, '👋 Hello from sulla!'); } }); }
After scanning the qr-code my whatsapp shows the connection, but the bot can not establish a connection and keeps loading at "Authenticate to continue".