Pārlūkot izejas kodu
Update chat_channel.py fix SHARING Type 报错。
chatgpt-on-wechat | [ERROR][2023-09-27 18:48:41][chat_channel.py:211] - [WX] unknown context type: SHARING
master
befantasy
GitHub
pirms 1 gada
vecāks
revīzija
f7262a0a3a
Šim parakstam datu bāzē netika atrasta zināma atslēga
GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar
2 papildinājumiem un
0 dzēšanām
-
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: |
|
|
|