Skip to content

Commit

Permalink
Merge pull request #1454 from befantasy/patch-5
Browse files Browse the repository at this point in the history
Update chat_channel.py fix SHARING Type 报错。
  • Loading branch information
zhayujie authored Oct 13, 2023
2 parents 36ac6d0 + f7262a0 commit dd04287
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions channel/chat_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ def _generate_reply(self, context: Context, reply: Reply = Reply()) -> Reply:
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:
Expand Down

0 comments on commit dd04287

Please sign in to comment.