mtcute/packages/deno
2024-04-28 23:06:33 +03:00
..
src feat: initial deno support 2024-04-28 23:06:33 +03:00
build.config.cjs feat: initial deno support 2024-04-28 23:06:33 +03:00
package.json feat: initial deno support 2024-04-28 23:06:33 +03:00
README.md feat: initial deno support 2024-04-28 23:06:33 +03:00
tsconfig.json feat: initial deno support 2024-04-28 23:06:33 +03:00
typedoc.cjs feat: initial deno support 2024-04-28 23:06:33 +03:00

@mtcute/bun

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