mtcute/packages/sqlite
Alina Sireneva f525c12f83
fix: auth storage fixes
- .reset() no longer resets auth keys by default
- auth keys are stored immediately in sqlite
- update loop fixes for logout
- tests for sqlite storage

likely closes #13 (?)
2023-11-12 07:51:30 +03:00
..
src fix: auth storage fixes 2023-11-12 07:51:30 +03:00
test fix: auth storage fixes 2023-11-12 07:51:30 +03:00
package.json fix: auth storage fixes 2023-11-12 07:51:30 +03:00
README.md docs: updated packages readmes 2023-11-01 14:05:45 +03:00
tsconfig.json fix: auth storage fixes 2023-11-12 07:51:30 +03:00
typedoc.cjs fix: auth storage fixes 2023-11-12 07:51:30 +03:00

@mtcute/sqlite

📖 API Reference

SQLite backed storage for mtcute, built with better-sqlite3

Usage

import { SqliteStorage } from '@mtcute/sqlite'

const tg = new TelegramClient({
    // ...
    storage: new SqliteStorage('client.session')
})