@mtkruto/node 0.9.0 → 0.11.0
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/esm/0_deps.d.ts +1 -0
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +1 -0
- package/esm/1_utilities.d.ts +1 -1
- package/esm/1_utilities.js +1 -1
- package/esm/3_types.d.ts +1 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +1 -0
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_params.d.ts +14 -0
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_storage_operations.d.ts +7 -0
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +17 -0
- package/esm/client/0_utilities.d.ts +2 -2
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/1_types.d.ts +2 -0
- package/esm/client/1_types.d.ts.map +1 -1
- package/esm/client/2_account_manager.d.ts +2 -1
- package/esm/client/2_account_manager.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +52 -2
- package/esm/client/2_file_manager.js +4 -4
- package/esm/client/2_translations_manager.d.ts +15 -0
- package/esm/client/2_translations_manager.d.ts.map +1 -0
- package/esm/client/2_translations_manager.js +148 -0
- package/esm/client/2_update_manager.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +4 -4
- package/esm/client/5_client.d.ts +25 -12
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +49 -23
- package/esm/deps/jsr.io/@std/datetime/0.225.2/constants.d.ts +56 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.2/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.2/constants.js +57 -0
- package/esm/tl/0_api.d.ts +143 -6
- package/esm/tl/0_api.d.ts.map +1 -1
- package/esm/tl/0_api.js +217 -17
- package/esm/types/0_translation.d.ts +13 -0
- package/esm/types/0_translation.d.ts.map +1 -0
- package/esm/types/0_translation.js +26 -0
- package/esm/types/6_update.d.ts +26 -2
- package/esm/types/6_update.d.ts.map +1 -1
- package/esm/utilities/{1_misc.d.ts → 0_misc.d.ts} +1 -1
- package/{script/utilities/1_misc.d.ts.map → esm/utilities/0_misc.d.ts.map} +1 -1
- package/esm/utilities/{1_misc.js → 0_misc.js} +3 -4
- package/esm/utilities/0_units.d.ts +0 -3
- package/esm/utilities/0_units.d.ts.map +1 -1
- package/esm/utilities/0_units.js +0 -3
- package/package.json +1 -1
- package/script/0_deps.d.ts +1 -0
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +4 -1
- package/script/1_utilities.d.ts +1 -1
- package/script/1_utilities.js +1 -1
- package/script/3_types.d.ts +1 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +1 -0
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_params.d.ts +14 -0
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_storage_operations.d.ts +7 -0
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +17 -0
- package/script/client/0_utilities.d.ts +2 -2
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/1_types.d.ts +2 -0
- package/script/client/1_types.d.ts.map +1 -1
- package/script/client/2_account_manager.d.ts +2 -1
- package/script/client/2_account_manager.d.ts.map +1 -1
- package/script/client/2_account_manager.js +51 -1
- package/script/client/2_file_manager.js +2 -2
- package/script/client/2_translations_manager.d.ts +15 -0
- package/script/client/2_translations_manager.d.ts.map +1 -0
- package/script/client/2_translations_manager.js +152 -0
- package/script/client/2_update_manager.d.ts.map +1 -1
- package/script/client/2_update_manager.js +2 -2
- package/script/client/5_client.d.ts +25 -12
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +47 -21
- package/script/deps/jsr.io/@std/datetime/0.225.2/constants.d.ts +56 -0
- package/script/deps/jsr.io/@std/datetime/0.225.2/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/datetime/0.225.2/constants.js +60 -0
- package/script/tl/0_api.d.ts +143 -6
- package/script/tl/0_api.d.ts.map +1 -1
- package/script/tl/0_api.js +217 -17
- package/script/types/0_translation.d.ts +13 -0
- package/script/types/0_translation.d.ts.map +1 -0
- package/script/types/0_translation.js +29 -0
- package/script/types/6_update.d.ts +26 -2
- package/script/types/6_update.d.ts.map +1 -1
- package/script/utilities/{1_misc.d.ts → 0_misc.d.ts} +1 -1
- package/{esm/utilities/1_misc.d.ts.map → script/utilities/0_misc.d.ts.map} +1 -1
- package/script/utilities/{1_misc.js → 0_misc.js} +2 -3
- package/script/utilities/0_units.d.ts +0 -3
- package/script/utilities/0_units.d.ts.map +1 -1
- package/script/utilities/0_units.js +1 -4
|
@@ -29,7 +29,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
29
29
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
30
30
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
31
31
|
};
|
|
32
|
-
var _Client_instances, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_videoChatManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_paymentManager, _Client_managers, _Client_storage_, _Client_messageStorage_, _Client_parseMode, _Client_apiId, _Client_apiHash, _Client_publicKeys, _Client_outgoingMessages, _Client_persistCache, _Client_disableUpdates, _Client_authString, _Client_cdn, _Client_L, _Client_LsignIn, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_Lmin, _Client_reconnecting, _Client_reconnect, _Client_getApiId, _Client_getCdnConnectionPool, _Client_getCdnConnection, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_lastConnect, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_connectionInsuranceLoopStarted, _Client_connectionInsuranceLoopAbortController, _Client_startConnectionInsuranceLoop, _Client_connectionInsuranceLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_authStringImported, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerChatId, _Client_getInputPeerInner, _Client_getMinInputPeer, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
|
|
32
|
+
var _Client_instances, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_videoChatManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_paymentManager, _Client_translationsManager, _Client_managers, _Client_storage_, _Client_messageStorage_, _Client_parseMode, _Client_apiId, _Client_apiHash, _Client_publicKeys, _Client_outgoingMessages, _Client_persistCache, _Client_disableUpdates, _Client_authString, _Client_cdn, _Client_L, _Client_LsignIn, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_Lmin, _Client_reconnecting, _Client_reconnect, _Client_getApiId, _Client_getCdnConnectionPool, _Client_getCdnConnection, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_lastConnect, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_connectionInsuranceLoopStarted, _Client_connectionInsuranceLoopAbortController, _Client_startConnectionInsuranceLoop, _Client_connectionInsuranceLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_authStringImported, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerChatId, _Client_getInputPeerInner, _Client_getMinInputPeer, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
34
|
exports.Client = exports.handleMigrationError = exports.restartAuth = exports.Composer = void 0;
|
|
35
35
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -55,6 +55,7 @@ const _2_file_manager_js_1 = require("./2_file_manager.js");
|
|
|
55
55
|
const _2_network_statistics_manager_js_1 = require("./2_network_statistics_manager.js");
|
|
56
56
|
const _2_payment_manager_js_1 = require("./2_payment_manager.js");
|
|
57
57
|
const _2_reaction_manager_js_1 = require("./2_reaction_manager.js");
|
|
58
|
+
const _2_translations_manager_js_1 = require("./2_translations_manager.js");
|
|
58
59
|
const _2_update_manager_js_1 = require("./2_update_manager.js");
|
|
59
60
|
const _3_message_manager_js_1 = require("./3_message_manager.js");
|
|
60
61
|
const _3_video_chat_manager_js_1 = require("./3_video_chat_manager.js");
|
|
@@ -94,6 +95,7 @@ class Client extends Composer {
|
|
|
94
95
|
chatListManager: __classPrivateFieldGet(this, _Client_chatListManager, "f"),
|
|
95
96
|
accountManager: __classPrivateFieldGet(this, _Client_accountManager, "f"),
|
|
96
97
|
paymentManager: __classPrivateFieldGet(this, _Client_paymentManager, "f"),
|
|
98
|
+
translationsManager: __classPrivateFieldGet(this, _Client_translationsManager, "f"),
|
|
97
99
|
}, "f"));
|
|
98
100
|
}
|
|
99
101
|
/**
|
|
@@ -118,6 +120,7 @@ class Client extends Composer {
|
|
|
118
120
|
_Client_chatListManager.set(this, void 0);
|
|
119
121
|
_Client_accountManager.set(this, void 0);
|
|
120
122
|
_Client_paymentManager.set(this, void 0);
|
|
123
|
+
_Client_translationsManager.set(this, void 0);
|
|
121
124
|
// deno-lint-ignore no-explicit-any
|
|
122
125
|
_Client_managers.set(this, void 0);
|
|
123
126
|
_Client_storage_.set(this, void 0);
|
|
@@ -149,13 +152,13 @@ class Client extends Composer {
|
|
|
149
152
|
writable: true,
|
|
150
153
|
value: void 0
|
|
151
154
|
});
|
|
152
|
-
Object.defineProperty(this, "
|
|
155
|
+
Object.defineProperty(this, "language", {
|
|
153
156
|
enumerable: true,
|
|
154
157
|
configurable: true,
|
|
155
158
|
writable: true,
|
|
156
159
|
value: void 0
|
|
157
160
|
});
|
|
158
|
-
Object.defineProperty(this, "
|
|
161
|
+
Object.defineProperty(this, "platform", {
|
|
159
162
|
enumerable: true,
|
|
160
163
|
configurable: true,
|
|
161
164
|
writable: true,
|
|
@@ -588,7 +591,7 @@ class Client extends Composer {
|
|
|
588
591
|
_Client_connectionInsuranceLoopStarted.set(this, false);
|
|
589
592
|
_Client_connectionInsuranceLoopAbortController.set(this, null);
|
|
590
593
|
_Client_pingLoopAbortController.set(this, null);
|
|
591
|
-
_Client_pingInterval.set(this, 56 *
|
|
594
|
+
_Client_pingInterval.set(this, 56 * _0_deps_js_1.SECOND);
|
|
592
595
|
_Client_lastUpdates.set(this, new Date());
|
|
593
596
|
_Client_handleInvokeError.set(this, skipInvoke());
|
|
594
597
|
/**
|
|
@@ -661,8 +664,8 @@ class Client extends Composer {
|
|
|
661
664
|
__classPrivateFieldSet(this, _Client_authString, params?.authString, "f");
|
|
662
665
|
this.appVersion = params?.appVersion ?? _4_constants_js_1.APP_VERSION;
|
|
663
666
|
this.deviceModel = params?.deviceModel ?? _4_constants_js_1.DEVICE_MODEL;
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
667
|
+
this.language = params?.language ?? _4_constants_js_1.LANG_CODE;
|
|
668
|
+
this.platform = params?.platform ?? _4_constants_js_1.LANG_PACK;
|
|
666
669
|
this.systemLangCode = params?.systemLangCode ?? _4_constants_js_1.SYSTEM_LANG_CODE;
|
|
667
670
|
this.systemVersion = params?.systemVersion ?? _4_constants_js_1.SYSTEM_VERSION;
|
|
668
671
|
__classPrivateFieldSet(this, _Client_publicKeys, params?.publicKeys, "f");
|
|
@@ -707,6 +710,8 @@ class Client extends Composer {
|
|
|
707
710
|
outgoingMessages: __classPrivateFieldGet(this, _Client_outgoingMessages, "f"),
|
|
708
711
|
dropPendingUpdates: params?.dropPendingUpdates,
|
|
709
712
|
disconnected: () => this.disconnected,
|
|
713
|
+
langPack: this.platform,
|
|
714
|
+
langCode: this.language,
|
|
710
715
|
};
|
|
711
716
|
__classPrivateFieldSet(this, _Client_updateManager, new _2_update_manager_js_1.UpdateManager(c), "f");
|
|
712
717
|
__classPrivateFieldSet(this, _Client_networkStatisticsManager, new _2_network_statistics_manager_js_1.NetworkStatisticsManager(c), "f");
|
|
@@ -722,6 +727,7 @@ class Client extends Composer {
|
|
|
722
727
|
__classPrivateFieldSet(this, _Client_chatListManager, new _4_chat_list_manager_js_1.ChatListManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
|
|
723
728
|
__classPrivateFieldSet(this, _Client_accountManager, new _2_account_manager_js_1.AccountManager(c), "f");
|
|
724
729
|
__classPrivateFieldSet(this, _Client_paymentManager, new _2_payment_manager_js_1.PaymentManager(c), "f");
|
|
730
|
+
__classPrivateFieldSet(this, _Client_translationsManager, new _2_translations_manager_js_1.TranslationsManager(c), "f");
|
|
725
731
|
__classPrivateFieldGet(this, _Client_updateManager, "f").setUpdateHandler(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).bind(this));
|
|
726
732
|
const transportProvider = __classPrivateFieldGet(this, _Client_client, "f").transportProvider;
|
|
727
733
|
__classPrivateFieldGet(this, _Client_client, "f").transportProvider = (params) => {
|
|
@@ -797,8 +803,8 @@ class Client extends Composer {
|
|
|
797
803
|
if (this.connected) {
|
|
798
804
|
return;
|
|
799
805
|
}
|
|
800
|
-
if (__classPrivateFieldGet(this, _Client_lastConnect, "f") != null && Date.now() - __classPrivateFieldGet(this, _Client_lastConnect, "f").getTime() <= 10 *
|
|
801
|
-
await new Promise((r) => setTimeout(r, 3 *
|
|
806
|
+
if (__classPrivateFieldGet(this, _Client_lastConnect, "f") != null && Date.now() - __classPrivateFieldGet(this, _Client_lastConnect, "f").getTime() <= 10 * _0_deps_js_1.SECOND) {
|
|
807
|
+
await new Promise((r) => setTimeout(r, 3 * _0_deps_js_1.SECOND));
|
|
802
808
|
}
|
|
803
809
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
804
810
|
if (__classPrivateFieldGet(this, _Client_authString, "f") && !__classPrivateFieldGet(this, _Client_authStringImported, "f")) {
|
|
@@ -841,7 +847,7 @@ class Client extends Composer {
|
|
|
841
847
|
}
|
|
842
848
|
await __classPrivateFieldGet(this, _Client_client, "f").reconnect();
|
|
843
849
|
}
|
|
844
|
-
async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_videoChatManager = new WeakMap(), _Client_businessConnectionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_paymentManager = new WeakMap(), _Client_managers = new WeakMap(), _Client_storage_ = new WeakMap(), _Client_messageStorage_ = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_apiId = new WeakMap(), _Client_apiHash = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_outgoingMessages = new WeakMap(), _Client_persistCache = new WeakMap(), _Client_disableUpdates = new WeakMap(), _Client_authString = new WeakMap(), _Client_cdn = new WeakMap(), _Client_L = new WeakMap(), _Client_LsignIn = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_Lmin = new WeakMap(), _Client_reconnecting = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_lastConnect = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_connectionInsuranceLoopStarted = new WeakMap(), _Client_connectionInsuranceLoopAbortController = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_authStringImported = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_reconnect = async function _Client_reconnect() {
|
|
850
|
+
async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_videoChatManager = new WeakMap(), _Client_businessConnectionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_paymentManager = new WeakMap(), _Client_translationsManager = new WeakMap(), _Client_managers = new WeakMap(), _Client_storage_ = new WeakMap(), _Client_messageStorage_ = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_apiId = new WeakMap(), _Client_apiHash = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_outgoingMessages = new WeakMap(), _Client_persistCache = new WeakMap(), _Client_disableUpdates = new WeakMap(), _Client_authString = new WeakMap(), _Client_cdn = new WeakMap(), _Client_L = new WeakMap(), _Client_LsignIn = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_Lmin = new WeakMap(), _Client_reconnecting = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_lastConnect = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_connectionInsuranceLoopStarted = new WeakMap(), _Client_connectionInsuranceLoopAbortController = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_authStringImported = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_reconnect = async function _Client_reconnect() {
|
|
845
851
|
if (this.connected) {
|
|
846
852
|
return;
|
|
847
853
|
}
|
|
@@ -870,7 +876,7 @@ class Client extends Composer {
|
|
|
870
876
|
}
|
|
871
877
|
__classPrivateFieldGet(this, _Client_L, "f").debug(`failed to reconnect, retrying in ${delay}:`, err);
|
|
872
878
|
}
|
|
873
|
-
await new Promise((r) => setTimeout(r, delay *
|
|
879
|
+
await new Promise((r) => setTimeout(r, delay * _0_deps_js_1.SECOND));
|
|
874
880
|
}
|
|
875
881
|
}
|
|
876
882
|
finally {
|
|
@@ -916,8 +922,8 @@ class Client extends Composer {
|
|
|
916
922
|
transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider,
|
|
917
923
|
appVersion: this.appVersion,
|
|
918
924
|
deviceModel: this.deviceModel,
|
|
919
|
-
|
|
920
|
-
|
|
925
|
+
language: this.language,
|
|
926
|
+
platform: this.platform,
|
|
921
927
|
systemLangCode: this.systemLangCode,
|
|
922
928
|
systemVersion: this.systemVersion,
|
|
923
929
|
cdn: true,
|
|
@@ -1248,7 +1254,7 @@ class Client extends Composer {
|
|
|
1248
1254
|
while (!this.disconnected) {
|
|
1249
1255
|
try {
|
|
1250
1256
|
await new Promise((resolve, reject) => {
|
|
1251
|
-
const timeout = setTimeout(resolve, 10 *
|
|
1257
|
+
const timeout = setTimeout(resolve, 10 * _0_deps_js_1.SECOND);
|
|
1252
1258
|
__classPrivateFieldGet(this, _Client_connectionInsuranceLoopAbortController, "f").signal.onabort = () => {
|
|
1253
1259
|
reject(__classPrivateFieldGet(this, _Client_connectionInsuranceLoopAbortController, "f")?.signal.reason);
|
|
1254
1260
|
clearTimeout(timeout);
|
|
@@ -1285,9 +1291,9 @@ class Client extends Composer {
|
|
|
1285
1291
|
continue;
|
|
1286
1292
|
}
|
|
1287
1293
|
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
|
|
1288
|
-
await this.invoke({ _: "ping_delay_disconnect", ping_id: (0, _1_utilities_js_1.getRandomId)(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") /
|
|
1294
|
+
await this.invoke({ _: "ping_delay_disconnect", ping_id: (0, _1_utilities_js_1.getRandomId)(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") / _0_deps_js_1.SECOND + 15 });
|
|
1289
1295
|
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
|
|
1290
|
-
if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 *
|
|
1296
|
+
if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 * _0_deps_js_1.MINUTE) {
|
|
1291
1297
|
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("lastUpdates").then(() => {
|
|
1292
1298
|
__classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
|
|
1293
1299
|
}));
|
|
@@ -1321,8 +1327,8 @@ class Client extends Composer {
|
|
|
1321
1327
|
api_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this),
|
|
1322
1328
|
app_version: this.appVersion,
|
|
1323
1329
|
device_model: this.deviceModel,
|
|
1324
|
-
lang_code: this.
|
|
1325
|
-
lang_pack: this.
|
|
1330
|
+
lang_code: this.language,
|
|
1331
|
+
lang_pack: this.platform,
|
|
1326
1332
|
query: {
|
|
1327
1333
|
_: "invokeWithLayer",
|
|
1328
1334
|
layer: _4_constants_js_1.LAYER,
|
|
@@ -1563,6 +1569,14 @@ class Client extends Composer {
|
|
|
1563
1569
|
async setUserEmojiStatus(userId, id, params) {
|
|
1564
1570
|
await __classPrivateFieldGet(this, _Client_accountManager, "f").setUserEmojiStatus(userId, id, params);
|
|
1565
1571
|
}
|
|
1572
|
+
/**
|
|
1573
|
+
* Update the profile of the current user. At least one parameter must be specified. User-only.
|
|
1574
|
+
*
|
|
1575
|
+
* @method ac
|
|
1576
|
+
*/
|
|
1577
|
+
async updateProfile(params) {
|
|
1578
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").updateProfile(params);
|
|
1579
|
+
}
|
|
1566
1580
|
//
|
|
1567
1581
|
// ========================= MESSAGES ========================= //
|
|
1568
1582
|
//
|
|
@@ -2412,7 +2426,7 @@ class Client extends Composer {
|
|
|
2412
2426
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").setMessageTtl(chatId, messageTtl);
|
|
2413
2427
|
}
|
|
2414
2428
|
/**
|
|
2415
|
-
* Archive multiple chats.
|
|
2429
|
+
* Archive multiple chats. User-only.
|
|
2416
2430
|
*
|
|
2417
2431
|
* @method ch
|
|
2418
2432
|
* @param chatIds The identifiers of the chats to archive.
|
|
@@ -2421,7 +2435,7 @@ class Client extends Composer {
|
|
|
2421
2435
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").archiveChats(chatIds);
|
|
2422
2436
|
}
|
|
2423
2437
|
/**
|
|
2424
|
-
* Archive a single chat.
|
|
2438
|
+
* Archive a single chat. User-only.
|
|
2425
2439
|
*
|
|
2426
2440
|
* @method ch
|
|
2427
2441
|
* @param chatId The identifier of the chat to archive.
|
|
@@ -2430,7 +2444,7 @@ class Client extends Composer {
|
|
|
2430
2444
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").archiveChat(chatId);
|
|
2431
2445
|
}
|
|
2432
2446
|
/**
|
|
2433
|
-
* Unarchive multiple chats.
|
|
2447
|
+
* Unarchive multiple chats. User-only.
|
|
2434
2448
|
*
|
|
2435
2449
|
* @method ch
|
|
2436
2450
|
* @param chatIds The identifiers of the chats to unarchive.
|
|
@@ -2439,7 +2453,7 @@ class Client extends Composer {
|
|
|
2439
2453
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").unarchiveChats(chatIds);
|
|
2440
2454
|
}
|
|
2441
2455
|
/**
|
|
2442
|
-
* Unarchive a single chat.
|
|
2456
|
+
* Unarchive a single chat. User-only.
|
|
2443
2457
|
*
|
|
2444
2458
|
* @method ch
|
|
2445
2459
|
* @param chatId The identifier of the chat to unarchive.
|
|
@@ -2873,6 +2887,18 @@ class Client extends Composer {
|
|
|
2873
2887
|
async addContact(userId, params) {
|
|
2874
2888
|
await __classPrivateFieldGet(this, _Client_accountManager, "f").addContact(userId, params);
|
|
2875
2889
|
}
|
|
2890
|
+
//
|
|
2891
|
+
// ========================= TRANSLATIONS ========================= //
|
|
2892
|
+
//
|
|
2893
|
+
/**
|
|
2894
|
+
* Get translations. User-only.
|
|
2895
|
+
*
|
|
2896
|
+
* @method ta
|
|
2897
|
+
* @param userId The identifier of a user to add as contact.
|
|
2898
|
+
*/
|
|
2899
|
+
async getTranslations(params) {
|
|
2900
|
+
await __classPrivateFieldGet(this, _Client_translationsManager, "f").getTranslations(params);
|
|
2901
|
+
}
|
|
2876
2902
|
}
|
|
2877
2903
|
exports.Client = Client;
|
|
2878
2904
|
_a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The number of milliseconds in a second.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { SECOND } from "@std/datetime/constants";
|
|
7
|
+
*
|
|
8
|
+
* SECOND; // 1_000
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare const SECOND = 1000;
|
|
12
|
+
/**
|
|
13
|
+
* The number of milliseconds in a minute.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { MINUTE } from "@std/datetime/constants";
|
|
18
|
+
*
|
|
19
|
+
* MINUTE; // 60_000
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const MINUTE: number;
|
|
23
|
+
/**
|
|
24
|
+
* The number of milliseconds in an hour.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { HOUR } from "@std/datetime/constants";
|
|
29
|
+
*
|
|
30
|
+
* HOUR; // 3_600_000
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare const HOUR: number;
|
|
34
|
+
/**
|
|
35
|
+
* The number of milliseconds in a day.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* import { DAY } from "@std/datetime/constants";
|
|
40
|
+
*
|
|
41
|
+
* DAY; // 86_400_000
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare const DAY: number;
|
|
45
|
+
/**
|
|
46
|
+
* The number of milliseconds in a week.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* import { WEEK } from "@std/datetime/constants";
|
|
51
|
+
*
|
|
52
|
+
* WEEK; // 604_800_000
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare const WEEK: number;
|
|
56
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/datetime/0.225.2/constants.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,OAAM,CAAC;AAC1B;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,EAAE,MAAoB,CAAC;AAC1C;;;;;;;;;GASG;AACH,eAAO,MAAM,IAAI,EAAE,MAAoB,CAAC;AACxC;;;;;;;;;GASG;AACH,eAAO,MAAM,GAAG,EAAE,MAAkB,CAAC;AACrC;;;;;;;;;GASG;AACH,eAAO,MAAM,IAAI,EAAE,MAAgB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.WEEK = exports.DAY = exports.HOUR = exports.MINUTE = exports.SECOND = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* The number of milliseconds in a second.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { SECOND } from "@std/datetime/constants";
|
|
12
|
+
*
|
|
13
|
+
* SECOND; // 1_000
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
exports.SECOND = 1e3;
|
|
17
|
+
/**
|
|
18
|
+
* The number of milliseconds in a minute.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { MINUTE } from "@std/datetime/constants";
|
|
23
|
+
*
|
|
24
|
+
* MINUTE; // 60_000
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
exports.MINUTE = exports.SECOND * 60;
|
|
28
|
+
/**
|
|
29
|
+
* The number of milliseconds in an hour.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* import { HOUR } from "@std/datetime/constants";
|
|
34
|
+
*
|
|
35
|
+
* HOUR; // 3_600_000
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
exports.HOUR = exports.MINUTE * 60;
|
|
39
|
+
/**
|
|
40
|
+
* The number of milliseconds in a day.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* import { DAY } from "@std/datetime/constants";
|
|
45
|
+
*
|
|
46
|
+
* DAY; // 86_400_000
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
exports.DAY = exports.HOUR * 24;
|
|
50
|
+
/**
|
|
51
|
+
* The number of milliseconds in a week.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* import { WEEK } from "@std/datetime/constants";
|
|
56
|
+
*
|
|
57
|
+
* WEEK; // 604_800_000
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
exports.WEEK = exports.DAY * 7;
|
package/script/tl/0_api.d.ts
CHANGED
|
@@ -1570,6 +1570,7 @@ export interface userFull {
|
|
|
1570
1570
|
personal_channel_id?: bigint;
|
|
1571
1571
|
personal_channel_message?: number;
|
|
1572
1572
|
stargifts_count?: number;
|
|
1573
|
+
starref_program?: StarRefProgram;
|
|
1573
1574
|
}
|
|
1574
1575
|
export interface contact {
|
|
1575
1576
|
_: "contact";
|
|
@@ -2501,7 +2502,7 @@ export interface updateBroadcastRevenueTransactions {
|
|
|
2501
2502
|
}
|
|
2502
2503
|
export interface updateStarsBalance {
|
|
2503
2504
|
_: "updateStarsBalance";
|
|
2504
|
-
balance:
|
|
2505
|
+
balance: StarsAmount;
|
|
2505
2506
|
}
|
|
2506
2507
|
export interface updateBusinessBotCallbackQuery {
|
|
2507
2508
|
_: "updateBusinessBotCallbackQuery";
|
|
@@ -8157,7 +8158,7 @@ export interface starsTransaction {
|
|
|
8157
8158
|
gift?: true;
|
|
8158
8159
|
reaction?: true;
|
|
8159
8160
|
id: string;
|
|
8160
|
-
stars:
|
|
8161
|
+
stars: StarsAmount;
|
|
8161
8162
|
date: number;
|
|
8162
8163
|
peer: StarsTransactionPeer;
|
|
8163
8164
|
title?: string;
|
|
@@ -8172,10 +8173,13 @@ export interface starsTransaction {
|
|
|
8172
8173
|
giveaway_post_id?: number;
|
|
8173
8174
|
stargift?: StarGift;
|
|
8174
8175
|
floodskip_number?: number;
|
|
8176
|
+
starref_commission_permille?: number;
|
|
8177
|
+
starref_peer?: Peer;
|
|
8178
|
+
starref_amount?: StarsAmount;
|
|
8175
8179
|
}
|
|
8176
8180
|
export interface payments_starsStatus {
|
|
8177
8181
|
_: "payments.starsStatus";
|
|
8178
|
-
balance:
|
|
8182
|
+
balance: StarsAmount;
|
|
8179
8183
|
subscriptions?: Array<StarsSubscription>;
|
|
8180
8184
|
subscriptions_next_offset?: string;
|
|
8181
8185
|
subscriptions_missing_balance?: bigint;
|
|
@@ -8207,9 +8211,9 @@ export interface geoPointAddress {
|
|
|
8207
8211
|
export interface starsRevenueStatus {
|
|
8208
8212
|
_: "starsRevenueStatus";
|
|
8209
8213
|
withdrawal_enabled?: true;
|
|
8210
|
-
current_balance:
|
|
8211
|
-
available_balance:
|
|
8212
|
-
overall_revenue:
|
|
8214
|
+
current_balance: StarsAmount;
|
|
8215
|
+
available_balance: StarsAmount;
|
|
8216
|
+
overall_revenue: StarsAmount;
|
|
8213
8217
|
next_withdrawal_at?: number;
|
|
8214
8218
|
}
|
|
8215
8219
|
export interface payments_starsRevenueStats {
|
|
@@ -8378,6 +8382,53 @@ export interface botAppSettings {
|
|
|
8378
8382
|
header_color?: number;
|
|
8379
8383
|
header_dark_color?: number;
|
|
8380
8384
|
}
|
|
8385
|
+
export interface starRefProgram {
|
|
8386
|
+
_: "starRefProgram";
|
|
8387
|
+
bot_id: bigint;
|
|
8388
|
+
commission_permille: number;
|
|
8389
|
+
duration_months?: number;
|
|
8390
|
+
end_date?: number;
|
|
8391
|
+
daily_revenue_per_user?: StarsAmount;
|
|
8392
|
+
}
|
|
8393
|
+
export interface connectedBotStarRef {
|
|
8394
|
+
_: "connectedBotStarRef";
|
|
8395
|
+
revoked?: true;
|
|
8396
|
+
url: string;
|
|
8397
|
+
date: number;
|
|
8398
|
+
bot_id: bigint;
|
|
8399
|
+
commission_permille: number;
|
|
8400
|
+
duration_months?: number;
|
|
8401
|
+
participants: bigint;
|
|
8402
|
+
revenue: bigint;
|
|
8403
|
+
}
|
|
8404
|
+
export interface payments_connectedStarRefBots {
|
|
8405
|
+
_: "payments.connectedStarRefBots";
|
|
8406
|
+
count: number;
|
|
8407
|
+
connected_bots: Array<ConnectedBotStarRef>;
|
|
8408
|
+
users: Array<User>;
|
|
8409
|
+
}
|
|
8410
|
+
export interface payments_suggestedStarRefBots {
|
|
8411
|
+
_: "payments.suggestedStarRefBots";
|
|
8412
|
+
count: number;
|
|
8413
|
+
suggested_bots: Array<StarRefProgram>;
|
|
8414
|
+
users: Array<User>;
|
|
8415
|
+
next_offset?: string;
|
|
8416
|
+
}
|
|
8417
|
+
export interface starsAmount {
|
|
8418
|
+
_: "starsAmount";
|
|
8419
|
+
amount: bigint;
|
|
8420
|
+
nanos: number;
|
|
8421
|
+
}
|
|
8422
|
+
export interface messages_foundStickersNotModified {
|
|
8423
|
+
_: "messages.foundStickersNotModified";
|
|
8424
|
+
next_offset?: number;
|
|
8425
|
+
}
|
|
8426
|
+
export interface messages_foundStickers {
|
|
8427
|
+
_: "messages.foundStickers";
|
|
8428
|
+
next_offset?: number;
|
|
8429
|
+
hash: bigint;
|
|
8430
|
+
stickers: Array<Document>;
|
|
8431
|
+
}
|
|
8381
8432
|
export interface req_pq_multi {
|
|
8382
8433
|
_: "req_pq_multi";
|
|
8383
8434
|
nonce: bigint;
|
|
@@ -9364,6 +9415,7 @@ export interface contacts_search {
|
|
|
9364
9415
|
export interface contacts_resolveUsername {
|
|
9365
9416
|
_: "contacts.resolveUsername";
|
|
9366
9417
|
username: string;
|
|
9418
|
+
referer?: string;
|
|
9367
9419
|
[R]?: contacts_ResolvedPeer;
|
|
9368
9420
|
}
|
|
9369
9421
|
export interface contacts_getTopPeers {
|
|
@@ -11046,6 +11098,17 @@ export interface messages_getPreparedInlineMessage {
|
|
|
11046
11098
|
id: string;
|
|
11047
11099
|
[R]?: messages_PreparedInlineMessage;
|
|
11048
11100
|
}
|
|
11101
|
+
export interface messages_searchStickers {
|
|
11102
|
+
_: "messages.searchStickers";
|
|
11103
|
+
emojis?: true;
|
|
11104
|
+
q: string;
|
|
11105
|
+
emoticon: string;
|
|
11106
|
+
lang_code: Array<string>;
|
|
11107
|
+
offset: number;
|
|
11108
|
+
limit: number;
|
|
11109
|
+
hash: bigint;
|
|
11110
|
+
[R]?: messages_FoundStickers;
|
|
11111
|
+
}
|
|
11049
11112
|
export interface updates_getState {
|
|
11050
11113
|
_: "updates.getState";
|
|
11051
11114
|
[R]?: updates_State;
|
|
@@ -11847,6 +11910,17 @@ export interface bots_checkDownloadFileParams {
|
|
|
11847
11910
|
url: string;
|
|
11848
11911
|
[R]?: boolean;
|
|
11849
11912
|
}
|
|
11913
|
+
export interface bots_getAdminedBots {
|
|
11914
|
+
_: "bots.getAdminedBots";
|
|
11915
|
+
[R]?: Array<User>;
|
|
11916
|
+
}
|
|
11917
|
+
export interface bots_updateStarRefProgram {
|
|
11918
|
+
_: "bots.updateStarRefProgram";
|
|
11919
|
+
bot: InputUser;
|
|
11920
|
+
commission_permille: number;
|
|
11921
|
+
duration_months?: number;
|
|
11922
|
+
[R]?: StarRefProgram;
|
|
11923
|
+
}
|
|
11850
11924
|
export interface payments_getPaymentForm {
|
|
11851
11925
|
_: "payments.getPaymentForm";
|
|
11852
11926
|
invoice: InputInvoice;
|
|
@@ -12058,6 +12132,42 @@ export interface payments_botCancelStarsSubscription {
|
|
|
12058
12132
|
charge_id: string;
|
|
12059
12133
|
[R]?: boolean;
|
|
12060
12134
|
}
|
|
12135
|
+
export interface payments_getConnectedStarRefBots {
|
|
12136
|
+
_: "payments.getConnectedStarRefBots";
|
|
12137
|
+
peer: InputPeer;
|
|
12138
|
+
offset_date?: number;
|
|
12139
|
+
offset_link?: string;
|
|
12140
|
+
limit: number;
|
|
12141
|
+
[R]?: payments_ConnectedStarRefBots;
|
|
12142
|
+
}
|
|
12143
|
+
export interface payments_getConnectedStarRefBot {
|
|
12144
|
+
_: "payments.getConnectedStarRefBot";
|
|
12145
|
+
peer: InputPeer;
|
|
12146
|
+
bot: InputUser;
|
|
12147
|
+
[R]?: payments_ConnectedStarRefBots;
|
|
12148
|
+
}
|
|
12149
|
+
export interface payments_getSuggestedStarRefBots {
|
|
12150
|
+
_: "payments.getSuggestedStarRefBots";
|
|
12151
|
+
order_by_revenue?: true;
|
|
12152
|
+
order_by_date?: true;
|
|
12153
|
+
peer: InputPeer;
|
|
12154
|
+
offset: string;
|
|
12155
|
+
limit: number;
|
|
12156
|
+
[R]?: payments_SuggestedStarRefBots;
|
|
12157
|
+
}
|
|
12158
|
+
export interface payments_connectStarRefBot {
|
|
12159
|
+
_: "payments.connectStarRefBot";
|
|
12160
|
+
peer: InputPeer;
|
|
12161
|
+
bot: InputUser;
|
|
12162
|
+
[R]?: payments_ConnectedStarRefBots;
|
|
12163
|
+
}
|
|
12164
|
+
export interface payments_editConnectedStarRefBot {
|
|
12165
|
+
_: "payments.editConnectedStarRefBot";
|
|
12166
|
+
revoked?: true;
|
|
12167
|
+
peer: InputPeer;
|
|
12168
|
+
link: string;
|
|
12169
|
+
[R]?: payments_ConnectedStarRefBots;
|
|
12170
|
+
}
|
|
12061
12171
|
export interface stickers_createStickerSet {
|
|
12062
12172
|
_: "stickers.createStickerSet";
|
|
12063
12173
|
masks?: true;
|
|
@@ -14167,6 +14277,13 @@ export interface Types {
|
|
|
14167
14277
|
"messages.botPreparedInlineMessage": messages_botPreparedInlineMessage;
|
|
14168
14278
|
"messages.preparedInlineMessage": messages_preparedInlineMessage;
|
|
14169
14279
|
"botAppSettings": botAppSettings;
|
|
14280
|
+
"starRefProgram": starRefProgram;
|
|
14281
|
+
"connectedBotStarRef": connectedBotStarRef;
|
|
14282
|
+
"payments.connectedStarRefBots": payments_connectedStarRefBots;
|
|
14283
|
+
"payments.suggestedStarRefBots": payments_suggestedStarRefBots;
|
|
14284
|
+
"starsAmount": starsAmount;
|
|
14285
|
+
"messages.foundStickersNotModified": messages_foundStickersNotModified;
|
|
14286
|
+
"messages.foundStickers": messages_foundStickers;
|
|
14170
14287
|
}
|
|
14171
14288
|
export interface Functions<T = Function> {
|
|
14172
14289
|
"req_pq_multi": req_pq_multi;
|
|
@@ -14579,6 +14696,7 @@ export interface Functions<T = Function> {
|
|
|
14579
14696
|
"messages.getSponsoredMessages": messages_getSponsoredMessages;
|
|
14580
14697
|
"messages.savePreparedInlineMessage": messages_savePreparedInlineMessage;
|
|
14581
14698
|
"messages.getPreparedInlineMessage": messages_getPreparedInlineMessage;
|
|
14699
|
+
"messages.searchStickers": messages_searchStickers;
|
|
14582
14700
|
"updates.getState": updates_getState;
|
|
14583
14701
|
"updates.getDifference": updates_getDifference;
|
|
14584
14702
|
"updates.getChannelDifference": updates_getChannelDifference;
|
|
@@ -14707,6 +14825,8 @@ export interface Functions<T = Function> {
|
|
|
14707
14825
|
"bots.updateUserEmojiStatus": bots_updateUserEmojiStatus;
|
|
14708
14826
|
"bots.toggleUserEmojiStatusPermission": bots_toggleUserEmojiStatusPermission;
|
|
14709
14827
|
"bots.checkDownloadFileParams": bots_checkDownloadFileParams;
|
|
14828
|
+
"bots.getAdminedBots": bots_getAdminedBots;
|
|
14829
|
+
"bots.updateStarRefProgram": bots_updateStarRefProgram;
|
|
14710
14830
|
"payments.getPaymentForm": payments_getPaymentForm;
|
|
14711
14831
|
"payments.getPaymentReceipt": payments_getPaymentReceipt;
|
|
14712
14832
|
"payments.validateRequestedInfo": payments_validateRequestedInfo;
|
|
@@ -14742,6 +14862,11 @@ export interface Functions<T = Function> {
|
|
|
14742
14862
|
"payments.saveStarGift": payments_saveStarGift;
|
|
14743
14863
|
"payments.convertStarGift": payments_convertStarGift;
|
|
14744
14864
|
"payments.botCancelStarsSubscription": payments_botCancelStarsSubscription;
|
|
14865
|
+
"payments.getConnectedStarRefBots": payments_getConnectedStarRefBots;
|
|
14866
|
+
"payments.getConnectedStarRefBot": payments_getConnectedStarRefBot;
|
|
14867
|
+
"payments.getSuggestedStarRefBots": payments_getSuggestedStarRefBots;
|
|
14868
|
+
"payments.connectStarRefBot": payments_connectStarRefBot;
|
|
14869
|
+
"payments.editConnectedStarRefBot": payments_editConnectedStarRefBot;
|
|
14745
14870
|
"stickers.createStickerSet": stickers_createStickerSet;
|
|
14746
14871
|
"stickers.removeStickerFromSet": stickers_removeStickerFromSet;
|
|
14747
14872
|
"stickers.changeStickerPosition": stickers_changeStickerPosition;
|
|
@@ -15395,6 +15520,12 @@ export interface Enums {
|
|
|
15395
15520
|
"messages.BotPreparedInlineMessage": messages_BotPreparedInlineMessage;
|
|
15396
15521
|
"messages.PreparedInlineMessage": messages_PreparedInlineMessage;
|
|
15397
15522
|
"BotAppSettings": BotAppSettings;
|
|
15523
|
+
"StarRefProgram": StarRefProgram;
|
|
15524
|
+
"ConnectedBotStarRef": ConnectedBotStarRef;
|
|
15525
|
+
"payments.ConnectedStarRefBots": payments_ConnectedStarRefBots;
|
|
15526
|
+
"payments.SuggestedStarRefBots": payments_SuggestedStarRefBots;
|
|
15527
|
+
"StarsAmount": StarsAmount;
|
|
15528
|
+
"messages.FoundStickers": messages_FoundStickers;
|
|
15398
15529
|
}
|
|
15399
15530
|
export type AnyType = Types[keyof Types];
|
|
15400
15531
|
export type AnyFunction<T = Function> = Functions<T>[keyof Functions<T>];
|
|
@@ -15943,6 +16074,12 @@ export type ReportResult = reportResultChooseOption | reportResultAddComment | r
|
|
|
15943
16074
|
export type messages_BotPreparedInlineMessage = messages_botPreparedInlineMessage;
|
|
15944
16075
|
export type messages_PreparedInlineMessage = messages_preparedInlineMessage;
|
|
15945
16076
|
export type BotAppSettings = botAppSettings;
|
|
16077
|
+
export type StarRefProgram = starRefProgram;
|
|
16078
|
+
export type ConnectedBotStarRef = connectedBotStarRef;
|
|
16079
|
+
export type payments_ConnectedStarRefBots = payments_connectedStarRefBots;
|
|
16080
|
+
export type payments_SuggestedStarRefBots = payments_suggestedStarRefBots;
|
|
16081
|
+
export type StarsAmount = starsAmount;
|
|
16082
|
+
export type messages_FoundStickers = messages_foundStickersNotModified | messages_foundStickers;
|
|
15946
16083
|
export declare const getTypeName: (id: number) => string | undefined;
|
|
15947
16084
|
export declare const flags: symbol;
|
|
15948
16085
|
export type Parameters = [number, [string, unknown, string][]];
|