Skip to content

Commit

Permalink
Update TelegramMessage.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Hesammousavi authored Sep 20, 2024
1 parent 7263feb commit 376272b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TelegramMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ public function send(): ResponseInterface|array|null

return $this->telegram->sendMessage($params);
} catch(Exception $exception) {
if(! $this->exceptionHandler) {
throw $exception;
if($this->exceptionHandler) {
$this->exceptionHandler($exception);
}

$this->exceptionHandler($exception);
throw $exception;
}
}

Expand Down

0 comments on commit 376272b

Please sign in to comment.