zhayujie / bot-on-anything

Connect AI models (like ChatGPT-3.5/4.0, Baidu Yiyan, New Bing, Bard) to apps (like Wechat, public account, DingTalk, Telegram, QQ). 将 ChatGPT、必应、文心一言、谷歌Bard 等对话模型连接各类应用,如微信、公众号、QQ、Telegram、Gmail、Slack、Web、企业微信、飞书、钉钉等。
MIT License
3.87k stars 906 forks source link

企业微信端互联企业用户回复消息失败 #402

Closed zgll closed 1 year ago

zgll commented 1 year ago

企业微信应用的可见范围,可以选择互联企业通讯录成员,日志显示能接受到互联企业用户发送的消息,但是回复用户报错 提示:Error code: 81013, message: user & party & tag all invalid, hint: [xxxxxx], from ip: xxxxx, more info at https://open.work.weixin.qq.com/devtool/query?e=81013

zgll commented 1 year ago

已解决。 查看源码后发现,是依赖的库不支持企业微信的互联企业消息推送,自己修改了源码后正常 具体位置在58行,替换原代码 return self._post('message/send', data=data)return self._post('linkedcorp/message/send', data=data)

wechatpy