@mtcute/core 0.16.13 → 0.16.14
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/chunks/cjs/{BO3RV06t.js → DIHjSN4l.js} +2 -2
- package/chunks/es/{xihQcMp0.js → qzEaLpWa.js} +2 -2
- package/client.cjs +2 -2
- package/client.js +2 -2
- package/highlevel/client.d.ts +1 -1
- package/index.cjs +2 -2
- package/index.js +3 -3
- package/network/client.d.ts +1 -1
- package/network/multi-session-connection.d.ts +1 -1
- package/network/persistent-connection.d.ts +1 -1
- package/network/transports/abstract.d.ts +1 -1
- package/network/transports/streamed.d.ts +1 -1
- package/network/transports/wrapped.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ const storyViewer = require("./chPq0GcA.js");
|
|
|
13
13
|
const tlRuntime = require("@mtcute/tl-runtime");
|
|
14
14
|
const tl = require("@mtcute/tl");
|
|
15
15
|
const peersIndex = require("./ija5tZ1t.js");
|
|
16
|
-
const EventEmitter = require("
|
|
16
|
+
const EventEmitter = require("events");
|
|
17
17
|
const reader_js = require("@mtcute/tl/binary/reader.js");
|
|
18
18
|
const writer_js = require("@mtcute/tl/binary/writer.js");
|
|
19
19
|
const logger = require("./D4qcXFYA.js");
|
|
@@ -6215,7 +6215,7 @@ class NetworkManager {
|
|
|
6215
6215
|
_: "initConnection",
|
|
6216
6216
|
deviceModel,
|
|
6217
6217
|
systemVersion: "1.0",
|
|
6218
|
-
appVersion: "0.16.
|
|
6218
|
+
appVersion: "0.16.14",
|
|
6219
6219
|
systemLangCode: "en",
|
|
6220
6220
|
langPack: "",
|
|
6221
6221
|
// "langPacks are for official apps only"
|
|
@@ -7,7 +7,7 @@ import { resolvePeer, getPeerDialogs, sendText, sendMedia, sendMediaGroup, readH
|
|
|
7
7
|
import { TlBinaryWriter, TlBinaryReader, TlSerializationCounter } from "@mtcute/tl-runtime";
|
|
8
8
|
import { tl, mtp } from "@mtcute/tl";
|
|
9
9
|
import { PeersIndex } from "./N3PMYmCL.js";
|
|
10
|
-
import EventEmitter from "
|
|
10
|
+
import EventEmitter from "events";
|
|
11
11
|
import { __tlReaderMap } from "@mtcute/tl/binary/reader.js";
|
|
12
12
|
import { __tlWriterMap } from "@mtcute/tl/binary/writer.js";
|
|
13
13
|
import { LogManager } from "./BRgz_-S8.js";
|
|
@@ -6209,7 +6209,7 @@ class NetworkManager {
|
|
|
6209
6209
|
_: "initConnection",
|
|
6210
6210
|
deviceModel,
|
|
6211
6211
|
systemVersion: "1.0",
|
|
6212
|
-
appVersion: "0.16.
|
|
6212
|
+
appVersion: "0.16.14",
|
|
6213
6213
|
systemLangCode: "en",
|
|
6214
6214
|
langPack: "",
|
|
6215
6215
|
// "langPacks are for official apps only"
|
package/client.cjs
CHANGED
|
@@ -5,9 +5,9 @@ if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WAR
|
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
|
-
const EventEmitter = require("
|
|
8
|
+
const EventEmitter = require("events");
|
|
9
9
|
const tl = require("@mtcute/tl");
|
|
10
|
-
const client = require("./chunks/cjs/
|
|
10
|
+
const client = require("./chunks/cjs/DIHjSN4l.js");
|
|
11
11
|
const platform = require("./chunks/cjs/j7rWn_1y.js");
|
|
12
12
|
const sortedArray = require("./chunks/cjs/C1cFqHcW.js");
|
|
13
13
|
const logger = require("./chunks/cjs/D4qcXFYA.js");
|
package/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import EventEmitter from "
|
|
1
|
+
import EventEmitter from "events";
|
|
2
2
|
import { tl } from "@mtcute/tl";
|
|
3
|
-
import { Reloadable, MtClient, UpdatesManager, TelegramStorageManager, BusinessCallbackQuery$2, DeleteBusinessMessageUpdate$2, BusinessMessage, BotReactionCountUpdate$2, BotReactionUpdate$2, DeleteStoryUpdate$2, StoryUpdate$2, PreCheckoutQuery$2, ChatJoinRequestUpdate$2, BotChatJoinRequestUpdate$2, BotStoppedUpdate$2, HistoryReadUpdate$1, DeleteMessageUpdate$1, UserTypingUpdate$1, UserStatusUpdate$2, PollVoteUpdate$2, PollUpdate$2, InlineCallbackQuery$2, CallbackQuery$2, ChosenInlineResult$2, InlineQuery$2, ChatMemberUpdate$2, Conversation } from "./chunks/es/
|
|
3
|
+
import { Reloadable, MtClient, UpdatesManager, TelegramStorageManager, BusinessCallbackQuery$2, DeleteBusinessMessageUpdate$2, BusinessMessage, BotReactionCountUpdate$2, BotReactionUpdate$2, DeleteStoryUpdate$2, StoryUpdate$2, PreCheckoutQuery$2, ChatJoinRequestUpdate$2, BotChatJoinRequestUpdate$2, BotStoppedUpdate$2, HistoryReadUpdate$1, DeleteMessageUpdate$1, UserTypingUpdate$1, UserStatusUpdate$2, PollVoteUpdate$2, PollUpdate$2, InlineCallbackQuery$2, CallbackQuery$2, ChosenInlineResult$2, InlineQuery$2, ChatMemberUpdate$2, Conversation } from "./chunks/es/qzEaLpWa.js";
|
|
4
4
|
import { MtTypeAssertionError, MtArgumentError, MtUnsupportedError } from "./chunks/es/DBMBgE7t.js";
|
|
5
5
|
import { asyncResettable } from "./chunks/es/CO4G3ySK.js";
|
|
6
6
|
import { LogManager } from "./chunks/es/BRgz_-S8.js";
|
package/highlevel/client.d.ts
CHANGED
package/index.cjs
CHANGED
|
@@ -8,12 +8,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
8
8
|
const Long = require("long");
|
|
9
9
|
const conditionVariable = require("./chunks/cjs/eX3zeDAz.js");
|
|
10
10
|
const tl = require("@mtcute/tl");
|
|
11
|
-
const client = require("./chunks/cjs/
|
|
11
|
+
const client = require("./chunks/cjs/DIHjSN4l.js");
|
|
12
12
|
const storyViewer = require("./chunks/cjs/chPq0GcA.js");
|
|
13
13
|
const controllablePromise = require("./chunks/cjs/CZAB54t2.js");
|
|
14
14
|
const peersIndex = require("./chunks/cjs/ija5tZ1t.js");
|
|
15
15
|
require("@mtcute/tl-runtime");
|
|
16
|
-
const EventEmitter = require("
|
|
16
|
+
const EventEmitter = require("events");
|
|
17
17
|
const platform = require("./chunks/cjs/j7rWn_1y.js");
|
|
18
18
|
const reader_js = require("@mtcute/tl/binary/reader.js");
|
|
19
19
|
const writer_js = require("@mtcute/tl/binary/writer.js");
|
package/index.js
CHANGED
|
@@ -3,15 +3,15 @@ import { default as default2 } from "long";
|
|
|
3
3
|
import { concatBuffers, dataViewFromBuffer, getRandomInt, bufferToReversed } from "./chunks/es/DY1E3mHM.js";
|
|
4
4
|
import { assertNever, getAllPeersFrom, getBarePeerId, getMarkedPeerId, parseMarkedPeerId, toggleChannelIdMark } from "./chunks/es/DY1E3mHM.js";
|
|
5
5
|
import { mtp, tl } from "@mtcute/tl";
|
|
6
|
-
import { TransportError, basic } from "./chunks/es/
|
|
7
|
-
import { BotChatJoinRequestUpdate$2, BotReactionCountUpdate$2, BotReactionUpdate$2, BotStoppedUpdate$2, BusinessCallbackQuery$2, BusinessMessage, CallbackQuery$2, ChatJoinRequestUpdate$2, ChatMemberUpdate$2, ChosenInlineResult$2, Conversation, DeleteBusinessMessageUpdate$2, DeleteMessageUpdate$1, DeleteStoryUpdate$2, HistoryReadUpdate$1, InlineCallbackQuery$2, InlineQuery$2, MtClient, PollUpdate$2, PollVoteUpdate$2, PreCheckoutQuery$2, SessionConnection, StorageManager, StoryUpdate$2, TelegramStorageManager, TransportState, UpdatesManager, UserStatusUpdate$2, UserTypingUpdate$1, defaultReconnectionStrategy } from "./chunks/es/
|
|
6
|
+
import { TransportError, basic } from "./chunks/es/qzEaLpWa.js";
|
|
7
|
+
import { BotChatJoinRequestUpdate$2, BotReactionCountUpdate$2, BotReactionUpdate$2, BotStoppedUpdate$2, BusinessCallbackQuery$2, BusinessMessage, CallbackQuery$2, ChatJoinRequestUpdate$2, ChatMemberUpdate$2, ChosenInlineResult$2, Conversation, DeleteBusinessMessageUpdate$2, DeleteMessageUpdate$1, DeleteStoryUpdate$2, HistoryReadUpdate$1, InlineCallbackQuery$2, InlineQuery$2, MtClient, PollUpdate$2, PollVoteUpdate$2, PreCheckoutQuery$2, SessionConnection, StorageManager, StoryUpdate$2, TelegramStorageManager, TransportState, UpdatesManager, UserStatusUpdate$2, UserTypingUpdate$1, defaultReconnectionStrategy } from "./chunks/es/qzEaLpWa.js";
|
|
8
8
|
import { normalizeInputReaction } from "./chunks/es/Btmu4f4t.js";
|
|
9
9
|
import { AllStories$2, Audio$2, Boost$2, BoostSlot$2, BoostStats$1, factories$1, factories, factories$2, BotKeyboardBuilder, BusinessAccount$2, BusinessChatLink$2, BusinessConnection$2, BusinessIntro$2, BusinessWorkHours$2, Chat$2, ChatEvent$2, ChatInviteLink$2, ChatInviteLinkMember$2, ChatLocation$2, ChatMember$2, ChatPermissions$1, ChatPhoto$2, ChatPhotoSize$2, ChatPreview$2, ChatlistPreview$2, CollectibleInfo$1, Contact$1, Dialog$2, Dice$1, Document$2, DraftMessage$2, ExtendedMediaPreview$2, FactCheck$2, FileLocation$1, ForumTopic$2, FullChat$2, Game$2, GameHighScore$2, Invoice$2, LiveLocation$1, Location$1, MASK_POSITION_POINT_TO_TL, MediaStory$1, Message$2, MessageEffect$2, MessageEntity$2, MessageForwardInfo$2, MessageReactions$2, MessageRepliesInfo$2, PaidMedia$2, PaidPeerReaction$2, PeerReaction$2, PeerStories$2, Photo$2, Poll$2, PollAnswer$2, RawDocument, RawLocation, RepliedMessageInfo$2, SearchFilters, SentCode$1, StarsStatus$2, StarsTransaction$2, Sticker$2, StickerSet$2, StoriesStealthMode$1, Story$2, StoryInteractions$2, StoryInteractiveChannelPost$2, StoryInteractiveLocation$2, StoryInteractiveReaction$1, StoryInteractiveUrl, StoryInteractiveVenue$2, StoryInteractiveWeather$1, StoryRepost, StoryViewer$2, StoryViewersList$2, TakeoutSession$1, Thumbnail$2, User$2, Venue$2, Video$2, Voice$2, WebDocument$1, WebPage$2, _actionFromTl, _callDiscardReasonFromTl, _callDiscardReasonToTl, _messageActionFromTl, _messageMediaFromTl, _storyInteractiveElementFromTl, businessWorkHoursDaysToRaw, inputTextToTl, isUploadedFile, normalizeInputMessageId, normalizeInputStickerSet, parsePeer, toReactionEmoji } from "./chunks/es/Btmu4f4t.js";
|
|
10
10
|
import { isTlRpcError } from "./chunks/es/BN3qj7tU.js";
|
|
11
11
|
import { MtEmptyError, MtInvalidPeerTypeError, MtMessageNotFoundError, MtPeerNotFoundError } from "./chunks/es/BN3qj7tU.js";
|
|
12
12
|
import { PeersIndex } from "./chunks/es/N3PMYmCL.js";
|
|
13
13
|
import "@mtcute/tl-runtime";
|
|
14
|
-
import EventEmitter from "
|
|
14
|
+
import EventEmitter from "events";
|
|
15
15
|
import { getPlatform, MtcuteError } from "./chunks/es/DBMBgE7t.js";
|
|
16
16
|
import { MtArgumentError, MtSecurityError, MtTimeoutError, MtTypeAssertionError, MtUnsupportedError } from "./chunks/es/DBMBgE7t.js";
|
|
17
17
|
import { __tlReaderMap } from "@mtcute/tl/binary/reader.js";
|
package/network/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as EventEmitter } from '
|
|
1
|
+
import { default as EventEmitter } from 'events';
|
|
2
2
|
import { mtp, tl } from '@mtcute/tl';
|
|
3
3
|
import { TlReaderMap, TlWriterMap } from '@mtcute/tl-runtime';
|
|
4
4
|
import { IMtStorageProvider } from '../storage/provider.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as EventEmitter } from '
|
|
1
|
+
import { default as EventEmitter } from 'events';
|
|
2
2
|
import { BasicDcOption, ICryptoProvider, Logger } from '../utils/index.js';
|
|
3
3
|
import { ReconnectionStrategy } from './reconnection.js';
|
|
4
4
|
import { ITelegramTransport, TransportFactory } from './transports/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as EventEmitter } from '
|
|
1
|
+
import { default as EventEmitter } from 'events';
|
|
2
2
|
import { tl } from '@mtcute/tl';
|
|
3
3
|
import { MaybePromise } from '../../types/index.js';
|
|
4
4
|
import { BasicDcOption, ICryptoProvider, Logger } from '../../utils/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as EventEmitter } from '
|
|
1
|
+
import { default as EventEmitter } from 'events';
|
|
2
2
|
import { ICryptoProvider, Logger } from '../../utils/index.js';
|
|
3
3
|
import { IPacketCodec } from './abstract.js';
|
|
4
4
|
export declare abstract class WrappedCodec extends EventEmitter {
|