no message

This commit is contained in:
hellcat 2025-04-13 22:22:26 +08:00
parent 2b277a2d86
commit cc9dae28a9
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@ class Base {
public function __construct() {
$this->oHttp = new Http();
$this->oTGHttp = new TGHttp();
$this->oTGHttp->sApiToken = env("telegram_token");
$this->oTGHttp->sApiChatId = env("telegram_chatid");
}
// protected function sendMessage($sText = '?') {

View File

@ -14,7 +14,7 @@ class Http {
echo "<pre>";
var_dump($sMsg);
} else {
$url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sText);
$url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sMsg);
file_get_contents($url);
}