Automatically Restart Telegram Bot after Shutdown

Hey Guys, i just migrated my Heroku Bot to Fly. Is there a way to automatically restart the App, in case it shutdown? I read that i could specify ‘restart_limit’ in ‘fly.toml’. But would that also work for a telegram bot, which just has an App and so is never reachable by HTTP request?

This should be the default, you probably don’t need to mess with any settings to make your process restart after shutdown.

1 Like