I’ve created a Telegram bot using Python. It’s pretty simple. It grabs info from a spreadsheet and makes some charts. I’m the only one who uses it, and not that often.
The thing is, I need it to run all the time because of how it’s set up. I don’t want to keep my computer on 24/7 for this.
I’ve been looking around for free hosting that can handle a Python script running non-stop. So far, I haven’t had much luck. A lot of the free options I’ve found either don’t allow constant running or want credit card info.
Does anyone know of a good free hosting service that might work for this? I’m hoping to find something that doesn’t need any payment info and can keep my bot going without breaks.
I’ve been in a similar situation with a small personal bot. Have you considered using PythonAnywhere? They offer a free tier that allows you to run Python scripts continuously. It’s been reliable for me, and you don’t need to provide payment info for the basic plan.
Another option worth exploring is Heroku. While they’ve tightened their free offerings, you might still be able to use their free dyno hours if you’re clever about it. You could set up a system where the bot sleeps for short periods to stretch out the available hours.
If those don’t work out, you might want to look into a Raspberry Pi. It’s not free, but it’s a one-time cost, and you can run your bot 24/7 without worrying about hosting limitations. Plus, it’s a great learning experience if you’re into tinkering.
Just remember, free services often come with limitations, so be prepared to get creative with your setup or possibly invest a small amount for more reliable hosting in the long run.
Have you considered Oracle Cloud’s Always Free tier? It offers a decent amount of resources that could potentially work for your Telegram bot. You get two free VMs with 1 GB RAM each, which should be sufficient for running a Python script continuously. The best part is, it doesn’t require a credit card for signup.
Another option to look into is AWS Lambda combined with AWS Free Tier. While it’s not designed for constant running, you could set up your bot to trigger every few minutes using CloudWatch Events. This way, it’s essentially always on without actually running non-stop. It might require some tweaking of your current setup, though.
Both these options provide a good balance of reliability and cost (or lack thereof). Just keep an eye on usage limits to avoid unexpected charges.
hey man, have u looked into google cloud platform? they got a free tier that might work for ur bot. i used it for a small project and it ran 24/7 no prob. just gotta set it up right. might be worth checkin out if u haven’t already. good luck!