1
This commit is contained in:
parent
d3a27ddbb5
commit
c61c060f35
@ -36,11 +36,11 @@ final class HookController
|
|||||||
|
|
||||||
$sUpdate = file_get_contents("php://input");
|
$sUpdate = file_get_contents("php://input");
|
||||||
|
|
||||||
file_put_contents('/www/_tg/bot_log.txt', $sUpdate);
|
|
||||||
|
|
||||||
$aUpdate = json_decode($sUpdate, true);
|
$aUpdate = json_decode($sUpdate, true);
|
||||||
|
|
||||||
$aData['chatId'] = $this->sApiChatId;
|
file_put_contents('/www/_tg/bot_log.txt', json_encode($aUpdate, JSON_PRETTY_PRINT));
|
||||||
|
|
||||||
|
$aData['chatId'] = $aUpdate["message"]["chat"]["id"];
|
||||||
|
|
||||||
if (!isset($aUpdate["message"]["text"])) {
|
if (!isset($aUpdate["message"]["text"])) {
|
||||||
http_response_code(200);
|
http_response_code(200);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user