latest
mtcute/mtcute[⚠️ Experimental] Deno support package for mtcute.
@mtcute/deno
‼️ 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}`)
Add Package
deno add jsr:@mtcute/deno
Import symbol
import * as deno from "@mtcute/deno";
Import directly with a jsr specifier
import * as deno from "jsr:@mtcute/deno";