Documentation - v0.27.1
    Preparing search index...

    Module @mtcute/bun

    @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
    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}`)

    Modules

    index
    methods
    utils