1.8 KiB
Cloudflare Proxy
An alternative, free connection method is proxying through Cloudflare, which can be used for unreachable data centers. All you need to get it working is a domain. The application includes a default domain, but it can (and ideally should) be replaced with your own.
The proxy restores access to content that previously wouldn't load (reactions, certain stickers). If you are using a non-Premium account and photos/videos still fail to load, leave only 4:149.154.167.220 in the DC → IP block. If the CF proxy works, media will start loading again.
Why should I set up my own domain?
Cloudflare limits the number of simultaneous WebSocket (WS) connections. The default domain could stop working at any moment.
Setting up your own domain
-
Add your domain to Cloudflare (either by purchasing it directly from Cloudflare or by changing the NS servers: https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/). Domains cost around $1.50–$2.00 per year, and any domain extension will work.
-
In
SSL/TLS→Overview, set the mode to Flexible. -
In
DNS→Records, add the followingArecords via+ Add Record:
- Name=
kws1IPv4=149.154.175.50 - Name=
kws2IPv4=149.154.167.51 - Name=
kws3IPv4=149.154.175.100 - Name=
kws4IPv4=149.154.167.91 - Name=
kws5IPv4=149.154.171.5 - Name=
kws203IPv4=91.105.192.100
-
Add your domain to zapret or any other DPI bypass software, as the Cloudflare subnet may be blocked (e.g., in Russia).
-
In the
TgWsProxysettings, replace the default domain with your own.
Credits / Acknowledgments
- Original Idea: https://github.com/Nekogram/WSProxy
- Special thanks to @UjuiUjuMandan for providing the information.