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 247.5k
  • 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_70244
7 hours ago, Magd Almuntaser said:

You can use my code:

<?php
function SendWhatsApp($sender_number, $api_key, $number, $text) {
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, 'http://yourwebsite.com/send-message?api_key='.$api_key.'&preview_url=true&sender='.$sender_number.'&number='.$number.'&message='.urlencode($text).'');
	curl_setopt($ch, CURLOPT_HEADER, FALSE);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
	$result = curl_exec($ch);
	curl_close($ch);
		$result = str_replace("      ", "", $result);
    
	if($result){
		return $result;
	}else{
		return "";
	}
}
// "yournumber", "api key", "recierv number", "msg"
echo SendWhatsApp("62888xxxx", "nknfkl345ksdfk4KLhk45", "6281xxxxxx", "Hello World");
?>
 

 

this method is actually long

comment_70245
public function whatsApp($numbers, $message)
    {
        // Replace these values with your actual data
        $apiKey = env('WHATSAPP_API_KEY');
        $sender = env('WHATSAPP_API_SENDER');
        $url = env('WHATSAPP_API_URL');

        // If $numbers is not an array, convert it to an array
        if (!is_array($numbers)) {
            $numbers = [$numbers];
        }

        foreach ($numbers as $number) {
            try {
                $response = Http::post($url, [
                    "api_key" => $apiKey,
                    "sender" => $sender,
                    "number" => $number,
                    "message" => $message
                ]);

                // Handle response
                if ($response->successful()) {
                    // Success
                    $responseData = $response->json();
                    Log::info("WhatsApp message sent successfully" . json_encode($responseData));
                    // Process $responseData here
                } else {
                    // Failure
                    $errorCode = $response->status();
                    $errorMessage = $response->body();
                    Log::error("Failed to send WhatsApp message. Error code: $errorCode, Error message: $errorMessage");
                    // Handle error
                }
            } catch (\Exception $e) {
                Log::error("Exception occurred while sending WhatsApp message" . $e->getMessage());
                // Handle exception
            }
        }
    }

try this, change the environment to fit yours, this code can send messages to multiple numbers, 20 numbers at once using the API

  • Author
comment_70247
1 hour ago, The Billionaire said:
public function whatsApp($numbers, $message)
    {
        // Replace these values with your actual data
        $apiKey = env('WHATSAPP_API_KEY');
        $sender = env('WHATSAPP_API_SENDER');
        $url = env('WHATSAPP_API_URL');

        // If $numbers is not an array, convert it to an array
        if (!is_array($numbers)) {
            $numbers = [$numbers];
        }

        foreach ($numbers as $number) {
            try {
                $response = Http::post($url, [
                    "api_key" => $apiKey,
                    "sender" => $sender,
                    "number" => $number,
                    "message" => $message
                ]);

                // Handle response
                if ($response->successful()) {
                    // Success
                    $responseData = $response->json();
                    Log::info("WhatsApp message sent successfully" . json_encode($responseData));
                    // Process $responseData here
                } else {
                    // Failure
                    $errorCode = $response->status();
                    $errorMessage = $response->body();
                    Log::error("Failed to send WhatsApp message. Error code: $errorCode, Error message: $errorMessage");
                    // Handle error
                }
            } catch (\Exception $e) {
                Log::error("Exception occurred while sending WhatsApp message" . $e->getMessage());
                // Handle exception
            }
        }
    }

try this, change the environment to fit yours, this code can send messages to multiple numbers, 20 numbers at once using the API

Look carefully... whose code is longer?

We both use functions, but focus on my code. I placed the API outside the function so it can send 1 million numbers. It can link more than one API, so it is not limited to just 10 numbers.

Don't forget that I only used CURL and variables, whereas in your code you used env, curl, classes, catch, try, foreach, json_encode, log, is_array, etc.

Overall, focus on my code.. it is smaller, easier, and more practical.

Try sending 10 messages to 10 people using your code and check the CPU usage while sending just 10 messages. You are consuming a lot of server resources.

my friend.. CURL is just a browser.. it doesn't consume anything even if you send 1 million messages.

Strength is not in muscles.. strength is in the way you use your mind.

comment_70254

Hello, can everybody help?

After the apps succesfully installed and connecting via QR code.
1. Feature "Auto Reply" is not auto connecting with my WhatsApp. I must be logging and click "Connect Via Code" for running normal again.
2. When I test feature "Test Message" is not working very well and show Error "500 SERVER ERROR" couse i set .env to production.

Big HELP. Thanks.

comment_70257
2 hours ago, Magd Almuntaser said:

Look carefully... whose code is longer?

We both use functions, but focus on my code. I placed the API outside the function so it can send 1 million numbers. It can link more than one API, so it is not limited to just 10 numbers.

Don't forget that I only used CURL and variables, whereas in your code you used env, curl, classes, catch, try, foreach, json_encode, log, is_array, etc.

Overall, focus on my code.. it is smaller, easier, and more practical.

Try sending 10 messages to 10 people using your code and check the CPU usage while sending just 10 messages. You are consuming a lot of server resources.

my friend.. CURL is just a browser.. it doesn't consume anything even if you send 1 million messages.

Strength is not in muscles.. strength is in the way you use your mind.

I am sorry if I have said something that got you upset, I didn't mean to, please don't see it that way either, forgive me

comment_70421

Si necesitan enviar un mensaje a Whatsapp desde php y sin hacerlo desde la plataforma, pueden usar esto desde cualquier web externa, solo cambien los valores necesarios

 

<?php
// URL de destino
$url = 'https://www.example.com/endpoint'; // URL a la que deseas enviar la solicitud
// Datos a enviar (si es necesario)
$postData = http_build_query(array(
    'key1' => 'value1',
    'key2' => 'value2'
));
// Opciones de contexto para la solicitud (ignorar resultados y errores)
$contextOptions = array('http' => array(
    'method' => 'POST',
    'header' => "Content-Type: application/x-www-form-urlencoded\r\n"
                . "Content-Length: " . strlen($postData) . "\r\n",
    'content' => $postData,
    'ignore_errors' => true // Ignorar errores en la respuesta
));
$context = stream_context_create($contextOptions);
// Realizar la solicitud sin mostrar resultados ni datos
$response = file_get_contents($url, false, $context);
if ($response === false) {
    echo "La solicitud no se pudo completar.";
} else {
    echo "Solicitud enviada correctamente sin mostrar resultados ni datos.";
}
?>

 

  • Author
comment_70567
On 5/25/2024 at 2:40 PM, ashoksingh shekhawat said:

also getting this error

Screenshot_12.png

The problem from nodjs

You need to install nodjs 16.2 or 18

Only those version is stable .. so after install this version you install (pm2):

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

# after install pm2 you run this command and change the info to your website:
 
cd /home/username/public_html/whatsappscript
pm2 start server.js

 

Edited by Magd Almuntaser

  • Author
comment_70568
1 hour ago, pisang masbro said:

hELP vendor/symfony/string/Resources/functions.php on line 34

I don't exactly know what your problem is. Can you clarify more? Is it when sending a message, opening the website, or something else?

It seems your current issue is that you updated the package.json via npm, which you should never do because the script is compatible with the specific vendors listed within it.

comment_70636
On 5/29/2024 at 4:03 AM, Magd Almuntaser said:

The problem from nodjs

You need to install nodjs 16.2

Only this version is stable .. so after install this version you install (pm2):

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

# after install pm2 you run this command and change the info to your website:
 
cd /home/username/public_html/whatsappscript
pm2 start server.js

Ini dimenu apa?

Dimenu apa ya ini?

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 2

Latest Updated Files