Answer the question
In order to leave comments, you need to log in
Heroku as hosting for a bot. What is the effect of the 30 minute limit?
Hello. The elementary host behind a hillock is necessary to send messages to clients on TG.
Heroku is advised, but I don’t quite understand - there in the free mode it says something about 30 minutes of downtime, supposedly the server goes to sleep if there is no activity.
My script is simple, it receives a message and sends it to a specific recipient. Of course it works in standby mode, not deamon. It turns out, according to such a restriction, the script will not be able to work correctly? Or did I misunderstand the limitation?
And if so, how do the rest of them host bots for free? Are the Daimons hooked to 24/7 pooling?
Answer the question
In order to leave comments, you need to log in
General theory:
If a bot on Heroku goes to sleep, then it does not lose its internal state. When the sleeping bot is first accessed over the web, it will respond, as usual, but with a delay, to wake up from sleep. On the Internet they write that getting out of sleep takes a couple of seconds. I haven't checked the timings myself.
Practice: The
Heroku free plan can be successfully used for a Telegram bot, but you need to adapt:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question