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())
|
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))
|
@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()
|
chat_id = re.search(r'(\d+)', message.text).group()
|
||||||
print(chat_id)
|
print(chat_id)
|
||||||
await bot.send_message(text='Ronis->' + message.text.strip('@msg_' + chat_id), chat_id=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