Jump to content
Posted
  • Popular Post
comment_35854

Whatsapp Gateway | Multi Device


This script has been completely modified and many important features and fixes have been added by @Magd Almuntaser
He is now responsible for the updates of this script and has full intellectual property rights
So no one will violate the terms of use that he has set

Latest Features:
1. WhatsApp Account Connectivity

All types of WhatsApp Accounts to be able to connect with WhatsApp Gateway (Multi Number & Multi Device);
Ease of the WhatsApp Account connectivity process with a QRcode Scan or with an Authentication Code directly from your device.

2. Message

Availability of various types of (text messages, media, polls, lists, locations, VCard) can easily be used by you;
You can send mass messages for your marketing campaign activities, promotions or business programs easily and on a scheduled basis;
Setup automatic message replies with more natural (alami) and selected keywords for operational optimization of use;
Manage sent message history with automatic and scheduled deletions.

4. Integration

You can easily integrate your WhatsApp Account with various (AI) artificial intelligence services, namely ChatGPT, DALL-E, Gemini, and Cloude with API authentication codes only;
You can easily activate Ai for Single or Multiple use on your WhatsApp Account;
You can easily select Ai in your WhatsApp messages for WhatsApp Group, Private, or Both types;
You can easily setup call rejection automatically if there is a (Call) call and provide a specific response or information;
Setup your WhatsApp and Ai accounts more naturally (alami) with "Already read" status";
Setup your WhatsApp and Ai accounts more naturally (natural) with the status "Typing...".
You can easily integrate and communicate your services with the Webhook mechanism of WhatsApp Gateway | Multi Device.

5. Application Settings

Nowadays you can easily and quickly carry out the process of setting up the WhatsApp Gateway | Multi Device* application by Magd Almuntaser with the settings panel;
You can easily set up applications based on server ecosystem, smtp, etc quickly;
Multi language support (english, Indonesian, Indian, Spanish and Arabic) for easy use.

6. Developer Options

Currently WhatsApp Gateway | Multi Device* by Magd Almuntaser has provided various API services for your easy development consisting of:
        1). Send Message API
        2). Send Media API
        3). Send Poll API
        4). API Send Button
        5). Send API Templates
        6). Send List message API
        7). Send Location API
        8). Send VCard API
        9). Generate QR API
        10). Disconnect devices
        11). Create User API
        12). User Info API
        13). Device Info API
        14). Check Number API
        15). Webhook Example

Ease of setup and availability of the (API Key) API Key for authentication and authorization of your development process.

7. Security

Currently there is a 2 factor authentication (2FA) service available to maintain the security and comfort of application access;
A password reset service is available if you forget your account login information.


Coming Soon:

1. Landing page for Software as Service services (Subscription Services);
2. Payment gateway page management (QRIS, BCA virtual account, PayPal, Stripe);
3. Added user account management;
4. (ticket) obstacle reporting service for users and managers;
.. And many more.


 

  • Replies 4.1k
  • Views 248.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Magd Almuntaser
    Magd Almuntaser

    What's new in version 9.0.0 so far: - Added landing page (welcome page). - Added plans system. - Added cronjob page. - Added Multi-Keyword in autoreply. - Added send message with footer. -

  • Magd Almuntaser
    Magd Almuntaser

    This version will not be released soon, because there are many people who violate rights without permission.. I told everyone to use the script for free, but if you want to sell the version or redev

  • Magd Almuntaser
    Magd Almuntaser

    Today the version will be released, and this is what's new in version 8.5.0: - Added send sticker feature. - Added wysiwyg whatsapp (text editing tools). - Added location, vcard, sticker in camp

Posted Images

Featured Replies

comment_73753
41 minutes ago, MURASAKI. said:

I have tasted, this for result:
---
Precond:
1. Using aaPanel
2. Php 8+
3. Mysql 8+
4. Node 16+
5. PM2, running
6. Cron job, execute
7. Firewall, Off
---
1. Error Reconnecting after 1 night stand-by.
---

[32mINFO[39m [2024-08-03 02:28:32.373 +0700]: [36mconnection errored[39m
trace: "Error: Connection Terminated\n at WebSocketClient.<anonymous> (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:437:30)\n at WebSocketClient.emit (node:events:390:28)\n at WebSocket.<anonymous> (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100)\n at WebSocket.emit (node:events:390:28)\n at WebSocket.emitClose (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/ws/lib/websocket.js:272:10)\n at TLSSocket.socketOnClose (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/ws/lib/websocket.js:1341:15)\n at TLSSocket.emit (node:events:402:35)\n at node:net:687:12\n at TCP.done (node:_tls_wrap:580:7)"

Need update:
a. Error Handling WebSocket
b. Reconnecting WebSocket (after 1-5 second).


2. Sending Test image
---
Result: Success, but show error like this:
Illuminate\Database\QueryException
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_mpwa_xxx`.`message_histories`, CONSTRAINT `message_histories_device_id_foreign` FOREIGN KEY (`device_id`) REFERENCES `devices` (`id`) ON DELETE CASCADE) (SQL: insert into `message_histories` (`device_id`, `message`, `number`, `payload`, `send_by`, `status`, `type`, `user_id`) values (1, Image sending., 628xxxxxx, {"_token":"PwtuXjk1QsYUAokZyU8YM8SwCAt0sARZtilCCuIT","sender":"628xxxxxx","number":"628xxxxxx","type":"media","url":"http:\/\/xxxxxxxxxxx\/storage\/files\/1\/SAMPLE\/SUPER.png","media_type":"document","caption":"Image sending."}, web, success, media, 1))

Thanks.
 

Use Node.js v.20.xx

comment_73755

@MURASAKI. same problem, 

lluminate\Database\QueryException

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`sql_whatsapp`.`message_histories`, CONSTRAINT `message_histories_device_id_foreign` FOREIGN KEY (`device_id`) REFERENCES `devices` (`id`) ON DELETE CASCADE) (SQL: insert into `message_histories` (`device_id`, `message`, `number`, `payload`, `send_by`, `status`, `type`, `user_id`) values (1, The current version is[v20.12.2], 62xxxxx, {"_token":"Pyfkls60BvJkhvPp3uIekVMd2GpcpdiQ502oG3Zg","sender":"62xxxxxx","number":"62xxxxx","type":"media","url":"http:\/\/xxxxx\/storage\/files\/1\/d2d4c52f-ef06-486e-bbba-c7b6ff08f43c.jpg","media_type":"document","caption":"The current version is[v20.12.2]"}, web, success, media, 1))
comment_73758
16 hours ago, askim net said:


image.thumb.jpeg.4079afe4e8fd256ce0a66d07d7083de9.jpeg
solusinya bagaimana ya?

I also got same issues when do clean install on cpanel.

I have try previouse version working well, barcode also shown. But this version cant work. Pls help @Magd Almuntaser

 

I have trying clean install got same issues.

also trying update script also same issues.

  • Author
comment_73762
1 hour ago, MURASAKI. said:

I have tasted, this for result:
---
Precond:
1. Using aaPanel
2. Php 8+
3. Mysql 8+
4. Node 16+
5. PM2, running
6. Cron job, execute
7. Firewall, Off
---
1. Error Reconnecting after 1 night stand-by.
---

[32mINFO[39m [2024-08-03 02:28:32.373 +0700]: [36mconnection errored[39m
trace: "Error: Connection Terminated\n at WebSocketClient.<anonymous> (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:437:30)\n at WebSocketClient.emit (node:events:390:28)\n at WebSocket.<anonymous> (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100)\n at WebSocket.emit (node:events:390:28)\n at WebSocket.emitClose (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/ws/lib/websocket.js:272:10)\n at TLSSocket.socketOnClose (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/ws/lib/websocket.js:1341:15)\n at TLSSocket.emit (node:events:402:35)\n at node:net:687:12\n at TCP.done (node:_tls_wrap:580:7)"

Need update:
a. Error Handling WebSocket
b. Reconnecting WebSocket (after 1-5 second).


2. Sending Test image
---
Result: Success, but show error like this:
Illuminate\Database\QueryException
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_mpwa_xxx`.`message_histories`, CONSTRAINT `message_histories_device_id_foreign` FOREIGN KEY (`device_id`) REFERENCES `devices` (`id`) ON DELETE CASCADE) (SQL: insert into `message_histories` (`device_id`, `message`, `number`, `payload`, `send_by`, `status`, `type`, `user_id`) values (1, Image sending., 628xxxxxx, {"_token":"PwtuXjk1QsYUAokZyU8YM8SwCAt0sARZtilCCuIT","sender":"628xxxxxx","number":"628xxxxxx","type":"media","url":"http:\/\/xxxxxxxxxxx\/storage\/files\/1\/SAMPLE\/SUPER.png","media_type":"document","caption":"Image sending."}, web, success, media, 1))

Thanks.
 

Problem 1:

The issue is not with the script, the problem lies with the network connection on the server or the site you are using. The error "Error: Connection Terminated" indicates that the connection to the WhatsApp server has been completely terminated due to a network outage on your server, and it cannot be re-established. Node.js cannot reconnect once the internet connection is lost on the network.

38 minutes ago, anet id said:

@MURASAKI. same problem, 

lluminate\Database\QueryException

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`sql_whatsapp`.`message_histories`, CONSTRAINT `message_histories_device_id_foreign` FOREIGN KEY (`device_id`) REFERENCES `devices` (`id`) ON DELETE CASCADE) (SQL: insert into `message_histories` (`device_id`, `message`, `number`, `payload`, `send_by`, `status`, `type`, `user_id`) values (1, The current version is[v20.12.2], 62xxxxx, {"_token":"Pyfkls60BvJkhvPp3uIekVMd2GpcpdiQ502oG3Zg","sender":"62xxxxxx","number":"62xxxxx","type":"media","url":"http:\/\/xxxxx\/storage\/files\/1\/d2d4c52f-ef06-486e-bbba-c7b6ff08f43c.jpg","media_type":"document","caption":"The current version is[v20.12.2]"}, web, success, media, 1))

Problem 2:

This is because the MySQL on your site does not automatically create a timestamp upon sending. The solution is to replace the attached file in the following path:
 

app\Http\Controllers\

 

MessagesController.php

comment_73763
7 hours ago, anet id said:

@MURASAKI. same problem, 

lluminate\Database\QueryException

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`sql_whatsapp`.`message_histories`, CONSTRAINT `message_histories_device_id_foreign` FOREIGN KEY (`device_id`) REFERENCES `devices` (`id`) ON DELETE CASCADE) (SQL: insert into `message_histories` (`device_id`, `message`, `number`, `payload`, `send_by`, `status`, `type`, `user_id`) values (1, The current version is[v20.12.2], 62xxxxx, {"_token":"Pyfkls60BvJkhvPp3uIekVMd2GpcpdiQ502oG3Zg","sender":"62xxxxxx","number":"62xxxxx","type":"media","url":"http:\/\/xxxxx\/storage\/files\/1\/d2d4c52f-ef06-486e-bbba-c7b6ff08f43c.jpg","media_type":"document","caption":"The current version is[v20.12.2]"}, web, success, media, 1))

Apakah anda mengimport dari database bawaanya v7.0.0.1?

  • Author
comment_73764
53 minutes ago, nikokenzo said:

I also got same issues when do clean install on cpanel.

I have try previouse version working well, barcode also shown. But this version cant work. Pls help @Magd Almuntaser

 

I have trying clean install got same issues.

also trying update script also same issues.

try to change port from 3100 to 4100 and check again .. and make sure you use your site without https .. only http
if you want to use https you can see my post on page number 43

  • Author
comment_73766
5 minutes ago, angga turki said:

im facing this when i used trough SSL, how to make it work with SSL installed, please help, i try without SSL it work perfectly. 

IMG_20240803_001647.jpg


you can see my post on page number 43 about:
How To Run (Whatsapp Gateway Multi Device) Via SSL

comment_73768

Could you share how to install it on aApanel? I've been trying for 3 months without success and no help.

 

8 horas atrás, MURASAKI. disse:

I have tasted, this for result:
---
Precond:
1. Using aaPanel
2. Php 8+
3. Mysql 8+
4. Node 16+
5. PM2, running
6. Cron job, execute
7. Firewall, Off
---
1. Error Reconnecting after 1 night stand-by.
---

[32mINFO[39m [2024-08-03 02:28:32.373 +0700]: [36mconnection errored[39m
trace: "Error: Connection Terminated\n at WebSocketClient.<anonymous> (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:437:30)\n at WebSocketClient.emit (node:events:390:28)\n at WebSocket.<anonymous> (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100)\n at WebSocket.emit (node:events:390:28)\n at WebSocket.emitClose (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/ws/lib/websocket.js:272:10)\n at TLSSocket.socketOnClose (/www/wwwroot/xxxxxxxxxx/mpwa/node_modules/ws/lib/websocket.js:1341:15)\n at TLSSocket.emit (node:events:402:35)\n at node:net:687:12\n at TCP.done (node:_tls_wrap:580:7)"

Need update:
a. Error Handling WebSocket
b. Reconnecting WebSocket (after 1-5 second).


2. Sending Test image
---
Result: Success, but show error like this:
Illuminate\Database\QueryException
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_mpwa_xxx`.`message_histories`, CONSTRAINT `message_histories_device_id_foreign` FOREIGN KEY (`device_id`) REFERENCES `devices` (`id`) ON DELETE CASCADE) (SQL: insert into `message_histories` (`device_id`, `message`, `number`, `payload`, `send_by`, `status`, `type`, `user_id`) values (1, Image sending., 628xxxxxx, {"_token":"PwtuXjk1QsYUAokZyU8YM8SwCAt0sARZtilCCuIT","sender":"628xxxxxx","number":"628xxxxxx","type":"media","url":"http:\/\/xxxxxxxxxxx\/storage\/files\/1\/SAMPLE\/SUPER.png","media_type":"document","caption":"Image sending."}, web, success, media, 1))

Thanks.
 

 

  • Author
comment_73774
5 minutes ago, badas said:

@Magd Almuntaser
I still don't understand how this MPWA integrates with ChatGPT.
After inputting the chatgpt api key, will the chat be answered automatically as if it were chatgpt?
 

Screenshot_211.jpg

 

Yes .. you can send to your number and chatgpt will answer

comment_73780
2 minutes ago, badas said:

Walahh, tak kira gratis mas bro.
Nunggu yang versi gratisnya saja kalo begitu 😆

Haha dulu openai ada free balance $5, skrg susah register biar dpt.

coba beli di shopee aja murah mas tp ya resiko sering abis krn dihajar rame-rame.

kita menunggu bro @Magd Almuntaser give update for free Ai like gemini

  • Author
comment_73782
1 minute ago, badas said:

Walahh, tak kira gratis mas bro.
Nunggu yang versi gratisnya saja kalo begitu 😆

I think OpenAI gives it to you for free for a limited time 🤨
It seems they changed their system 😅
======
Yes, I have now tried a new account, you really need to pay a minimum of $5


Well don't worry, in the next version there will be gemini and claude.

comment_73785
3 minutes ago, nikokenzo said:

Haha dulu openai ada free balance $5, skrg susah register biar dpt.

coba beli di shopee aja murah mas tp ya resiko sering abis krn dihajar rame-rame.

kita menunggu bro @Magd Almuntaser give update for free Ai like gemini

Siap mas bro, nunggu versi zodiak aja kalo begitu.
Sekalian nanya mas bro, kalo top up yang 5$ bisa tahan berapa lama itungannya?

comment_73786
Just now, askim net said:

@nikokenzo kendala yang sebelumnya sudah bisa?

Bisa bro tinggal ganti aja Nodejs ke versi V20.

clean install. Hapus nodejs sebelumnya, DB dan filenya. 
statusnya masih disconnect tapi bisa scan dll

1 minute ago, badas said:

Siap mas bro, nunggu versi zodiak aja kalo begitu.
Sekalian nanya mas bro, kalo top up yang 5$ bisa tahan berapa lama itungannya?

Lama tidaknya tergantung penggunaan.

karena hitungannya per request, makin kompleks akan memakan banyak credit

comment_73787
2 minutes ago, Magd Almuntaser said:

I think OpenAI gives it to you for free for a limited time 🤨
It seems they changed their system 😅
======
Yes, I have now tried a new account, you really need to pay a minimum of $5


Well don't worry, in the next version there will be gemini and claude.

Syukron ya akhi.
All fitur v7.0.0.1 work, onlychatgpt which I can't use now 😅

comment_73788
On 8/2/2024 at 6:20 PM, Magd Almuntaser said:

Whatsapp Gateway Multi Device (Magd Version) v7.0.0.1

 

This version is separate from the original version. It contains many additions and fixes.

You can update your existing version on your site or do a fresh install, but I prefer a fresh install and re-linking your phone to ensure the new session works without conflict and to avoid losing connection.


Installation Instructions:
Extract the compressed file to your site and open your site.

You will be redirected to the installation page. Complete the installation, and after finishing, you need to run the following command:

http://yourwebsite/storage-link
And you will see white page with (0) number that mean works


Add these two links to the cronjob (Every 3 min):

Every 1 or 2 minutes as you like:
curl "http://yourwebsite/schedule-run" >/dev/null 2>&1

And Every 1 or 2 minutes:
curl "http://yourwebsite/blast-start" >/dev/null 2>&1

 

You can now start Node.js using aaPanel, cPanel, or SSH for this path:

/yoursitepath/whatsapp/server.js


My advice for (VPS & aaPanel) users:
Install PM2.js on your server and run the WhatsApp server through it. This will make your version stable without disconnections. PM2.js automatically reconnects when the script stops and provides a link to monitor all issues, restart, and other information such as CPU status and bandwidth used by the script remotely.
 

npm install pm2@latest -g
# OR
yarn global add pm2

Start your whatsapp server:
pm2 start server.js



You can check if the WhatsApp server is running by going to your site and navigating to Admin -> Settings Server. There, you will find a new feature that displays the port status. If it is green, it is running; if it is red, it is not running.


image.thumb.png.31001e1548d17d70b68d635e40e52bcd.png

 

Installation is complete, and you can use the site...

Here is the list of additions and fixes in this version:
-
Adding ChatGPT Bot
-
Adding the 2FA (two-factor authentication) feature.
-
Adding Rcovery Codes (Login)
-
Adding VCard message
-
Adding VCard message API and api-docs
-
Adding the location message feature.
-
Adding location message API and api-docs
-
Adding the feature to create a new user via API.
-
Adding the (message read) feature, which can be enabled or disabled from the control panel.
-
Adding 3 Themes (semi-dark | light-theme | dark-theme)
- Adding check whatsapp server port
-
Fixing Connect Via Code
-
Fixing the connection issue.
-
Fixing the timeout issue.
-
Fixing the logout issue.
-
Fixing the list message issue.
-
Fixing the poll message issue.
-
Fixing template message API (input correct format)
-
Fixing the issue with (Waiting for this message. Check your phone).
-
Fixing the fetching of non-English group names.
-
Fixing the fetching of groups from the phone.
-
Fixing the autorply issue.
And more...

wpma-magd-v7.0.0.1.zip 77.81 MB · 60 downloads

Thank you very much, this is very helpful.   

comment_73791
28 minutes ago, nikokenzo said:

Bisa bro tinggal ganti aja Nodejs ke versi V20.

clean install. Hapus nodejs sebelumnya, DB dan filenya. 
statusnya masih disconnect tapi bisa scan dll

Lama tidaknya tergantung penggunaan.

karena hitungannya per request, makin kompleks akan memakan banyak credit

Jadi penasaran pengen top up 😁

Screenshot_213.jpg

================
Akhirnya bisa juga mas bro.
Thanks

Screenshot_214.jpg

Edited by badas

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


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