![]() |
|
How to Use Your PC as a Telegram Server? A Step-by-Step Guide or Can You Use Your PC as a Telegram Se - Printable Version +- Proxy Community (https://proxycommunity.com/forum) +-- Forum: Technical Community Support (https://proxycommunity.com/forum/forum-technical-community-support) +--- Forum: API and Development (https://proxycommunity.com/forum/forum-api-and-development) +--- Thread: How to Use Your PC as a Telegram Server? A Step-by-Step Guide or Can You Use Your PC as a Telegram Se (/thread-how-to-use-your-pc-as-a-telegram-server-a-step-by-step-guide-or-can-you-use-your-pc-as-a-telegram-se) Pages:
1
2
|
How to Use Your PC as a Telegram Server? A Step-by-Step Guide or Can You Use Your PC as a Telegram Se - stealthLurkerX - 01-07-2024 "Can You Use Your PC as a Telegram Server? Here’s How!" Hey folks! So, I’ve been digging into how to use your pc as a telegram server, and turns out, it’s *kinda* possible! Not the official way, but with some tinkering. You’ll need to set up a local server using Telegram’s API or tools like Telethon or MTProto. It’s not plug-and-play, tho—expect some command line action. Here’s the gist: - Install Python + libs - Grab API keys from Telegram - Run a script to keep the server alive It’s more for devs or privacy nerds, but hey, if you’re into self-hosting, why not? Anyone tried this before? Hit me with tips or gotchas! (Ps: No, you can’t fully replace Telegram’s servers, but you can proxy/bot stuff locally.) “” - stealthDrift77 - 19-11-2024 Interesting approach! If you're looking into how to use your pc as a telegram server, you might wanna check out docker-telegram-api-server on GitHub. It’s a containerized setup that simplifies the process. Still, like you said, it’s not a full replacement—more like a relay. I’ve messed with it before, and the biggest gotcha is keeping it running 24/7. A Raspberry Pi might be better than a main PC if you don’t wanna leave your computer on all day. Anybody got a script for auto-restarting the server if it crashes? “” - stinByte77 - 18-02-2025 Yo, this is cool but kinda niche. For how to use your pc as a telegram server, you’re basically building a bot gateway, right? I’d recommend Pyrogram over Telethon if you’re into Python—it’s got cleaner docs. Also, don’t forget to secure your API keys. Saw a dude on Reddit who got his account flagged cuz he leaked ’em. If you’re just proxying, maybe check out nginx as a reverse proxy? Makes things smoother. “” - ZeroVisibilityX - 21-03-2025 Wait, so this isn’t actually hosting Telegram like a full server? Bummer. I was hoping for a way to ditch the cloud entirely. For how to use your pc as a telegram server, it sounds like you’re just running a bot or proxy. Still neat tho. Has anyone tried pairing this with Tailscale for remote access? Could be a slick way to keep things private without opening ports. “” - darkByteX77 - 25-03-2025 If you’re diving into how to use your pc as a telegram server, don’t skip the MTProto proxy setup. Telegram’s docs are a headache, but it’s worth it for the encryption. Pro tip: Use pm2 to keep your scripts alive. Saved me so many headaches when my PC randomly decides to reboot. Also, curious—anyone got metrics on how much bandwidth this chews up? “” - stealthLurkerX - 02-04-2025 Hey, thanks for all the tips! Didn’t expect so many replies. I tried the docker-telegram-api-server thing and it’s working… kinda. Had to tweak the config a ton, though. Quick Q: Anyone know if there’s a way to cache messages locally? I’m hitting API limits like crazy when fetching old chats. (And yeah, Tailscale + this setup is *chef’s kiss* for privacy.) “” - InvisibleRouteX - 03-04-2025 Kinda off-topic but related: if you’re into how to use your pc as a telegram server, you might dig Matrix + Synapse. It’s like Telegram but fully self-hostable. That said, for Telegram, I’ve had luck with grammY (TypeScript lib) for bot stuff. Way easier than Python if you’re into JS. Anyone know if Telegram’s API bans IPs for too many requests? Don’t wanna get blocked lol. “” - ShadowSeeker99 - 08-04-2025 Man, I tried this last year and gave up. For how to use your pc as a telegram server, the biggest pain was the rate limiting. Telegram’s API is strict af. If you’re gonna do it, throttle your requests and maybe use a VPN to rotate IPs. Also, systemd is your friend for keeping things running. Side note: Why doesn’t Telegram just let us self-host properly? Ugh. |