no message
This commit is contained in:
parent
cdea3eaecc
commit
936b2b99a6
@ -29,23 +29,23 @@ class Http {
|
||||
|
||||
} else {
|
||||
|
||||
$oHttp = new Http();
|
||||
$oHttp->sMethod = "post";
|
||||
$oHttp->sToUrl = "https://api.telegram.org/bot$this->sApiToken/sendMessage";
|
||||
$oHttp->bIsJson = true;
|
||||
$oHttp->aData = [
|
||||
"chat_id" => $this->sApiChatId,
|
||||
"text" => $sMsg
|
||||
];
|
||||
|
||||
$oHttp->send();
|
||||
// $oHttp = new Http();
|
||||
// $oHttp->sMethod = "post";
|
||||
// $oHttp->sToUrl = "https://api.telegram.org/bot$this->sApiToken/sendMessage";
|
||||
// $oHttp->bIsJson = true;
|
||||
// $oHttp->aData = [
|
||||
// "chat_id" => $this->sApiChatId,
|
||||
// "text" => $sMsg
|
||||
// ];
|
||||
//
|
||||
// $oHttp->send();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// (new Telegram())->send(0, $sMsg);
|
||||
(new Telegram())->send(0, $sMsg);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user