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