|
@@ -37,9 +37,9 @@ class TelegramWebHook extends Controller
|
|
// } catch (TelegramSDKException $e) {
|
|
// } catch (TelegramSDKException $e) {
|
|
// return response()->json(['status' => 'ok']);
|
|
// 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']);
|
|
return response()->json(['status' => 'ok']);
|
|
}
|
|
}
|
|
|
|
|