From 506d662ae9465c1a1d8c01b384007e97708d366a Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Mon, 25 May 2020 15:50:10 +0800 Subject: [PATCH] update telegram --- app/Http/Controllers/User/TicketController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/User/TicketController.php b/app/Http/Controllers/User/TicketController.php index c5ad3767..f03b38cb 100644 --- a/app/Http/Controllers/User/TicketController.php +++ b/app/Http/Controllers/User/TicketController.php @@ -188,6 +188,7 @@ class TicketController extends Controller private function sendNotify(Ticket $ticket, TicketMessage $ticketMessage) { + if (!config('v2board.telegram_bot_enable', 0)) return; $users = User::where('is_admin', 1) ->where('telegram_id', '!=', NULL) ->get();