|
@@ -39,8 +39,8 @@ class TelegramWebHook extends Controller
|
|
// }
|
|
// }
|
|
$update = $telegram->getWebhookUpdate(); // 获取更新数据
|
|
$update = $telegram->getWebhookUpdate(); // 获取更新数据
|
|
$update->callbackQuery;
|
|
$update->callbackQuery;
|
|
- Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
|
|
|
|
if ($update->has('callback_query')) {
|
|
if ($update->has('callback_query')) {
|
|
|
|
+ Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
|
|
|
|
|
|
}else {
|
|
}else {
|
|
$update = $request->all();
|
|
$update = $request->all();
|
|
@@ -49,7 +49,7 @@ class TelegramWebHook extends Controller
|
|
$chatId = $message['chat']['id'];
|
|
$chatId = $message['chat']['id'];
|
|
$messageId = $message['message_id'];
|
|
$messageId = $message['message_id'];
|
|
|
|
|
|
-
|
|
|
|
|
|
+ Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|