@mtcute/core 0.27.0 → 0.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.cjs +12 -0
- package/client.js +13 -1
- package/highlevel/client.d.cts +131 -90
- package/highlevel/client.d.ts +131 -90
- package/highlevel/client.test.d.cts +1 -0
- package/highlevel/client.test.d.ts +1 -0
- package/highlevel/methods/auth/start.d.cts +3 -3
- package/highlevel/methods/auth/start.d.ts +3 -3
- package/highlevel/methods/contacts/set-contact-note.cjs +21 -0
- package/highlevel/methods/contacts/set-contact-note.js +16 -0
- package/highlevel/methods/files/download-chunk.cjs +63 -0
- package/highlevel/methods/files/download-chunk.d.cts +29 -0
- package/highlevel/methods/files/download-chunk.d.ts +29 -0
- package/highlevel/methods/files/download-chunk.js +58 -0
- package/highlevel/methods/files/download-chunk.test.d.cts +1 -0
- package/highlevel/methods/files/download-chunk.test.d.ts +1 -0
- package/highlevel/methods/files/download-iterable.cjs +40 -23
- package/highlevel/methods/files/download-iterable.d.cts +6 -0
- package/highlevel/methods/files/download-iterable.d.ts +6 -0
- package/highlevel/methods/files/download-iterable.js +34 -17
- package/highlevel/methods/forums/reorder-pinned-forum-topics.cjs +2 -2
- package/highlevel/methods/forums/reorder-pinned-forum-topics.js +3 -3
- package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +2 -2
- package/highlevel/methods/forums/toggle-forum-topic-closed.js +3 -3
- package/highlevel/methods/forums/toggle-forum-topic-pinned.cjs +2 -2
- package/highlevel/methods/forums/toggle-forum-topic-pinned.js +3 -3
- package/highlevel/methods.d.cts +3 -0
- package/highlevel/methods.d.ts +3 -0
- package/highlevel/types/premium/star-gift.cjs +5 -1
- package/highlevel/types/premium/star-gift.d.cts +3 -1
- package/highlevel/types/premium/star-gift.d.ts +3 -1
- package/highlevel/types/premium/star-gift.js +5 -1
- package/methods.cjs +5 -0
- package/methods.js +6 -1
- package/network/network-manager.cjs +1 -1
- package/network/network-manager.js +1 -1
- package/package.json +2 -2
- package/utils/binary/compat.cjs +29 -0
- package/utils/binary/compat.js +29 -0
package/client.cjs
CHANGED
|
@@ -89,6 +89,7 @@ const addContact = require("./highlevel/methods/contacts/add-contact.cjs");
|
|
|
89
89
|
const deleteContacts = require("./highlevel/methods/contacts/delete-contacts.cjs");
|
|
90
90
|
const getContacts = require("./highlevel/methods/contacts/get-contacts.cjs");
|
|
91
91
|
const importContacts = require("./highlevel/methods/contacts/import-contacts.cjs");
|
|
92
|
+
const setContactNote = require("./highlevel/methods/contacts/set-contact-note.cjs");
|
|
92
93
|
const createFolder = require("./highlevel/methods/dialogs/create-folder.cjs");
|
|
93
94
|
const deleteFolder = require("./highlevel/methods/dialogs/delete-folder.cjs");
|
|
94
95
|
const editFolder = require("./highlevel/methods/dialogs/edit-folder.cjs");
|
|
@@ -101,6 +102,7 @@ const iterDialogs = require("./highlevel/methods/dialogs/iter-dialogs.cjs");
|
|
|
101
102
|
const joinChatlist = require("./highlevel/methods/dialogs/join-chatlist.cjs");
|
|
102
103
|
const setFoldersOrder = require("./highlevel/methods/dialogs/set-folders-order.cjs");
|
|
103
104
|
const downloadBuffer = require("./highlevel/methods/files/download-buffer.cjs");
|
|
105
|
+
const downloadChunk = require("./highlevel/methods/files/download-chunk.cjs");
|
|
104
106
|
const downloadIterable = require("./highlevel/methods/files/download-iterable.cjs");
|
|
105
107
|
const downloadStream = require("./highlevel/methods/files/download-stream.cjs");
|
|
106
108
|
const normalizeInputFile = require("./highlevel/methods/files/normalize-input-file.cjs");
|
|
@@ -330,6 +332,7 @@ class TelegramClient {
|
|
|
330
332
|
Object.defineProperty(this, "timers", { value: this._client.timers });
|
|
331
333
|
Object.defineProperty(this, "stopSignal", { value: this._client.stopSignal });
|
|
332
334
|
Object.defineProperty(this, "appConfig", { value: this._client.appConfig });
|
|
335
|
+
Object.defineProperty(this, "platform", { value: this._client.platform });
|
|
333
336
|
Object.defineProperty(this, "onServerUpdate", { value: this._client.onServerUpdate });
|
|
334
337
|
Object.defineProperty(this, "onRawUpdate", { value: this._client.onRawUpdate });
|
|
335
338
|
Object.defineProperty(this, "onConnectionState", { value: this._client.onConnectionState });
|
|
@@ -702,6 +705,9 @@ TelegramClient.prototype.getContacts = function(...args) {
|
|
|
702
705
|
TelegramClient.prototype.importContacts = function(...args) {
|
|
703
706
|
return importContacts.importContacts(this._client, ...args);
|
|
704
707
|
};
|
|
708
|
+
TelegramClient.prototype.setContactNote = function(...args) {
|
|
709
|
+
return setContactNote.setContactNote(this._client, ...args);
|
|
710
|
+
};
|
|
705
711
|
TelegramClient.prototype.createFolder = function(...args) {
|
|
706
712
|
return createFolder.createFolder(this._client, ...args);
|
|
707
713
|
};
|
|
@@ -738,6 +744,12 @@ TelegramClient.prototype.setFoldersOrder = function(...args) {
|
|
|
738
744
|
TelegramClient.prototype.downloadAsBuffer = function(...args) {
|
|
739
745
|
return downloadBuffer.downloadAsBuffer(this._client, ...args);
|
|
740
746
|
};
|
|
747
|
+
TelegramClient.prototype.downloadChunk = function(...args) {
|
|
748
|
+
return downloadChunk.downloadChunk(this._client, ...args);
|
|
749
|
+
};
|
|
750
|
+
TelegramClient.prototype._normalizeFileDownloadLocation = function(...args) {
|
|
751
|
+
return downloadIterable._normalizeFileDownloadLocation(this._client, ...args);
|
|
752
|
+
};
|
|
741
753
|
TelegramClient.prototype.downloadAsIterable = function(...args) {
|
|
742
754
|
return downloadIterable.downloadAsIterable(this._client, ...args);
|
|
743
755
|
};
|
package/client.js
CHANGED
|
@@ -82,6 +82,7 @@ import { addContact } from "./highlevel/methods/contacts/add-contact.js";
|
|
|
82
82
|
import { deleteContacts } from "./highlevel/methods/contacts/delete-contacts.js";
|
|
83
83
|
import { getContacts } from "./highlevel/methods/contacts/get-contacts.js";
|
|
84
84
|
import { importContacts } from "./highlevel/methods/contacts/import-contacts.js";
|
|
85
|
+
import { setContactNote } from "./highlevel/methods/contacts/set-contact-note.js";
|
|
85
86
|
import { createFolder } from "./highlevel/methods/dialogs/create-folder.js";
|
|
86
87
|
import { deleteFolder } from "./highlevel/methods/dialogs/delete-folder.js";
|
|
87
88
|
import { editFolder } from "./highlevel/methods/dialogs/edit-folder.js";
|
|
@@ -94,7 +95,8 @@ import { iterDialogs } from "./highlevel/methods/dialogs/iter-dialogs.js";
|
|
|
94
95
|
import { joinChatlist } from "./highlevel/methods/dialogs/join-chatlist.js";
|
|
95
96
|
import { setFoldersOrder } from "./highlevel/methods/dialogs/set-folders-order.js";
|
|
96
97
|
import { downloadAsBuffer } from "./highlevel/methods/files/download-buffer.js";
|
|
97
|
-
import {
|
|
98
|
+
import { downloadChunk } from "./highlevel/methods/files/download-chunk.js";
|
|
99
|
+
import { _normalizeFileDownloadLocation, downloadAsIterable } from "./highlevel/methods/files/download-iterable.js";
|
|
98
100
|
import { downloadAsStream } from "./highlevel/methods/files/download-stream.js";
|
|
99
101
|
import { _normalizeInputFile } from "./highlevel/methods/files/normalize-input-file.js";
|
|
100
102
|
import { _normalizeInputMedia } from "./highlevel/methods/files/normalize-input-media.js";
|
|
@@ -323,6 +325,7 @@ class TelegramClient {
|
|
|
323
325
|
Object.defineProperty(this, "timers", { value: this._client.timers });
|
|
324
326
|
Object.defineProperty(this, "stopSignal", { value: this._client.stopSignal });
|
|
325
327
|
Object.defineProperty(this, "appConfig", { value: this._client.appConfig });
|
|
328
|
+
Object.defineProperty(this, "platform", { value: this._client.platform });
|
|
326
329
|
Object.defineProperty(this, "onServerUpdate", { value: this._client.onServerUpdate });
|
|
327
330
|
Object.defineProperty(this, "onRawUpdate", { value: this._client.onRawUpdate });
|
|
328
331
|
Object.defineProperty(this, "onConnectionState", { value: this._client.onConnectionState });
|
|
@@ -695,6 +698,9 @@ TelegramClient.prototype.getContacts = function(...args) {
|
|
|
695
698
|
TelegramClient.prototype.importContacts = function(...args) {
|
|
696
699
|
return importContacts(this._client, ...args);
|
|
697
700
|
};
|
|
701
|
+
TelegramClient.prototype.setContactNote = function(...args) {
|
|
702
|
+
return setContactNote(this._client, ...args);
|
|
703
|
+
};
|
|
698
704
|
TelegramClient.prototype.createFolder = function(...args) {
|
|
699
705
|
return createFolder(this._client, ...args);
|
|
700
706
|
};
|
|
@@ -731,6 +737,12 @@ TelegramClient.prototype.setFoldersOrder = function(...args) {
|
|
|
731
737
|
TelegramClient.prototype.downloadAsBuffer = function(...args) {
|
|
732
738
|
return downloadAsBuffer(this._client, ...args);
|
|
733
739
|
};
|
|
740
|
+
TelegramClient.prototype.downloadChunk = function(...args) {
|
|
741
|
+
return downloadChunk(this._client, ...args);
|
|
742
|
+
};
|
|
743
|
+
TelegramClient.prototype._normalizeFileDownloadLocation = function(...args) {
|
|
744
|
+
return _normalizeFileDownloadLocation(this._client, ...args);
|
|
745
|
+
};
|
|
734
746
|
TelegramClient.prototype.downloadAsIterable = function(...args) {
|
|
735
747
|
return downloadAsIterable(this._client, ...args);
|
|
736
748
|
};
|