seven 5 天之前
父節點
當前提交
236b513762
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/Http/Controllers/api/TelegramWebHook.php

+ 3 - 3
app/Http/Controllers/api/TelegramWebHook.php

@@ -37,9 +37,9 @@ class TelegramWebHook extends Controller
         // } catch (TelegramSDKException $e) {
         //     return response()->json(['status' => 'ok']);
         // }
-        // $update = $telegram->getWebhookUpdate(); // 获取更新数据
-        // $update->callbackQuery;
-        // Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
+        $update = $telegram->getWebhookUpdate(); // 获取更新数据
+        $update->callbackQuery;
+        Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
         return response()->json(['status' => 'ok']);
     }