no message
This commit is contained in:
parent
cdea3eaecc
commit
936b2b99a6
@ -29,23 +29,23 @@ class Http {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$oHttp = new Http();
|
// $oHttp = new Http();
|
||||||
$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
|
||||||
];
|
// ];
|
||||||
|
//
|
||||||
$oHttp->send();
|
// $oHttp->send();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// (new Telegram())->send(0, $sMsg);
|
(new Telegram())->send(0, $sMsg);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user