diff --git a/website/docs/tutorial/plugin/create-handler.md b/website/docs/tutorial/plugin/create-handler.md index c71706d9..758bd8f3 100644 --- a/website/docs/tutorial/plugin/create-handler.md +++ b/website/docs/tutorial/plugin/create-handler.md @@ -168,7 +168,7 @@ async def _(foo: str = EventType()): ... from nonebot.adapters import Message from nonebot.params import EventMessage -async def _(foo: str = EventMessage()): ... +async def _(foo: Message = EventMessage()): ... ``` ### EventPlainText diff --git a/website/versioned_docs/version-2.0.0-beta.4/tutorial/plugin/create-handler.md b/website/versioned_docs/version-2.0.0-beta.4/tutorial/plugin/create-handler.md index c71706d9..758bd8f3 100644 --- a/website/versioned_docs/version-2.0.0-beta.4/tutorial/plugin/create-handler.md +++ b/website/versioned_docs/version-2.0.0-beta.4/tutorial/plugin/create-handler.md @@ -168,7 +168,7 @@ async def _(foo: str = EventType()): ... from nonebot.adapters import Message from nonebot.params import EventMessage -async def _(foo: str = EventMessage()): ... +async def _(foo: Message = EventMessage()): ... ``` ### EventPlainText