PHP code example of cachesistemas / chatbot-gpt-whatsapp

1. Go to this page and download the library: Download cachesistemas/chatbot-gpt-whatsapp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cachesistemas / chatbot-gpt-whatsapp example snippets


use Cachesistemas\ClassePhpApiWame\WhatsApp;

PI server", "key" => "Your Key Instance"]);

echo $whatsapp->getQrCodeHTML();


$body = ["allowWebhook" => true,
"webhookMessage" => "your-url.com/webhook.php",
"webhookGroup" => "",
"webhookConnection" => "",
"webhookQrCode" => ""];
$whatsapp->updateWebhook($body);

use Cachesistemas\ChatbotGptWhatsapp\Bot;
 "", "open_key" => " "]);