@mtcute/node
TypeScript icon, indicating that this package has built-in type declarations

0.23.0 • Public • Published

@mtcute/node

📖 API Reference

Node.js support package for mtcute. Includes:

  • Terminal I/O via readline
  • SQLite storage (via better-sqlite3)
  • TCP transport (via node:net)
  • TelegramClient implementation using the above
  • HTML and Markdown parsers

Usage

import { TelegramClient } from '@mtcute/node'

const tg = new TelegramClient({
    apiId: 12345,
    apiHash: 'abcdef',
    storage: 'my-account'
})

const self = await tg.start()
console.log(`✨ logged in as ${self.displayName}`)

Readme

Keywords

none

Package Sidebar

Install

npm i @mtcute/node

Homepage

mtcute.dev

Weekly Downloads

363

Version

0.23.0

License

MIT

Unpacked Size

62 kB

Total Files

71

Last publish

Collaborators

  • teidesu