From b08e890d9211cf06a78d892ac7387ab571fad876 Mon Sep 17 00:00:00 2001 From: mercury Date: Sun, 12 Feb 2023 09:53:25 +0400 Subject: [PATCH] fix qr-code naming --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index ac900cf..ebb080e 100644 --- a/app/bot.php +++ b/app/bot.php @@ -479,7 +479,7 @@ class Bot $client = $this->readClients()[$client]; $name = $this->getName($client['interface']); $code = $this->createConfig($client); - $qr = preg_replace(['~\s+~', '~\(~', '~\)~'], ['_', '\(', '\)'], $name); + $qr = preg_replace(['~\s+~', '~\(~', '~\)~'], ['_'], $name); $qr_file = __DIR__ . "/qr/$qr.png"; exec("qrencode -t png -o $qr_file '$code'"); $r = $this->sendPhoto(