瀏覽代碼

Update chat_channel.py to support ReplyType.FILE

master
befantasy GitHub 1 年之前
父節點
當前提交
905532b681
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      channel/chat_channel.py

+ 1
- 1
channel/chat_channel.py 查看文件

@@ -241,7 +241,7 @@ class ChatChannel(Channel):
reply.content = reply_text
elif reply.type == ReplyType.ERROR or reply.type == ReplyType.INFO:
reply.content = "[" + str(reply.type) + "]\n" + reply.content
elif reply.type == ReplyType.IMAGE_URL or reply.type == ReplyType.VOICE or reply.type == ReplyType.IMAGE:
elif reply.type == ReplyType.IMAGE_URL or reply.type == ReplyType.VOICE or reply.type == ReplyType.IMAGE or reply.type == ReplyType.FILE:
pass
else:
logger.error("[WX] unknown reply type: {}".format(reply.type))


Loading…
取消
儲存