There is always problems when using a third party HTTP server!
I tried using express and I tried using fastify. For some reason both of them fail! I assume it is completely my fault but the gist is:
If I follow the telegraf express example sooner or later a reply to a message will send the body and then try to render the headers... for some reason.
If I follow the telegraf fastify example the path will be set incorrectly and fastify won't send the request to telegraf. I tried to debug which path should be the correct one but no fix actually worked.
With this luck, I assume Koa is not going to work either. I believe making a raw http server for node might work but I am almost sure it's going to be a bad idea. Either way, I commented out the server file so the whole functionality is removed. Maybe I can revisit this later and the issues with the http server might solve itself or the documentation with telegraf might improve (or, you know, botgram makers revive the project and I can just switch back)
There is always problems when using a third party HTTP server!
I tried using
express
and I tried usingfastify
. For some reason both of them fail! I assume it is completely my fault but the gist is:With this luck, I assume
Koa
is not going to work either. I believe making a raw http server for node might work but I am almost sure it's going to be a bad idea. Either way, I commented out the server file so the whole functionality is removed. Maybe I can revisit this later and the issues with the http server might solve itself or the documentation with telegraf might improve (or, you know, botgram makers revive the project and I can just switch back)