composer require cachesistemas/chatbot-gpt-whatsapp
use Cachesistemas\ClassePhpApiWame\WhatsApp;
include_once 'vendor/autoload.php';
$whatsapp = new WhatsApp(["server" => "API 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;
include 'vendor/autoload.php';
new Bot(["wpp_server" => "", "wpp_key" => "", "open_key" => " "]);