From f7262a0a3a93e142b9af7a3629ac797adfa181b4 Mon Sep 17 00:00:00 2001 From: befantasy <31535803+befantasy@users.noreply.github.com> Date: Wed, 27 Sep 2023 19:26:47 +0800 Subject: [PATCH] =?UTF-8?q?Update=20chat=5Fchannel.py=20fix=20SHARING=20Ty?= =?UTF-8?q?pe=20=E6=8A=A5=E9=94=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chatgpt-on-wechat | [ERROR][2023-09-27 18:48:41][chat_channel.py:211] - [WX] unknown context type: SHARING --- channel/chat_channel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channel/chat_channel.py b/channel/chat_channel.py index 42530ab..0122d86 100644 --- a/channel/chat_channel.py +++ b/channel/chat_channel.py @@ -205,6 +205,8 @@ class ChatChannel(Channel): elif context.type == ContextType.IMAGE: # 图片消息,当前仅做下载保存到本地的逻辑 cmsg = context["msg"] cmsg.prepare() + elif context.type == ContextType.SHARING: # 分享信息,当前无默认逻辑 + pass elif context.type == ContextType.FUNCTION or context.type == ContextType.FILE: # 文件消息及函数调用等,当前无默认逻辑 pass else: