posts: 添加Telegram Web代理教程及相关资源

添加Telegram Web代理教程文档,包含前端部署和后端反代配置说明
This commit is contained in:
afoim
2025-08-02 18:22:06 +08:00
parent c1b108a83a
commit 31aa144cb3
3 changed files with 51 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

View File

@@ -0,0 +1,51 @@
---
title: 大陆直连TG Web触手可及
published: 2025-08-02
description: 'TG Web采用前后端分离前端可以部署到静态托管平台而后端可以用各种服务反代'
image: '../assets/images/2025-08-02-18-10-18-image.png'
tags: [Telegram Web, 反向代理]
category: '记录'
draft: false
lang: ''
---
# 原理
TG Web采用前后端分离
前端为静态资产可以直接部署到Cloudflare Page
后端有高达10个API反代一下即可
然后将前端请求的 `.web.telegram.org` 改为你的域名即可
# 正式开始
> 以 TG Web K举例子
TG 后端API共有10个分别为
```bash
pluto.web.telegram.org
venus.web.telegram.org
aurora.web.telegram.org
vesta.web.telegram.org
flora.web.telegram.org
pluto-1.web.telegram.org
venus-1.web.telegram.org
aurora-1.web.telegram.org
vesta-1.web.telegram.org
flora-1.web.telegram.org
```
假如我的域名是 `072103.xyz` ,则为 `pluto.web.072103.xyz` 。其他的以此类推
Fork 仓库: [morethanwords/tweb: Telegram Web K, GPL v3](https://github.com/morethanwords/tweb)
全局搜索 `.web.telegram.org` 替换为 `.web.072103.xyz`
将该仓库部署到Cloudflare Page构建命令为 `pnpm build` ,构建输出目录为 `public`
# 成功
![](../assets/images/2025-08-02-18-21-46-0c8fc3ac93604c65401132aaa59c803d_720.jpg)