mtcute/packages/bun
2024-09-29 04:13:48 +03:00
..
src chore: initial migration to fuman networking 2024-09-29 04:13:48 +03:00
build.config.js build: build with vite (initial) 2024-08-24 22:55:25 +03:00
package.json v0.16.9 2024-09-07 21:55:41 +00:00
README.md chore: deprecated .run method 2024-07-26 06:46:18 +03:00
tsconfig.json build: build with vite (initial) 2024-08-24 22:55:25 +03:00
typedoc.cjs feat: @mtcute/bun package for initial first-class bun support 2024-03-23 18:13:31 +03:00

@mtcute/bun

📖 API Reference

‼️ 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}`)