A simple bot to fix proxy links.
Ever clicked on a Telegram proxy link only to have it fail in clients like Telegram Desktop? Many proxies use non-standard or padded secret keys (often encoded in Base64). While some clients can handle this, stricter clients require a clean, 32-character hexadecimal secret.
This bot was born out of the need to instantly convert these problematic links into a universally compatible format that works on every client.
ProxyFixerBot acts as a translator. When you send it a proxy link, it:
-
Parses the URL to extract the secret.
-
Decodes the secret, whether it's Base64 or already Hex.
-
Applies the official Telegram Desktop logic, ported from its C++ source code. This includes correctly handling special secret formats (like the
ddandeeprefixes). -
Strips all junk and padding, isolating the true 16-byte secret key.
-
Re-encodes the clean secret into the standard 32-character hex format.
-
Rebuilds the URL and sends the fixed, ready-to-use proxy link back to you.
The result is a perfectly formatted proxy link that connects without issues.
You can have your own instance of ProxyFixerBot running in minutes.
Prerequisites
- Go: Make sure you have Go installed (version 1.23 or newer).
- A Telegram Bot Token: Get one from @BotFather on Telegram.
Installation
- Clone the repository
git clone https://github.com/ALiwoto/ProxyFixerBot.git- Configure the bot
cp config.sample.json config.json-
edit the
config.jsonfile and fill in the variables there. -
Run the bot
go run main.goYou can use the bot as simple as it gets:
- Find your bot on Telegram (or use the already hosted one).
- Send it any
t.me/proxy?...ortg://proxy?...links (multiple links at once are supported) - The bot will instantly reply with the fixed version of the link. Click it, connect and enjoy.
Contributions are welcome! If you have ideas for improvements, new features, or have found a bug, please feel free to:
- Open an issue to discuss your idea.
- Fork the repository and submit a pull request.
This project was made possible because of
- Members of Telegram Desktop chat.
- Vimicito (from TDesktop chat).
- Яico X (creating a bot for this was his idea).
- Preston and his clear C++ code here.