diff --git a/README.md b/README.md index 78556d3..af6762c 100644 --- a/README.md +++ b/README.md @@ -313,15 +313,15 @@ async def echo(msg: str): ## 跨平台消息 ```python -from nonebot_plugin_alconna import Image, UniMessage, on_alconna +from nonebot_plugin_alconna import UniMessage, on_alconna test = on_alconna("test") @test.handle() async def handle_test(): - await test.send(UniMessage(Image(path="path/to/img"))) + await test.send(UniMessage.image(path="path/to/img")) -@test.got("foo", prompt=UniMessage.template("{:At(user, $event.get_user_id())}\n请输入图片")) +@test.got("foo", prompt=UniMessage.template("{:Reply($message_id)}请输入图片")) async def handle_foo(): await test.send("图片已收到") ``` diff --git a/src/nonebot_plugin_alconna/__init__.py b/src/nonebot_plugin_alconna/__init__.py index 2bcf89c..221c46e 100644 --- a/src/nonebot_plugin_alconna/__init__.py +++ b/src/nonebot_plugin_alconna/__init__.py @@ -96,7 +96,7 @@ from .consts import ALCONNA_EXEC_RESULT as ALCONNA_EXEC_RESULT from .extension import add_global_extension as add_global_extension -__version__ = "0.31.5" +__version__ = "0.31.6" __plugin_meta__ = PluginMetadata( name="Alconna 插件", diff --git a/src/nonebot_plugin_alconna/uniseg/__init__.py b/src/nonebot_plugin_alconna/uniseg/__init__.py index ac7ef4b..8aa7042 100644 --- a/src/nonebot_plugin_alconna/uniseg/__init__.py +++ b/src/nonebot_plugin_alconna/uniseg/__init__.py @@ -32,7 +32,7 @@ from .params import UniversalMessage as UniversalMessage from .params import UniversalSegment as UniversalSegment -__version__ = "0.31.5" +__version__ = "0.31.6" __plugin_meta__ = PluginMetadata( name="Universal Segment 插件",