Limit /alerts handler to exact command (fix alias collisions)
This commit is contained in:
@@ -107,7 +107,7 @@ ALERTS_KB = InlineKeyboardMarkup(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@dp.message(F.text.startswith("/alerts"))
|
@dp.message(F.text.regexp(r"^/alerts(\\s|$)"))
|
||||||
async def alerts_cmd(msg: Message):
|
async def alerts_cmd(msg: Message):
|
||||||
if not is_admin_msg(msg):
|
if not is_admin_msg(msg):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user