Skip to content

Commit 702bc4e

Browse files
authored
Check empty queue name instead of null
1 parent 39a8453 commit 702bc4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TelegramBotHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected function send(string $message, $token = null, $chatId = null, $topicId
134134

135135
$message = $this->truncateTextToTelegramLimit($message);
136136

137-
if ($this->queue === null) {
137+
if (empty($this->queue)) {
138138
dispatch_sync(new SendJob($url, $message, $chatId, $topicId, $this->proxy));
139139
} else {
140140
dispatch(new SendJob($url, $message, $chatId, $topicId, $this->proxy))->onQueue($this->queue);

0 commit comments

Comments
 (0)