@mtcute/bun
v0.18.0-rc.5
Published
Meta-package for Bun
Downloads
497
Readme
@mtcute/bun
‼️ Experimental Bun support package for mtcute. Includes:
- SQLite storage (based on
bun:sqlite
) - TCP transport (based on Bun-native APIs)
TelegramClient
implementation using the above- HTML and Markdown parsers
Usage
import { TelegramClient } from '@mtcute/bun'
const tg = new TelegramClient({
apiId: 12345,
apiHash: 'abcdef',
storage: 'my-account'
})
const self = await tg.start()
console.log(`✨ logged in as ${self.displayName}`)