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)); }