From cd138ad6bae64a3708b6ea66c99edac2c56df610 Mon Sep 17 00:00:00 2001 From: Professional Date: Wed, 19 Mar 2025 22:09:28 +0700 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=20=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index a17c9d3..809e2b8 100644 --- a/Program.cs +++ b/Program.cs @@ -173,7 +173,7 @@ class Program } else if (data != null && data.StartsWith("removeadmin_")) { - long adminIdToRemove = long.Parse(data.Substring(11)); + long adminIdToRemove = long.Parse(data.Substring(11).Replace("_", "")); // Проверяем, что пользователь является администратором if (admins.Contains(chatId))