Nonebot-plugin-alconna

Latest version: v0.53.1

Safety actively analyzes 675368 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 13 of 22

0.31.5

- `UniMessageTemplate` 的特殊参数增加 `$message_id` 与 `$target`
**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.31.4...v0.31.5

0.31.4

What's Changed
* ✨ 添加 py.typed 文件 by shoucandanghehe in https://github.com/nonebot/plugin-alconna/pull/22
* 增加依赖注入 `MessageTarget()`, `MsgTarget`:
python
async def _(target: Target= MessageTarget()):
...

async def _(target: MsgTarget):
...


New Contributors
* shoucandanghehe made their first contribution in https://github.com/nonebot/plugin-alconna/pull/22

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.31.3...v0.31.4

0.31.3

- 增加依赖注入 `MessageId()`, `MsgId`:
python
async def _(msg: str = MessageId()):
...

async def _(msg: MsgId):
...


**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.31.2...v0.31.3

0.31.2

What's Changed
* Feat: feat & fix for `image_fetch` function by lgc2333 in https://github.com/nonebot/plugin-alconna/pull/20
* fix at & at_all for adapters which distinguish by whether content in "all", "here" or not

New Contributors
* lgc2333 made their first contribution in https://github.com/nonebot/plugin-alconna/pull/20

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.31.1...v0.31.2

0.31.1

- 修复 `Feishu`, `QQ` 等适配器下的 uniseg 的问题
- `Extension` 增加方法 `before_catch`, 用于确定哪些参数应由自定义依赖注入处理
- `Extension` 只有在 `before_catch` 与 `catch` 方法同时重写的情况下才会进行自定义依赖注入

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.31.0...v0.31.1

0.31.0

新增
- 新增 `UniMessage.send` 方法,其可以通过传入的 Bot对象向响应的事件或自定义目标发送消息:
python
from nonebot_plugin_alconna import UniMessage, Target, get_bot

await UniMessage(...).send(Target("xxxx"), get_bot(rand=True))

- 新增 `Receipt`,其为 `UniMessage.send` 的返回值;可通过 `Receipt` 编辑消息和撤回消息:
python
from nonebot_plugin_alconna import UniMessage, Target, get_bot

receipt = await UniMessage(...).send(Target("xxxx"), get_bot(rand=True))

await receipt.edit(UniMessage(...), delay=2).recall(delay=3)

- 新增 ntchat 适配器的 MessageExporter

改进
- `Reference` 的发送现在支持 `red` 与 `onebot11`

修复
- 修复 console 适配器的 MessageExporter 的消息导入错误

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.30.7...v0.31.0

Page 13 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.