Refactor TelegramChannel to handle additional notification types

This commit is contained in:
Andras Bacsai 2024-06-09 21:44:13 +02:00
parent 4667f96b40
commit aae81313a6

View File

@ -22,6 +22,8 @@ public function send($notifiable, $notification): void
$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':