Jump to content

Whatsapp Gateway | Multi Device v8.5.1


Magd Almuntaser

Recommended Posts

4 hours ago, Gak Taw said:

better use apache or nginx for aapanel?

now im use apache

Who here uses aapanel and it runs smoothly, please provide information
Thank You

for a small traffic there aren't significant difference between apache or nginx, but for a larger traffic website nginx still the best.

And you must edit htaccess for working with it

Link to comment
Share on other sites

  • DW Members
3 minutes ago, Remos said:

@Unicode Is your code running i am trying to install in shared hosting namecheap nodejs is connecting but i am not getting qr to scan please help

Check your port through this site if it is open or not:
 

https://www.yougetsignal.com/tools/open-ports/


Also don't forget to check your .env file that your data is as follows:

APP_URL=http://yoursite.com
WA_URL_SERVER=http://yoursite:3100
TYPE_SERVER=other

Focus on using http and not https.. unless you see page number 40, you can find out how to make it work on https

Link to comment
Share on other sites

5 hours ago, Gak Taw said:

better use apache or nginx for aapanel?

now im use apache

Who here uses aapanel and it runs smoothly, please provide information
Thank You

im using aapanel and apache. and run smoothly

coffee

Need Help?? just buy me a cup of coffee

Link to comment
Share on other sites

4 minutes ago, Enno The Explorer said:

pakai shared hosting mas..murah idcloudhost

sayang vpsnya mas kalau ga di manfaatkan. sbenarnya mpwa ini nebeng di vps yang udah ada. isnya beberapa website. hehehe...

coffee

Need Help?? just buy me a cup of coffee

Link to comment
Share on other sites

1 minute ago, kecoamumet said:

sayang vpsnya mas kalau ga di manfaatkan. sbenarnya mpwa ini nebeng di vps yang udah ada. isnya beberapa website. hehehe...

iyaa..dipakai yang ada aja..sama aja sebenarnya yang penting kan lancar ga idle2..klo dulu ribet harus pakai cronjob..Alhamdulilah skrg udah lancar jayaa 

Link to comment
Share on other sites

22 hours ago, Magd Almuntaser said:

😅 yes
What's new in version 8.5.0 so far:
-
Added send sticker feature.
-
Added wysiwyg whatsapp (text editing tools).
-
Added view once message feature for (images & videos).
-
Added API for send sticker and api-docs.
-
Re-Design Test message, Create campagin and Autoreply.

image.thumb.png.202cf31ba983b49297a5da6d3aff3749.png 

 

================================

 

image.png.cb4b4aa274481610ffbb6a93566a27c9.png

is this version release yet?

Link to comment
Share on other sites

11 hours ago, Enno The Explorer said:

pakai shared hosting mas..murah idcloudhost

Ini sih no komen mas.

ibarat rumah kalo hosting itu kamu ngekos, coba bikin vps pasti pusing bayar license hahaha 🤣. Aku aja sudah ndak nyaman pake hosting karena ndak leluasa.

Hosting hanya untuk mpwa aja, biar gk ganggu web utama yg udah running

Link to comment
Share on other sites

2 minutes ago, Unicode said:

Ini sih no komen mas.

ibarat rumah kalo hosting itu kamu ngekos, coba bikin vps pasti pusing bayar license hahaha 🤣. Aku aja sudah ndak nyaman pake hosting karena ndak leluasa.

Hosting hanya untuk mpwa aja, biar gk ganggu web utama yg udah running

nah makanya pake aapanel, gratis tis tis... ya sebenarnya bisa pake cli, tapi bikin capeq hati dan pikiran. mending hati dan pikiran di fokuskan ke target janda kampung sebelah... hehehehe...

 

aku malah mpwa nebeng di vps production. dari pada sewa hosting lagi. banyakan dramanya dibanding actionnya

coffee

Need Help?? just buy me a cup of coffee

Link to comment
Share on other sites

Just now, kecoamumet said:

nah makanya pake aapanel, gratis tis tis... ya sebenarnya bisa pake cli, tapi bikin capeq hati dan pikiran. mending hati dan pikiran di fokuskan ke target janda kampung sebelah... hehehehe...

 

aku malah mpwa nebeng di vps production. dari pada sewa hosting lagi. banyakan dramanya dibanding actionnya

Iya sih 😁

hosting banyak drama haha. Untungnya di tempat host skrg gk drama, tp kapan hari ada drama dikit karena down 30 menit 🥲.

Cloudpanel udah nyoba bro?

tp pake Nginx dia

Link to comment
Share on other sites

3 minutes ago, Unicode said:

Iya sih 😁

hosting banyak drama haha. Untungnya di tempat host skrg gk drama, tp kapan hari ada drama dikit karena down 30 menit 🥲.

Cloudpanel udah nyoba bro?

tp pake Nginx dia

dari dulu pengen nyoba cloudpanel. penasaran. dia bisa multi-user juga ya? bisa untuk di jual lagi jadi hostingan ya... hehehe... boleh deh, nanti coba cloudpanel. kalau aapanelkan singleuser.

coffee

Need Help?? just buy me a cup of coffee

Link to comment
Share on other sites

3 minutes ago, kecoamumet said:

dari dulu pengen nyoba cloudpanel. penasaran. dia bisa multi-user juga ya? bisa untuk di jual lagi jadi hostingan ya... hehehe... boleh deh, nanti coba cloudpanel. kalau aapanelkan singleuser.

Iya itu sayang bgt aapanel single user.
Tapi fitur cloudpanel kok gk sebanyak aapanel, bingung mau jalanin node gmn…

Link to comment
Share on other sites

35 minutes ago, kecoamumet said:

dari dulu pengen nyoba cloudpanel. penasaran. dia bisa multi-user juga ya? bisa untuk di jual lagi jadi hostingan ya... hehehe... boleh deh, nanti coba cloudpanel. kalau aapanelkan singleuser.

Buruan di coba bang nanti ajarkan ke saya 🫢

Link to comment
Share on other sites

5 minutes ago, Avina Kefin said:

Buruan di coba bang nanti ajarkan ke saya 🫢

Tinggal nyoba dan install aja gampang

 

2 minutes ago, kecoamumet said:

hahahahaha.... itu abang @Unicode udah pernah pake tuh sptnya

Nyoba tapi dipake web biasa aja.

installnya lebih cepet dibanding aapanel, kadang install apache / php gagal 😁🤣

Link to comment
Share on other sites

SHARE QURAN VIA GOOGLE APPSCRIPT (Script quran.php dari mamank @Magd Almuntaser)

Buka Google Spreadsheets lalu buat table seperti ini ( Your Website | Apikey | Sender | Tujuan | Text/Audio/Hybrid )

image.png.197932549ec8a943dd3e735bbb1e0812.png

atau bisa copy dari ini : https://docs.google.com/spreadsheets/d/1ICpCKMOSFOxDDeipt71wDHakocBVFmQVrpmguHWcEkM/edit?usp=sharing
 

lalu pergi ke Extensi -> AppScript

lalu copas script ini ke appscript lalu save.
 

function sendQuranMessage() {
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  var YOUR_WEBSITE = sheet.getRange('A2').getValue();
  var API = sheet.getRange('B2').getValue();
  var YOUR_NUMBER = sheet.getRange('C2').getValue();
  var AUDIO = sheet.getRange('E2').getValue();
  
  var dataRange = sheet.getRange(2, 4, sheet.getLastRow() - 1, 1);
  var ALL_NUMBERS = dataRange.getValues();

  var TAFSIR = "kemenag";
  var SHAIKH = "alafasy";

  ALL_NUMBERS.forEach(function(row, index) {
    var number = row[0];
    number = String(number).trim();
    
    var randomAyat = getAyatFromAPI();
    
    Logger.log(randomAyat);
  
    var arabic = randomAyat.arab;
    var indonesia = randomAyat.translation;
    
    var surahNumber = randomAyat.number && randomAyat.number.inSurah ? randomAyat.number.inSurah : 'Unknown Surah';
    var numberInSurah = randomAyat.number && randomAyat.number.inQuran ? randomAyat.number.inQuran : 'Unknown Ayat';
  
    var tafsirQuran = randomAyat.tafsir && randomAyat.tafsir[TAFSIR] && randomAyat.tafsir[TAFSIR].short 
      ? randomAyat.tafsir[TAFSIR].short 
      : 'Tafsir tidak tersedia';
  
    var audioUrl = randomAyat.audio[SHAIKH];
  
    var MessageTemplate = `*Ayat Alquran*

    {{arabic}}

    {{indonesia}}

    *(Qs. {{S}}:{{Q}})*

    *Tafsir (${TAFSIR}):*
    {{tafsir}}

    *Sedekah Jariyah*`;
    
    var Message = MessageTemplate.replace("{{arabic}}", arabic)
                                 .replace("{{indonesia}}", indonesia)
                                 .replace("{{Q}}", numberInSurah)
                                 .replace("{{S}}", surahNumber)
                                 .replace("{{tafsir}}", tafsirQuran);
    
    if (AUDIO == 2) {
      Logger.log("Mengirim Teks ke nomor: " + number);
      Logger.log("Pesan Teks: " + Message);
      sendTextMessage(YOUR_WEBSITE, API, YOUR_NUMBER, number, Message);
      
      Logger.log("Mengirim Audio ke nomor: " + number);
      Logger.log("URL Audio: " + audioUrl);
      sendAudioMessage(YOUR_WEBSITE, API, YOUR_NUMBER, number, audioUrl);
      
    } else if (AUDIO == 1) {
      Logger.log("Mengirim Audio ke nomor: " + number);
      Logger.log("URL Audio: " + audioUrl);
      sendAudioMessage(YOUR_WEBSITE, API, YOUR_NUMBER, number, audioUrl);
      
    } else {
      Logger.log("Mengirim Teks ke nomor: " + number);
      Logger.log("Pesan Teks: " + Message);
      sendTextMessage(YOUR_WEBSITE, API, YOUR_NUMBER, number, Message);
    }

    Utilities.sleep(2000);
  });
}

function getAyatFromAPI() {
  var url = "https://quran-api-id.vercel.app/random";
  var response = UrlFetchApp.fetch(url);
  var data = JSON.parse(response.getContentText());
  
  Logger.log(data);
  
  return data;
}

function sendTextMessage(YOUR_WEBSITE, API, sender, number, message) {
  var url = YOUR_WEBSITE + "/send-message";
  var payload = {
    'api_key': API,
    'number': number,
    'sender': sender,
    'message': message
  };
  
  var options = {
    'method': 'POST',
    'contentType': 'application/json',
    'payload': JSON.stringify(payload),
    'muteHttpExceptions': true
  };
  
  var response = UrlFetchApp.fetch(url, options);
  Logger.log("Response from server: " + response.getContentText());
}

function sendAudioMessage(YOUR_WEBSITE, API, sender, number, audioUrl) {
  var url = YOUR_WEBSITE + "/send-media";
  var payload = {
    'api_key': API,
    'number': number,
    'sender': sender,
    'media_type': 'audio',
    'caption': '',
    'url': audioUrl
  };
  
  var options = {
    'method': 'POST',
    'contentType': 'application/json',
    'payload': JSON.stringify(payload),
    'muteHttpExceptions': true
  };
  
  var response = UrlFetchApp.fetch(url, options);
  Logger.log("Response from server: " + response.getContentText());
}

lalu tambahkan trigger sesuai kebutuhan kalian. contoh 15/30/60 menit sekali


Jika pilih hybrid akan seperti ini
image.png.3b99040e17f25408d6fcf1240a908726.png

Notes
 

Quote

FUNCTION            
1. Your website anda bisa isi URL MPWA sendiri            
2. Apikey cukup isi 1 apikey saja            
3. Sender bisa anda isi beberapa nomor sender yang sudah terconnect di mpwa            
4. Nomor tujuan dapat di isi berapa banyak pun            
5. 0 (Text Only) | 1 (Audio Only) | 2 (Text+Audio)            
6. Message dikirim ke nomor tujuan berbeda ayat untuk menghidari nya spam     
   


 

Edited by Pebrian
  • Like 2
  • Love 3
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.
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...

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