diff --git a/src/TelegramBotHandler.php b/src/TelegramBotHandler.php index cd0a2e3..62a9c97 100644 --- a/src/TelegramBotHandler.php +++ b/src/TelegramBotHandler.php @@ -134,7 +134,7 @@ protected function send(string $message, $token = null, $chatId = null, $topicId $message = $this->truncateTextToTelegramLimit($message); - if ($this->queue === null) { + if (empty($this->queue)) { dispatch_sync(new SendJob($url, $message, $chatId, $topicId, $this->proxy)); } else { dispatch(new SendJob($url, $message, $chatId, $topicId, $this->proxy))->onQueue($this->queue);