-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
文档中有提到msg.download
可以无参数调用,直接返回二进制串,
如果你不需要下载到本地,仅想要读取二进制串进行进一步处理可以不传入参数,方法将会返回图片的二进制串。
@itchat.msg_register([PICTURE, RECORDING, ATTACHMENT, VIDEO]) def download_files(msg): with open(msg.fileName, 'wb') as f: f.write(msg.download())
然而似乎没有实现?
ItChat/itchat/storage/messagequeue.py
Line 16 in d5ce5db
def download(self, fileName): |
我试了一下也确实报错了。
TypeError: download() missing 1 required positional argument: 'fileName'
Metadata
Metadata
Assignees
Labels
No labels