Nonebot Plugin Alconna 0.36.0
What's Changed
- 新增了一个
patch_saa
,能够在nonebot-plugin-send-anything-anywhere
的MessageFactory.send
遇到不支持的平台时转用uniseg
发送 - 新增元素
Custom
,可以由用户自定义设置序列化与反序列化:from nonebot_plugin_alconna import Custom, custom_register class MyCustom(Custom): def export(self, msg_type: Message): return msg_type.get_segment_class()("foo", {"bar": 123}) @custom_register(MyCustom, "foo") def create(seg: MessageSegment): return MyCustom("foo", {"bar": 123})
- ⬆️ auto update by pre-commit hooks by @pre-commit-ci in #30
- 修复
satori
适配器解析at
元素的问题
Full Changelog: v0.35.1...v0.36.0