mtcute/packages/bun
alina sireneva 1c53bd7a71
All checks were successful
Tests / test-deno (push) Successful in 1m40s
Tests / test-node (node20) (push) Successful in 1m49s
Tests / test-bun (push) Successful in 1m47s
Tests / test-node (node18) (push) Successful in 1m54s
Tests / test-node (node22) (push) Successful in 1m52s
Tests / test-web (chromium) (push) Successful in 1m47s
Tests / test-web (firefox) (push) Successful in 1m4s
Docs / build (push) Successful in 6m2s
Tests / lint (push) Successful in 6m44s
Tests / e2e-deno (push) Successful in 58s
Tests / e2e (push) Successful in 49s
build: bumped fuman
2025-01-05 16:56:25 +03:00
..
src fix: fixed deno types and build 2025-01-01 21:55:42 +03:00
build.config.js build: bumped typedoc and moved to fuman-build typedoc 2024-12-28 11:25:22 +03:00
package.json build: bumped fuman 2025-01-05 16:56:25 +03: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

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