Fix convertFromTdata example

This commit is contained in:
Полина
2025-03-24 02:36:01 +03:00
committed by alina sireneva
parent 20bb55cced
commit b85c94762a

View File

@@ -71,7 +71,7 @@ await client.importSession(convertFromMtkrutoSession("..."))
import { convertFromTdata } from '@mtcute/convert'
const client = new TelegramClient({ ... })
await client.importSession(convertFromTdata({
await client.importSession(await convertFromTdata({
path: '/path/to/tdata',
ignoreVersion: true // note: this might break
// passcode: '123456' // if you have a passcode