JustUndertaker / ComWeChatBotClient

基于COM通信的微信pc hook应用端,支持Onebot12协议
https://justundertaker.github.io/ComWeChatBotClient/
GNU Affero General Public License v3.0
272 stars 55 forks source link

使用ComWeChatRobot时遇到的文件上传问题(Nonebot2) #36

Open 4K-DOOM opened 1 year ago

4K-DOOM commented 1 year ago
                file_id = await bot.upload_file(type="path",
                                                name="decode.txt",
                                                path="D:\\ProjectFile\\ZhiHu_bot\\find_text_bot\\decode.txt"
                                                )
                message = MessageSegment.file(file_id=file_id)
                await bot.send_message(detail_type="group",group_id="49127871705@chatroom",message=message)

基本照着ComWeChat动作>文件上传动作 nb2 写的 但是报错nonebot.adapters.onebot.v12.exception.UnsupportedAction 查了一下意思是 不支持的动作请求。 OneBot V12 协议错误码: 10002。 OneBot 实现没有实现该动作。

这个文件上传是还没实现吗 还是说我的使用方法有问题 大佬求解决