Skip to content

Commit aae8131

Browse files
committed
Refactor TelegramChannel to handle additional notification types
1 parent 4667f96 commit aae8131

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Notifications/Channels/TelegramChannel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public function send($notifiable, $notification): void
2222
$topicId = data_get($notifiable, 'telegram_notifications_test_message_thread_id');
2323
break;
2424
case 'App\Notifications\Application\StatusChanged':
25+
case 'App\Notifications\Container\ContainerRestarted':
26+
case 'App\Notifications\Container\ContainerStopped':
2527
$topicId = data_get($notifiable, 'telegram_notifications_status_changes_message_thread_id');
2628
break;
2729
case 'App\Notifications\Application\DeploymentSuccess':

0 commit comments

Comments
 (0)