no message
This commit is contained in:
parent
076b1db6a1
commit
9d5a60dd63
@ -21,20 +21,20 @@ class Http {
|
||||
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);
|
||||
// $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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user