[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108935":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":44,"updatedAt":45,"readmeContent":46,"aiSummary":47,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":48,"discoverSource":49},108935,"ProxyGosha","amirmarandidev\u002FProxyGosha","amirmarandidev","Telegram WEB Proxy on Cloudflare Workers","https:\u002F\u002Famirmarandi.ir\u002Fproxygosha",null,"JavaScript",183,42,52,2,0,1,9,94,4,60.8,"MIT License",false,"main",true,[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"anti-filtering","bypass-censorship","censorship-circumvent","china","cloudflare","cloudflare-workers","free-proxy","iran","privacy","proxy","russia","serverless","telegram","telegram-desktop","telegram-proxy","telegram-proxy-iran","tunnel","2026-11-16 13:56:21","2026-11-22 04:33:09","# ProxyGosha — Telegram WEB Proxy on Cloudflare Workers\n\n> A private Telegram proxy that runs on Cloudflare's free tier. One file, one setting, no server to rent or maintain.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Famirmarandidev\u002FProxyGosha\u002Fstargazers\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Famirmarandidev\u002FProxyGosha?style=for-the-badge&color=gold\" alt=\"GitHub Stars\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fworkers.cloudflare.com\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCloudflare-Workers-F38020?style=for-the-badge&logo=cloudflare&logoColor=white\" alt=\"Cloudflare Workers\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fdesktop.telegram.org\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTelegram-WEB%20Proxy-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white\" alt=\"Telegram WEB Proxy\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-blue?style=for-the-badge\" alt=\"License MIT\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"README.md\">\u003Cb>English\u003C\u002Fb>\u003C\u002Fa> •\n  \u003Ca href=\"docs\u002FREADME.fa.md\">\u003Cb>فارسی\u003C\u002Fb>\u003C\u002Fa> •\n  \u003Ca href=\"docs\u002FREADME.ru.md\">\u003Cb>Русский\u003C\u002Fb>\u003C\u002Fa> •\n  \u003Ca href=\"docs\u002FREADME.zh.md\">\u003Cb>简体中文\u003C\u002Fb>\u003C\u002Fa> •\n  \u003Ca href=\"docs\u002Fllms.txt\">\u003Cb>llms.txt\u003C\u002Fb>\u003C\u002Fa>\n\u003C\u002Fp>\n\n---\n\n## 📺 Video Tutorial\n\n> [!TIP]\n> Prefer a visual walkthrough? Watch the complete step-by-step setup tutorial on YouTube:  \n> ▶️ **[Watch the Tutorial on YouTube](https:\u002F\u002Fyoutu.be\u002F7StSCQdpqvk)** *(with clear on-screen instructions)*\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fyoutu.be\u002F7StSCQdpqvk\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.youtube.com\u002Fvi\u002F7StSCQdpqvk\u002Fmaxresdefault.jpg\" alt=\"ProxyGosha Video Tutorial\" width=\"700\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Ft.me\u002Famirdotlog\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTelegram-amirdotlog-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white\" alt=\"Telegram Channel\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002F@amirmarandidev\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FYouTube-amirmarandidev-red?style=for-the-badge&logo=youtube&logoColor=white\" alt=\"YouTube Channel\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n> [!NOTE]\n> 📢 **Telegram Updates Channel:** Join our channel for clean domains, latest announcements, and setup tips: **[t.me\u002Famirdotlog](https:\u002F\u002Ft.me\u002Famirdotlog)**  \n> 🔴 **YouTube Channel:** Subscribe for video tutorials and technical anti-censorship walkthroughs: **[youtube.com\u002F@amirmarandidev](https:\u002F\u002Fwww.youtube.com\u002F@amirmarandidev)**\n\n---\n\n## 🚀 What's New in v1.2.2\n\nThis release brings major connection reliability improvements, protocol optimizations, and built-in diagnostics:\n\n- 🛠️ **Bug Fixes & Connection Stability:** Fixed intermittent connection issues, eliminated socket leaks on timeouts, removed invalid test endpoints, and updated official Telegram DC IPs for stable failover.\n- ⚡ **Optimized Data Coalescing (Upstream Batching):** Small MTProto upstream data frames are now coalesced into batches before encrypting and sending to Telegram DCs, drastically cutting WebCrypto CPU cycles on Cloudflare Workers.\n- 📊 **Live Telemetry & Diagnostics (Special thanks to EmadReza):** Added the `\u002F\u003CADMIN_KEY>\u002Fstatus` dashboard, providing real-time metrics (active sessions, bandwidth, isolate uptime) and an on-demand Telegram DC Reachability Probe (DC1–DC5).\n\n---\n\n## What this is\n\nTelegram added a new proxy type called **WEB**. Unlike the classic MTProto proxy, it travels as ordinary HTTPS traffic, so it can run behind Cloudflare.\n\nProxyGosha turns a free Cloudflare Worker into that kind of proxy.\n\n**In plain terms:** Cloudflare is a huge network that a large part of the web runs through, so blocking it outright is costly for a censor. Your Worker is a small program running inside that network. Telegram talks to your Worker, and your Worker passes the traffic on to Telegram's servers.\n\n- **It looks like a website.** Anyone who opens your address in a browser sees an ordinary online store.\n- **It cannot read your messages.** Telegram encrypts traffic between your app and its servers. The proxy only carries those encrypted bytes.\n- **It costs nothing to run.** The Worker runs on Cloudflare's free plan. The only optional cost is a domain name, which usually costs a few dollars a year.\n\n---\n\n## Before you start\n\nYou need:\n\n1. **A Cloudflare account.** It's free. Sign up at [dash.cloudflare.com](https:\u002F\u002Fdash.cloudflare.com\u002F).\n2. **A domain name (strongly recommended).** The default `workers.dev` address is filtered in some countries, including Iran, and may not open on every port. Any cheap domain added to Cloudflare will do.\n3. **A Telegram app that offers the WEB proxy type.** Telegram Desktop already has it. Mobile apps get it through app updates.\n\n---\n\n## Setup — five steps\n\n### Step 1 — Create the Worker\n\n1. Open the [Cloudflare Dashboard](https:\u002F\u002Fdash.cloudflare.com\u002F).\n2. Go to **Workers & Pages** → **Create application** → **Create Worker**.\n3. Give it any name (for example `my-tg-proxy`) and click **Deploy**.\n\n### Step 2 — Paste the code\n\n1. On the Worker's page, click **Edit code**.\n2. Delete everything in the editor and paste the full contents of [`worker.js`](worker.js).\n3. Click **Deploy**.\n\n### Step 3 — Set your admin key (the only required setting)\n\n1. Open your Worker's address in a browser. You will see a **setup page** that suggests a random key. Copy it.\n2. In the dashboard, open your Worker → **Settings** → **Variables and Secrets** → **Add**:\n   - **Name:** `ADMIN_KEY`\n   - **Value:** the key you copied (or any password of at least 16 English letters and digits)\n3. Click **Deploy**.\n\n> [!IMPORTANT]\n> Treat `ADMIN_KEY` like a password. Anyone who has it can open your panel and see your proxy secret.\n\n### Step 4 — Connect your domain\n\n1. Add your domain to Cloudflare. Cloudflare will show you two nameservers. Set those nameservers at the company you bought the domain from.\n2. In your Worker, go to **Settings** → **Domains & Routes** → **Add** → **Custom Domain**.\n3. Enter a subdomain, for example `tg.yourdomain.com`. Cloudflare sets up the certificate and DNS automatically.\n\n#### 🌐 Domain Setup Guide (Why a Custom Domain is Required)\n\nMany users have asked whether a custom domain is mandatory and where to acquire one:\n\n> [!WARNING]\n> The default Cloudflare **`workers.dev`** domain is blocked by default in state firewalls across **Iran**, **China**, **Russia**, and other heavily filtered regions.  \n> To guarantee stable connectivity across all network providers, **you must attach a custom domain to your Worker.**\n\n### Options for acquiring a domain:\n\n- ☑️ **Free Domains:**  \n  You can register a free domain using services such as **[digitalplat](https:\u002F\u002Fdomain.digitalplat.org\u002F)** and bind it to Cloudflare at no cost.\n- ❇️ **Country-Code Domains (e.g. `.ir` for Iran, `.ru` for Russia, etc.):**  \n  - National ccTLDs can be used for your proxy.  \n  - ⚠️ **Caution:** Exercise caution and avoid hazardous activities when using personally identifiable national domains.  \n  - National domains are typically very cheap, but identity verification and registration approval (e.g., via [nic.ir](https:\u002F\u002Fnic.ir\u002F)) often takes **1–2 business days**.\n- ‼️ **Low-Cost International Domains (Crypto \u002F International Cards):**  \n  If you have access to cryptocurrency or international payment methods, registrars like **[Namecheap](https:\u002F\u002Fnamecheap.com\u002F)** offer bargain TLDs (such as `.xyz` or `.top`) often priced under $1.\n\n### Step 5 — Open your panel and connect\n\nGo to:\n\n```text\nhttps:\u002F\u002Ftg.yourdomain.com\u002FYOUR_ADMIN_KEY\n```\n\nThe panel shows two ways to connect:\n\n- **One tap:** a **Connect in Telegram** button for each of the six ports. On a phone or desktop with Telegram installed, tapping it adds the proxy straight away.\n- **Manual entry:** the **server**, and the corresponding **port** and **secret** pair shown in the panel table:\n\n| Field | Value |\n|---|---|\n| Server | `tg.yourdomain.com` |\n| Port | any one of `443` · `2053` · `2083` · `2087` · `2096` · `8443` |\n| Secret | the specific secret shown for that port in the panel table |\n\nWhere to enter them in Telegram:\n\n- **Desktop:** Settings → Advanced → Connection type → Use custom proxy → Add proxy → **WEB**\n- **Mobile:** Settings → Data and Storage → Proxy → Add Proxy → **WEB** (once your app version offers it)\n\n**Done.** To share the proxy, send people **the links or the connection values (server, port, and that port's secret)**. Never send the panel address.\n\n### Live Status & Diagnostics\n\nTo verify your proxy is running, monitor real-time traffic, or diagnose connection issues:\n\n```text\nhttps:\u002F\u002Ftg.yourdomain.com\u002FYOUR_ADMIN_KEY\u002Fstatus\n```\n\n- **Live Statistics:** Active sessions, streams opened, bandwidth up\u002Fdown, and isolate uptime.\n- **DC Probe:** Run an on-demand latency & reachability check directly from Cloudflare to all Telegram Data Centers (DC1–DC5).\n- **Privacy-first:** Metrics and event logs are kept strictly in isolate memory and reset automatically; no IP addresses, tokens, or secrets are ever stored.\n\n---\n\n## Ports\n\nAll six Cloudflare HTTPS ports work without any extra setting:\n\n`443` · `2053` · `2083` · `2087` · `2096` · `8443`\n\nEach port has its own unique secret (derived deterministically from your setup) to keep connections isolated. If one port is slow or blocked, switch to another port and use its matching secret from the panel. You can add the proxy multiple times with different ports and switch between them in Telegram anytime.\n\n---\n\n## Settings reference\n\nOnly `ADMIN_KEY` is required. Everything else is optional.\n\n| Variable | Purpose |\n|---|---|\n| `ADMIN_KEY` | **Required.** Password for your panel. Your proxy secrets are derived from it. |\n| `SECRET` | A fixed 32-character hex secret for port 443 (and the base for other ports). Set this if you want to change `ADMIN_KEY` later without breaking links you already shared. |\n| `EXTRA_HOSTS` | Other domains attached to this Worker, separated by commas. The panel generates links for them too. |\n| `DECOY_URL` | A real website to show visitors instead of the built-in store page. Using one makes your proxy harder to tell apart from other deployments. |\n| `CARRIER` | Leave it empty. Set it to `websocket` only if the default mode gives you trouble. |\n\n> [!WARNING]\n> If `SECRET` is not set, changing `ADMIN_KEY` also changes the secrets, and **every link you have shared stops working.**\n\n---\n\n## Under heavy censorship\n\nTry these in order:\n\n1. **Switch ports.** Use another port from the list above.\n2. **Use a different domain.** If one domain is blocked, attach another one to the same Worker and add it to `EXTRA_HOSTS`.\n3. **Use a clean Cloudflare IP (desktop only).** If the IPs your domain normally resolves to are blocked, point your domain at a Cloudflare IP that still works on your network. Add one line to your `hosts` file:\n   - Windows: `C:\\Windows\\System32\\drivers\\etc\\hosts`\n   - macOS \u002F Linux: `\u002Fetc\u002Fhosts`\n\n   ```text\n   CLEAN_IP   tg.yourdomain.com\n   ```\n\n   Replace `CLEAN_IP` with a Cloudflare IP that works on your network. Clean IPs vary by ISP and stop working over time, so test them yourself.\n4. **Turn off ECH where it is blocked (for example Russia).** In Cloudflare, open your domain → **SSL\u002FTLS** → **Edge Certificates** → **Encrypted Client Hello (ECH)** → **Off**.\n\n> [!NOTE]\n> No proxy works during a **complete** shutdown of international internet access. Cloudflare's servers are outside the country, so once the border is closed, nothing on Cloudflare can be reached. These measures help while access is filtered or partially restricted, not after it is fully cut.\n\n---\n\n## Troubleshooting\n\n| What you see | What to do |\n|---|---|\n| The address shows an online store | Normal. The proxy works behind it. To open the panel, add `\u002FYOUR_ADMIN_KEY` to the address. |\n| The panel address shows the store | The key in the address doesn't match `ADMIN_KEY`, or you didn't click **Deploy** after setting it. |\n| The setup page appears again | `ADMIN_KEY` is missing or shorter than 16 characters. |\n| Telegram shows \"connecting\" forever | Try another port. Then try another domain. On `workers.dev`, connect a custom domain instead. |\n| Links you shared stopped working | `ADMIN_KEY` was changed while `SECRET` was not set. Send out the new links from the panel. |\n\n---\n\n## FAQ\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Which Telegram apps work?\u003C\u002Fb>\u003C\u002Fsummary>\nAny Telegram app that offers the \u003Cb>WEB\u003C\u002Fb> proxy type. Telegram Desktop already does. Android and iOS apps support it once the option arrives in their updates.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>How many people can use one proxy?\u003C\u002Fb>\u003C\u002Fsummary>\nIt is built for you and a small circle. Cloudflare's free plan allows 100,000 requests per day per account. For more people, it is better for each group to deploy its own Worker. That spreads the load, and a single leaked link doesn't take everyone down.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Can Cloudflare or the proxy read my messages?\u003C\u002Fb>\u003C\u002Fsummary>\nNo. Telegram encrypts traffic between your app and its servers. The proxy only forwards those encrypted bytes and cannot decrypt them.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Can I add a sponsored channel (ad tag)?\u003C\u002Fb>\u003C\u002Fsummary>\nNo. Sponsored channels require a server with a fixed outgoing port. Cloudflare's network changes outgoing ports, so this is not possible on Workers. The proxy connects straight to Telegram's servers, with no ads.\n\u003C\u002Fdetails>\n\n---\n\n## Disclaimer\n\nThis project is provided for educational purposes and personal use. Running proxy services on Cloudflare Workers may conflict with Cloudflare's Terms of Service (Section 2.2.1(j)). You are responsible for how you use it.\n\n---\n\n## Support\n\nProxyGosha is free and open source. To support its development, star the repository or donate:\n\n- **USDT (BEP20):** `0xd593ae9D32bEA690EC62460C54BF3951aFFF7803`\n- **USDT (TRC20):** `THaaHzoTwXfUfcrtYTDXRsMmk9qhnXa56M`\n","ProxyGosha 是一个基于 Cloudflare Workers 的轻量级 Telegram Web 代理服务，无需自建服务器即可部署。它通过单文件 JavaScript 实现 MTProto 协议转发，支持 Telegram Web 和桌面客户端，具备抗审查、低延迟、自动故障转移等特性，并内置连接诊断与上游数据批处理优化。项目专为受网络审查影响地区的用户设计，适用于伊朗、俄罗斯、中国等需绕过内容过滤的场景，兼顾隐私保护与部署简易性。","2026-11-24 04:35:21","CREATED_QUERY"]