Nenhuma descrição

wui d5cf29d5ae 更新Vite配置,将URL和origin修改为新的服务器地址,并调整基础路径为'/k/'以符合最新部署要求。 6 meses atrás
.github ded030f90f init 7 meses atrás
handlebarsHelpers ded030f90f init 7 meses atrás
public a82d25a92c chore: ignore dist、build等构建产物及map文件 6 meses atrás
rlottie_with_printf ded030f90f init 7 meses atrás
snapshot-server ded030f90f init 7 meses atrás
src 29ea8cf510 添加文件上传功能到后端接口,更新导出请求中的用户信息字段,确保导出流程的完整性和错误处理。 7 meses atrás
.editorconfig ded030f90f init 7 meses atrás
.env 1504547b07 更新环境变量版本号至2.2 (568),并简化部署脚本,直接构建并上传项目文件至服务器。 6 meses atrás
.gitignore 5b436aa9c1 . 6 meses atrás
.gitmodules ded030f90f init 7 meses atrás
CHANGELOG.md ded030f90f init 7 meses atrás
CHANGELOG_ru.md ded030f90f init 7 meses atrás
LICENSE ded030f90f init 7 meses atrás
README.md ded030f90f init 7 meses atrás
babel.config.js ded030f90f init 7 meses atrás
build.js ded030f90f init 7 meses atrás
deploy.sh 1504547b07 更新环境变量版本号至2.2 (568),并简化部署脚本,直接构建并上传项目文件至服务器。 6 meses atrás
eslint.config.mjs ded030f90f init 7 meses atrás
fff.code-workspace ded030f90f init 7 meses atrás
git-serve-server.js ded030f90f init 7 meses atrás
git-serve.js ded030f90f init 7 meses atrás
index.html ded030f90f init 7 meses atrás
keepAsset.js ded030f90f init 7 meses atrás
package.json ded030f90f init 7 meses atrás
pnpm-lock.yaml ded030f90f init 7 meses atrás
schema.js ded030f90f init 7 meses atrás
server.js ded030f90f init 7 meses atrás
ssh.example.json ded030f90f init 7 meses atrás
sw.ts ded030f90f init 7 meses atrás
tsconfig.json ded030f90f init 7 meses atrás
vite.config.ts d5cf29d5ae 更新Vite配置,将URL和origin修改为新的服务器地址,并调整基础路径为'/k/'以符合最新部署要求。 6 meses atrás
vite.proxy.js ded030f90f init 7 meses atrás

README.md

Telegram Web K

Based on Webogram, patched and improved. Available for everyone here: https://web.telegram.org/k/

Developing

Install dependencies with:

pnpm install

This will install all the needed dependencies.

Running web-server

Just run pnpm start to start the web server and the livereload task. Open http://localhost:8080/ in your browser.

Running in production

Run node build to build the minimized production version of the app. Copy public folder contents to your web server.

Dependencies

Debugging

You are welcome in helping to minimize the impact of bugs. There are classes, binded to global context. Look through the code for certain one and just get it by its name in developer tools. Source maps are included in production build for your convenience.

Additional query parameters

  • test=1: to use test DCs
  • debug=1: to enable additional logging
  • noSharedWorker=1: to disable Shared Worker, can be useful for debugging
  • http=1: to force the use of HTTPS transport when connecting to Telegram servers

Should be applied like that: http://localhost:8080/?test=1

Taking local storage snapshots

You can also take and load snapshots of the local storage and indexed DB using the ./snapshot-server mini-app. Check the README.md under this folder for more details.

Troubleshooting & Suggesting

If you find an issue with this app or wish something to be added, let Telegram know using the Suggestions Platform.

Licensing

The source code is licensed under GPL v3. License is available here.