From 658e125cd8deccd2031295f89436045a57925576 Mon Sep 17 00:00:00 2001 From: mercury Date: Sat, 18 Jan 2025 23:31:01 +0400 Subject: [PATCH] show group id --- app/bot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 3c6f571..7525b21 100644 --- a/app/bot.php +++ b/app/bot.php @@ -238,6 +238,7 @@ class Bot break; case preg_match('~^/id$~', $this->input['message'], $m): $this->send($this->input['chat'], $this->input['from'], $this->input['message_id']); + $this->send($this->input['chat'], $this->input['chat'], $this->input['message_id']); break; case preg_match('~^/adguardChBr$~', $this->input['callback'], $m): $this->adguardChBr(); @@ -296,7 +297,7 @@ class Bot case preg_match('~^/delLog (?P\d+(?:_(?:-)?\d+)?)$~', $this->input['callback'], $m): $this->delLog(...explode('_', $m['arg'])); break; - case preg_match('~^/debug$~', $this->input['callback'], $m): + case preg_match('~^/debug$~', $this->input['message'], $m): $this->debug(); break; case preg_match('~^/backup$~', $this->input['callback'], $m):