mtcute/packages/deno
2024-08-24 22:55:25 +03:00
..
src fix(deno): correctly handle reconnection 2024-08-21 23:28:04 +03:00
build.config.cjs test(e2e-deno): populate packages from upstream 2024-04-29 04:56:32 +03:00
package.json v0.16.8 2024-08-21 20:47:54 +00: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
typedoc.cjs feat: initial deno support 2024-04-28 23:06:33 +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}`)