From aae81313a6ba998609a8a9e00c43d094386ca8c3 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sun, 9 Jun 2024 21:44:13 +0200 Subject: [PATCH] Refactor TelegramChannel to handle additional notification types --- app/Notifications/Channels/TelegramChannel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Notifications/Channels/TelegramChannel.php b/app/Notifications/Channels/TelegramChannel.php index 6101ef208..96ae80bc0 100644 --- a/app/Notifications/Channels/TelegramChannel.php +++ b/app/Notifications/Channels/TelegramChannel.php @@ -22,6 +22,8 @@ class TelegramChannel $topicId = data_get($notifiable, 'telegram_notifications_test_message_thread_id'); break; case 'App\Notifications\Application\StatusChanged': + case 'App\Notifications\Container\ContainerRestarted': + case 'App\Notifications\Container\ContainerStopped': $topicId = data_get($notifiable, 'telegram_notifications_status_changes_message_thread_id'); break; case 'App\Notifications\Application\DeploymentSuccess':