Files
alina sireneva bfacb51b02 chore!: split close() method into disconnect() and destroy()
breaking: in most cases, you simply need to replace calls to .close() with calls to .destroy()
2025-05-24 18:56:47 +04:00
..
2025-04-16 14:33:41 +00:00
2024-07-26 06:46:18 +03:00
2024-08-24 22:55:25 +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}`)