|
@@ -9,6 +9,7 @@ use Telegram\Bot\Api;
|
|
use Telegram\Bot\Exceptions\TelegramSDKException;
|
|
use Telegram\Bot\Exceptions\TelegramSDKException;
|
|
use Telegram\Bot\FileUpload\InputFile;
|
|
use Telegram\Bot\FileUpload\InputFile;
|
|
use Telegram\Bot\Objects\BotCommand;
|
|
use Telegram\Bot\Objects\BotCommand;
|
|
|
|
+use Illuminate\Support\Facades\Log;
|
|
|
|
|
|
class Home extends Controller
|
|
class Home extends Controller
|
|
{
|
|
{
|
|
@@ -170,7 +171,7 @@ class Home extends Controller
|
|
} catch (TelegramSDKException $e) {
|
|
} catch (TelegramSDKException $e) {
|
|
return $this->error($e->getCode(), $e->getMessage());
|
|
return $this->error($e->getCode(), $e->getMessage());
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ Log::error('Telegram 回调数据(JSON): ' . json_encode([123454], JSON_UNESCAPED_UNICODE));
|
|
return $this->success($res);
|
|
return $this->success($res);
|
|
}
|
|
}
|
|
|
|
|