@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
package/esm/client/5_client.js
CHANGED
|
@@ -28,10 +28,10 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
28
28
|
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");
|
|
29
29
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
30
30
|
};
|
|
31
|
-
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
|
-
import { unreachable } from "../0_deps.js";
|
|
31
|
+
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;
|
|
32
|
+
import { MINUTE, SECOND, unreachable } from "../0_deps.js";
|
|
33
33
|
import { AccessError, ConnectionError, InputError } from "../0_errors.js";
|
|
34
|
-
import { cleanObject, drop, getLogger, getRandomId,
|
|
34
|
+
import { cleanObject, drop, getLogger, getRandomId, mustPrompt, mustPromptOneOf, Mutex, ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
35
35
|
import { StorageMemory } from "../2_storage.js";
|
|
36
36
|
import { as, chatIdToPeerId, getChatIdPeerType, is, isOneOf, peerToChatId } from "../2_tl.js";
|
|
37
37
|
import { getDc } from "../3_transport.js";
|
|
@@ -52,6 +52,7 @@ import { FileManager } from "./2_file_manager.js";
|
|
|
52
52
|
import { NetworkStatisticsManager } from "./2_network_statistics_manager.js";
|
|
53
53
|
import { PaymentManager } from "./2_payment_manager.js";
|
|
54
54
|
import { ReactionManager } from "./2_reaction_manager.js";
|
|
55
|
+
import { TranslationsManager } from "./2_translations_manager.js";
|
|
55
56
|
import { UpdateManager } from "./2_update_manager.js";
|
|
56
57
|
import { MessageManager } from "./3_message_manager.js";
|
|
57
58
|
import { VideoChatManager } from "./3_video_chat_manager.js";
|
|
@@ -90,6 +91,7 @@ export class Client extends Composer {
|
|
|
90
91
|
chatListManager: __classPrivateFieldGet(this, _Client_chatListManager, "f"),
|
|
91
92
|
accountManager: __classPrivateFieldGet(this, _Client_accountManager, "f"),
|
|
92
93
|
paymentManager: __classPrivateFieldGet(this, _Client_paymentManager, "f"),
|
|
94
|
+
translationsManager: __classPrivateFieldGet(this, _Client_translationsManager, "f"),
|
|
93
95
|
}, "f"));
|
|
94
96
|
}
|
|
95
97
|
/**
|
|
@@ -114,6 +116,7 @@ export class Client extends Composer {
|
|
|
114
116
|
_Client_chatListManager.set(this, void 0);
|
|
115
117
|
_Client_accountManager.set(this, void 0);
|
|
116
118
|
_Client_paymentManager.set(this, void 0);
|
|
119
|
+
_Client_translationsManager.set(this, void 0);
|
|
117
120
|
// deno-lint-ignore no-explicit-any
|
|
118
121
|
_Client_managers.set(this, void 0);
|
|
119
122
|
_Client_storage_.set(this, void 0);
|
|
@@ -145,13 +148,13 @@ export class Client extends Composer {
|
|
|
145
148
|
writable: true,
|
|
146
149
|
value: void 0
|
|
147
150
|
});
|
|
148
|
-
Object.defineProperty(this, "
|
|
151
|
+
Object.defineProperty(this, "language", {
|
|
149
152
|
enumerable: true,
|
|
150
153
|
configurable: true,
|
|
151
154
|
writable: true,
|
|
152
155
|
value: void 0
|
|
153
156
|
});
|
|
154
|
-
Object.defineProperty(this, "
|
|
157
|
+
Object.defineProperty(this, "platform", {
|
|
155
158
|
enumerable: true,
|
|
156
159
|
configurable: true,
|
|
157
160
|
writable: true,
|
|
@@ -584,7 +587,7 @@ export class Client extends Composer {
|
|
|
584
587
|
_Client_connectionInsuranceLoopStarted.set(this, false);
|
|
585
588
|
_Client_connectionInsuranceLoopAbortController.set(this, null);
|
|
586
589
|
_Client_pingLoopAbortController.set(this, null);
|
|
587
|
-
_Client_pingInterval.set(this, 56 *
|
|
590
|
+
_Client_pingInterval.set(this, 56 * SECOND);
|
|
588
591
|
_Client_lastUpdates.set(this, new Date());
|
|
589
592
|
_Client_handleInvokeError.set(this, skipInvoke());
|
|
590
593
|
/**
|
|
@@ -657,8 +660,8 @@ export class Client extends Composer {
|
|
|
657
660
|
__classPrivateFieldSet(this, _Client_authString, params?.authString, "f");
|
|
658
661
|
this.appVersion = params?.appVersion ?? APP_VERSION;
|
|
659
662
|
this.deviceModel = params?.deviceModel ?? DEVICE_MODEL;
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
663
|
+
this.language = params?.language ?? LANG_CODE;
|
|
664
|
+
this.platform = params?.platform ?? LANG_PACK;
|
|
662
665
|
this.systemLangCode = params?.systemLangCode ?? SYSTEM_LANG_CODE;
|
|
663
666
|
this.systemVersion = params?.systemVersion ?? SYSTEM_VERSION;
|
|
664
667
|
__classPrivateFieldSet(this, _Client_publicKeys, params?.publicKeys, "f");
|
|
@@ -703,6 +706,8 @@ export class Client extends Composer {
|
|
|
703
706
|
outgoingMessages: __classPrivateFieldGet(this, _Client_outgoingMessages, "f"),
|
|
704
707
|
dropPendingUpdates: params?.dropPendingUpdates,
|
|
705
708
|
disconnected: () => this.disconnected,
|
|
709
|
+
langPack: this.platform,
|
|
710
|
+
langCode: this.language,
|
|
706
711
|
};
|
|
707
712
|
__classPrivateFieldSet(this, _Client_updateManager, new UpdateManager(c), "f");
|
|
708
713
|
__classPrivateFieldSet(this, _Client_networkStatisticsManager, new NetworkStatisticsManager(c), "f");
|
|
@@ -718,6 +723,7 @@ export class Client extends Composer {
|
|
|
718
723
|
__classPrivateFieldSet(this, _Client_chatListManager, new ChatListManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
|
|
719
724
|
__classPrivateFieldSet(this, _Client_accountManager, new AccountManager(c), "f");
|
|
720
725
|
__classPrivateFieldSet(this, _Client_paymentManager, new PaymentManager(c), "f");
|
|
726
|
+
__classPrivateFieldSet(this, _Client_translationsManager, new TranslationsManager(c), "f");
|
|
721
727
|
__classPrivateFieldGet(this, _Client_updateManager, "f").setUpdateHandler(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).bind(this));
|
|
722
728
|
const transportProvider = __classPrivateFieldGet(this, _Client_client, "f").transportProvider;
|
|
723
729
|
__classPrivateFieldGet(this, _Client_client, "f").transportProvider = (params) => {
|
|
@@ -793,8 +799,8 @@ export class Client extends Composer {
|
|
|
793
799
|
if (this.connected) {
|
|
794
800
|
return;
|
|
795
801
|
}
|
|
796
|
-
if (__classPrivateFieldGet(this, _Client_lastConnect, "f") != null && Date.now() - __classPrivateFieldGet(this, _Client_lastConnect, "f").getTime() <= 10 *
|
|
797
|
-
await new Promise((r) => setTimeout(r, 3 *
|
|
802
|
+
if (__classPrivateFieldGet(this, _Client_lastConnect, "f") != null && Date.now() - __classPrivateFieldGet(this, _Client_lastConnect, "f").getTime() <= 10 * SECOND) {
|
|
803
|
+
await new Promise((r) => setTimeout(r, 3 * SECOND));
|
|
798
804
|
}
|
|
799
805
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
800
806
|
if (__classPrivateFieldGet(this, _Client_authString, "f") && !__classPrivateFieldGet(this, _Client_authStringImported, "f")) {
|
|
@@ -837,7 +843,7 @@ export class Client extends Composer {
|
|
|
837
843
|
}
|
|
838
844
|
await __classPrivateFieldGet(this, _Client_client, "f").reconnect();
|
|
839
845
|
}
|
|
840
|
-
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() {
|
|
846
|
+
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() {
|
|
841
847
|
if (this.connected) {
|
|
842
848
|
return;
|
|
843
849
|
}
|
|
@@ -866,7 +872,7 @@ export class Client extends Composer {
|
|
|
866
872
|
}
|
|
867
873
|
__classPrivateFieldGet(this, _Client_L, "f").debug(`failed to reconnect, retrying in ${delay}:`, err);
|
|
868
874
|
}
|
|
869
|
-
await new Promise((r) => setTimeout(r, delay *
|
|
875
|
+
await new Promise((r) => setTimeout(r, delay * SECOND));
|
|
870
876
|
}
|
|
871
877
|
}
|
|
872
878
|
finally {
|
|
@@ -912,8 +918,8 @@ export class Client extends Composer {
|
|
|
912
918
|
transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider,
|
|
913
919
|
appVersion: this.appVersion,
|
|
914
920
|
deviceModel: this.deviceModel,
|
|
915
|
-
|
|
916
|
-
|
|
921
|
+
language: this.language,
|
|
922
|
+
platform: this.platform,
|
|
917
923
|
systemLangCode: this.systemLangCode,
|
|
918
924
|
systemVersion: this.systemVersion,
|
|
919
925
|
cdn: true,
|
|
@@ -1244,7 +1250,7 @@ export class Client extends Composer {
|
|
|
1244
1250
|
while (!this.disconnected) {
|
|
1245
1251
|
try {
|
|
1246
1252
|
await new Promise((resolve, reject) => {
|
|
1247
|
-
const timeout = setTimeout(resolve, 10 *
|
|
1253
|
+
const timeout = setTimeout(resolve, 10 * SECOND);
|
|
1248
1254
|
__classPrivateFieldGet(this, _Client_connectionInsuranceLoopAbortController, "f").signal.onabort = () => {
|
|
1249
1255
|
reject(__classPrivateFieldGet(this, _Client_connectionInsuranceLoopAbortController, "f")?.signal.reason);
|
|
1250
1256
|
clearTimeout(timeout);
|
|
@@ -1281,9 +1287,9 @@ export class Client extends Composer {
|
|
|
1281
1287
|
continue;
|
|
1282
1288
|
}
|
|
1283
1289
|
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
|
|
1284
|
-
await this.invoke({ _: "ping_delay_disconnect", ping_id: getRandomId(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") /
|
|
1290
|
+
await this.invoke({ _: "ping_delay_disconnect", ping_id: getRandomId(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") / SECOND + 15 });
|
|
1285
1291
|
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
|
|
1286
|
-
if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 *
|
|
1292
|
+
if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 * MINUTE) {
|
|
1287
1293
|
drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("lastUpdates").then(() => {
|
|
1288
1294
|
__classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
|
|
1289
1295
|
}));
|
|
@@ -1317,8 +1323,8 @@ export class Client extends Composer {
|
|
|
1317
1323
|
api_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this),
|
|
1318
1324
|
app_version: this.appVersion,
|
|
1319
1325
|
device_model: this.deviceModel,
|
|
1320
|
-
lang_code: this.
|
|
1321
|
-
lang_pack: this.
|
|
1326
|
+
lang_code: this.language,
|
|
1327
|
+
lang_pack: this.platform,
|
|
1322
1328
|
query: {
|
|
1323
1329
|
_: "invokeWithLayer",
|
|
1324
1330
|
layer: LAYER,
|
|
@@ -1559,6 +1565,14 @@ export class Client extends Composer {
|
|
|
1559
1565
|
async setUserEmojiStatus(userId, id, params) {
|
|
1560
1566
|
await __classPrivateFieldGet(this, _Client_accountManager, "f").setUserEmojiStatus(userId, id, params);
|
|
1561
1567
|
}
|
|
1568
|
+
/**
|
|
1569
|
+
* Update the profile of the current user. At least one parameter must be specified. User-only.
|
|
1570
|
+
*
|
|
1571
|
+
* @method ac
|
|
1572
|
+
*/
|
|
1573
|
+
async updateProfile(params) {
|
|
1574
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").updateProfile(params);
|
|
1575
|
+
}
|
|
1562
1576
|
//
|
|
1563
1577
|
// ========================= MESSAGES ========================= //
|
|
1564
1578
|
//
|
|
@@ -2408,7 +2422,7 @@ export class Client extends Composer {
|
|
|
2408
2422
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").setMessageTtl(chatId, messageTtl);
|
|
2409
2423
|
}
|
|
2410
2424
|
/**
|
|
2411
|
-
* Archive multiple chats.
|
|
2425
|
+
* Archive multiple chats. User-only.
|
|
2412
2426
|
*
|
|
2413
2427
|
* @method ch
|
|
2414
2428
|
* @param chatIds The identifiers of the chats to archive.
|
|
@@ -2417,7 +2431,7 @@ export class Client extends Composer {
|
|
|
2417
2431
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").archiveChats(chatIds);
|
|
2418
2432
|
}
|
|
2419
2433
|
/**
|
|
2420
|
-
* Archive a single chat.
|
|
2434
|
+
* Archive a single chat. User-only.
|
|
2421
2435
|
*
|
|
2422
2436
|
* @method ch
|
|
2423
2437
|
* @param chatId The identifier of the chat to archive.
|
|
@@ -2426,7 +2440,7 @@ export class Client extends Composer {
|
|
|
2426
2440
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").archiveChat(chatId);
|
|
2427
2441
|
}
|
|
2428
2442
|
/**
|
|
2429
|
-
* Unarchive multiple chats.
|
|
2443
|
+
* Unarchive multiple chats. User-only.
|
|
2430
2444
|
*
|
|
2431
2445
|
* @method ch
|
|
2432
2446
|
* @param chatIds The identifiers of the chats to unarchive.
|
|
@@ -2435,7 +2449,7 @@ export class Client extends Composer {
|
|
|
2435
2449
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").unarchiveChats(chatIds);
|
|
2436
2450
|
}
|
|
2437
2451
|
/**
|
|
2438
|
-
* Unarchive a single chat.
|
|
2452
|
+
* Unarchive a single chat. User-only.
|
|
2439
2453
|
*
|
|
2440
2454
|
* @method ch
|
|
2441
2455
|
* @param chatId The identifier of the chat to unarchive.
|
|
@@ -2869,6 +2883,18 @@ export class Client extends Composer {
|
|
|
2869
2883
|
async addContact(userId, params) {
|
|
2870
2884
|
await __classPrivateFieldGet(this, _Client_accountManager, "f").addContact(userId, params);
|
|
2871
2885
|
}
|
|
2886
|
+
//
|
|
2887
|
+
// ========================= TRANSLATIONS ========================= //
|
|
2888
|
+
//
|
|
2889
|
+
/**
|
|
2890
|
+
* Get translations. User-only.
|
|
2891
|
+
*
|
|
2892
|
+
* @method ta
|
|
2893
|
+
* @param userId The identifier of a user to add as contact.
|
|
2894
|
+
*/
|
|
2895
|
+
async getTranslations(params) {
|
|
2896
|
+
await __classPrivateFieldGet(this, _Client_translationsManager, "f").getTranslations(params);
|
|
2897
|
+
}
|
|
2872
2898
|
}
|
|
2873
2899
|
_a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
2874
2900
|
if (__classPrivateFieldGet(this, _Client_disableUpdates, "f") && !("authorizationState" in update) && !("connectionState" in 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,57 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
/**
|
|
4
|
+
* The number of milliseconds in a second.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { SECOND } from "@std/datetime/constants";
|
|
9
|
+
*
|
|
10
|
+
* SECOND; // 1_000
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export const SECOND = 1e3;
|
|
14
|
+
/**
|
|
15
|
+
* The number of milliseconds in a minute.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { MINUTE } from "@std/datetime/constants";
|
|
20
|
+
*
|
|
21
|
+
* MINUTE; // 60_000
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export const MINUTE = SECOND * 60;
|
|
25
|
+
/**
|
|
26
|
+
* The number of milliseconds in an hour.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* import { HOUR } from "@std/datetime/constants";
|
|
31
|
+
*
|
|
32
|
+
* HOUR; // 3_600_000
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export const HOUR = MINUTE * 60;
|
|
36
|
+
/**
|
|
37
|
+
* The number of milliseconds in a day.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* import { DAY } from "@std/datetime/constants";
|
|
42
|
+
*
|
|
43
|
+
* DAY; // 86_400_000
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export const DAY = HOUR * 24;
|
|
47
|
+
/**
|
|
48
|
+
* The number of milliseconds in a week.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* import { WEEK } from "@std/datetime/constants";
|
|
53
|
+
*
|
|
54
|
+
* WEEK; // 604_800_000
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export const WEEK = DAY * 7;
|
package/esm/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][]];
|