modern typescript library for mtproto. supports browsers, node/bun, deno and more! github mirror: https://github.com/mtcute/mtcute
Find a file
2022-08-12 20:11:27 +03:00
docs feat: tl reference web application 2021-04-14 18:08:53 +03:00
packages refactor(tl-utils): export everything in index.ts 2022-08-12 20:11:27 +03:00
scripts fix(build): fix dep bumping in version.js 2022-08-12 16:16:16 +03:00
tl-reference refactor: prettier-ed code, rearranged imports, fixed tests 2022-06-30 16:32:56 +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 build: updated gitignore 2022-04-28 15:31:08 +03:00
.npmrc build: improved publish script, fixed imports/exports, added note about private repo 2022-05-06 13:23:29 +03:00
.prettierignore refactor: prettier-ed code, rearranged imports, fixed tests 2022-06-30 16:32:56 +03:00
.prettierrc 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 refactor: prettier-ed code, rearranged imports, fixed tests 2022-06-30 16:32:56 +03:00
pnpm-lock.yaml feat(core): support overwriting existing session with session strings 2022-07-31 08:01:40 +03:00
pnpm-workspace.yaml build: migrated to pnpm, updated and cleaned up deps 2022-04-28 16:58:09 +03:00
README.md build: improved publish script, fixed imports/exports, added note about private repo 2022-05-06 13:23:29 +03:00
tsconfig.json fix(build): fixed imports, bumped typescript 2022-05-05 20:08:38 +03:00

MTCute

PROJECT IS NOT DEAD/ABANDONED

I'm currently a bit struggling to devote enough time for it due to IRL stuff. Also due to the stuff I'm working on in the project right now, I'm not making any commits not to break stuff.

Sorry about that! Will hopefully get my hands back on it in late summer of 2022

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.

Installation

MTCute is currently only published in my private NPM registry.

You can install it by running:

npm config set --location project @mtcute:registry https://npm.tei.su

npm install @mtcute/node # or any other package

Setting up for development:

git clone https://github.com/mtcute/mtcute
cd mtcute
pnpm install

# generate code from tl schema
cd packages/tl
pnpm run gen-code

Acknowledgements

Some parts were based on code from these projects: