From 9d5a60dd6330d4577c8bcebd0fb038cb5932d64e Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Sun, 11 May 2025 10:46:36 +0800 Subject: [PATCH] no message --- app/Services/TG/Http.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/Services/TG/Http.php b/app/Services/TG/Http.php index e1217926..3da00008 100644 --- a/app/Services/TG/Http.php +++ b/app/Services/TG/Http.php @@ -21,20 +21,20 @@ class Http { echo "
";
echo($sMsg);
} else {
- $url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sMsg);
- file_get_contents($url);
+// $url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sMsg);
+// file_get_contents($url);
-// $oHttp = new TomHttp();
-// $oHttp->sMethod = "post";
-// $oHttp->sToUrl = "https://api.telegram.org/bot$this->sApiToken/sendMessage";
-//// $oHttp->bIsJson = true;
-// $oHttp->aData = [
-// "chat_id" => $this->sApiChatId,
-// "text" => $sMsg
-// ];
-// $r = $oHttp->send();
+ $oHttp = new TomHttp();
+ $oHttp->sMethod = "post";
+ $oHttp->sToUrl = "https://api.telegram.org/bot$this->sApiToken/sendMessage";
+// $oHttp->bIsJson = true;
+ $oHttp->aData = [
+ "chat_id" => $this->sApiChatId,
+ "text" => $sMsg
+ ];
+ $r = $oHttp->send();
//
-// tomd($r);
+ tomd($r);
}