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!

WompWomp
link
fedilink
21Y

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

yungsinatra
creator
link
fedilink
11Y

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.

WompWomp
link
fedilink
11Y

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

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

yungsinatra
creator
link
fedilink
21Y

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

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.

FYI you don’t need static IP for telegram bots if you use polling instead of webhook. So if your house connection is stable enough, you can make do with Raspberry Pi.

I’m hosting my stuff on cheapest DigitalOcean droplet (but still use polling for telegram bots). Any stable VPS provider would do just fine and you’ll have system resources left for other stuff, telegram bots are very light.

yungsinatra
creator
link
fedilink
21Y

I’m not sure I understand how I could use polling in this case. Would I just keep sending requests to the endpoint to see if there are any new messages sent or something like that?

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.

Create a 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!

  • 1 user online
  • 30 users / day
  • 79 users / week
  • 215 users / month
  • 844 users / 6 months
  • 1 subscriber
  • 1.42K Posts
  • 8.13K Comments
  • Modlog