From 8dc19ee67b06e70b02d61a93893e9c256476727a Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Sun, 31 May 2020 15:15:20 +0800 Subject: [PATCH] fix telegram webhook use frontend url --- app/Http/Controllers/Admin/ConfigController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Admin/ConfigController.php b/app/Http/Controllers/Admin/ConfigController.php index 789ffc0a..358e8f8f 100755 --- a/app/Http/Controllers/Admin/ConfigController.php +++ b/app/Http/Controllers/Admin/ConfigController.php @@ -26,9 +26,9 @@ class ConfigController extends Controller $telegramService = new TelegramService($request->input('telegram_bot_token')); $telegramService->getMe(); $telegramService->setWebhook( - config('v2board.app_url') - . '/api/v1/guest/telegram/webhook?access_token=' - . md5(config('v2board.telegram_bot_token', $request->input('telegram_bot_token'))) + url( + '/api/v1/guest/telegram/webhook?access_token=' . md5(config('v2board.telegram_bot_token', $request->input('telegram_bot_token'))) + ) ); return response([ 'data' => true