Fixed reg_confirm -\n admins_ids value type \n
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user