瀏覽代碼

Merge pull request #1847 from Yanyutin753/master

fix ReplyType.IMAGE 回复图片为空的BUG
master
zhayujie GitHub 7 月之前
父節點
當前提交
c3a3df67b0
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      channel/wechat/wechat_channel.py

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

@@ -233,6 +233,7 @@ class WechatChannel(ChatChannel):
logger.info("[WX] sendImage url={}, receiver={}".format(img_url, receiver))
elif reply.type == ReplyType.IMAGE: # 从文件读取图片
image_storage = reply.content
image_storage.seek(0)
itchat.send_image(image_storage, toUserName=receiver)
logger.info("[WX] sendImage, receiver={}".format(receiver))
elif reply.type == ReplyType.FILE: # 新增文件回复类型


Loading…
取消
儲存