Go to file
2021-11-05 22:03:12 +03:00
.github/workflows
.husky [Refactoring] Fix TS and ESLint errors after updating packages (#1386) 2021-08-16 14:21:33 +03:00
deploy
dev/localize
dist [Build] 2021-10-29 20:25:04 +03:00
public Better PWA/Fav icons (#1518) 2021-10-28 15:50:57 +03:00
src [Perf] Reduce DOM manipulations when loading media 2021-11-05 22:03:12 +03:00
.babelrc
.browserslistrc Left Column: Support resizing; Better support for large displays (#1484) 2021-10-13 14:38:34 +03:00
.editorconfig
.env.example Initial commit 2021-04-09 14:11:51 +03:00
.eslintignore [Refactoring] Fix TS and ESLint errors after updating packages (#1386) 2021-08-16 14:21:33 +03:00
.eslintrc [Tests] Fix tests 2021-10-22 13:49:27 +03:00
.gitattributes
.gitignore
.patch-version [Build] 2021-10-29 20:25:04 +03:00
.postcssrc Initial commit 2021-04-09 14:11:51 +03:00
CHANGELOG.md
jest.config.js [Tests] Fix tests 2021-10-22 13:49:27 +03:00
LICENSE
package-lock.json 1.19.0 2021-10-29 20:20:58 +03:00
package.json Update to layer 133 (#1525) 2021-11-05 22:03:02 +03:00
README.md Update README.md 2021-08-22 15:22:55 +03:00
tsconfig.json Support new t.me format (#1521) 2021-10-28 15:51:04 +03:00
webpack.config.js Support local changelogs; Fix marking read for service notifications 2021-10-22 13:49:20 +03:00

Telegram Web Z

This project won the first prize 🥇 at Telegram Lightweight Client Contest and now is an official Telegram client available to anyone at web.telegram.org/z.

According to the original contest rules, it has nearly zero dependencies and is fully based on its own Teact framework (which re-implements React paradigm). It also uses a custom version of GramJS as an MTProto implementation.

The project incorporates lots of technologically advanced features, modern Web APIs and techniques: WebSockets, Web Workers and WebAssembly, multi-level caching and PWA, voice recording and media streaming, cryptography and raw binary data operations, optimistic and progressive interfaces, complicated CSS/Canvas/SVG animations, reactive data streams, and so much more.

Feel free to explore, provide feedback and contribute.

Local setup

mv .env.example .env

npm i

Obtain API ID and API hash on my.telegram.org and populate the .env file.

Dev mode

npm run dev

Invoking API from console

Start your dev server and locate GramJS worker in console context.

All constructors and functions available in global GramJs variable.

Run npm run gramjs:tl full to get access to all available Telegram requests.

Example usage:

await invoke(new GramJs.help.GetAppConfig())

Bug reports and Suggestions

If you find an issue with this app, let Telegram know using the Suggestions Platform.