Jump to content

Whatsapp Gateway | Multi Device v9.6.1

Featured Replies

  • Replies 5.4k
  • Views 471.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Magd Almuntaser
    Magd Almuntaser

    English Bexa AI will be released in the coming days, very soon. Everyone will be amazed by its speed, intelligence, and the way it interacts with users. It will not compete with ChatGPT, Gemini, or De

  • Magd Almuntaser
    Magd Almuntaser

    What's new so far in version 9.0.0: - Added landing page (welcome page). - Added plans system. - Added Manage Languages system. - Added (landing page) edit page. - Added ticket system. - Added cronjob

  • Magd Almuntaser
    Magd Almuntaser

    What's new so far in version 9.0.0: - Added Landing page (Homepage). - Added Plans System. - Added Manage Payment gateways. - Added Manage Languages system. - Added (Homepage) edit page. - Added Ticke

Most Helpful Posts

  • Magd Almuntaser
    Magd Almuntaser

    Yes you can use it as a messaging service/ SaaS without asking my permission, the new version 9.0.0 directly contains people who want to use it as a messaging service/ SaaS.. What's new so far in ver

  • Magd Almuntaser
    Magd Almuntaser

    What's new so far in version 9.0.0: - Added landing page (welcome page). - Added plans system. - Added Manage Languages system. - Added (landing page) edit page. - Added ticket system. - Added cronjob

  • Magd Almuntaser
    Magd Almuntaser

    It has already been fixed in version 9.0.0.. The problem is only in the mpwa theme but in eres and erescompact you will find them correctly It will be fixed in version 9.0.0.

Posted Images

Baru saja update ke versi 8.5.0, update lancar.
Dapat bug ketika campaign pakai theme snacked admin tidak bisa

Setelah switch ke dua thema lainnya berjalan normal.
Nunggu apakah nanti nodejs akan idle/stop seperti sebelumnya.
Terima kasih master @Magd Almuntaser

Screenshot 2024-09-16 121238.png

6 hours ago, pak kacung said:

Rekomendasi pakai node js versi berapa tuan?

V19 keatas.

45 minutes ago, pak kacung said:

Button ini belum berfungsi

Screenshot_2024-09-16-11-37-00-945_com.android.chrome.jpg

Ini akan di fix di versi 8.5.1 nanti

5 minutes ago, badas said:

Baru saja update ke versi 8.5.0, update lancar.
Dapat bug ketika campaign pakai theme snacked admin tidak bisa

Setelah switch ke dua thema lainnya berjalan normal.
Nunggu apakah nanti nodejs akan idle/stop seperti sebelumnya.
Terima kasih master @Magd Almuntaser

Screenshot 2024-09-16 121238.png

Punyaku sudah 7 jam aman ini no idle lagi. Tidak pake cron job dll.

Sepertinya memang theme snacked akan dihapus di versi 9 nantinya. Karena akan merepotkan mengedit 3 theme setiap versi.

semoga masuk list fix di versi 8.5.1 

2 minutes ago, Unicode said:

Punyaku sudah 7 jam aman ini no idle lagi. Tidak pake cron job dll.

Sepertinya memang theme snacked akan dihapus di versi 9 nantinya. Karena akan merepotkan mengedit 3 theme setiap versi.

semoga masuk list fix di versi 8.5.1 

Semoga aman mas bro

20 minutes ago, Unicode said:

V19 keatas.

Ini akan di fix di versi 8.5.1 nanti

AI dan tombol di menu Auto Replay jalan om? Tempat saya gk jalan

Just now, agus amin said:

AI dan tombol di menu Auto Replay jalan om? Tempat saya gk jalan

Jalan. Tadi aku sempat gitu, di nomer 1 gk jalan tapi di nomer 2 -3 jalan.

coba aja logout nomernya lalu scan ulang biar jalan. 

Just now, Unicode said:

Jalan. Tadi aku sempat gitu, di nomer 1 gk jalan tapi di nomer 2 -3 jalan.

coba aja logout nomernya lalu scan ulang biar jalan.

Ok tak test

Cari code tersebut di whatsapp.js
 

sock[token].ev.on('connection.update', async (update) => {

 

lalu rubah code tersebut sampai code

    }
});

 

ke code ini
 

sock[token].ev.on('connection.update', async (update) => {
    const { connection, lastDisconnect, qr } = update;

    if (qr) {
        try {
            const url = await QRCode.toDataURL(qr);
            qrcode[token] = url;
            socket?.emit('qrcode', { token, data: url, message: 'Scan this QR code with your WhatsApp' });
        } catch (err) {
            console.error('QR Code generation failed:', err);
        }
    }

    if (connection === 'close') {
        const disconnectError = lastDisconnect?.error;

        if (disconnectError instanceof Boom && 
           (disconnectError.output.statusCode === 403 || disconnectError.output.statusCode === 428)) {
            setStatus(token, 'Disconnect');
            console.log(`Connection closed with status code ${disconnectError.output.statusCode}. You are logged out.`);
            socket?.emit('message', { token, message: `Connection closed with status code ${disconnectError.output.statusCode}. You are logged out.` });
            await clearConnection(token);
            clearInterval(reconnectInterval);
            reconnectInterval = null;
        } else {
            const shouldReconnect = disconnectError instanceof Boom && disconnectError.output.statusCode !== DisconnectReason.loggedOut;
            console.log('Connection closed due to', lastDisconnect?.error, 'Reconnecting:', shouldReconnect);

            if (shouldReconnect) {
                if (!reconnectInterval) {
                    reconnectInterval = setInterval(() => attemptConnection(), 10000);
                }
            } else {
                setStatus(token, 'Disconnect');
                console.log('Connection closed. You are logged out.');
                socket?.emit('message', { token, message: 'Connection closed. You are logged out.' });
                await clearConnection(token);
                clearInterval(reconnectInterval);
                reconnectInterval = null;
            }
        }
    } else if (connection === 'open') {
        setStatus(token, 'Connected');
        console.log('Connected successfully!');
        const userId = `${sock[token].user.id.split(':')[0]}@s.whatsapp.net`;
        const ppUrl = await getPpUrl(token, userId);
        socket?.emit('connection-open', { token, user: sock[token].user, ppUrl });
        delete qrcode[token];
        delete pairingCode[token];
        clearInterval(reconnectInterval);
        reconnectInterval = null;
    }
});

menambahkan status Disconnect jika terdapat error 403 dan 428 (itu adalah code error banned/logout mendadak karna app unofficial dari whatsapp)

jika script bawaan dari mamang magd, jika logout atau di banned, status tidak berubah. saya hanya mengubah sedikit, yang disconnect saya barusan ngeblast dan beberapa mokad nomor nya

image.thumb.png.093f5d3cacedbe30c901f888d0dad1bd.png

Edited by Pebrian

16 minutes ago, Pebrian said:

Cari code tersebut di whatsapp.js
 

sock[token].ev.on('connection.update', async (update) => {

 

lalu rubah code tersebut sampai code

    }
});

 

ke code ini
 

sock[token].ev.on('connection.update', async (update) => {
    const { connection, lastDisconnect, qr } = update;

    if (qr) {
        try {
            const url = await QRCode.toDataURL(qr);
            qrcode[token] = url;
            socket?.emit('qrcode', { token, data: url, message: 'Scan this QR code with your WhatsApp' });
        } catch (err) {
            console.error('QR Code generation failed:', err);
        }
    }

    if (connection === 'close') {
        const disconnectError = lastDisconnect?.error;

        if (disconnectError instanceof Boom && 
           (disconnectError.output.statusCode === 403 || disconnectError.output.statusCode === 428)) {
            setStatus(token, 'Disconnect');
            console.log(`Connection closed with status code ${disconnectError.output.statusCode}. You are logged out.`);
            socket?.emit('message', { token, message: `Connection closed with status code ${disconnectError.output.statusCode}. You are logged out.` });
            await clearConnection(token);
            clearInterval(reconnectInterval);
            reconnectInterval = null;
        } else {
            const shouldReconnect = disconnectError instanceof Boom && disconnectError.output.statusCode !== DisconnectReason.loggedOut;
            console.log('Connection closed due to', lastDisconnect?.error, 'Reconnecting:', shouldReconnect);

            if (shouldReconnect) {
                if (!reconnectInterval) {
                    reconnectInterval = setInterval(() => attemptConnection(), 10000);
                }
            } else {
                setStatus(token, 'Disconnect');
                console.log('Connection closed. You are logged out.');
                socket?.emit('message', { token, message: 'Connection closed. You are logged out.' });
                await clearConnection(token);
                clearInterval(reconnectInterval);
                reconnectInterval = null;
            }
        }
    } else if (connection === 'open') {
        setStatus(token, 'Connected');
        console.log('Connected successfully!');
        const userId = `${sock[token].user.id.split(':')[0]}@s.whatsapp.net`;
        const ppUrl = await getPpUrl(token, userId);
        socket?.emit('connection-open', { token, user: sock[token].user, ppUrl });
        delete qrcode[token];
        delete pairingCode[token];
        clearInterval(reconnectInterval);
        reconnectInterval = null;
    }
});

menambahkan status Disconnect jika terdapat error 403 dan 428 (itu adalah code error banned/logout mendadak karna app unofficial dari whatsapp)

jika script bawaan dari mamang magd, jika logout atau di banned, status tidak berubah. saya hanya mengubah sedikit, yang disconnect saya barusan ngeblast dan beberapa mokad nomor nya

image.thumb.png.093f5d3cacedbe30c901f888d0dad1bd.png

Versi 8.50 kah om yang mokad, AI Bot belum jalan, dan menu di Auto Replay belom berfungsi, ada solusi

On 9/16/2024 at 3:11 PM, agus amin said:

Versi 8.50 kah om yang mokad, AI Bot belum jalan, dan menu di Auto Replay belom berfungsi, ada solusi

8.5.0 AI boi normal single

3 minutes ago, Magd Almuntaser said:

What's New in Version 8.5.1 :

- Fixed sharp library.
-
Fixed autoreply ajax.
-
Fixed campaign (Theme Snacked Admin).

After update 8.5.1
Campaign theme Snacked 
Autoreply 
Thanks mas bro.

5 minutes ago, Magd Almuntaser said:

I forgot to tell you that if you are using cronjob to reconnect to the idle socket, it should be stopped, it is no longer needed
version
8.5.1 will reconnect to itself when disconnected.

in download still 8.05, plz update

image.thumb.png.07d97417d981accd940415dd17cc6d19.png

image.png.f9d409352533df4b567bc2b0a86f5924.png

 

sudah restart node namun masih seperti ini, QR tidak muncul .

note: menggunakan node 16, ga pakai cronjob sama sekali

btw, untuk .env

APP_DEBUG=true
APP_URL=http://namadomain.com <--- sering ganti sendiri double s menjadi httpss://
WA_URL_SERVER=http://namadomain.com <--- sering ganti sendiri double s menjadi httpss://

Terima kasih 🙏

image.png

Edited by JangE

  • Author
5 minutes ago, l.o.l said:

in download still 8.05, plz update


no it's 8.5.1:
 

https://doniaweb.com/files/file/4872-whatsapp-gateway-multi-device/


 

5 minutes ago, JangE said:

image.thumb.png.07d97417d981accd940415dd17cc6d19.png

image.png.f9d409352533df4b567bc2b0a86f5924.png

 

sudah restart node namun masih seperti ini, QR tidak muncul .

note: menggunakan node 16, ga pakai cronjob sama sekali

btw, untuk .env

APP_DEBUG=true
APP_URL=http://namadomain.com <--- sering ganti sendiri double s menjadi httpss://
WA_URL_SERVER=http://namadomain.com <--- sering ganti sendiri double s menjadi httpss://

Terima kasih 🙏

image.png


Node 16 sudah tidak didukung lagi di versi ini. Anda harus menginstal Node 18 atau 20 ke atas.
===========
Node 16 is no longer supported in this version.. You must install 18 or 20 and above.

10 minutes ago, Magd Almuntaser said:


no it's 8.5.1:
 

https://doniaweb.com/files/file/4872-whatsapp-gateway-multi-device/


 


Node 16 sudah tidak didukung lagi di versi ini. Anda harus menginstal Node 18 atau 20 ke atas.
===========
Node 16 is no longer supported in this version.. You must install 18 or 20 and above.

dear tuan, saya sudah ganti / mencoba  node 16 ke atas, mode develope dan production. tetap QR tidak muncul. keadaan masih sama 
Regards 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Latest Updated Files