Jump to content
Bicrypto v4.4.2 + All Plugins ×

Whatsapp Gateway | Multi Device v8.5.1


Magd Almuntaser

Recommended Posts

2 minutes ago, Magd Almuntaser said:

Saya tidak berpikir bahwa Gemini dan ChatGPT akan memposting di grup, saya lupa tentang poin ini. Mengenai ketidakmampuan pengguna untuk menyimpan secara otomatis ke database, saya akan memeriksanya.
Secara umum, saya akan menerapkan perbaikan ini pada versi berikutnya.

Sekaligus tambahkan form nya saat tambah device om

Link to comment
Share on other sites

  • DW Members
4 minutes ago, agus amin said:

Sekaligus tambahkan form nya saat tambah device om

Saya telah mencoba membuat pengguna biasa dan mencoba menulis API, dan itu tersimpan secara otomatis. Masalahnya ada di browser Anda, bukan dari skripnya. Cobalah menggunakan browser lain. Tampaknya browser Anda memiliki ekstensi yang mencegah JavaScript Ajax bekerja dengan benar.

Mengenai penambahan fitur ChatGPT saat membuat perangkat baru, saya tidak berpikir itu penting karena fitur tersebut muncul langsung setelah membuat perangkat baru, jadi tidak baik untuk mengulanginya dua kali. Bahkan webhook juga tidak baik untuk muncul dua kali saat pembuatan dan setelah pembuatan, karena berada di halaman yang sama sebenarnya.

  • Love 1
Link to comment
Share on other sites

1 minute ago, Magd Almuntaser said:

Laporan panggilan sebenarnya muncul saat panggilan dilakukan, tetapi sangat sulit untuk menanganinya karena laporan yang ditampilkan pada gambar di bawah ini berasal dari socket perusahaan WhatsApp, bukan dari WhiskeySockets/Baileys. Jadi, kamu tidak bisa menangani socket perusahaan WhatsApp kecuali tim WhiskeySockets/Baileys yang membuatnya, atau kamu mengubah file mereka di GitHub dan membuat build versi tersebut. Namun, versi terbaru dari WhiskeySockets/Baileys tidak kompatibel dengan skrip ini dan membutuhkan perubahan total pada skrip.

Jadi, situasinya saat ini sangat sulit dan tidak akan berhasil untukmu. Tetapi saya harap kamu berhasil, karena ini adalah fitur yang hebat bagi mereka yang memiliki nomor bot.

image.png.9e5e98f49ae62246cc202443bfb68a2d.png

Tampilannya seperti ini kawan..

image.png.5c0c27479a11363f95b7e9a4ff2fa296.png

Anda bisa mencoba memanggil saya pada no ini 6281262559232

  • Like 2
Link to comment
Share on other sites

46 minutes ago, agus amin said:

@Magd Almuntaser gimana cara agar gemini tidak menjawab otomatis ke group whatsapp, kemudian tolong perbaiki api key gemini/chat gpt user tidak bisa menyimpan otomatis ke database di mpwa, kalau admin bisa menyimpan, untuk user belum

utk gemini bisa menjawab di group , menurut saya merupakan suatu hal yang bagus, hal ini tidak perlu dihilangkan.💯

Link to comment
Share on other sites

Saya telah menambahi fungsi tolak panggilan pada script whatsapp.js, jika anda ingin mencobanya, tolong jangan replace filenya, perhatikan scriptnya, ambil potongan script yang saya tambahi, agar bisa sama-sama belajar membaca fungsi script. Jika ingin mereplace file silahkan Anda backup terlebih dulu file whatsapp.js anda.

kemudian pada phpmyadmin di tabel number tambahi column noCall dan textNoCall, noCall berisi yes atau no sedangkan textNoCall berisi pesan untuk dikirimkan setelah menolak panggilan.

image.thumb.png.ca8ec968a1b45e6d8a9a218453a58a8a.png

Restart nodejs, lihat apakah ada error atau tidak..

Selamat mencoba...

whatsapp.js

Edited by Dammah Sifla
  • Like 2
Link to comment
Share on other sites

8 minutes ago, Dammah Sifla said:

Saya telah menambahi fungsi tolak panggilan pada script whatsapp.js, jika anda ingin mencobanya, tolong jangan replace filenya, perhatikan scriptnya, ambil potongan script yang saya tambahi, agar bisa sama-sama belajar membaca fungsi script. Jika ingin mereplace file silahkan Anda backup terlebih dulu file whatsapp.js anda.

kemudian pada phpmyadmin di tabel number tambahi column noCall dan textNoCall, noCall berisi yes atau no sedangkan textNoCall berisi pesan untuk dikirimkan setelah menolak panggilan.

image.thumb.png.ca8ec968a1b45e6d8a9a218453a58a8a.png

Restart nodejs, lihat apakah ada error atau tidak..

Selamat mencoba...

whatsapp.js 19.44 kB · 0 downloads

@Dammah Sifla must we add those columns in DB???

Link to comment
Share on other sites

9 minutes ago, Dammah Sifla said:

Saya telah menambahi fungsi tolak panggilan pada script whatsapp.js, jika anda ingin mencobanya, tolong jangan replace filenya, perhatikan scriptnya, ambil potongan script yang saya tambahi, agar bisa sama-sama belajar membaca fungsi script. Jika ingin mereplace file silahkan Anda backup terlebih dulu file whatsapp.js anda.

kemudian pada phpmyadmin di tabel number tambahi column noCall dan textNoCall, noCall berisi yes atau no sedangkan textNoCall berisi pesan untuk dikirimkan setelah menolak panggilan.

image.thumb.png.ca8ec968a1b45e6d8a9a218453a58a8a.png

Restart nodejs, lihat apakah ada error atau tidak..

Selamat mencoba...

whatsapp.js 19.44 kB · 0 downloads

if so create a migration file, so we will not get confused

Link to comment
Share on other sites

  • DW Members

I see that there are many modifications to the bot such as chatgpt, gemini, personal or group messaging, and call cancellation, In the future, I may add other ai such as claude and DALL-E, so I think I will separate these features into a new page in the next version, below the Auto reply button in the menu, and make it (AI Bot).

  • Like 2
Link to comment
Share on other sites

4 hours ago, Dammah Sifla said:

Saya telah menambahi fungsi tolak panggilan pada script whatsapp.js, jika anda ingin mencobanya, tolong jangan replace filenya, perhatikan scriptnya, ambil potongan script yang saya tambahi, agar bisa sama-sama belajar membaca fungsi script. Jika ingin mereplace file silahkan Anda backup terlebih dulu file whatsapp.js anda.

kemudian pada phpmyadmin di tabel number tambahi column noCall dan textNoCall, noCall berisi yes atau no sedangkan textNoCall berisi pesan untuk dikirimkan setelah menolak panggilan.

image.thumb.png.ca8ec968a1b45e6d8a9a218453a58a8a.png

Restart nodejs, lihat apakah ada error atau tidak..

Selamat mencoba...

whatsapp.js 19.44 kB · 1 download

Terima kasih banyak atas bantuannya saya akan mencobanya. 

Apakah yang anda maksud tabel Device? Karena saya tidak menemukan tabel number. 

Edited by nikokenzo
Link to comment
Share on other sites

  • DW Members
1 hour ago, Jei Grey said:

@Magd Almuntaser

image.thumb.png.4d727f22744524c6be4e55db4824bced.png

run storage-link any eror like this. any solution?

Your hosting block symlink function ..

If you have vps you can enable this function and try again or run this command in SSH:

php artisan storage:link

If you don't have vps and you have aapanel you can create symlink from files ..

Link to comment
Share on other sites

  • DW Members
7 hours ago, The Billionaire said:

@Magd Almuntaser I will need you on this build, I would have loved to do it, but since you are good at it let me leave it for you

Yes, I will do that. I might release the next version today or tomorrow.
It contains many fixes and additions.
Some of these additions include:

- new page for updating the version remotely with a single click without needing to download the compressed file (smart update)
- new page for the AI bot with all options
- Added Claude API
- Added an option for (read) for bot conversations
- The ability to choose if you want to integrate more than one bot and call it by name in the conversation or not
- The ability to enable or disable calls for the bot
- Fixed the date issue in (message history)
- Fixed the port page for those using SSL
... and more

  • Like 1
  • Love 2
  • Thanks 1
Link to comment
Share on other sites

16 minutes ago, Magd Almuntaser said:

Yes, I will do that. I might release the next version today or tomorrow.
It contains many fixes and additions.
Some of these additions include:

- new page for updating the version remotely with a single click without needing to download the compressed file (smart update)
- new page for the AI bot with all options
- Added Claude API
- Added an option for (read) for bot conversations
- The ability to choose if you want to integrate more than one bot and call it by name in the conversation or not
- The ability to enable or disable calls for the bot
- Fixed the date issue in (message history)
- Fixed the port page for those using SSL
... and more

we are waiting for it sir. thanks in advance

Link to comment
Share on other sites

1 hour ago, Magd Almuntaser said:

Yes, I will do that. I might release the next version today or tomorrow.
It contains many fixes and additions.
Some of these additions include:

- new page for updating the version remotely with a single click without needing to download the compressed file (smart update)
- new page for the AI bot with all options
- Added Claude API
- Added an option for (read) for bot conversations
- The ability to choose if you want to integrate more than one bot and call it by name in the conversation or not
- The ability to enable or disable calls for the bot
- Fixed the date issue in (message history)
- Fixed the port page for those using SSL
... and more

Thanx you , ini luar biasa..👍

1 hour ago, Magd Almuntaser said:

Yes, I will do that. I might release the next version today or tomorrow.
It contains many fixes and additions.
Some of these additions include:

- new page for updating the version remotely with a single click without needing to download the compressed file (smart update)
- new page for the AI bot with all options
- Added Claude API
- Added an option for (read) for bot conversations
- The ability to choose if you want to integrate more than one bot and call it by name in the conversation or not
- The ability to enable or disable calls for the bot
- Fixed the date issue in (message history)
- Fixed the port page for those using SSL
... and more

Thanx you , ini luar biasa..👍

Link to comment
Share on other sites

1 hour ago, Magd Almuntaser said:

Yes, I will do that. I might release the next version today or tomorrow.
It contains many fixes and additions.
Some of these additions include:

- new page for updating the version remotely with a single click without needing to download the compressed file (smart update)
- new page for the AI bot with all options
- Added Claude API
- Added an option for (read) for bot conversations
- The ability to choose if you want to integrate more than one bot and call it by name in the conversation or not
- The ability to enable or disable calls for the bot
- Fixed the date issue in (message history)
- Fixed the port page for those using SSL
... and more

We all always waiting this goodnews sir.. thank you,

Link to comment
Share on other sites

2 hours ago, Magd Almuntaser said:

Yes, I will do that. I might release the next version today or tomorrow.
It contains many fixes and additions.
Some of these additions include:

- new page for updating the version remotely with a single click without needing to download the compressed file (smart update)
- new page for the AI bot with all options
- Added Claude API
- Added an option for (read) for bot conversations
- The ability to choose if you want to integrate more than one bot and call it by name in the conversation or not
- The ability to enable or disable calls for the bot
- Fixed the date issue in (message history)
- Fixed the port page for those using SSL
... and more

Luar biasa master

Link to comment
Share on other sites

4 hours ago, Magd Almuntaser said:

Yes, I will do that. I might release the next version today or tomorrow.
It contains many fixes and additions.
Some of these additions include:

- new page for updating the version remotely with a single click without needing to download the compressed file (smart update)
- new page for the AI bot with all options
- Added Claude API
- Added an option for (read) for bot conversations
- The ability to choose if you want to integrate more than one bot and call it by name in the conversation or not
- The ability to enable or disable calls for the bot
- Fixed the date issue in (message history)
- Fixed the port page for those using SSL
... and more

Thank you sir. 

Link to comment
Share on other sites

On 7/11/2024 at 12:09 AM, Magd Almuntaser said:

How To Run (Whatsapp Gateway Multi Device) Via SSL
(For All Version)

((Cpanel+Cloudflare))

 

In this guide, we will use SSL for cPanel and Cloudflare users only.

1- we need to know that Cloudflare uses these ports exclusively:

443
2053
2083
2087
2096

8443
We will use port 8443 because it is not used by cPanel.

2-  let's assume the script is located at this domain:

https:// magd.com/ws

We will go to Cloudflare and select SSL/TLS -> Overview, then choose Full.

image.thumb.jpeg.27a536c007888bb9469fa03d971a8c28.jpeg

 

3- we will edit the .env file located in the root directory of the script and change these fields to https:// and Port to 8443
 

APP_URL=https://magd .com
WA_URL_SERVER=https://magd .com:8443
PORT_NODE=8443

4- we will login to cPanel, go to SSL/TLS:

image.jpeg.665b2a65a119f62217e5539beaa117ad.jpeg

and then Manage SSL sites:

image.jpeg.e34273c20eb386411ff6dcbe3176d844.jpeg

5- Now we will select Use Certificate for New Site:

image.jpeg.834449444e0a8b069fa6f4da36c9e5dd.jpeg

Two fields will appear. The first is Certificate: (CRT) which we will copy and save in a file named cert.pem. The other is Private Key (KEY) which we will save in a file named key.pem:

image.jpeg.087e3b6d551147b10f973ab1b7ec994b.jpeg

6- We will upload the two files we saved, cert.pem and key.pem, to the root directory of the script. Then, we will edit the server.js file and replace this code from:

/**
 * EXPRESS FOR ROUTING
 */
const express = require("express");
const app = express();
const http = require("http");
const server = http.createServer(app);

To:
 

/**
 * EXPRESS FOR ROUTING
 */
const serverOptions = {
  key: fs.readFileSync('key.pem'),
  cert: fs.readFileSync('cert.pem')
}

const express = require("express");
const app = express();
const https = require("https");
const server = https.createServer(serverOptions, app);

7- And finally, the last step, is to edit the routes/web.php file and add this code at the end of the file:
 

URL::forceScheme('https');

 

Now you can restart Node.js and enjoy using the script over HTTPS
I will later post how to use SSL on the aaPanel control panel. Therefore, if anyone has a website using this panel, please send your site details (PM) so I can use them for the explanation, as I don't currently have aaPanel 🙂

THIS IS ERROR 

ReferenceError: Cannot access 'fs' before initialization
    at Object.<anonymous> (/home/kdletqgj/message.aacademy.in/server.js:10:8)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:48:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)

Node.js v20.14.0
/home/kdletqgj/message.aacademy.in/server.js:10
  key: fs.readFileSync('key.pem'),
       ^


MY SERVER.JS IS 
 

const wa = require("./server/whatsapp");
const fs = require("fs");
const dbs = require('./server/database/index');
require("dotenv").config();
const lib = require("./server/lib");
global.log = lib.log;

/**
 * EXPRESS FOR ROUTING
 */
const serverOptions = {
  key: fs.readFileSync('key.pem'),
  cert: fs.readFileSync('cert.pem')
}

const express = require("express");
const app = express();
const https = require("https");
const server = https.createServer(serverOptions, app);

/**
 * SOCKET.IO
 */
const { Server } = require("socket.io");
const io = new Server(server);
const port = process.env.PORT_NODE;
app.use((req, res, next) => {
  res.set("Cache-Control", "no-store");
  req.io = io;
  // res.set('Cache-Control', 'no-store')
  next();
});

const bodyParser = require("body-parser");

// parse application/x-www-form-urlencoded
app.use(
  bodyParser.urlencoded({
    extended: false,
    limit: "50mb",
    parameterLimit: 100000,
  })
);
// parse application/json
app.use(bodyParser.json());
app.use(express.static("src/public"));
app.use(require("./server/router"));

// console.log(process.argv)

io.on("connection", (socket) => {
  socket.on("StartConnection", (data) => {
    wa.connectToWhatsApp(data, io);
  });
  socket.on("ConnectViaCode", (data) => {
    wa.connectToWhatsApp(data, io, true);
  });
  socket.on("LogoutDevice", (device) => {
    wa.deleteCredentials(device, io);
  });
});
server.listen(port, console.log(`Server run and listening port: ${port}`));

dbs.db.query("SELECT * FROM devices WHERE status = 'Connected'", (err, results) => {
    if (err) {
      console.error('Error executing query:', err);
    }
    results.forEach(row => {
      const number = row.body;
      if (/^\d+$/.test(number)) {
        wa.connectToWhatsApp(number);
      }
    });
});

Link to comment
Share on other sites

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...