How to make telegram bot work 24/7?

**How to make telegram bot work 24/7?
When I exit the replit, Bot stops

Please help**

You have to use deployments.


firstly, make sure the repl is hosting a website that is constantly pinged. The bot will occasionally go down even if you use always on but it will work if you do deployments


and a common way to do this is to add the URL in your webview to or another website monitoring service / pinger that sends HEAD requests (not GET). The website hosted should preferably send no content. Ensure that the monitoring interval isn’t too short (I use 15 min).


this is good. Especially emphasis on don’t send content because of egress. only problem is that replit afaik will force shutdown the repl after a certain amount of time because of unknown reasons

1 Like