Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取联系人的头像异常 #24

Open
fy2099 opened this issue Jul 20, 2020 · 2 comments
Open

获取联系人的头像异常 #24

fy2099 opened this issue Jul 20, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@fy2099
Copy link

fy2099 commented Jul 20, 2020

2020-07-20 17:28:25,638 - Wechaty - ERROR - internal error <(<Status.INTERNAL: 13>, 'FileBox.toJSON() can only work on limited FileBoxType(s). See: huan/file-box#25', None)>

        file = await from_contact.avatar()
        await file.to_file(from_contact.contact_id+'.png’, True)
@wj-Mcat wj-Mcat added the bug Something isn't working label Jul 20, 2020
@wj-Mcat wj-Mcat self-assigned this Jul 20, 2020
@wj-Mcat
Copy link
Collaborator

wj-Mcat commented Jul 20, 2020

Yes, this interface is not supported now, it's in our to-do list. If it's fixed, we will mention you later, please keep eyes on this issue. Thanks for your issue.

@fy2099
Copy link
Author

fy2099 commented Jul 20, 2020

Yes, this interface is not supported now, it's in our to-do list. If it's fixed, we will mention you later, please keep eyes on this issue. Thanks for your issue.

还有这个接口看看是不是也有点问题呢
filebox = await msg.to_file_box()
await filebox.to_file(filebox.name, True) #不稳定,经常下载不到图片到本地
print('图片下载',filebox.name)

2020-07-20 18:28:44,008 - Message - INFO - Message to FileBox
图片下载  5f9740319f0f9eff9519a92dddbe2682.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants