From 936b2b99a6f0c9ef64c36e96af93dc1cf9a65668 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Thu, 10 Jul 2025 17:04:15 +0800 Subject: [PATCH] no message --- src/Services/Tg/Http.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Services/Tg/Http.php b/src/Services/Tg/Http.php index 4eed1991..a678728a 100644 --- a/src/Services/Tg/Http.php +++ b/src/Services/Tg/Http.php @@ -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); }