@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}`)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.23.0138latest

Version History

VersionDownloads (Last 7 Days)Published
0.23.0138
0.22.374
0.22.05
0.21.052
0.20.09
0.19.336
0.19.20
0.19.10
0.19.00
0.18.0-rc.50
0.17.046
0.16.130
0.16.90
0.16.70
0.16.60
0.16.30
0.16.20
0.16.00
0.15.10
0.15.00
0.14.00
0.13.00
0.12.00
0.11.00
0.10.00
0.9.10
0.9.00
0.8.00
0.7.00
0.6.01
0.4.00
0.3.01
0.2.01
0.1.10
0.1.00

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