Hi everyone, me and my friends are thinking of making a Telegram bot to use GPT-4 as one of us has access to the API.

We’re not going to release the bot to the public (only use between us), however we’d like the bot to run 24/7 so it’s accessible whenever one of us needs it. Sadly we can’t host it ourselves as neither of us is able to get a Static IP and has a free machine to run 24/7.

My question is, are there any recommended hosting providers (if it’s free even better) where we could host our telegram bot on? Thanks!

1 point

AWS EC2 has an always free tier that is perfect for telegram bots

permalink
report
reply
1 point

Yeah I was thinking about EC2 as I’ve used it before for another project. Wanted to see if there are any other options just in case.

permalink
report
parent
reply
1 point

recently did my own research on hosting providers for my own telegram bot project and i found ec2 had the easiest set up process and most transparent pricing structure for my needs

permalink
report
parent
reply
6 points

Oracle Cloud provides free plans

permalink
report
reply
8 points

if you’re able to register…

permalink
report
parent
reply
2 points

Will take a look at that, thanks!

permalink
report
parent
reply
1 point

I can confirm, I’m running the exact same scenario OP described (GPT-4 Telegram bot), on Oracle Cloud, and it works great. I found this implementation to be robust, easy to spin up, and easy enough to patch changes in.

permalink
report
parent
reply
4 points

The Always Free tier is also very powerful in my opinion. You get 24GB RAM and 4 OCPU’s for Ampere (Arm) architecture VMs. You can run Oracle Linux or just plain old Ubuntu on it!

permalink
report
parent
reply
2 points
*

The gotcha for this is that you have to actually use the resources on your free instance or they will reclaim it. I use my instance as a Minecraft server so it utilizes about half of the 24GB RAM you get. For a very light compute task like a chat bot, it might be difficult to keep the instance from being reclaimed.

From this page:

Idle Always Free compute instances may be reclaimed by Oracle. Oracle will deem virtual machine and bare metal compute instances as idle if, during a 7-day period, the following are true:

CPU utilization for the 95th percentile is less than 15% Network utilization is less than 15% Memory utilization is less than 15% (applies to A1 shapes only)

permalink
report
parent
reply
3 points

AWS Lambda is the best for this, my bots run on it. That is, if you’re ok with some delay in response. Otherwise an EC2 might work.

permalink
report
reply
1 point

I’ve had the cheapest Hetzner server for a couple of years. Zero complaints, it’s like 3e/month or something.

permalink
report
reply
4 points

Why not use dynamic DNS since this isn’t something mission critical?

permalink
report
reply
3 points

Never really thought about it! Thanks, will take a look

permalink
report
parent
reply
1 point

Happy to help :) I have ddns configured with duckdns and it’s been pretty smooth. The only problem will be if you’re behind cgnat.

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 4.8K

    Monthly active users

  • 3.5K

    Posts

  • 79K

    Comments