diff --git a/src/Monolog/Handler/TelegramBotHandler.php b/src/Monolog/Handler/TelegramBotHandler.php index 8c532164..34a87da5 100644 --- a/src/Monolog/Handler/TelegramBotHandler.php +++ b/src/Monolog/Handler/TelegramBotHandler.php @@ -80,7 +80,7 @@ class TelegramBotHandler extends AbstractProcessingHandler 'chat_id' => $this->channel, ])); - $result = curl_exec($ch); + $result = Curl\Util::execute($ch); $result = json_decode($result, true); if ($result['ok'] === false) {