From cbb33f6da895705bb63544fc0b4e934bcd413890 Mon Sep 17 00:00:00 2001 From: ronis_0505 Date: Mon, 28 Jul 2025 23:39:27 +0300 Subject: [PATCH] Fixed reg_confirm -\n admins_ids value type \n --- app/handlers/admin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/handlers/admin.py b/app/handlers/admin.py index a362e00..2bd5190 100644 --- a/app/handlers/admin.py +++ b/app/handlers/admin.py @@ -11,8 +11,7 @@ admin_router = Router() admin_router.message.filter(IsAdmin()) - -regex = re.compile(r'(del|reg) @.+') +regex = re.compile(r'(del|reg)_@.+') @admin_router.callback_query(lambda x: re.fullmatch(regex, x.data)) @@ -30,5 +29,3 @@ async def send_message_command(message: Message, bot: Bot): chat_id = re.search(r'(\d+)', message.text).group() print(chat_id) await bot.send_message(text='Ronis->' + message.text.strip('@msg_' + chat_id), chat_id=chat_id) - -