Jump to content

Whatsapp Gateway | Multi Device v9.6.1

Featured Replies

24 minutes ago, MarCoVar01 said:

@Magd Almuntaser Node.js works but it doesn't work for me in the app, it doesn't show the Qr and the codes it generates don't connect, Previously I had installed the mpwa 5.2 version with node V18, in which I installed the mpwa 8.5.1 version and put the node 20.18.1 version on it, but for about 4 days the node has not been working correctly, presenting that failure that I sent

image.png

image.png

same issue i face still not resolve this issue why this happend

  • Replies 5.4k
  • Views 469.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

3 hours ago, Solusi Legalitas said:

Master @Magd Almuntaser bisakah Api WhatsApp mengirimkan panggilan?

& Adakah rekomendasi api hadits untuk diterapkan di mpwa?

Terimakasih

maksudnya panggilan suara om, untuk apa om.. tetap aja nggak bsa ngomong 😅
untuk api hadist cek halaman sebelumnya om, udah ada share file nya kok sebagai webhook..

21 minutes ago, Dammah Sifla said:

maksudnya panggilan suara om, untuk apa om.. tetap aja nggak bsa ngomong 😅
untuk api hadist cek halaman sebelumnya om, udah ada share file nya kok sebagai webhook..

21 minutes ago, Dammah Sifla said:

maksudnya panggilan suara om, untuk apa om.. tetap aja nggak bsa ngomong 😅
untuk api hadist cek halaman sebelumnya om, udah ada share file nya kok sebagai webhook..

Sebagai alarm waktu subuh Master 😁😁😁

On 12/8/2024 at 12:34 AM, MarCoVar01 said:

I am having the same problem with node.js, after a long time everything worked normally, do you know why the problem is and what the solution is?

try restart the nodejs, check nodejs pid file
or try to use another port

On 12/8/2024 at 9:28 AM, dewanoo said:

same issue i face still not resolve this issue why this happend

try to use another port, check whether the specification is meet

On 12/7/2024 at 7:48 PM, badas said:

Om, bisa tolong dibagi .htaccess untuk webserver nginx
Jadi gak bisa instal setelah pindah ke nginx

listen xxxxxx (sesuaikan dengan port, http 80, https 443);
listen [::];

server_name sesuaikandomain; # change this for your server

root /var/www/sesuaikanrootfolder/public;

index index.php index.html index.nginx-debian.html;

server_tokens off;

location / {
try_files $uri $uri/ /index.php?$args;

location ~ /public/ {

rewrite ^(.*)$ /public/$1 break;

}

location ~* "/\.(htaccess|htpasswd)$" {

deny all;

return 404;

}

Guys anyone yet figured out the solution to Sending Media FILE ?? I’m getting the following error when Trying to send the Test message and when trying to send the Media Campaign it gets failed.

Screenshot 2024-12-11 015638.png

Screenshot 2024-12-11 020422.png

4 hours ago, justintimb said:

Guys anyone yet figured out the solution to Sending Media FILE ?? I’m getting the following error when Trying to send the Test message and when trying to send the Media Campaign it gets failed.

Screenshot 2024-12-11 015638.png

Screenshot 2024-12-11 020422.png

run:

yoursite.com/storage-link

if it throws error, then enter below manually in terminal

ln -s /path/to/your/mpwa/storage/app/public /path/to/your/mpwa/public/storage

On 12/8/2024 at 7:29 PM, Solusi Legalitas said:

Master @Magd Almuntaser bisakah Api WhatsApp mengirimkan panggilan?

& Adakah rekomendasi api hadits untuk diterapkan di mpwa?

Terimakasih

kemungkinan tidak bisa, karena library baileys yang dipakai MPWA tidak ada / belum support membuat panggilan.

Namun, beberapa hal yang mungkin dilakukan terkait dengan panggilan di WhatsApp menggunakan Baileys adalah:

  1. Mendeteksi Status Panggilan
    Baileys dapat menerima pembaruan notifikasi terkait status panggilan WhatsApp. Misalnya, jika seseorang menelepon Anda di WhatsApp, library dapat mendeteksi notifikasi tersebut sebagai bagian dari event update.

  2. Mengelola Notifikasi Panggilan
    Baileys mungkin bisa mengidentifikasi dan memproses notifikasi panggilan masuk. Namun, tidak bisa menjawab panggilan atau membuat panggilan.

Kemampuan ini terbatas karena Baileys beroperasi pada protokol WhatsApp Web, yang tidak mendukung panggilan suara atau video. Jika Anda memerlukan fungsi panggilan, Anda harus menggunakan perangkat resmi atau aplikasi asli WhatsApp.

1 hour ago, DikaNura said:

kemungkinan tidak bisa, karena library baileys yang dipakai MPWA tidak ada / belum support membuat panggilan.

Namun, beberapa hal yang mungkin dilakukan terkait dengan panggilan di WhatsApp menggunakan Baileys adalah:

  1. Mendeteksi Status Panggilan
    Baileys dapat menerima pembaruan notifikasi terkait status panggilan WhatsApp. Misalnya, jika seseorang menelepon Anda di WhatsApp, library dapat mendeteksi notifikasi tersebut sebagai bagian dari event update.

  2. Mengelola Notifikasi Panggilan
    Baileys mungkin bisa mengidentifikasi dan memproses notifikasi panggilan masuk. Namun, tidak bisa menjawab panggilan atau membuat panggilan.

Kemampuan ini terbatas karena Baileys beroperasi pada protokol WhatsApp Web, yang tidak mendukung panggilan suara atau video. Jika Anda memerlukan fungsi panggilan, Anda harus menggunakan perangkat resmi atau aplikasi asli WhatsApp.

Ok terimakasih

22 hours ago, adhiete said:

try restart the nodejs, check nodejs pid file
or try to use another port

try to use another port, check whether the specification is meet

listen xxxxxx (sesuaikan dengan port, http 80, https 443);
listen [::];

server_name sesuaikandomain; # change this for your server

root /var/www/sesuaikanrootfolder/public;

index index.php index.html index.nginx-debian.html;

server_tokens off;

location / {
try_files $uri $uri/ /index.php?$args;

location ~ /public/ {

rewrite ^(.*)$ /public/$1 break;

}

location ~* "/\.(htaccess|htpasswd)$" {

deny all;

return 404;

}

Udah bisa om, saya coba-coba url rewrite.
thank for your reply.

Edited by badas

Tailing last 15 lines for [server] process (change the value with --lines option) /root/.pm2/logs/server-out.log last 15 lines: /root/.pm2/logs/server-error.log last 15 lines: 0|server | Error: Cannot find module '/www/wwwroot//node_modules/@whiskeysockets/baileys/lib/index.js'. Please verify that the package.json has a valid "main" entry 0|server | at tryPackage (node:internal/modules/cjs/loader:400:19) 0|server | at Module._findPath (node:internal/modules/cjs/loader:613:18) 0|server | at Module._resolveFilename (node:internal/modules/cjs/loader:981:27) 0|server | at Hook._require.Module.require (/www/server/nodejs/v20.15.1/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:81:25) 0|server | at require (node:internal/modules/cjs/helpers:103:18) 0|server | at Object.<anonymous> (/www/wwwroot/server/whatsapp.js:9:5) 0|server | at Module._compile (node:internal/modules/cjs/loader:1159:14) 0|server | at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) 0|server | at Module.load (node:internal/modules/cjs/loader:1037:32) 0|server | at Module._load (node:internal/modules/cjs/loader:878:12) { 0|server | code: 'MODULE_NOT_FOUND', 0|server | path: '/www/wwwroot/node_modules/@whiskeysockets/baileys/package.json', 0|server | requestPath: '@whiskeysockets/baileys' 0|server | }

please fix this, karena ini yang bikin stopped


dan sudah difix untuk command yarn add @whiskeysockets/baileys untuk fix diatas

Edited by Rivai

1 minute ago, Enrico said:

bagaimana cara memulai server pada port 3100? Saya sudah menginstalnya tetapi server tidak bisa dijalankan.

salam

Enrico

please explain in detail. what OS do you use? Then you ask in detail

vor 12 Minuten schrieb Aldi Luthfi:

please explain in detail. what OS do you use? Then you ask in detail

I use ubuntu and Plesk.

1 minute ago, Enrico said:

I use ubuntu and Plesk.

Sudah saya info sebelumnya diatas dan langsung saya kasih troubleshootnya

There’s some mismatching routing endpoint in API Documentation Page.

Where in Documentation page endpoint of Device Info, it says info-device

When in the real routing endpoint, it should be info-devices

It causes 404 when you do the endpoint from Documentation Page.

Maybe you need to correct this on next release @Magd Almuntaser

Screenshot_13.png

Screenshot_14.png

Also, the next thing i found is, when i delete / disconnect devices using API Endpoint logout-device,

image.png

and trying to reconnect again using API Generate QR generate-qr, using the same number, it said that Device already connected.

image.png.51c2879602ee36e490f4e348e6654d44.png

When the reality is, the device is already Disconnected.

image.png

Is that bug or its indeed the feature works like that? @Magd Almuntaser

Edited by DikaNura

1 hour ago, DikaNura said:

Also, the next thing i found is, when i delete / disconnect devices using API Endpoint logout-device,

image.png

and trying to reconnect again using API Generate QR generate-qr, using the same number, it said that Device already connected.

image.png.51c2879602ee36e490f4e348e6654d44.png

When the reality is, the device is already Disconnected.

image.png

Is that bug or its indeed the feature works like that? @Magd Almuntaser

I Able to fix this issue.
The issue is the device status is stored in Laravel Cache, we need to run php artisan cache:clear to able use Endpoint generate-qr again.
image.png

The solution is, we need to add cache clearing function. Use Cache::forget in your logoutDevice method to target the specific cache entry and ensure the changes reflect immediately.
Also, I add some other improvement.

image.png

This is the code that I use

public function logoutDevice(Request $request)
    {
        $device = Device::whereBody($request->sender)->first();
    
        // If the device doesn't exist, return an error response.
        if (!$device) {
            return response()->json(['status' => false, 'message' => __('Device not found')]);
        }
    
        if ($device->status != 'Connected') {
            return response()->json(['status' => true, 'message' => __('Connection closed. You are logged out.')]);
        }
    
        $whatsappService = new WhatsappServiceImpl();
        try {
            $respon = $whatsappService->logoutDevice($device->body);
    
            // Remove the cached device entry to prevent stale data issues.
            Cache::forget(CacheKey::DEVICE_BY_BODY . $request->sender);
    
            return $respon;
        } catch (\Throwable $th) {
            return response()->json(['status' => false, 'message' => __('WhatsApp server unable to reach')]);
        }
    }

@Magd Almuntaser

Edited by DikaNura

  • Author
2 hours ago, DikaNura said:

There’s some mismatching routing endpoint in API Documentation Page.

Where in Documentation page endpoint of Device Info, it says info-device

When in the real routing endpoint, it should be info-devices

It causes 404 when you do the endpoint from Documentation Page.

Maybe you need to correct this on next release @Magd Almuntaser

Screenshot_13.png

Screenshot_14.png


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

2 hours ago, DikaNura said:

Also, the next thing i found is, when i delete / disconnect devices using API Endpoint logout-device,

image.png

and trying to reconnect again using API Generate QR generate-qr, using the same number, it said that Device already connected.

image.png.51c2879602ee36e490f4e348e6654d44.png

When the reality is, the device is already Disconnected.

image.png

Is that bug or its indeed the feature works like that? @Magd Almuntaser


It will be fixed in version 9.0.0.

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...

Recently Browsing 0

  • No registered users viewing this page.

Latest Updated Files