no message
This commit is contained in:
parent
118b1a8ea5
commit
31f18586e2
@ -87,7 +87,7 @@ final class HookController
|
||||
$oTGHttp->sendToTG($r, $mSendType);
|
||||
}
|
||||
|
||||
Http::response(200, 'ok');
|
||||
Http::response(200);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
@ -18,20 +18,43 @@ class Http {
|
||||
|
||||
if ($mType == "dove") {
|
||||
|
||||
if (env("is_loc") == true) {
|
||||
echo "<pre>";
|
||||
}
|
||||
|
||||
echo $sMsg;
|
||||
|
||||
} else if (env('is_loc') == true) {
|
||||
|
||||
echo "<pre>";
|
||||
echo($sMsg);
|
||||
|
||||
} else {
|
||||
|
||||
$url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sMsg);
|
||||
file_get_contents($url);
|
||||
|
||||
if (env("is_loc") == true) {
|
||||
echo "<pre>";
|
||||
echo($sMsg);
|
||||
} else {
|
||||
$url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sMsg);
|
||||
file_get_contents($url);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// if ($mType == "dove") {
|
||||
//
|
||||
// echo $sMsg;
|
||||
//
|
||||
// } else if (env('is_loc') == true) {
|
||||
//
|
||||
// echo "<pre>";
|
||||
// echo($sMsg);
|
||||
//
|
||||
// } else {
|
||||
//
|
||||
// $url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sMsg);
|
||||
// file_get_contents($url);
|
||||
//
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user