From 076b1db6a1f3b7ddb5899202574590737e0db54c Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Sun, 11 May 2025 10:40:20 +0800 Subject: [PATCH] no message --- app/Services/TG/Http.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/Services/TG/Http.php b/app/Services/TG/Http.php index 832f09e0..e1217926 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();
-
- tomd($r);
+// $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);
}