We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
file_box = FileBox.from_file('ding-dong-icon.png', name='ding-dong.png') await conversation.say(file_box)
file_box = FileBox.from_file('ding-dong-icon.png', name='ding-dong.png')
await conversation.say(file_box)
I use the code above to send local image. But I got:
INFO:Wechaty:receive <error> event <(<Status.INTERNAL: 13>, 'unknown filebox json object{type}: {"_metadata":{},"name":"ding-dong.png","boxType":5,"localPath":"ding-dong-icon.png"}', None)> 2020-06-16 14:22:13,145 - Wechaty - INFO - receive <error> event <(<Status.INTERNAL: 13>, 'unknown filebox json object{type}: {"_metadata":{},"name":"ding-dong.png","boxType":5,"localPath":"ding-dong-icon.png"}', None)>
The text was updated successfully, but these errors were encountered:
Oh, yes, this interface is not work now. But there is a alternative solution:
with open('./avatar.jpg', 'rb') as f: content = base64.b64encode(f.read()) file_box = FileBox.from_base64(name='avatar.jpg', base64=content) await conversation.say(file_box)
Thank you for reporting this issue. Please keep eye on this issue, we will create a pr according this issue to complete FileBox module.
FileBox
Sorry, something went wrong.
Oh, yes, this interface is not work now. But there is a alternative solution: with open('./avatar.jpg', 'rb') as f: content = base64.b64encode(f.read()) file_box = FileBox.from_base64(name='avatar.jpg', base64=content) await conversation.say(file_box) Thank you for reporting this issue. Please keep eye on this issue, we will create a pr according this issue to complete FileBox module.
Hi, it doesn't work for me, the error internal error <(<Status.UNIMPLEMENTED: 12>, '[object Object]', None)>.
internal error <(<Status.UNIMPLEMENTED: 12>, '[object Object]', None)>
Is there any other ideas?
No branches or pull requests
file_box = FileBox.from_file('ding-dong-icon.png', name='ding-dong.png')
await conversation.say(file_box)
I use the code above to send local image. But I got:
INFO:Wechaty:receive <error> event <(<Status.INTERNAL: 13>, 'unknown filebox json object{type}: {"_metadata":{},"name":"ding-dong.png","boxType":5,"localPath":"ding-dong-icon.png"}', None)> 2020-06-16 14:22:13,145 - Wechaty - INFO - receive <error> event <(<Status.INTERNAL: 13>, 'unknown filebox json object{type}: {"_metadata":{},"name":"ding-dong.png","boxType":5,"localPath":"ding-dong-icon.png"}', None)>
The text was updated successfully, but these errors were encountered: