From 8d13bee02164e62a9cd49798160d4da02c4336bc Mon Sep 17 00:00:00 2001 From: mercury Date: Fri, 4 Jul 2025 16:38:39 +0400 Subject: [PATCH] improve /id --- app/bot.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/bot.php b/app/bot.php index bd55fa9..2a27343 100644 --- a/app/bot.php +++ b/app/bot.php @@ -244,8 +244,7 @@ class Bot $this->addLinkDomain(); 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']); + $this->send($this->input['chat'], "your id: {$this->input['from']}\nchat id: {$this->input['chat']}", $this->input['message_id']); break; case preg_match('~^/adguardChBr$~', $this->input['callback'], $m): $this->adguardChBr();