Skip to content

Commit

Permalink
Check empty queue name instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
mbpcoder authored Nov 20, 2024
1 parent 39a8453 commit 702bc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TelegramBotHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 702bc4e

Please sign in to comment.