this post was submitted on 11 Jul 2023
5 points (100.0% liked)

Selfhosted

61790 readers
686 users here now

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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

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!

top 10 comments
sorted by: hot top controversial new old
[–] rglullis 1 points 3 years ago (1 children)

Do you need a static IP? can't you have a Dynamic DNS running on your router?

[–] beeb@lemm.ee 2 points 3 years ago

A static up is not required for a telegram bot as the telegram api acts as an intermediary with the clients.

Any $5 VPS (usually single core plus 1GB RAM) should be good enough for this purpose if it is just a bot for you and your friends.

[–] rikudou@lemmings.world 1 points 3 years ago

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.

[–] AustralianSimon@lemmy.world 1 points 3 years ago* (last edited 3 years ago)

Telegram bot doesn't need static IP, it connects to the service and does a get for updates. Default python wrapper polls.

That being said pythonanywhere or heroku are good cheap options.

[–] magmaus3@szmer.info 1 points 3 years ago (2 children)

Oracle Cloud provides free plans

[–] SirMino@feddit.it 2 points 3 years ago

if you're able to register...

[–] squidzorz@lemmy.ml 1 points 3 years ago* (last edited 3 years ago)

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)

[–] saint@group.lt 1 points 3 years ago

probably could fit into fly.io free tier. also as others have mentioned - oracle oci provides a nice free vm, which can be shut off if usage of resources is low, but you can workaround it by increasing a volume a bit more than free tier allows and pay something like a 1-2$ for it monthly.

[–] Reliant1087@lemmy.world 0 points 3 years ago

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

load more comments
view more: next ›