no message
This commit is contained in:
parent
076b1db6a1
commit
9d5a60dd63
@ -21,20 +21,20 @@ class Http {
|
|||||||
echo "<pre>";
|
echo "<pre>";
|
||||||
echo($sMsg);
|
echo($sMsg);
|
||||||
} else {
|
} else {
|
||||||
$url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sMsg);
|
// $url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sMsg);
|
||||||
file_get_contents($url);
|
// file_get_contents($url);
|
||||||
|
|
||||||
// $oHttp = new TomHttp();
|
$oHttp = new TomHttp();
|
||||||
// $oHttp->sMethod = "post";
|
$oHttp->sMethod = "post";
|
||||||
// $oHttp->sToUrl = "https://api.telegram.org/bot$this->sApiToken/sendMessage";
|
$oHttp->sToUrl = "https://api.telegram.org/bot$this->sApiToken/sendMessage";
|
||||||
//// $oHttp->bIsJson = true;
|
// $oHttp->bIsJson = true;
|
||||||
// $oHttp->aData = [
|
$oHttp->aData = [
|
||||||
// "chat_id" => $this->sApiChatId,
|
"chat_id" => $this->sApiChatId,
|
||||||
// "text" => $sMsg
|
"text" => $sMsg
|
||||||
// ];
|
];
|
||||||
// $r = $oHttp->send();
|
$r = $oHttp->send();
|
||||||
//
|
//
|
||||||
// tomd($r);
|
tomd($r);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user