Skip to content

Nonebot Plugin Alconna 0.31.0

Compare
Choose a tag to compare
@RF-Tar-Railt RF-Tar-Railt released this 29 Oct 11:23
· 314 commits to master since this release

新增

  • 新增 UniMessage.send 方法,其可以通过传入的 Bot对象向响应的事件或自定义目标发送消息:
     from nonebot_plugin_alconna import UniMessage, Target, get_bot
     
     await UniMessage(...).send(Target("xxxx"), get_bot(rand=True))
  • 新增 Receipt,其为 UniMessage.send 的返回值;可通过 Receipt 编辑消息和撤回消息:
     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 的发送现在支持 redonebot11

修复

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

Full Changelog: v0.30.7...v0.31.0