tdweb: 1.6.6
GitOrigin-RevId: 57b05b06d523e9f3e962072b497347a07aa53b39
This commit is contained in:
parent
b1419f9de5
commit
d60dc8c9b3
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tdweb",
|
||||
"version": "1.6.0",
|
||||
"version": "1.6.6",
|
||||
"description": "Javascript interface for TDLib (telegram library)",
|
||||
"main": "dist/tdweb.js",
|
||||
"repository": {
|
||||
|
@ -774,8 +774,8 @@ class TdClient {
|
||||
try {
|
||||
//const file_size = this.FS.stat(query.path).size;
|
||||
const stream = this.FS.open(query.path, 'r');
|
||||
const buf = new Uint8Array(query.size);
|
||||
this.FS.read(stream, buf, 0, query.size, query.offset);
|
||||
const buf = new Uint8Array(query.count);
|
||||
this.FS.read(stream, buf, 0, query.count, query.offset);
|
||||
this.FS.close(stream);
|
||||
res = buf;
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user