.. | ||
src | ||
build.config.cjs | ||
package.json | ||
README.md | ||
tsconfig.json | ||
typedoc.cjs |
@mtcute/bun
‼️ 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}`)
})