瀏覽代碼

Update wechat_channel.py to support ReplyType.FILE

develop
befantasy GitHub 1 年之前
父節點
當前提交
6bd286e8d5
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      channel/wechat/wechat_channel.py

+ 4
- 0
channel/wechat/wechat_channel.py 查看文件

@@ -208,3 +208,7 @@ class WechatChannel(ChatChannel):
image_storage.seek(0)
itchat.send_image(image_storage, toUserName=receiver)
logger.info("[WX] sendImage, receiver={}".format(receiver))
elif reply.type == ReplyType.FILE: # 新增文件回复类型
file_storage = reply.content
itchat.send_file(file_storage, toUserName=receiver)
logger.info("[WX] sendFile, receiver={}".format(receiver))

Loading…
取消
儲存