MURASAKI. Posted August 3 Share Posted August 3 (edited) 15 hours ago, Magd Almuntaser said: here are some pictures of my version (enjoy watching) ==============Check Whatsapp Port=============== ==============THEMES=============== ==============ChatGPT Bot API=============== ==============Location Message=============== ==============VCard Message=============== ==============API-Docs=============== ==============2FA Two-Factory=============== ==============Recovery Code=============== ==============Read Message=============== 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. Edited August 3 by MURASAKI. Quote Link to comment Share on other sites More sharing options...
agus amin Posted August 3 Share Posted August 3 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 Quote Link to comment Share on other sites More sharing options...
anet id Posted August 3 Share Posted August 3 @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)) Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 3 Share Posted August 3 16 hours ago, askim net said: 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. Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 3 Author DW Members Share Posted August 3 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 Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
pak kacung Posted August 3 Share Posted August 3 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? Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 3 Author DW Members Share Posted August 3 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 Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
angga turki Posted August 3 Share Posted August 3 (edited) 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. Edited August 3 by angga turki Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 3 Author DW Members Share Posted August 3 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. you can see my post on page number 43 about: How To Run (Whatsapp Gateway Multi Device) Via SSL Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
Unicode Posted August 3 Share Posted August 3 (edited) 23 minutes ago, Magd Almuntaser said: try to change port from 3100 to 4100 and check again .. done. i change node js version into V20.xx and works but still shown disconnected Edited August 3 by nikokenzo Quote Link to comment Share on other sites More sharing options...
Renato Oliveira Fotografia Posted August 3 Share Posted August 3 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. Quote Link to comment Share on other sites More sharing options...
Gusik Prasetyo Posted August 3 Share Posted August 3 5 minutes ago, Renato Oliveira Fotografia said: Could you share how to install it on aApanel? I've been trying for 3 months without success and no help. Read previous post. You will find how to install on aapanel Quote Link to comment Share on other sites More sharing options...
badas Posted August 3 Share Posted August 3 @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? Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 3 Author DW Members Share Posted August 3 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? Yes .. you can send to your number and chatgpt will answer Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
badas Posted August 3 Share Posted August 3 5 minutes ago, Magd Almuntaser said: Yes .. you can send to your number and chatgpt will answer Nothing respon sir. Quote Link to comment Share on other sites More sharing options...
Gusik Prasetyo Posted August 3 Share Posted August 3 11 minutes ago, badas said: Nothing respon sir. Is it openai? Have you topup your balance? Openai api is not free. Quote Link to comment Share on other sites More sharing options...
badas Posted August 3 Share Posted August 3 6 minutes ago, Gusik Prasetyo said: Is it openai? Have you topup your balance? Openai api is not free. Walahh, tak kira gratis mas bro. Nunggu yang versi gratisnya saja kalo begitu Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 3 Share Posted August 3 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 Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 3 Author DW Members Share Posted August 3 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. Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
askim net Posted August 3 Share Posted August 3 @nikokenzo kendala yang sebelumnya sudah bisa? Quote Link to comment Share on other sites More sharing options...
badas Posted August 3 Share Posted August 3 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? Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 3 Share Posted August 3 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 Quote Link to comment Share on other sites More sharing options...
badas Posted August 3 Share Posted August 3 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 Quote Link to comment Share on other sites More sharing options...
mantapin Posted August 3 Share Posted August 3 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. 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. Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 3 Share Posted August 3 13 minutes ago, badas said: Syukron ya akhi. All fitur v7.0.0.1 work, onlychatgpt which I can't use now Ini tutorial di youtube jika ingin membuat webhook Ai : Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.