modern typescript library for mtproto. supports browsers, node/bun, deno and more! github mirror: https://github.com/mtcute/mtcute
Find a file
teidesu ec736f8590 some changes
i've been wanting to name a commit like this for my entire life, lol. seriously though, a lot has changed:
 - extracted TL-related stuff to `@mtcute/tl-utils` and `@mtcute/tl-runtime`, rewrote codegen in TS
 - updated to layer 134, moved to int64 identifiers
 - rewritten networking (mtproto), rewritten updates handling
 - *lots* of refactoring

 still a very early version though, there are a lot of improvements to be made, but at least it runs, lol

 also tl-reference will not be updated anytime soon because i want to rewrite it
2021-11-23 00:03:59 +03:00
docs feat: tl reference web application 2021-04-14 18:08:53 +03:00
packages some changes 2021-11-23 00:03:59 +03:00
scripts rename back to mtcute 2021-08-05 20:38:24 +03:00
tl-reference rename back to mtcute 2021-08-05 20:38:24 +03:00
.editorconfig feat: tl reference web application 2021-04-14 18:08:53 +03:00
.eslintignore build: fixed scripts, eslintignore, fixed linter warnings and re-formatted with prettier 2021-06-06 15:20:41 +03:00
.eslintrc.js some changes 2021-11-23 00:03:59 +03:00
.gitattributes Initial commit 2021-04-08 12:19:38 +03:00
.gitignore feat: tl reference web application 2021-04-14 18:08:53 +03:00
.prettierignore Initial commit 2021-04-08 12:19:38 +03:00
.prettierrc Initial commit 2021-04-08 12:19:38 +03:00
lerna.json Initial commit 2021-04-08 12:19:38 +03:00
LICENSE build: changed license to lgplv3 2021-07-19 03:57:47 +03:00
package.json rename back to mtcute 2021-08-05 20:38:24 +03:00
README.md rename back to mtcute 2021-08-05 20:38:24 +03:00
tsconfig.json build: preparing for publish, moved to strict typescript, fixed some stuff 2021-07-30 17:40:50 +03:00
yarn.lock some changes 2021-11-23 00:03:59 +03:00

MTCute

contributions welcome

Work-in-progress library for MTProto in TypeScript.

🎯 Roadmap (notion.so) | 📦 TL Reference

⚠️ Warning: While this library is WIP, storage format will change without changing format version and without migration algorithm, and there will be breaking changes in the API.

If you encounter errors related to storage, either reset your storage by removing the file, or fix it manually.

What currently works:

  • TCP Connection in NodeJS
  • Sending & receiving text messages
  • Uploading & downloading files
  • HTML & Markdown parse modes
  • Type-safe filter system

What is not done yet:

  • pretty much everything else

Setting up for development:

git clone https://github.com/mtcute/mtcute
cd mtcute
yarn install
npx lerna link

# generate code from tl schema
cd packages/tl
yarn generate-code

Acknowledgements

Some parts were based on code from these projects: