@mtcute/core 0.27.1 → 0.27.3
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 +92 -68
- package/client.js +93 -69
- package/highlevel/base.cjs +4 -0
- package/highlevel/base.d.cts +1 -0
- package/highlevel/base.d.ts +1 -0
- package/highlevel/base.js +4 -0
- package/highlevel/client.d.cts +497 -412
- package/highlevel/client.d.ts +497 -412
- package/highlevel/client.test.d.cts +1 -0
- package/highlevel/client.test.d.ts +1 -0
- 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 +39 -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 +33 -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/gifts/get-star-gift-upgrade-options.cjs +30 -0
- package/highlevel/methods/gifts/get-star-gift-upgrade-options.d.cts +12 -0
- package/highlevel/methods/gifts/get-star-gift-upgrade-options.d.ts +12 -0
- package/highlevel/methods/gifts/get-star-gift-upgrade-options.js +25 -0
- package/highlevel/methods/gifts/resolve-star-gift-offer.cjs +17 -0
- package/highlevel/methods/gifts/resolve-star-gift-offer.d.cts +18 -0
- package/highlevel/methods/gifts/resolve-star-gift-offer.d.ts +18 -0
- package/highlevel/methods/gifts/resolve-star-gift-offer.js +12 -0
- package/highlevel/methods/gifts/send-star-gift-offer.cjs +26 -0
- package/highlevel/methods/gifts/send-star-gift-offer.d.cts +26 -0
- package/highlevel/methods/gifts/send-star-gift-offer.d.ts +26 -0
- package/highlevel/methods/gifts/send-star-gift-offer.js +21 -0
- package/highlevel/methods/{premium → gifts}/set-gift-resale-price.cjs +2 -5
- package/highlevel/methods/{premium → gifts}/set-gift-resale-price.d.cts +2 -2
- package/highlevel/methods/{premium → gifts}/set-gift-resale-price.d.ts +2 -2
- package/highlevel/methods/{premium → gifts}/set-gift-resale-price.js +2 -5
- package/highlevel/methods/premium/_normalize-stars-amount.cjs +18 -0
- package/highlevel/methods/premium/_normalize-stars-amount.d.cts +12 -0
- package/highlevel/methods/premium/_normalize-stars-amount.d.ts +12 -0
- package/highlevel/methods/premium/_normalize-stars-amount.js +13 -0
- package/highlevel/methods.d.cts +26 -18
- package/highlevel/methods.d.ts +26 -18
- package/highlevel/types/messages/message-action.cjs +27 -4
- package/highlevel/types/messages/message-action.d.cts +28 -1
- package/highlevel/types/messages/message-action.d.ts +28 -1
- package/highlevel/types/messages/message-action.js +27 -4
- package/highlevel/types/premium/saved-star-gift.cjs +4 -0
- package/highlevel/types/premium/saved-star-gift.d.cts +2 -0
- package/highlevel/types/premium/saved-star-gift.d.ts +2 -0
- package/highlevel/types/premium/saved-star-gift.js +4 -0
- package/highlevel/types/premium/star-gift-unique.cjs +8 -0
- package/highlevel/types/premium/star-gift-unique.d.cts +4 -0
- package/highlevel/types/premium/star-gift-unique.d.ts +4 -0
- package/highlevel/types/premium/star-gift-unique.js +8 -0
- package/highlevel/types/premium/star-gift.cjs +17 -4
- package/highlevel/types/premium/star-gift.d.cts +8 -1
- package/highlevel/types/premium/star-gift.d.ts +8 -1
- package/highlevel/types/premium/star-gift.js +17 -4
- package/highlevel/types/premium/stars-transaction.cjs +6 -0
- package/highlevel/types/premium/stars-transaction.d.cts +6 -0
- package/highlevel/types/premium/stars-transaction.d.ts +6 -0
- package/highlevel/types/premium/stars-transaction.js +6 -0
- package/highlevel/updates/manager.cjs +7 -0
- package/highlevel/updates/manager.js +7 -0
- package/methods.cjs +45 -34
- package/methods.js +29 -18
- package/network/middlewares/internal-errors.cjs +5 -0
- package/network/middlewares/internal-errors.js +5 -0
- package/network/network-manager.cjs +1 -1
- package/network/network-manager.js +1 -1
- package/package.json +2 -2
- package/utils/binary/compat.cjs +12 -0
- package/utils/binary/compat.js +12 -0
- /package/highlevel/methods/{premium → gifts}/_normalize-input-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/_normalize-input-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/_normalize-input-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/_normalize-input-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/accept-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/accept-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/accept-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/accept-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/buy-resale-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/buy-resale-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/buy-resale-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/buy-resale-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-resale-star-gifts.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-resale-star-gifts.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-resale-star-gifts.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-resale-star-gifts.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts-by-id.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts-by-id.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts-by-id.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts-by-id.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-options.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-options.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-options.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-options.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-value.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-value.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-value.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-value.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-withdrawal-url.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-withdrawal-url.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-withdrawal-url.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-withdrawal-url.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-unique-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-unique-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-unique-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-unique-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/iter-saved-star-gifts.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/iter-saved-star-gifts.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/iter-saved-star-gifts.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/iter-saved-star-gifts.js +0 -0
- /package/highlevel/methods/{premium → gifts}/pin-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/pin-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/pin-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/pin-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/prepay-star-gift-upgrade.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/prepay-star-gift-upgrade.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/prepay-star-gift-upgrade.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/prepay-star-gift-upgrade.js +0 -0
- /package/highlevel/methods/{premium → gifts}/send-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/send-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/send-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/send-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/transfer-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/transfer-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/transfer-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/transfer-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/upgrade-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/upgrade-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/upgrade-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/upgrade-star-gift.js +0 -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");
|
|
@@ -118,6 +120,26 @@ const toggleForumTopicClosed = require("./highlevel/methods/forums/toggle-forum-
|
|
|
118
120
|
const toggleForumTopicPinned = require("./highlevel/methods/forums/toggle-forum-topic-pinned.cjs");
|
|
119
121
|
const toggleForum = require("./highlevel/methods/forums/toggle-forum.cjs");
|
|
120
122
|
const toggleGeneralTopicHidden = require("./highlevel/methods/forums/toggle-general-topic-hidden.cjs");
|
|
123
|
+
const _normalizeInputStarGift = require("./highlevel/methods/gifts/_normalize-input-star-gift.cjs");
|
|
124
|
+
const acceptStarGift = require("./highlevel/methods/gifts/accept-star-gift.cjs");
|
|
125
|
+
const buyResaleGift = require("./highlevel/methods/gifts/buy-resale-gift.cjs");
|
|
126
|
+
const getResaleStarGifts = require("./highlevel/methods/gifts/get-resale-star-gifts.cjs");
|
|
127
|
+
const getSavedStarGiftsById = require("./highlevel/methods/gifts/get-saved-star-gifts-by-id.cjs");
|
|
128
|
+
const getSavedStarGifts = require("./highlevel/methods/gifts/get-saved-star-gifts.cjs");
|
|
129
|
+
const getStarGiftOptions = require("./highlevel/methods/gifts/get-star-gift-options.cjs");
|
|
130
|
+
const getStarGiftUpgradeOptions = require("./highlevel/methods/gifts/get-star-gift-upgrade-options.cjs");
|
|
131
|
+
const getStarGiftValue = require("./highlevel/methods/gifts/get-star-gift-value.cjs");
|
|
132
|
+
const getStarGiftWithdrawalUrl = require("./highlevel/methods/gifts/get-star-gift-withdrawal-url.cjs");
|
|
133
|
+
const getUniqueStarGift = require("./highlevel/methods/gifts/get-unique-star-gift.cjs");
|
|
134
|
+
const iterSavedStarGifts = require("./highlevel/methods/gifts/iter-saved-star-gifts.cjs");
|
|
135
|
+
const pinStarGift = require("./highlevel/methods/gifts/pin-star-gift.cjs");
|
|
136
|
+
const prepayStarGiftUpgrade = require("./highlevel/methods/gifts/prepay-star-gift-upgrade.cjs");
|
|
137
|
+
const resolveStarGiftOffer = require("./highlevel/methods/gifts/resolve-star-gift-offer.cjs");
|
|
138
|
+
const sendStarGiftOffer = require("./highlevel/methods/gifts/send-star-gift-offer.cjs");
|
|
139
|
+
const sendStarGift = require("./highlevel/methods/gifts/send-star-gift.cjs");
|
|
140
|
+
const setGiftResalePrice = require("./highlevel/methods/gifts/set-gift-resale-price.cjs");
|
|
141
|
+
const transferStarGift = require("./highlevel/methods/gifts/transfer-star-gift.cjs");
|
|
142
|
+
const upgradeStarGift = require("./highlevel/methods/gifts/upgrade-star-gift.cjs");
|
|
121
143
|
const createInviteLink = require("./highlevel/methods/invite-links/create-invite-link.cjs");
|
|
122
144
|
const editInviteLink = require("./highlevel/methods/invite-links/edit-invite-link.cjs");
|
|
123
145
|
const exportInviteLink = require("./highlevel/methods/invite-links/export-invite-link.cjs");
|
|
@@ -191,10 +213,7 @@ const changeCloudPassword = require("./highlevel/methods/password/change-cloud-p
|
|
|
191
213
|
const enableCloudPassword = require("./highlevel/methods/password/enable-cloud-password.cjs");
|
|
192
214
|
const passwordEmail = require("./highlevel/methods/password/password-email.cjs");
|
|
193
215
|
const removeCloudPassword = require("./highlevel/methods/password/remove-cloud-password.cjs");
|
|
194
|
-
const _normalizeInputStarGift = require("./highlevel/methods/premium/_normalize-input-star-gift.cjs");
|
|
195
|
-
const acceptStarGift = require("./highlevel/methods/premium/accept-star-gift.cjs");
|
|
196
216
|
const applyBoost = require("./highlevel/methods/premium/apply-boost.cjs");
|
|
197
|
-
const buyResaleGift = require("./highlevel/methods/premium/buy-resale-gift.cjs");
|
|
198
217
|
const canApplyBoost = require("./highlevel/methods/premium/can-apply-boost.cjs");
|
|
199
218
|
const createBusinessChatLink = require("./highlevel/methods/premium/create-business-chat-link.cjs");
|
|
200
219
|
const editBusinessChatLink = require("./highlevel/methods/premium/edit-business-chat-link.cjs");
|
|
@@ -203,25 +222,11 @@ const getBoosts = require("./highlevel/methods/premium/get-boosts.cjs");
|
|
|
203
222
|
const getBusinessChatLinks = require("./highlevel/methods/premium/get-business-chat-links.cjs");
|
|
204
223
|
const getBusinessConnection = require("./highlevel/methods/premium/get-business-connection.cjs");
|
|
205
224
|
const getMyBoostSlots = require("./highlevel/methods/premium/get-my-boost-slots.cjs");
|
|
206
|
-
const getResaleStarGifts = require("./highlevel/methods/premium/get-resale-star-gifts.cjs");
|
|
207
|
-
const getSavedStarGiftsById = require("./highlevel/methods/premium/get-saved-star-gifts-by-id.cjs");
|
|
208
|
-
const getSavedStarGifts = require("./highlevel/methods/premium/get-saved-star-gifts.cjs");
|
|
209
|
-
const getStarGiftOptions = require("./highlevel/methods/premium/get-star-gift-options.cjs");
|
|
210
|
-
const getStarGiftValue = require("./highlevel/methods/premium/get-star-gift-value.cjs");
|
|
211
|
-
const getStarGiftWithdrawalUrl = require("./highlevel/methods/premium/get-star-gift-withdrawal-url.cjs");
|
|
212
225
|
const getStarsTransactions = require("./highlevel/methods/premium/get-stars-transactions.cjs");
|
|
213
|
-
const getUniqueStarGift = require("./highlevel/methods/premium/get-unique-star-gift.cjs");
|
|
214
226
|
const iterBoosters = require("./highlevel/methods/premium/iter-boosters.cjs");
|
|
215
|
-
const iterSavedStarGifts = require("./highlevel/methods/premium/iter-saved-star-gifts.cjs");
|
|
216
227
|
const iterStarsTransactions = require("./highlevel/methods/premium/iter-stars-transactions.cjs");
|
|
217
|
-
const pinStarGift = require("./highlevel/methods/premium/pin-star-gift.cjs");
|
|
218
|
-
const prepayStarGiftUpgrade = require("./highlevel/methods/premium/prepay-star-gift-upgrade.cjs");
|
|
219
|
-
const sendStarGift = require("./highlevel/methods/premium/send-star-gift.cjs");
|
|
220
228
|
const setBusinessIntro = require("./highlevel/methods/premium/set-business-intro.cjs");
|
|
221
229
|
const setBusinessWorkHours = require("./highlevel/methods/premium/set-business-work-hours.cjs");
|
|
222
|
-
const setGiftResalePrice = require("./highlevel/methods/premium/set-gift-resale-price.cjs");
|
|
223
|
-
const transferStarGift = require("./highlevel/methods/premium/transfer-star-gift.cjs");
|
|
224
|
-
const upgradeStarGift = require("./highlevel/methods/premium/upgrade-star-gift.cjs");
|
|
225
230
|
const addStickerToSet = require("./highlevel/methods/stickers/add-sticker-to-set.cjs");
|
|
226
231
|
const createStickerSet = require("./highlevel/methods/stickers/create-sticker-set.cjs");
|
|
227
232
|
const deleteStickerFromSet = require("./highlevel/methods/stickers/delete-sticker-from-set.cjs");
|
|
@@ -330,6 +335,7 @@ class TelegramClient {
|
|
|
330
335
|
Object.defineProperty(this, "timers", { value: this._client.timers });
|
|
331
336
|
Object.defineProperty(this, "stopSignal", { value: this._client.stopSignal });
|
|
332
337
|
Object.defineProperty(this, "appConfig", { value: this._client.appConfig });
|
|
338
|
+
Object.defineProperty(this, "platform", { value: this._client.platform });
|
|
333
339
|
Object.defineProperty(this, "onServerUpdate", { value: this._client.onServerUpdate });
|
|
334
340
|
Object.defineProperty(this, "onRawUpdate", { value: this._client.onRawUpdate });
|
|
335
341
|
Object.defineProperty(this, "onConnectionState", { value: this._client.onConnectionState });
|
|
@@ -702,6 +708,9 @@ TelegramClient.prototype.getContacts = function(...args) {
|
|
|
702
708
|
TelegramClient.prototype.importContacts = function(...args) {
|
|
703
709
|
return importContacts.importContacts(this._client, ...args);
|
|
704
710
|
};
|
|
711
|
+
TelegramClient.prototype.setContactNote = function(...args) {
|
|
712
|
+
return setContactNote.setContactNote(this._client, ...args);
|
|
713
|
+
};
|
|
705
714
|
TelegramClient.prototype.createFolder = function(...args) {
|
|
706
715
|
return createFolder.createFolder(this._client, ...args);
|
|
707
716
|
};
|
|
@@ -738,6 +747,12 @@ TelegramClient.prototype.setFoldersOrder = function(...args) {
|
|
|
738
747
|
TelegramClient.prototype.downloadAsBuffer = function(...args) {
|
|
739
748
|
return downloadBuffer.downloadAsBuffer(this._client, ...args);
|
|
740
749
|
};
|
|
750
|
+
TelegramClient.prototype.downloadChunk = function(...args) {
|
|
751
|
+
return downloadChunk.downloadChunk(this._client, ...args);
|
|
752
|
+
};
|
|
753
|
+
TelegramClient.prototype._normalizeFileDownloadLocation = function(...args) {
|
|
754
|
+
return downloadIterable._normalizeFileDownloadLocation(this._client, ...args);
|
|
755
|
+
};
|
|
741
756
|
TelegramClient.prototype.downloadAsIterable = function(...args) {
|
|
742
757
|
return downloadIterable.downloadAsIterable(this._client, ...args);
|
|
743
758
|
};
|
|
@@ -789,6 +804,66 @@ TelegramClient.prototype.updateForumSettings = function(...args) {
|
|
|
789
804
|
TelegramClient.prototype.toggleGeneralTopicHidden = function(...args) {
|
|
790
805
|
return toggleGeneralTopicHidden.toggleGeneralTopicHidden(this._client, ...args);
|
|
791
806
|
};
|
|
807
|
+
TelegramClient.prototype._normalizeInputStarGift = function(...args) {
|
|
808
|
+
return _normalizeInputStarGift._normalizeInputStarGift(this._client, ...args);
|
|
809
|
+
};
|
|
810
|
+
TelegramClient.prototype.acceptStarGift = function(...args) {
|
|
811
|
+
return acceptStarGift.acceptStarGift(this._client, ...args);
|
|
812
|
+
};
|
|
813
|
+
TelegramClient.prototype.buyResaleGift = function(...args) {
|
|
814
|
+
return buyResaleGift.buyResaleGift(this._client, ...args);
|
|
815
|
+
};
|
|
816
|
+
TelegramClient.prototype.getStarGiftResaleOptions = function(...args) {
|
|
817
|
+
return getResaleStarGifts.getStarGiftResaleOptions(this._client, ...args);
|
|
818
|
+
};
|
|
819
|
+
TelegramClient.prototype.getSavedStarGiftsById = function(...args) {
|
|
820
|
+
return getSavedStarGiftsById.getSavedStarGiftsById(this._client, ...args);
|
|
821
|
+
};
|
|
822
|
+
TelegramClient.prototype.getSavedStarGifts = function(...args) {
|
|
823
|
+
return getSavedStarGifts.getSavedStarGifts(this._client, ...args);
|
|
824
|
+
};
|
|
825
|
+
TelegramClient.prototype.getStarGiftOptions = function(...args) {
|
|
826
|
+
return getStarGiftOptions.getStarGiftOptions(this._client, ...args);
|
|
827
|
+
};
|
|
828
|
+
TelegramClient.prototype.getStarGiftUpgradeOptions = function(...args) {
|
|
829
|
+
return getStarGiftUpgradeOptions.getStarGiftUpgradeOptions(this._client, ...args);
|
|
830
|
+
};
|
|
831
|
+
TelegramClient.prototype.getStarGiftValue = function(...args) {
|
|
832
|
+
return getStarGiftValue.getStarGiftValue(this._client, ...args);
|
|
833
|
+
};
|
|
834
|
+
TelegramClient.prototype.getStarGiftWithdrawalUrl = function(...args) {
|
|
835
|
+
return getStarGiftWithdrawalUrl.getStarGiftWithdrawalUrl(this._client, ...args);
|
|
836
|
+
};
|
|
837
|
+
TelegramClient.prototype.getUniqueStarGift = function(...args) {
|
|
838
|
+
return getUniqueStarGift.getUniqueStarGift(this._client, ...args);
|
|
839
|
+
};
|
|
840
|
+
TelegramClient.prototype.iterSavedStarGifts = function(...args) {
|
|
841
|
+
return iterSavedStarGifts.iterSavedStarGifts(this._client, ...args);
|
|
842
|
+
};
|
|
843
|
+
TelegramClient.prototype.togglePinnedStarGifts = function(...args) {
|
|
844
|
+
return pinStarGift.togglePinnedStarGifts(this._client, ...args);
|
|
845
|
+
};
|
|
846
|
+
TelegramClient.prototype.prepayStarGiftUpgrade = function(...args) {
|
|
847
|
+
return prepayStarGiftUpgrade.prepayStarGiftUpgrade(this._client, ...args);
|
|
848
|
+
};
|
|
849
|
+
TelegramClient.prototype.resolveStarGiftOffer = function(...args) {
|
|
850
|
+
return resolveStarGiftOffer.resolveStarGiftOffer(this._client, ...args);
|
|
851
|
+
};
|
|
852
|
+
TelegramClient.prototype.sendStarGiftOffer = function(...args) {
|
|
853
|
+
return sendStarGiftOffer.sendStarGiftOffer(this._client, ...args);
|
|
854
|
+
};
|
|
855
|
+
TelegramClient.prototype.sendStarGift = function(...args) {
|
|
856
|
+
return sendStarGift.sendStarGift(this._client, ...args);
|
|
857
|
+
};
|
|
858
|
+
TelegramClient.prototype.setResaleStarGiftPrice = function(...args) {
|
|
859
|
+
return setGiftResalePrice.setResaleStarGiftPrice(this._client, ...args);
|
|
860
|
+
};
|
|
861
|
+
TelegramClient.prototype.transferStarGift = function(...args) {
|
|
862
|
+
return transferStarGift.transferStarGift(this._client, ...args);
|
|
863
|
+
};
|
|
864
|
+
TelegramClient.prototype.upgradeStarGift = function(...args) {
|
|
865
|
+
return upgradeStarGift.upgradeStarGift(this._client, ...args);
|
|
866
|
+
};
|
|
792
867
|
TelegramClient.prototype.createInviteLink = function(...args) {
|
|
793
868
|
return createInviteLink.createInviteLink(this._client, ...args);
|
|
794
869
|
};
|
|
@@ -1047,18 +1122,9 @@ TelegramClient.prototype.cancelPasswordEmail = function(...args) {
|
|
|
1047
1122
|
TelegramClient.prototype.removeCloudPassword = function(...args) {
|
|
1048
1123
|
return removeCloudPassword.removeCloudPassword(this._client, ...args);
|
|
1049
1124
|
};
|
|
1050
|
-
TelegramClient.prototype._normalizeInputStarGift = function(...args) {
|
|
1051
|
-
return _normalizeInputStarGift._normalizeInputStarGift(this._client, ...args);
|
|
1052
|
-
};
|
|
1053
|
-
TelegramClient.prototype.acceptStarGift = function(...args) {
|
|
1054
|
-
return acceptStarGift.acceptStarGift(this._client, ...args);
|
|
1055
|
-
};
|
|
1056
1125
|
TelegramClient.prototype.applyBoost = function(...args) {
|
|
1057
1126
|
return applyBoost.applyBoost(this._client, ...args);
|
|
1058
1127
|
};
|
|
1059
|
-
TelegramClient.prototype.buyResaleGift = function(...args) {
|
|
1060
|
-
return buyResaleGift.buyResaleGift(this._client, ...args);
|
|
1061
|
-
};
|
|
1062
1128
|
TelegramClient.prototype.canApplyBoost = function(...args) {
|
|
1063
1129
|
return canApplyBoost.canApplyBoost(this._client, ...args);
|
|
1064
1130
|
};
|
|
@@ -1086,63 +1152,21 @@ TelegramClient.prototype.getBusinessConnection = function(...args) {
|
|
|
1086
1152
|
TelegramClient.prototype.getMyBoostSlots = function(...args) {
|
|
1087
1153
|
return getMyBoostSlots.getMyBoostSlots(this._client, ...args);
|
|
1088
1154
|
};
|
|
1089
|
-
TelegramClient.prototype.getStarGiftResaleOptions = function(...args) {
|
|
1090
|
-
return getResaleStarGifts.getStarGiftResaleOptions(this._client, ...args);
|
|
1091
|
-
};
|
|
1092
|
-
TelegramClient.prototype.getSavedStarGiftsById = function(...args) {
|
|
1093
|
-
return getSavedStarGiftsById.getSavedStarGiftsById(this._client, ...args);
|
|
1094
|
-
};
|
|
1095
|
-
TelegramClient.prototype.getSavedStarGifts = function(...args) {
|
|
1096
|
-
return getSavedStarGifts.getSavedStarGifts(this._client, ...args);
|
|
1097
|
-
};
|
|
1098
|
-
TelegramClient.prototype.getStarGiftOptions = function(...args) {
|
|
1099
|
-
return getStarGiftOptions.getStarGiftOptions(this._client, ...args);
|
|
1100
|
-
};
|
|
1101
|
-
TelegramClient.prototype.getStarGiftValue = function(...args) {
|
|
1102
|
-
return getStarGiftValue.getStarGiftValue(this._client, ...args);
|
|
1103
|
-
};
|
|
1104
|
-
TelegramClient.prototype.getStarGiftWithdrawalUrl = function(...args) {
|
|
1105
|
-
return getStarGiftWithdrawalUrl.getStarGiftWithdrawalUrl(this._client, ...args);
|
|
1106
|
-
};
|
|
1107
1155
|
TelegramClient.prototype.getStarsTransactions = function(...args) {
|
|
1108
1156
|
return getStarsTransactions.getStarsTransactions(this._client, ...args);
|
|
1109
1157
|
};
|
|
1110
|
-
TelegramClient.prototype.getUniqueStarGift = function(...args) {
|
|
1111
|
-
return getUniqueStarGift.getUniqueStarGift(this._client, ...args);
|
|
1112
|
-
};
|
|
1113
1158
|
TelegramClient.prototype.iterBoosters = function(...args) {
|
|
1114
1159
|
return iterBoosters.iterBoosters(this._client, ...args);
|
|
1115
1160
|
};
|
|
1116
|
-
TelegramClient.prototype.iterSavedStarGifts = function(...args) {
|
|
1117
|
-
return iterSavedStarGifts.iterSavedStarGifts(this._client, ...args);
|
|
1118
|
-
};
|
|
1119
1161
|
TelegramClient.prototype.iterStarsTransactions = function(...args) {
|
|
1120
1162
|
return iterStarsTransactions.iterStarsTransactions(this._client, ...args);
|
|
1121
1163
|
};
|
|
1122
|
-
TelegramClient.prototype.togglePinnedStarGifts = function(...args) {
|
|
1123
|
-
return pinStarGift.togglePinnedStarGifts(this._client, ...args);
|
|
1124
|
-
};
|
|
1125
|
-
TelegramClient.prototype.prepayStarGiftUpgrade = function(...args) {
|
|
1126
|
-
return prepayStarGiftUpgrade.prepayStarGiftUpgrade(this._client, ...args);
|
|
1127
|
-
};
|
|
1128
|
-
TelegramClient.prototype.sendStarGift = function(...args) {
|
|
1129
|
-
return sendStarGift.sendStarGift(this._client, ...args);
|
|
1130
|
-
};
|
|
1131
1164
|
TelegramClient.prototype.setBusinessIntro = function(...args) {
|
|
1132
1165
|
return setBusinessIntro.setBusinessIntro(this._client, ...args);
|
|
1133
1166
|
};
|
|
1134
1167
|
TelegramClient.prototype.setBusinessWorkHours = function(...args) {
|
|
1135
1168
|
return setBusinessWorkHours.setBusinessWorkHours(this._client, ...args);
|
|
1136
1169
|
};
|
|
1137
|
-
TelegramClient.prototype.setResaleStarGiftPrice = function(...args) {
|
|
1138
|
-
return setGiftResalePrice.setResaleStarGiftPrice(this._client, ...args);
|
|
1139
|
-
};
|
|
1140
|
-
TelegramClient.prototype.transferStarGift = function(...args) {
|
|
1141
|
-
return transferStarGift.transferStarGift(this._client, ...args);
|
|
1142
|
-
};
|
|
1143
|
-
TelegramClient.prototype.upgradeStarGift = function(...args) {
|
|
1144
|
-
return upgradeStarGift.upgradeStarGift(this._client, ...args);
|
|
1145
|
-
};
|
|
1146
1170
|
TelegramClient.prototype.addStickerToSet = function(...args) {
|
|
1147
1171
|
return addStickerToSet.addStickerToSet(this._client, ...args);
|
|
1148
1172
|
};
|
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";
|
|
@@ -111,6 +113,26 @@ import { toggleForumTopicClosed } from "./highlevel/methods/forums/toggle-forum-
|
|
|
111
113
|
import { toggleForumTopicPinned } from "./highlevel/methods/forums/toggle-forum-topic-pinned.js";
|
|
112
114
|
import { updateForumSettings } from "./highlevel/methods/forums/toggle-forum.js";
|
|
113
115
|
import { toggleGeneralTopicHidden } from "./highlevel/methods/forums/toggle-general-topic-hidden.js";
|
|
116
|
+
import { _normalizeInputStarGift } from "./highlevel/methods/gifts/_normalize-input-star-gift.js";
|
|
117
|
+
import { acceptStarGift } from "./highlevel/methods/gifts/accept-star-gift.js";
|
|
118
|
+
import { buyResaleGift } from "./highlevel/methods/gifts/buy-resale-gift.js";
|
|
119
|
+
import { getStarGiftResaleOptions } from "./highlevel/methods/gifts/get-resale-star-gifts.js";
|
|
120
|
+
import { getSavedStarGiftsById } from "./highlevel/methods/gifts/get-saved-star-gifts-by-id.js";
|
|
121
|
+
import { getSavedStarGifts } from "./highlevel/methods/gifts/get-saved-star-gifts.js";
|
|
122
|
+
import { getStarGiftOptions } from "./highlevel/methods/gifts/get-star-gift-options.js";
|
|
123
|
+
import { getStarGiftUpgradeOptions } from "./highlevel/methods/gifts/get-star-gift-upgrade-options.js";
|
|
124
|
+
import { getStarGiftValue } from "./highlevel/methods/gifts/get-star-gift-value.js";
|
|
125
|
+
import { getStarGiftWithdrawalUrl } from "./highlevel/methods/gifts/get-star-gift-withdrawal-url.js";
|
|
126
|
+
import { getUniqueStarGift } from "./highlevel/methods/gifts/get-unique-star-gift.js";
|
|
127
|
+
import { iterSavedStarGifts } from "./highlevel/methods/gifts/iter-saved-star-gifts.js";
|
|
128
|
+
import { togglePinnedStarGifts } from "./highlevel/methods/gifts/pin-star-gift.js";
|
|
129
|
+
import { prepayStarGiftUpgrade } from "./highlevel/methods/gifts/prepay-star-gift-upgrade.js";
|
|
130
|
+
import { resolveStarGiftOffer } from "./highlevel/methods/gifts/resolve-star-gift-offer.js";
|
|
131
|
+
import { sendStarGiftOffer } from "./highlevel/methods/gifts/send-star-gift-offer.js";
|
|
132
|
+
import { sendStarGift } from "./highlevel/methods/gifts/send-star-gift.js";
|
|
133
|
+
import { setResaleStarGiftPrice } from "./highlevel/methods/gifts/set-gift-resale-price.js";
|
|
134
|
+
import { transferStarGift } from "./highlevel/methods/gifts/transfer-star-gift.js";
|
|
135
|
+
import { upgradeStarGift } from "./highlevel/methods/gifts/upgrade-star-gift.js";
|
|
114
136
|
import { createInviteLink } from "./highlevel/methods/invite-links/create-invite-link.js";
|
|
115
137
|
import { editInviteLink } from "./highlevel/methods/invite-links/edit-invite-link.js";
|
|
116
138
|
import { exportInviteLink } from "./highlevel/methods/invite-links/export-invite-link.js";
|
|
@@ -184,10 +206,7 @@ import { changeCloudPassword } from "./highlevel/methods/password/change-cloud-p
|
|
|
184
206
|
import { enableCloudPassword } from "./highlevel/methods/password/enable-cloud-password.js";
|
|
185
207
|
import { verifyPasswordEmail, resendPasswordEmail, cancelPasswordEmail } from "./highlevel/methods/password/password-email.js";
|
|
186
208
|
import { removeCloudPassword } from "./highlevel/methods/password/remove-cloud-password.js";
|
|
187
|
-
import { _normalizeInputStarGift } from "./highlevel/methods/premium/_normalize-input-star-gift.js";
|
|
188
|
-
import { acceptStarGift } from "./highlevel/methods/premium/accept-star-gift.js";
|
|
189
209
|
import { applyBoost } from "./highlevel/methods/premium/apply-boost.js";
|
|
190
|
-
import { buyResaleGift } from "./highlevel/methods/premium/buy-resale-gift.js";
|
|
191
210
|
import { canApplyBoost } from "./highlevel/methods/premium/can-apply-boost.js";
|
|
192
211
|
import { createBusinessChatLink } from "./highlevel/methods/premium/create-business-chat-link.js";
|
|
193
212
|
import { editBusinessChatLink, deleteBusinessChatLink } from "./highlevel/methods/premium/edit-business-chat-link.js";
|
|
@@ -196,25 +215,11 @@ import { getBoosts } from "./highlevel/methods/premium/get-boosts.js";
|
|
|
196
215
|
import { getBusinessChatLinks } from "./highlevel/methods/premium/get-business-chat-links.js";
|
|
197
216
|
import { getBusinessConnection } from "./highlevel/methods/premium/get-business-connection.js";
|
|
198
217
|
import { getMyBoostSlots } from "./highlevel/methods/premium/get-my-boost-slots.js";
|
|
199
|
-
import { getStarGiftResaleOptions } from "./highlevel/methods/premium/get-resale-star-gifts.js";
|
|
200
|
-
import { getSavedStarGiftsById } from "./highlevel/methods/premium/get-saved-star-gifts-by-id.js";
|
|
201
|
-
import { getSavedStarGifts } from "./highlevel/methods/premium/get-saved-star-gifts.js";
|
|
202
|
-
import { getStarGiftOptions } from "./highlevel/methods/premium/get-star-gift-options.js";
|
|
203
|
-
import { getStarGiftValue } from "./highlevel/methods/premium/get-star-gift-value.js";
|
|
204
|
-
import { getStarGiftWithdrawalUrl } from "./highlevel/methods/premium/get-star-gift-withdrawal-url.js";
|
|
205
218
|
import { getStarsTransactions } from "./highlevel/methods/premium/get-stars-transactions.js";
|
|
206
|
-
import { getUniqueStarGift } from "./highlevel/methods/premium/get-unique-star-gift.js";
|
|
207
219
|
import { iterBoosters } from "./highlevel/methods/premium/iter-boosters.js";
|
|
208
|
-
import { iterSavedStarGifts } from "./highlevel/methods/premium/iter-saved-star-gifts.js";
|
|
209
220
|
import { iterStarsTransactions } from "./highlevel/methods/premium/iter-stars-transactions.js";
|
|
210
|
-
import { togglePinnedStarGifts } from "./highlevel/methods/premium/pin-star-gift.js";
|
|
211
|
-
import { prepayStarGiftUpgrade } from "./highlevel/methods/premium/prepay-star-gift-upgrade.js";
|
|
212
|
-
import { sendStarGift } from "./highlevel/methods/premium/send-star-gift.js";
|
|
213
221
|
import { setBusinessIntro } from "./highlevel/methods/premium/set-business-intro.js";
|
|
214
222
|
import { setBusinessWorkHours } from "./highlevel/methods/premium/set-business-work-hours.js";
|
|
215
|
-
import { setResaleStarGiftPrice } from "./highlevel/methods/premium/set-gift-resale-price.js";
|
|
216
|
-
import { transferStarGift } from "./highlevel/methods/premium/transfer-star-gift.js";
|
|
217
|
-
import { upgradeStarGift } from "./highlevel/methods/premium/upgrade-star-gift.js";
|
|
218
223
|
import { addStickerToSet } from "./highlevel/methods/stickers/add-sticker-to-set.js";
|
|
219
224
|
import { createStickerSet } from "./highlevel/methods/stickers/create-sticker-set.js";
|
|
220
225
|
import { deleteStickerFromSet } from "./highlevel/methods/stickers/delete-sticker-from-set.js";
|
|
@@ -323,6 +328,7 @@ class TelegramClient {
|
|
|
323
328
|
Object.defineProperty(this, "timers", { value: this._client.timers });
|
|
324
329
|
Object.defineProperty(this, "stopSignal", { value: this._client.stopSignal });
|
|
325
330
|
Object.defineProperty(this, "appConfig", { value: this._client.appConfig });
|
|
331
|
+
Object.defineProperty(this, "platform", { value: this._client.platform });
|
|
326
332
|
Object.defineProperty(this, "onServerUpdate", { value: this._client.onServerUpdate });
|
|
327
333
|
Object.defineProperty(this, "onRawUpdate", { value: this._client.onRawUpdate });
|
|
328
334
|
Object.defineProperty(this, "onConnectionState", { value: this._client.onConnectionState });
|
|
@@ -695,6 +701,9 @@ TelegramClient.prototype.getContacts = function(...args) {
|
|
|
695
701
|
TelegramClient.prototype.importContacts = function(...args) {
|
|
696
702
|
return importContacts(this._client, ...args);
|
|
697
703
|
};
|
|
704
|
+
TelegramClient.prototype.setContactNote = function(...args) {
|
|
705
|
+
return setContactNote(this._client, ...args);
|
|
706
|
+
};
|
|
698
707
|
TelegramClient.prototype.createFolder = function(...args) {
|
|
699
708
|
return createFolder(this._client, ...args);
|
|
700
709
|
};
|
|
@@ -731,6 +740,12 @@ TelegramClient.prototype.setFoldersOrder = function(...args) {
|
|
|
731
740
|
TelegramClient.prototype.downloadAsBuffer = function(...args) {
|
|
732
741
|
return downloadAsBuffer(this._client, ...args);
|
|
733
742
|
};
|
|
743
|
+
TelegramClient.prototype.downloadChunk = function(...args) {
|
|
744
|
+
return downloadChunk(this._client, ...args);
|
|
745
|
+
};
|
|
746
|
+
TelegramClient.prototype._normalizeFileDownloadLocation = function(...args) {
|
|
747
|
+
return _normalizeFileDownloadLocation(this._client, ...args);
|
|
748
|
+
};
|
|
734
749
|
TelegramClient.prototype.downloadAsIterable = function(...args) {
|
|
735
750
|
return downloadAsIterable(this._client, ...args);
|
|
736
751
|
};
|
|
@@ -782,6 +797,66 @@ TelegramClient.prototype.updateForumSettings = function(...args) {
|
|
|
782
797
|
TelegramClient.prototype.toggleGeneralTopicHidden = function(...args) {
|
|
783
798
|
return toggleGeneralTopicHidden(this._client, ...args);
|
|
784
799
|
};
|
|
800
|
+
TelegramClient.prototype._normalizeInputStarGift = function(...args) {
|
|
801
|
+
return _normalizeInputStarGift(this._client, ...args);
|
|
802
|
+
};
|
|
803
|
+
TelegramClient.prototype.acceptStarGift = function(...args) {
|
|
804
|
+
return acceptStarGift(this._client, ...args);
|
|
805
|
+
};
|
|
806
|
+
TelegramClient.prototype.buyResaleGift = function(...args) {
|
|
807
|
+
return buyResaleGift(this._client, ...args);
|
|
808
|
+
};
|
|
809
|
+
TelegramClient.prototype.getStarGiftResaleOptions = function(...args) {
|
|
810
|
+
return getStarGiftResaleOptions(this._client, ...args);
|
|
811
|
+
};
|
|
812
|
+
TelegramClient.prototype.getSavedStarGiftsById = function(...args) {
|
|
813
|
+
return getSavedStarGiftsById(this._client, ...args);
|
|
814
|
+
};
|
|
815
|
+
TelegramClient.prototype.getSavedStarGifts = function(...args) {
|
|
816
|
+
return getSavedStarGifts(this._client, ...args);
|
|
817
|
+
};
|
|
818
|
+
TelegramClient.prototype.getStarGiftOptions = function(...args) {
|
|
819
|
+
return getStarGiftOptions(this._client, ...args);
|
|
820
|
+
};
|
|
821
|
+
TelegramClient.prototype.getStarGiftUpgradeOptions = function(...args) {
|
|
822
|
+
return getStarGiftUpgradeOptions(this._client, ...args);
|
|
823
|
+
};
|
|
824
|
+
TelegramClient.prototype.getStarGiftValue = function(...args) {
|
|
825
|
+
return getStarGiftValue(this._client, ...args);
|
|
826
|
+
};
|
|
827
|
+
TelegramClient.prototype.getStarGiftWithdrawalUrl = function(...args) {
|
|
828
|
+
return getStarGiftWithdrawalUrl(this._client, ...args);
|
|
829
|
+
};
|
|
830
|
+
TelegramClient.prototype.getUniqueStarGift = function(...args) {
|
|
831
|
+
return getUniqueStarGift(this._client, ...args);
|
|
832
|
+
};
|
|
833
|
+
TelegramClient.prototype.iterSavedStarGifts = function(...args) {
|
|
834
|
+
return iterSavedStarGifts(this._client, ...args);
|
|
835
|
+
};
|
|
836
|
+
TelegramClient.prototype.togglePinnedStarGifts = function(...args) {
|
|
837
|
+
return togglePinnedStarGifts(this._client, ...args);
|
|
838
|
+
};
|
|
839
|
+
TelegramClient.prototype.prepayStarGiftUpgrade = function(...args) {
|
|
840
|
+
return prepayStarGiftUpgrade(this._client, ...args);
|
|
841
|
+
};
|
|
842
|
+
TelegramClient.prototype.resolveStarGiftOffer = function(...args) {
|
|
843
|
+
return resolveStarGiftOffer(this._client, ...args);
|
|
844
|
+
};
|
|
845
|
+
TelegramClient.prototype.sendStarGiftOffer = function(...args) {
|
|
846
|
+
return sendStarGiftOffer(this._client, ...args);
|
|
847
|
+
};
|
|
848
|
+
TelegramClient.prototype.sendStarGift = function(...args) {
|
|
849
|
+
return sendStarGift(this._client, ...args);
|
|
850
|
+
};
|
|
851
|
+
TelegramClient.prototype.setResaleStarGiftPrice = function(...args) {
|
|
852
|
+
return setResaleStarGiftPrice(this._client, ...args);
|
|
853
|
+
};
|
|
854
|
+
TelegramClient.prototype.transferStarGift = function(...args) {
|
|
855
|
+
return transferStarGift(this._client, ...args);
|
|
856
|
+
};
|
|
857
|
+
TelegramClient.prototype.upgradeStarGift = function(...args) {
|
|
858
|
+
return upgradeStarGift(this._client, ...args);
|
|
859
|
+
};
|
|
785
860
|
TelegramClient.prototype.createInviteLink = function(...args) {
|
|
786
861
|
return createInviteLink(this._client, ...args);
|
|
787
862
|
};
|
|
@@ -1040,18 +1115,9 @@ TelegramClient.prototype.cancelPasswordEmail = function(...args) {
|
|
|
1040
1115
|
TelegramClient.prototype.removeCloudPassword = function(...args) {
|
|
1041
1116
|
return removeCloudPassword(this._client, ...args);
|
|
1042
1117
|
};
|
|
1043
|
-
TelegramClient.prototype._normalizeInputStarGift = function(...args) {
|
|
1044
|
-
return _normalizeInputStarGift(this._client, ...args);
|
|
1045
|
-
};
|
|
1046
|
-
TelegramClient.prototype.acceptStarGift = function(...args) {
|
|
1047
|
-
return acceptStarGift(this._client, ...args);
|
|
1048
|
-
};
|
|
1049
1118
|
TelegramClient.prototype.applyBoost = function(...args) {
|
|
1050
1119
|
return applyBoost(this._client, ...args);
|
|
1051
1120
|
};
|
|
1052
|
-
TelegramClient.prototype.buyResaleGift = function(...args) {
|
|
1053
|
-
return buyResaleGift(this._client, ...args);
|
|
1054
|
-
};
|
|
1055
1121
|
TelegramClient.prototype.canApplyBoost = function(...args) {
|
|
1056
1122
|
return canApplyBoost(this._client, ...args);
|
|
1057
1123
|
};
|
|
@@ -1079,63 +1145,21 @@ TelegramClient.prototype.getBusinessConnection = function(...args) {
|
|
|
1079
1145
|
TelegramClient.prototype.getMyBoostSlots = function(...args) {
|
|
1080
1146
|
return getMyBoostSlots(this._client, ...args);
|
|
1081
1147
|
};
|
|
1082
|
-
TelegramClient.prototype.getStarGiftResaleOptions = function(...args) {
|
|
1083
|
-
return getStarGiftResaleOptions(this._client, ...args);
|
|
1084
|
-
};
|
|
1085
|
-
TelegramClient.prototype.getSavedStarGiftsById = function(...args) {
|
|
1086
|
-
return getSavedStarGiftsById(this._client, ...args);
|
|
1087
|
-
};
|
|
1088
|
-
TelegramClient.prototype.getSavedStarGifts = function(...args) {
|
|
1089
|
-
return getSavedStarGifts(this._client, ...args);
|
|
1090
|
-
};
|
|
1091
|
-
TelegramClient.prototype.getStarGiftOptions = function(...args) {
|
|
1092
|
-
return getStarGiftOptions(this._client, ...args);
|
|
1093
|
-
};
|
|
1094
|
-
TelegramClient.prototype.getStarGiftValue = function(...args) {
|
|
1095
|
-
return getStarGiftValue(this._client, ...args);
|
|
1096
|
-
};
|
|
1097
|
-
TelegramClient.prototype.getStarGiftWithdrawalUrl = function(...args) {
|
|
1098
|
-
return getStarGiftWithdrawalUrl(this._client, ...args);
|
|
1099
|
-
};
|
|
1100
1148
|
TelegramClient.prototype.getStarsTransactions = function(...args) {
|
|
1101
1149
|
return getStarsTransactions(this._client, ...args);
|
|
1102
1150
|
};
|
|
1103
|
-
TelegramClient.prototype.getUniqueStarGift = function(...args) {
|
|
1104
|
-
return getUniqueStarGift(this._client, ...args);
|
|
1105
|
-
};
|
|
1106
1151
|
TelegramClient.prototype.iterBoosters = function(...args) {
|
|
1107
1152
|
return iterBoosters(this._client, ...args);
|
|
1108
1153
|
};
|
|
1109
|
-
TelegramClient.prototype.iterSavedStarGifts = function(...args) {
|
|
1110
|
-
return iterSavedStarGifts(this._client, ...args);
|
|
1111
|
-
};
|
|
1112
1154
|
TelegramClient.prototype.iterStarsTransactions = function(...args) {
|
|
1113
1155
|
return iterStarsTransactions(this._client, ...args);
|
|
1114
1156
|
};
|
|
1115
|
-
TelegramClient.prototype.togglePinnedStarGifts = function(...args) {
|
|
1116
|
-
return togglePinnedStarGifts(this._client, ...args);
|
|
1117
|
-
};
|
|
1118
|
-
TelegramClient.prototype.prepayStarGiftUpgrade = function(...args) {
|
|
1119
|
-
return prepayStarGiftUpgrade(this._client, ...args);
|
|
1120
|
-
};
|
|
1121
|
-
TelegramClient.prototype.sendStarGift = function(...args) {
|
|
1122
|
-
return sendStarGift(this._client, ...args);
|
|
1123
|
-
};
|
|
1124
1157
|
TelegramClient.prototype.setBusinessIntro = function(...args) {
|
|
1125
1158
|
return setBusinessIntro(this._client, ...args);
|
|
1126
1159
|
};
|
|
1127
1160
|
TelegramClient.prototype.setBusinessWorkHours = function(...args) {
|
|
1128
1161
|
return setBusinessWorkHours(this._client, ...args);
|
|
1129
1162
|
};
|
|
1130
|
-
TelegramClient.prototype.setResaleStarGiftPrice = function(...args) {
|
|
1131
|
-
return setResaleStarGiftPrice(this._client, ...args);
|
|
1132
|
-
};
|
|
1133
|
-
TelegramClient.prototype.transferStarGift = function(...args) {
|
|
1134
|
-
return transferStarGift(this._client, ...args);
|
|
1135
|
-
};
|
|
1136
|
-
TelegramClient.prototype.upgradeStarGift = function(...args) {
|
|
1137
|
-
return upgradeStarGift(this._client, ...args);
|
|
1138
|
-
};
|
|
1139
1163
|
TelegramClient.prototype.addStickerToSet = function(...args) {
|
|
1140
1164
|
return addStickerToSet(this._client, ...args);
|
|
1141
1165
|
};
|
package/highlevel/base.cjs
CHANGED
|
@@ -129,8 +129,12 @@ class BaseTelegramClient {
|
|
|
129
129
|
if (this.#destroyed) return;
|
|
130
130
|
this.#destroyed = true;
|
|
131
131
|
await this.disconnect();
|
|
132
|
+
this.updates?.destroy();
|
|
132
133
|
await this.mt.destroy();
|
|
133
134
|
}
|
|
135
|
+
get destroyed() {
|
|
136
|
+
return this.#destroyed;
|
|
137
|
+
}
|
|
134
138
|
[Symbol.asyncDispose]() {
|
|
135
139
|
return this.destroy();
|
|
136
140
|
}
|
package/highlevel/base.d.cts
CHANGED
|
@@ -57,6 +57,7 @@ export declare class BaseTelegramClient implements ITelegramClient {
|
|
|
57
57
|
get isConnected(): boolean;
|
|
58
58
|
disconnect(): Promise<void>;
|
|
59
59
|
destroy(): Promise<void>;
|
|
60
|
+
get destroyed(): boolean;
|
|
60
61
|
[Symbol.asyncDispose](): Promise<void>;
|
|
61
62
|
notifyLoggedIn(auth: tl.auth.TypeAuthorization | tl.RawUser): Promise<tl.RawUser>;
|
|
62
63
|
notifyLoggedOut(): Promise<void>;
|
package/highlevel/base.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export declare class BaseTelegramClient implements ITelegramClient {
|
|
|
57
57
|
get isConnected(): boolean;
|
|
58
58
|
disconnect(): Promise<void>;
|
|
59
59
|
destroy(): Promise<void>;
|
|
60
|
+
get destroyed(): boolean;
|
|
60
61
|
[Symbol.asyncDispose](): Promise<void>;
|
|
61
62
|
notifyLoggedIn(auth: tl.auth.TypeAuthorization | tl.RawUser): Promise<tl.RawUser>;
|
|
62
63
|
notifyLoggedOut(): Promise<void>;
|
package/highlevel/base.js
CHANGED
|
@@ -122,8 +122,12 @@ class BaseTelegramClient {
|
|
|
122
122
|
if (this.#destroyed) return;
|
|
123
123
|
this.#destroyed = true;
|
|
124
124
|
await this.disconnect();
|
|
125
|
+
this.updates?.destroy();
|
|
125
126
|
await this.mt.destroy();
|
|
126
127
|
}
|
|
128
|
+
get destroyed() {
|
|
129
|
+
return this.#destroyed;
|
|
130
|
+
}
|
|
127
131
|
[Symbol.asyncDispose]() {
|
|
128
132
|
return this.destroy();
|
|
129
133
|
}
|