@mtcute/bun
TypeScript icon, indicating that this package has built-in type declarations

0.12.0 • Public • Published

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

tg.run(async (user) => {
    console.log(`✨ logged in as ${user.displayName}`)
})

Readme

Keywords

none

Package Sidebar

Install

npm i @mtcute/bun

Weekly Downloads

13

Version

0.12.0

License

MIT

Unpacked Size

79.5 kB

Total Files

51

Last publish

Collaborators

  • teidesu