Module @mtcute/node - v0.12.0

@mtcute/node

📖 API Reference

Node.js support package for mtcute. Includes:

  • Support for native crypto addon (must be installed separately, @mtcute/crypto-node)
  • 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'
})

tg.run(async (user) => {
console.log(`✨ logged in as ${user.displayName}`)
})

Index

Classes

Interfaces

Generated using TypeDoc