We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux
python 3.10
Latest Release
channel
wx(个人微信, itchat)
引用群聊消息无反应
关于群聊引用消息无反应的问题,是引用消息被过滤掉了。在chat_channel.py的_compose_context方法下添加如下代码便可获取到。 以下是我自己的处理逻辑,你们拿到后可以自己改。
# 如果是引用消息 if "」\n- - - - - - - - - - - - - - -" in content: # 分割引用内容和新消息 parts = content.split("」\n- - - - - - - - - - - - - - -") # 解析引用部分 quote_part = parts[0] + "」" # 比如 "秋风:一寸光阴一寸金」" # 解析发送者和引用内容 quote_sender = quote_part.split(":")[0] # "秋风" quote_content = quote_part.split(":")[1].strip("」") # "一寸光阴一寸金" # 获取新消息内容 new_message = parts[1].strip() # "这句话什么意思" print(f'{quote_sender}引用的消息{quote_content}然后说{new_message}') # 把引用内容后缀到content里 content=new_message+',此消息引用以下段落:'+quote_content
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
我也改了下,不过我是将引用的信息当作一条独立的句子放到了context中
铁子,我被封号了
我也改了下,不过我是将引用的信息当作一条独立的句子放到了context中 铁子,我被封号了
我在回复后,也掉线了,手机在家里,不知道是不是被封了
我也改了下,不过我是将引用的信息当作一条独立的句子放到了context中 铁子,我被封号了 我在回复后,也掉线了,手机在家里,不知道是不是被封了
估计是被封了,封了不少#2446
https://linux.do/t/topic/325483 我看论坛上今天下午一批号被封了
No branches or pull requests
前置确认
操作系统类型?
Linux
运行的python版本是?
python 3.10
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
引用群聊消息无反应
问题描述 😯
关于群聊引用消息无反应的问题,是引用消息被过滤掉了。在chat_channel.py的_compose_context方法下添加如下代码便可获取到。
以下是我自己的处理逻辑,你们拿到后可以自己改。
终端日志 📒
The text was updated successfully, but these errors were encountered: