Skip to main content

@mtcute/deno@0.13.0
Built and signed on GitHub Actions

[⚠️ Experimental] Deno support package for mtcute.

This package works with Deno
JSR Score
70%
Published
2 weeks ago (0.13.0)

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

tg.run(async (user) => {
    console.log(`✨ logged in as ${user.displayName}`)
})
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @mtcute/deno

Import symbol

import * as mod from "@mtcute/deno";