Browse Source

Merge pull request #1454 from befantasy/patch-5

Update chat_channel.py fix SHARING Type 报错。
master
zhayujie GitHub 1 year ago
parent
commit
dd04287b0a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      channel/chat_channel.py

+ 2
- 0
channel/chat_channel.py View File

@@ -205,6 +205,8 @@ class ChatChannel(Channel):
elif context.type == ContextType.IMAGE: # 图片消息,当前仅做下载保存到本地的逻辑 elif context.type == ContextType.IMAGE: # 图片消息,当前仅做下载保存到本地的逻辑
cmsg = context["msg"] cmsg = context["msg"]
cmsg.prepare() cmsg.prepare()
elif context.type == ContextType.SHARING: # 分享信息,当前无默认逻辑
pass
elif context.type == ContextType.FUNCTION or context.type == ContextType.FILE: # 文件消息及函数调用等,当前无默认逻辑 elif context.type == ContextType.FUNCTION or context.type == ContextType.FILE: # 文件消息及函数调用等,当前无默认逻辑
pass pass
else: else:


Loading…
Cancel
Save