chore(core): added deprecation notice for v1-2 session strings
This commit is contained in:
parent
4cc96a843d
commit
f24f41b646
1 changed files with 9 additions and 0 deletions
|
@ -66,6 +66,15 @@ export function readStringSession(readerMap: TlReaderMap, data: string): StringS
|
||||||
throw new Error(`Invalid session string (version = ${version})`)
|
throw new Error(`Invalid session string (version = ${version})`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (version < 3) {
|
||||||
|
console.warn(
|
||||||
|
`You are using a deprecated session string (${data.slice(
|
||||||
|
0,
|
||||||
|
10,
|
||||||
|
)}...). Please update your session string, as it will stop working in the future.`,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
const reader = new TlBinaryReader(readerMap, buf, 1)
|
const reader = new TlBinaryReader(readerMap, buf, 1)
|
||||||
|
|
||||||
const flags = reader.int()
|
const flags = reader.int()
|
||||||
|
|
Loading…
Reference in a new issue