modern typescript library for mtproto. supports browsers, node/bun, deno and more! github mirror: https://github.com/mtcute/mtcute
Find a file
Alina Sireneva d88bc0ea60
chore: code quality improvements
improved eslint config, fixed linter issues, added husky
2023-06-05 00:30:48 +00:00
.husky chore: code quality improvements 2023-06-05 00:30:48 +00:00
packages chore: code quality improvements 2023-06-05 00:30:48 +00:00
scripts chore: code quality improvements 2023-06-05 00:30:48 +00:00
.editorconfig feat: tl reference web application 2021-04-14 18:08:53 +03:00
.eslintignore chore: code quality improvements 2023-06-05 00:30:48 +00:00
.eslintrc.js chore: code quality improvements 2023-06-05 00:30:48 +00: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
.nvmrc chore: better dependencies management 2023-06-04 17:00:33 +00: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
commitlint.config.js chore: code quality improvements 2023-06-05 00:30:48 +00:00
LICENSE build: changed license to lgplv3 2021-07-19 03:57:47 +03:00
package.json chore: code quality improvements 2023-06-05 00:30:48 +00:00
pnpm-lock.yaml chore: code quality improvements 2023-06-05 00:30:48 +00:00
pnpm-workspace.yaml build: migrated to pnpm, updated and cleaned up deps 2022-04-28 16:58:09 +03:00
README.md chore: better dependencies management 2023-06-04 17:00:33 +00:00
tsconfig.json chore: code quality improvements 2023-06-05 00:30:48 +00:00
tsfixes.d.ts chore: code quality improvements 2023-06-05 00:30:48 +00:00
typedoc.js docs: removed typedoc-plugin-coverage 2022-08-28 17:56:56 +03:00

mtcute

PROJECT IS ABANDONED

If anyone would like to take over it, feel free to DM me. Meanwhile, check out other MTProto libraries in JS, or, better yet, use TDLib for god's sake.

⚠️ 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

Currently, target TypeScript major is 5.1, target Node major is 18.

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:

fnm use # or `nvm use`
git clone https://github.com/mtcute/mtcute
cd mtcute
pnpm install --frozen-lockfile

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

Acknowledgements

Some parts were based on code from these projects: