@mtcute/core 0.16.9 → 0.16.10
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.
|
@@ -889,10 +889,10 @@ class ChatJoinRequestUpdate {
|
|
|
889
889
|
// in this update, peers index only contains
|
|
890
890
|
// recent requesters, not the chat
|
|
891
891
|
/**
|
|
892
|
-
* ID of the chat/channel
|
|
892
|
+
* Marked ID of the chat/channel
|
|
893
893
|
*/
|
|
894
894
|
get chatId() {
|
|
895
|
-
return conditionVariable.
|
|
895
|
+
return conditionVariable.getMarkedPeerId(this.raw.peer);
|
|
896
896
|
}
|
|
897
897
|
/**
|
|
898
898
|
* IDs of the users who recently requested to join the chat
|
|
@@ -6132,7 +6132,7 @@ class NetworkManager {
|
|
|
6132
6132
|
_: "initConnection",
|
|
6133
6133
|
deviceModel,
|
|
6134
6134
|
systemVersion: "1.0",
|
|
6135
|
-
appVersion: "0.16.
|
|
6135
|
+
appVersion: "0.16.10",
|
|
6136
6136
|
systemLangCode: "en",
|
|
6137
6137
|
langPack: "",
|
|
6138
6138
|
// "langPacks are for official apps only"
|
|
@@ -883,10 +883,10 @@ class ChatJoinRequestUpdate {
|
|
|
883
883
|
// in this update, peers index only contains
|
|
884
884
|
// recent requesters, not the chat
|
|
885
885
|
/**
|
|
886
|
-
* ID of the chat/channel
|
|
886
|
+
* Marked ID of the chat/channel
|
|
887
887
|
*/
|
|
888
888
|
get chatId() {
|
|
889
|
-
return
|
|
889
|
+
return getMarkedPeerId(this.raw.peer);
|
|
890
890
|
}
|
|
891
891
|
/**
|
|
892
892
|
* IDs of the users who recently requested to join the chat
|
|
@@ -6126,7 +6126,7 @@ class NetworkManager {
|
|
|
6126
6126
|
_: "initConnection",
|
|
6127
6127
|
deviceModel,
|
|
6128
6128
|
systemVersion: "1.0",
|
|
6129
|
-
appVersion: "0.16.
|
|
6129
|
+
appVersion: "0.16.10",
|
|
6130
6130
|
systemLangCode: "en",
|
|
6131
6131
|
langPack: "",
|
|
6132
6132
|
// "langPacks are for official apps only"
|
package/client.cjs
CHANGED
|
@@ -7,7 +7,7 @@ if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WAR
|
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
8
|
const EventEmitter = require("node:events");
|
|
9
9
|
const tl = require("@mtcute/tl");
|
|
10
|
-
const client = require("./chunks/cjs/
|
|
10
|
+
const client = require("./chunks/cjs/DYywMTAv.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
1
|
import EventEmitter from "node: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/VQ67F221.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/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ 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/DYywMTAv.js");
|
|
12
12
|
const storyViewer = require("./chunks/cjs/UVFvMVPt.js");
|
|
13
13
|
const controllablePromise = require("./chunks/cjs/CZAB54t2.js");
|
|
14
14
|
const peersIndex = require("./chunks/cjs/ija5tZ1t.js");
|
package/index.js
CHANGED
|
@@ -3,8 +3,8 @@ 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/VQ67F221.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/VQ67F221.js";
|
|
8
8
|
import { normalizeInputReaction } from "./chunks/es/CPnecqvf.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/CPnecqvf.js";
|
|
10
10
|
import { isTlRpcError } from "./chunks/es/BN3qj7tU.js";
|