#fixes https://github.com/Seldaek/monolog/issues/1991
@@ -233,6 +233,10 @@ class TelegramBotHandler extends AbstractProcessingHandler
protected function sendCurl(string $message): void
{
+ if ('' === trim($message)) {
+ return;
+ }
+
$ch = curl_init();
$url = self::BOT_API . $this->apiKey . '/SendMessage';
curl_setopt($ch, CURLOPT_URL, $url);