nonebot-plugin-send-anything-anywhere
nonebot-plugin-send-anything-anywhere copied to clipboard
一个帮助处理不同 adapter 消息的适配和发送的插件
例如:网页分享
follow https://github.com/nonebot/nonebot2/pull/2641
for more detail, checkout the commit msg
文件的上传和下载,也是通讯中很普遍的功能,希望可以实现这个功能辣
目前 AllSupportedPlatformTarget 是一个泛型 https://github.com/MountainDash/nonebot-plugin-send-anything-anywhere/blob/cdd96b4b498bab6995151315f183bb3f81ddf8d1/nonebot_plugin_saa/registries/platform_send_target.py#L265-L279 无法做到判断 Platfrom.deserialize 结果为 AllSupportedPlatformTarget, 例如: https://github.com/MountainDash/nonebot-bison/blob/2fc6e253f3488cd6aa7a1f7b5e76b37297be2d04/nonebot_bison/config/subs_io/nbesf_model/v2.py#L36-L41 https://github.com/MountainDash/nonebot-bison/blob/2fc6e253f3488cd6aa7a1f7b5e76b37297be2d04/nonebot_bison/config/subs_io/subs_io.py#L43-L49 能否提供一个 ```python def is_supported_platform_target(target: PlatformTarget) -> TypeGuard[AllSupportedPlatformTarget]: ... ``` 工具来做到这件事
💄优化黑幕样式
使用的adapter-qq,python3.10.11,nonebot2.1.2 saa==0.4.0 当需要qq频道发送一个图片的时候, ``` File "/home/ubuntu/.local/lib/python3.10/site-packages/nonebot_plugin_saa/abstract_factories.py", line 324, in finish await self.send(at_sender=at_sender, reply=reply, **kwargs) File "/home/ubuntu/.local/lib/python3.10/site-packages/nonebot_plugin_saa/abstract_factories.py", line 301, in send target = extract_target(event) File "/home/ubuntu/.local/lib/python3.10/site-packages/nonebot_plugin_saa/registries/platform_send_target.py", line 276, in extract_target raise...