Answer the question
In order to leave comments, you need to log in
How to optimize the work of the telegram bot on Heroku?
Locally, the bot works fine, but after the deployment it responds for a long time, but it’s still all right, the main problem is that after some absolutely random message (not systematically) it just gets up and dies, and starts working only if you refresh Dyno in Heroku, can something be done about this?
Answer the question
In order to leave comments, you need to log in
You probably have it set up for work through long polling? And you set up a webhook. Then the telegram server will wake it up with every event.
Buy a Hobby and live happily ever after. Free dunos turn off after 5 minutes, and in order to process the request, you need to turn on the web server, and then only you can answer the request.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question