no message

This commit is contained in:
hellcat 2025-03-20 22:22:47 +08:00
parent 342472501c
commit 4ada9a0a65

View File

@ -25,7 +25,16 @@ final class HookController
$this->sApiChatId = Config::obtain('telegram_chatid')
// 获取更新
$update = json_decode(file_get_contents("php://input"), true);
@$update = json_decode(file_get_contents("php://input"), true);
$update = [
'message' => [
'chat' => [
'id' => '-4668400285'
],
'text' => '/reply 11 sss'
]
];
// 获取聊天 ID
// $chatId = $update["message"]["chat"]["id"];