Skip to content

Commit 2e8b548

Browse files
authored
Update TelegramChannel.php
1 parent bd1d67c commit 2e8b548

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TelegramChannel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public function send($notifiable, Notification $notification): ?array
4444
}
4545

4646
if ($message->toNotGiven()) {
47-
if (! $to = $notifiable->routeNotificationFor('telegram')) {
48-
throw CouldNotSendNotification::chatIdNotProvided();
47+
if (! $to = $notifiable->routeNotificationFor('telegram', $notification)) {
48+
return null;
4949
}
5050

5151
$message->to($to);

0 commit comments

Comments
 (0)