14

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!

you are viewing a single comment's thread
view the rest of the comments
[-] lattenwald@lemmy.world 4 points 3 years ago* (last edited 3 years ago)

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@kbin.social 2 points 3 years ago

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?

[-] qazwsxedcrfv000@lemmy.unknownsys.com 4 points 3 years ago* (last edited 3 years ago)

Yes Telegram bot API supports long polling which is basically your server making successive long-running requests to the Telegram server and wait for a response.

this post was submitted on 11 Jul 2023
14 points (88.9% liked)

Selfhosted

61189 readers
281 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