Skip to content

Commit

Permalink
🔖 version 0.31.6
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Nov 5, 2023
1 parent c360936 commit 0e2e550
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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("图片已收到")
```
Expand Down
2 changes: 1 addition & 1 deletion src/nonebot_plugin_alconna/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 插件",
Expand Down
2 changes: 1 addition & 1 deletion src/nonebot_plugin_alconna/uniseg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 插件",
Expand Down

0 comments on commit 0e2e550

Please sign in to comment.