Skip to content

Commit 486eb02

Browse files
authored
Merge pull request #86 from rubendl/patch-1
Include previous ClientException when constructing CouldNotSendNotifi…
2 parents 55a9d8b + 44825bb commit 486eb02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exceptions/CouldNotSendNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static function telegramRespondedWithAnError(ClientException $exception):
2828
$result = json_decode($exception->getResponse()->getBody(), false);
2929
$description = $result->description ?? 'no description given';
3030

31-
return new static("Telegram responded with an error `{$statusCode} - {$description}`");
31+
return new static("Telegram responded with an error `{$statusCode} - {$description}`", 0, $exception);
3232
}
3333

3434
/**

0 commit comments

Comments
 (0)