Jump to content
Get 20% off with our White Friday Deal🥳 ×

Whatsapp Gateway | Multi Device v8.5.1


Magd Almuntaser

Recommended Posts

4 hours ago, Magd Almuntaser said:

I don't think so. I used wasender and didn't like it. It's too much code and consumes too much of the site's resources. Its files are messy and unorganized, there are unused codes.

This mpwa script is a light and easy to use script, although the code was messy before, but I organized it, removed most of the unused code and tried to make it stable, and I'm still adding new features to it.

You will like the new version because the features I added will make it easier for all of us to create whmcs and wordpress plugins, easy to send and stable to connect.

🤣🤣🤣 Owalah, iya bener apa yang dikatakan Master @Magd Almuntaser 😂😂😂

 

Screenshot_20240816-072128.jpg

Link to comment
Share on other sites

5 hours ago, Magd Almuntaser said:

I don't think so. I used wasender and didn't like it. It's too much code and consumes too much of the site's resources. Its files are messy and unorganized, there are unused codes.

This mpwa script is a light and easy to use script, although the code was messy before, but I organized it, removed most of the unused code and tried to make it stable, and I'm still adding new features to it.

You will like the new version because the features I added will make it easier for all of us to create whmcs and wordpress plugins, easy to send and stable to connect.

That's really great to hear,
Looking forward to the next version 🙂

Edited by Upal
Link to comment
Share on other sites

47 minutes ago, anet id said:

@Magd Almuntaser 

For the next update, can you add sending messages via API to WhatsApp groups?

because of this mpwa on the api docs there is no sending messages to the group.

 

yes master @Magd Almuntaser it would be interesting if there are feature to send message to whatsApp group with ability to tag people inside or mention people name 😁

Edited by utm
Link to comment
Share on other sites

12 minutes ago, anet id said:

@Putra Pertama can send api code to send to group?

yes, you can.
{

    "api_key": "xxxxeb178xxxbeBuwRxxx",
    "sender": "628xxxxxxxxxx",
    "number": "xxxx6324xxx516xxxx@g.us",
    "message": "Hello World"
}

just change key number with value of the group id
or by interface.
 
hope next update there will be something like option to select group and send message directly 
Link to comment
Share on other sites

33 minutes ago, anet id said:

@Putra Pertama can send api code to send to group?

yes, i can send to group

https://yourwebsite/send-message?api_key=xhh5dgTi2iNx1lAW3FMKbNfuLNE6f&sender=62812345678&number=xxxxxxxxxxxxx@g.us&message=Hallooooooo

nah, xxxxxxxxxxxxx@g.us itu identitas grup nya, nanti akan masuk ke grup tersebut

 

Edited by Gusik Prasetyo
Link to comment
Share on other sites

  • DW Members
3 hours ago, anet id said:

@Magd Almuntaser 

For the next update, can you add sending messages via API to WhatsApp groups?

because of this mpwa on the api docs there is no sending messages to the group.

 

2 hours ago, utm said:

yes master @Magd Almuntaser it would be interesting if there are feature to send message to whatsApp group with ability to tag people inside or mention people name 😁

Yes you can .. just go to phonebook and fetch the groups .. you see the id number for the groups .. when you send message put id group number 👍

Link to comment
Share on other sites

11 hours ago, Magd Almuntaser said:

Damn to original developer, his code has exhausted me...
All of his code is taken from other scripts, even the admin panel design is just a ready-made HTML from the internet (Snacked Admin), also the logo.

Why are you selling a script you didn’t even put effort into?!!!
I have recoded this script from scratch, and if I had known it was like this, I would have developed a new script instead.
Anyway, I hope he reads this, because we’re going to elevate this script to the best it can be.
Damn to original developer again
===================
I still have the password recovery feature via email and I will upload the version

Haha menurut saya anda yang lebih pantas disebut developer dan owner script ini.

Link to comment
Share on other sites

Script simple php buat integrasi ke Home Assistant

big thanks @Magd Almuntaser , jadi sekarang WA gateway gratis. biasa bayar cepe sebulan buat kirim daily summary Solar system

 

<?php

// Konfigurasi API Key dan Sender Number
$api_key = 'isi apikey';
$sender = 'isi no sender';

// Mengambil parameter dari URL
$number = isset($_GET['number']) ? $_GET['number'] : '';
$message = isset($_GET['message']) ? $_GET['message'] : '';

// Menyusun URL dengan parameter yang diambil
$url = 'https://domain.com/send-message?api_key=' . $api_key . '&sender=' . $sender . '&number=' . urlencode($number) . '&message=' . urlencode($message);

// Melakukan request ke API menggunakan file_get_contents
$response = file_get_contents($url);

// Tampilkan hasil response dari API
echo $response;

?>

 

Example Post

http://yourdomain.com/send_message.php?number=nomortarget&message=Hello%20World

 

 

WhatsApp Image 2024-08-09 at 17.06.26_a5d40a30.jpg

 

Untuk Sent Media

<?php

// Konfigurasi API Key dan Sender Number
$api_key = 'XXXX';
$sender = 'XXXX';

// Mengambil parameter dari URL
$number = isset($_GET['number']) ? $_GET['number'] : '';
$media_type = isset($_GET['media_type']) ? $_GET['media_type'] : 'image';
$caption = isset($_GET['caption']) ? $_GET['caption'] : '';
$url = isset($_GET['url']) ? $_GET['url'] : '';

// Menyusun URL dengan parameter yang diambil
$send_media_url = 'https://domain.com/send-media?api_key=' . $api_key .
                  '&sender=' . $sender .
                  '&number=' . urlencode($number) .
                  '&media_type=' . urlencode($media_type) .
                  '&caption=' . urlencode($caption) .
                  '&url=' . urlencode($url);

// Melakukan request ke API menggunakan file_get_contents
$response = file_get_contents($send_media_url);

// Tampilkan hasil response dari API
echo $response;

?>

Example Post

http://yourdomain.com/send_media.php?number=xxxxx&media_type=image&caption=Hello%20World&url=https://example.com/image.jpg

 

 

Untuk list message

<?php

// Konfigurasi API Key dan Sender Number
$api_key = 'xxxx';
$sender = 'xxxx';

// Mengambil parameter dari URL
$number = isset($_GET['number']) ? $_GET['number'] : '';
$name = isset($_GET['name']) ? $_GET['name'] : '';
$footer = isset($_GET['footer']) ? $_GET['footer'] : '';
$title = isset($_GET['title']) ? $_GET['title'] : '';
$buttontext = isset($_GET['buttontext']) ? $_GET['buttontext'] : '';
$message = isset($_GET['message']) ? $_GET['message'] : '';
$list = isset($_GET['list']) ? explode(',', $_GET['list']) : [];

// Menyusun array data untuk request
$data = [
    'api_key' => $api_key,
    'sender' => $sender,
    'number' => $number,
    'name' => $name,
    'footer' => $footer,
    'title' => $title,
    'buttontext' => $buttontext,
    'message' => $message,
    'list' => $list
];

// Menyusun URL
$url = 'https://domain.com/send-list?' . http_build_query($data);

// Melakukan request ke API menggunakan file_get_contents
$response = file_get_contents($url);

// Tampilkan hasil response dari API
echo $response;

?>

Example Post

http://yourdomain.com/send_list.php?number=xxxxx&name=pesan%20list&footer=optional&title=title%20list&buttontext=ey&message=Halo,ini%20pesan%20list&list=sdf,list2,list3

 

Edited by Pebrian
  • Like 2
  • Thanks 2
Link to comment
Share on other sites

10 minutes ago, Pebrian said:

Script simple php buat integrasi ke Home Assistant

big thanks @Magd Almuntaser , jadi sekarang WA gateway gratis. biasa bayar cepe sebulan buat kirim daily summary Solar system

 

<?php

// Konfigurasi API Key dan Sender Number
$api_key = 'isi apikey';
$sender = 'isi no sender';

// Mengambil parameter dari URL
$number = isset($_GET['number']) ? $_GET['number'] : '';
$message = isset($_GET['message']) ? $_GET['message'] : '';

// Menyusun URL dengan parameter yang diambil
$url = 'https://domain.com/send-message?api_key=' . $api_key . '&sender=' . $sender . '&number=' . urlencode($number) . '&message=' . urlencode($message);

// Melakukan request ke API menggunakan file_get_contents
$response = file_get_contents($url);

// Tampilkan hasil response dari API
echo $response;

?>

 

Example Post

http://yourdomain.com/send_message.php?number=nomortarget&message=Hello%20World

 

 

WhatsApp Image 2024-08-09 at 17.06.26_a5d40a30.jpg

diintegrasikan ke Hardware ya mas..gmn caranya?

Link to comment
Share on other sites

Just now, Enno The Explorer said:

diintegrasikan ke Hardware ya mas..gmn caranya?

pake shell_command. simpen aja file php nya di website mu. pisahkan dari mpwa nya

 

get message nya tinggal
Example
Status Inverter 1 $sensor.name

Status Inverter 2 $sensor.name

Link to comment
Share on other sites

25 minutes ago, Pebrian said:

Script simple php buat integrasi ke Home Assistant

big thanks @Magd Almuntaser , jadi sekarang WA gateway gratis. biasa bayar cepe sebulan buat kirim daily summary Solar system

 

<?php

// Konfigurasi API Key dan Sender Number
$api_key = 'isi apikey';
$sender = 'isi no sender';

// Mengambil parameter dari URL
$number = isset($_GET['number']) ? $_GET['number'] : '';
$message = isset($_GET['message']) ? $_GET['message'] : '';

// Menyusun URL dengan parameter yang diambil
$url = 'https://domain.com/send-message?api_key=' . $api_key . '&sender=' . $sender . '&number=' . urlencode($number) . '&message=' . urlencode($message);

// Melakukan request ke API menggunakan file_get_contents
$response = file_get_contents($url);

// Tampilkan hasil response dari API
echo $response;

?>

 

Example Post

http://yourdomain.com/send_message.php?number=nomortarget&message=Hello%20World

 

 

WhatsApp Image 2024-08-09 at 17.06.26_a5d40a30.jpg

 

Untuk Sent Media

<?php

// Konfigurasi API Key dan Sender Number
$api_key = 'XXXX';
$sender = 'XXXX';

// Mengambil parameter dari URL
$number = isset($_GET['number']) ? $_GET['number'] : '';
$media_type = isset($_GET['media_type']) ? $_GET['media_type'] : 'image';
$caption = isset($_GET['caption']) ? $_GET['caption'] : '';
$url = isset($_GET['url']) ? $_GET['url'] : '';

// Menyusun URL dengan parameter yang diambil
$send_media_url = 'https://domain.com/send-media?api_key=' . $api_key .
                  '&sender=' . $sender .
                  '&number=' . urlencode($number) .
                  '&media_type=' . urlencode($media_type) .
                  '&caption=' . urlencode($caption) .
                  '&url=' . urlencode($url);

// Melakukan request ke API menggunakan file_get_contents
$response = file_get_contents($send_media_url);

// Tampilkan hasil response dari API
echo $response;

?>

Example Post

http://yourdomain.com/send_media.php?number=xxxxx&media_type=image&caption=Hello%20World&url=https://example.com/image.jpg

 

 

Untuk list message

<?php

// Konfigurasi API Key dan Sender Number
$api_key = 'xxxx';
$sender = 'xxxx';

// Mengambil parameter dari URL
$number = isset($_GET['number']) ? $_GET['number'] : '';
$name = isset($_GET['name']) ? $_GET['name'] : '';
$footer = isset($_GET['footer']) ? $_GET['footer'] : '';
$title = isset($_GET['title']) ? $_GET['title'] : '';
$buttontext = isset($_GET['buttontext']) ? $_GET['buttontext'] : '';
$message = isset($_GET['message']) ? $_GET['message'] : '';
$list = isset($_GET['list']) ? explode(',', $_GET['list']) : [];

// Menyusun array data untuk request
$data = [
    'api_key' => $api_key,
    'sender' => $sender,
    'number' => $number,
    'name' => $name,
    'footer' => $footer,
    'title' => $title,
    'buttontext' => $buttontext,
    'message' => $message,
    'list' => $list
];

// Menyusun URL
$url = 'https://domain.com/send-list?' . http_build_query($data);

// Melakukan request ke API menggunakan file_get_contents
$response = file_get_contents($url);

// Tampilkan hasil response dari API
echo $response;

?>

Example Post

http://yourdomain.com/send_list.php?number=xxxxx&name=pesan%20list&footer=optional&title=title%20list&buttontext=ey&message=Halo,ini%20pesan%20list&list=sdf,list2,list3

 

Wah mantabbb..coba dulu ya

Link to comment
Share on other sites

15 minutes ago, Pebrian said:

pake shell_command. simpen aja file php nya di website mu. pisahkan dari mpwa nya

 

get message nya tinggal
Example
Status Inverter 1 $sensor.name

Status Inverter 2 $sensor.name

duh bahasa tingkat tinggi.. mas @Enno The Explorer dah paham sepertinya. gunanya untuk apa ya mas?

Edited by Gusik Prasetyo
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...