Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5,015 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

本项目的修改

给 dialog folder 的右键菜单(手机上面是长按) 增加一个 "Mute All" 选项 image

效果是 将该 folder 里面的全部 dialog 都设置为 Mute Forever

一种部署方法

  1. fork 本项目

  2. 在你的 cloudflare 账号中部署 page, 选择连接你的github, 选择你 fork 出来的仓库,
    配置:

    • Framework preset: Vite
    • Build command: pnpm install --frozen-lockfile && pnpm build
    • Build output directory: dist
    • Production branch: master

另一种部署方法

  1. fork 本项目

  2. 给你自己的 github 项目设置 secret

    • CLOUDFLARE_API_TOKEN
    • CLOUDFLARE_ACCOUNT_ID
  3. 触发 deploy-pages.yml 这个 github action


以下为源项目的README

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.

Running in docker

Developing:

  • Install dependencies docker-compose up tweb.dependencies.
  • Run develop container docker-compose up tweb.develop .
  • Open http://localhost:8080/ in your browser.

Production:

  • Run docker-compose up tweb.production -d nginx image and container to serve the build
  • Open http://localhost:80/ in your browser.

You can use docker build -f ./.docker/Dockerfile_production -t {dockerhub-username}/{imageName}:{latest} . to build your production ready image.

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.

Preview all icons

You can see all the available svg icons by calling the showIconLibrary() global function in the browser's console.

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.

About

给 dialog folder 的右键菜单(手机上面是长按) 增加一个 "Mute All" 选项

Resources

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages