2022-08-24 23:37:26 +03:00
|
|
|
# @mtcute/sqlite
|
|
|
|
|
2023-11-01 14:05:45 +03:00
|
|
|
📖 [API Reference](https://ref.mtcute.dev/modules/_mtcute_sqlite.html)
|
|
|
|
|
|
|
|
SQLite backed storage for mtcute, built with `better-sqlite3`
|
2022-08-24 23:37:26 +03:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
import { SqliteStorage } from '@mtcute/sqlite'
|
|
|
|
|
|
|
|
const tg = new TelegramClient({
|
|
|
|
// ...
|
|
|
|
storage: new SqliteStorage('client.session')
|
|
|
|
})
|
|
|
|
```
|