|
|
@@ -253,6 +253,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);
|