mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	fix telegram webhook use frontend url
This commit is contained in:
		| @@ -26,9 +26,9 @@ class ConfigController extends Controller | |||||||
|         $telegramService = new TelegramService($request->input('telegram_bot_token')); |         $telegramService = new TelegramService($request->input('telegram_bot_token')); | ||||||
|         $telegramService->getMe(); |         $telegramService->getMe(); | ||||||
|         $telegramService->setWebhook( |         $telegramService->setWebhook( | ||||||
|             config('v2board.app_url') |             url( | ||||||
|             . '/api/v1/guest/telegram/webhook?access_token=' |                 '/api/v1/guest/telegram/webhook?access_token=' . md5(config('v2board.telegram_bot_token', $request->input('telegram_bot_token'))) | ||||||
|             . md5(config('v2board.telegram_bot_token', $request->input('telegram_bot_token'))) |             ) | ||||||
|         ); |         ); | ||||||
|         return response([ |         return response([ | ||||||
|             'data' => true |             'data' => true | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user