no message
This commit is contained in:
parent
2b277a2d86
commit
cc9dae28a9
@ -11,6 +11,8 @@ class Base {
|
||||
public function __construct() {
|
||||
$this->oHttp = new Http();
|
||||
$this->oTGHttp = new TGHttp();
|
||||
$this->oTGHttp->sApiToken = env("telegram_token");
|
||||
$this->oTGHttp->sApiChatId = env("telegram_chatid");
|
||||
}
|
||||
|
||||
// protected function sendMessage($sText = '?') {
|
||||
|
||||
@ -14,7 +14,7 @@ class Http {
|
||||
echo "<pre>";
|
||||
var_dump($sMsg);
|
||||
} else {
|
||||
$url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sText);
|
||||
$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