Closed zhangfand closed 3 years ago
Replied to questions in the code review.
Kindly ping @zhangfand
The newest mime
package adds extentions mapping for audio/amr
, which causes initialization failure in file-box (see failed test log).
huan/file-box#53 should fix the issue. Once that is merged, I can upgrade dependency version as part of the PR.
Dove. Thank you very much for keeping the modules update!
Thank you very much for your contribution!
You've invited Zhangfan to Wechaty! They'll be receiving an email shortly. They can also visit https://github.com/wechaty to accept the invitation.
I have invited you to join our Wechaty GitHub Organization, please accept it by following the above message.
We also have a WeChat room for contributors only which can discuss Wechaty at a deeper level, you are welcome to join and if you are interested.
Please add @lijiarui wechat: _ruirui0914 and send her this pr link. She will invite you into Wechaty Contributor Room
Cheers!
Fixes #19
The change adds support to OA puppet to receive and send audio files from / to Wechat, and add another example that "echo" text or audio messages.
The implementation is largely constructed per the detailed instructions in #19 (❤️ ) . There are a few catches:
messageSend
public and use it in the example instead of usingmessageSendFile
. The main reason ismime
package can not infer MIME type ofamr
file extension./get/media
API handles audio file is not well documented. From experiments, it seems to always return the audio file. I've documented the assumed format in the code.