Skip to content

Commit

Permalink
tdweb: 1.6.6
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 57b05b06d523e9f3e962072b497347a07aa53b39
  • Loading branch information
arseny30 committed Jun 7, 2020
1 parent b1419f9 commit d60dc8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/web/tdweb/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions example/web/tdweb/src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d60dc8c

Please sign in to comment.