Description
Hi @zixia ,
I am working on sending voice message to other people in wechaty, and I realized that the voice length has to be passed when we send out voice message. And this information is pretty hard to be retrieved from the data, so I think it makes sense to add a metadata
field in FileBox so for voice message that I received, I can persist the voice length in the metadata
, then when use the FileBox
voice file to send message, I can retrieve it from the FileBox
object itself.
Currently I observed that there is a mimeType
field in FileBox
, and it is used only for url related FileBox
object, I can possibly save the voice length inside that, or put it into the file name, but that is all work around, not elegant solutions. So I think the metadata
field will be the final solution to my problem.
Please let me know your thought.