This commit is contained in:
hellcat 2025-03-22 19:06:54 +08:00
parent d3a27ddbb5
commit c61c060f35

View File

@ -36,11 +36,11 @@ final class HookController
$sUpdate = file_get_contents("php://input");
file_put_contents('/www/_tg/bot_log.txt', $sUpdate);
$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"])) {
http_response_code(200);