Narrow /docker_health match to avoid summary collisions
This commit is contained in:
@@ -85,7 +85,7 @@ async def ds_cmd(msg: Message):
|
|||||||
await cmd_docker_status(msg)
|
await cmd_docker_status(msg)
|
||||||
|
|
||||||
|
|
||||||
@dp.message(F.text.startswith("/docker_health"))
|
@dp.message(F.text, F.func(lambda m: (m.text or "").split()[0] == "/docker_health"))
|
||||||
async def docker_health(msg: Message):
|
async def docker_health(msg: Message):
|
||||||
if not is_admin_msg(msg):
|
if not is_admin_msg(msg):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user