瀏覽代碼

fix

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

+ 1
- 1
channel/wechatmp/wechatmp_channel.py 查看文件

@@ -94,7 +94,7 @@ class WechatMPChannel(ChatChannel):
# support: <2M, <60s, mp3/wma/wav/amr
try:
with open(path, "rb") as f:
response = self.client.media.upload("voice", f)
response = self.client.material.add("voice", f)
logger.debug("[wechatmp] upload voice response: {}".format(response))
f_size = os.fstat(f.fileno()).st_size
time.sleep(1.0 + 2 * f_size / 1024 / 1024)


Loading…
取消
儲存