mtcute/packages/deno
2024-12-28 11:25:22 +03:00
..
src chore: bumped @antfu/eslint-config + reformat 2024-12-03 09:55:37 +03:00
build.config.js build: bumped typedoc and moved to fuman-build typedoc 2024-12-28 11:25:22 +03:00
package.json chore: bumped fuman 2024-12-28 10:55:01 +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/deno

📖 API Reference

‼️ Experimental Deno support package for mtcute. Includes:

  • SQLite storage (based on @db/sqlite)
  • TCP transport (based on Deno-native APIs)
  • TelegramClient implementation using the above
  • HTML and Markdown parsers

Usage

import { TelegramClient } from '@mtcute/deno'

const tg = new TelegramClient({
    apiId: 12345,
    apiHash: 'abcdef',
    storage: 'my-account'
})

const self = await tg.start()
console.log(`✨ logged in as ${self.displayName}`)