Open QuynhVir opened 2 months ago
I just read the source code of telegraf.js and turned on the debugger to find out, it turns out they post the file using multipart/form-data. So there's nothing wrong with this library, it's just that telegraf.js makes it easier by accepting the URL as well and handling the rest automatically.
You should warn users about this. Thank you for your hard work on this project.
I am migrating my Telegram bot written in telegraf.js to Go. This is my old working code using telegraf.js:
Case 1 [WORKING]:
Case 2 [WORKING]:
Case 3 [NOT EXPECTED]:
In this case, it works but not the way I want, the bot responds as a video, not a document, while I want the bot to send the document, so I can download the original file.
Case 4 [NOT WORKING]:
In this case, I received the error Bad Request: failed to send message #1 with the error message "MEDIA_INVALID"