Closed suntong closed 5 years ago
Hi @suntong, thanks for raising this issue. After looking at the source, I realised there are quite a number of bugs that need to be fixed:
sendVideo
method and other send methods are not making requests with formData
fs.readStream
object directly to any of the send methodssendFile
example code is actually brokenMy bad. I'll update you here once I fix the bugs and publish a new release in a bit.
Send methods now make requests with formData
if the file you're using is a readable stream.
sendFile
no longer broken; let me know if you have any issues using it.
Fantastic! I'll give it a try. THX a lot!
Hey @edisonchee,
Please add more examples to the Sending Files demo.
So far it only sends Photos. When I tried to copy and use
sendVideo()
I got the error of:Are the video/document parameter supposed to be binary strings (obtained from
fs.createReadStream
)?Thx