tdweb: 1.6.6

GitOrigin-RevId: 57b05b06d523e9f3e962072b497347a07aa53b39
This commit is contained in:
Arseny Smirnov 2020-06-07 18:20:32 +03:00
parent b1419f9de5
commit d60dc8c9b3
2 changed files with 3 additions and 3 deletions

View File

@ -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": {

View File

@ -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) {