JustUndertaker/ComWeChatBotClient

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

Opened this issue · 0 comments

                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 实现没有实现该动作。

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