From e4a51cc1163d531eb08eeab826a912bb270d7341 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 8 Sep 2023 16:16:28 +0200 Subject: [PATCH] fix: sentry 4459819517 --- app/Notifications/Channels/TelegramChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Notifications/Channels/TelegramChannel.php b/app/Notifications/Channels/TelegramChannel.php index 5dbc7e049..1401bb324 100644 --- a/app/Notifications/Channels/TelegramChannel.php +++ b/app/Notifications/Channels/TelegramChannel.php @@ -32,7 +32,7 @@ class TelegramChannel break; } if (!$telegramToken || !$chatId || !$message) { - throw new \Exception('Telegram token, chat id and message are required'); + return; } dispatch(new SendMessageToTelegramJob($message, $buttons, $telegramToken, $chatId, $topicId)); }