📖 API Reference
Node.js support package for mtcute. Includes:
@mtcute/crypto-node
)readline
better-sqlite3
)node:net
)TelegramClient
implementation using the aboveimport { 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}`)
})
Generated using TypeDoc