A
A
Amuser2018-03-20 17:56:34
Node.js
Amuser, 2018-03-20 17:56:34

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

2 answer(s)
Z
ze7, 2018-03-21
@ze7

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.

M
marataziat, 2018-06-10
@marataziat

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 question

Ask a Question

731 491 924 answers to any question