modern typescript library for mtproto. supports browsers, node/bun, deno and more!
github mirror: https://github.com/mtcute/mtcute
451fdd0cfc
also fixed a few issues with getHistory |
||
---|---|---|
packages | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.prettierignore | ||
.prettierrc | ||
lerna.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
yarn.lock |
MTCute
Work-in-progress library for MTProto in TypeScript.
⚠️ Warning: While this library is WIP, storage format will change without changing format version and without migration algorithm.
If you encounter errors related to this, 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/teidesu/mtcute
cd mtcute
yarn install
npx lerna link
Acknowledgements
Some parts were based on code from these projects: