mtcute/packages/deno
2024-04-29 22:09:56 +03:00
..
src test(e2e-deno): use @mtcute/deno in tests 2024-04-29 22:09:56 +03:00
build.config.cjs test(e2e-deno): populate packages from upstream 2024-04-29 04:56:32 +03:00
package.json feat: initial deno support 2024-04-28 23:06:33 +03:00
README.md docs: fixed some namings 2024-04-29 16:42:58 +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/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}`)
})