diff --git a/nonebot/plugins/echo.py b/nonebot/plugins/echo.py index 082cf420..8eb1968c 100644 --- a/nonebot/plugins/echo.py +++ b/nonebot/plugins/echo.py @@ -1,11 +1,11 @@ from nonebot.rule import to_me from nonebot.adapters import Message +from nonebot.params import CommandArg from nonebot.plugin import on_command -from nonebot.params import EventMessage echo = on_command("echo", to_me()) @echo.handle() -async def echo_escape(message: Message = EventMessage()): +async def echo_escape(message: Message = CommandArg()): await echo.send(message=message)