no message

This commit is contained in:
hellcat 2025-07-10 17:04:15 +08:00
parent cdea3eaecc
commit 936b2b99a6

View File

@ -29,23 +29,23 @@ class Http {
} else {
$oHttp = new Http();
$oHttp->sMethod = "post";
$oHttp->sToUrl = "https://api.telegram.org/bot$this->sApiToken/sendMessage";
$oHttp->bIsJson = true;
$oHttp->aData = [
"chat_id" => $this->sApiChatId,
"text" => $sMsg
];
$oHttp->send();
// $oHttp = new Http();
// $oHttp->sMethod = "post";
// $oHttp->sToUrl = "https://api.telegram.org/bot$this->sApiToken/sendMessage";
// $oHttp->bIsJson = true;
// $oHttp->aData = [
// "chat_id" => $this->sApiChatId,
// "text" => $sMsg
// ];
//
// $oHttp->send();
// (new Telegram())->send(0, $sMsg);
(new Telegram())->send(0, $sMsg);
}