cluic / wxauto

Windows版本微信客户端(非网页版)自动化,可实现简单的发送、接收微信消息,简单微信机器人
MIT License
2.72k stars 440 forks source link

发送文件超时 #185

Closed aaeddy closed 6 months ago

aaeddy commented 6 months ago
from wxauto import WeChat

wx = WeChat()
who = 'ABC'
audioPath = r'下载音频\audio_20240302112702.mp3'  # 这里如果是现在这样的相对路径就会报错

wx.SendFiles(filepath=audioPath, who=who)

给ABC发文件时,audioPath必须是绝对路径,写相对路径会报 File "C:\Users\abc18\Desktop\WechatBot\wxauto\wxauto.py", line 295, in SendFiles raise TimeoutError(f'发送文件超时 --> {filelist}') TimeoutError: 发送文件超时 --> ['下载音频\\audio_20240302112702.mp3']

cluic commented 6 months ago

已修复