@wirecat/tg-cli 0.64.0 → 0.65.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/dist/commands/bot.d.ts.map +1 -1
- package/dist/commands/bot.js +14 -3
- package/dist/commands/bot.js.map +1 -1
- package/dist/commands/checks.d.ts +3 -0
- package/dist/commands/checks.d.ts.map +1 -0
- package/dist/commands/checks.js +21 -0
- package/dist/commands/checks.js.map +1 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +7 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/telegram/account.d.ts +29 -0
- package/dist/telegram/account.d.ts.map +1 -0
- package/dist/telegram/account.js +66 -0
- package/dist/telegram/account.js.map +1 -0
- package/dist/telegram/adapter.d.ts +66 -212
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +190 -1722
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/bot-history.d.ts +2 -0
- package/dist/telegram/bot-history.d.ts.map +1 -1
- package/dist/telegram/bot-history.js +4 -4
- package/dist/telegram/bot-history.js.map +1 -1
- package/dist/telegram/chats.d.ts +30 -0
- package/dist/telegram/chats.d.ts.map +1 -0
- package/dist/telegram/chats.js +103 -0
- package/dist/telegram/chats.js.map +1 -0
- package/dist/telegram/contacts.d.ts +24 -0
- package/dist/telegram/contacts.d.ts.map +1 -0
- package/dist/telegram/contacts.js +82 -0
- package/dist/telegram/contacts.js.map +1 -0
- package/dist/telegram/errors.d.ts +4 -2
- package/dist/telegram/errors.d.ts.map +1 -1
- package/dist/telegram/errors.js +21 -14
- package/dist/telegram/errors.js.map +1 -1
- package/dist/telegram/feature.d.ts +52 -0
- package/dist/telegram/feature.d.ts.map +1 -0
- package/dist/telegram/feature.js +73 -0
- package/dist/telegram/feature.js.map +1 -0
- package/dist/telegram/folders.d.ts +11 -0
- package/dist/telegram/folders.d.ts.map +1 -0
- package/dist/telegram/folders.js +104 -0
- package/dist/telegram/folders.js.map +1 -0
- package/dist/telegram/groups.d.ts +101 -0
- package/dist/telegram/groups.d.ts.map +1 -0
- package/dist/telegram/groups.js +386 -0
- package/dist/telegram/groups.js.map +1 -0
- package/dist/telegram/join-requests.d.ts +2 -1
- package/dist/telegram/join-requests.d.ts.map +1 -1
- package/dist/telegram/join-requests.js +2 -2
- package/dist/telegram/join-requests.js.map +1 -1
- package/dist/telegram/login.d.ts +20 -0
- package/dist/telegram/login.d.ts.map +1 -0
- package/dist/telegram/login.js +113 -0
- package/dist/telegram/login.js.map +1 -0
- package/dist/telegram/messages.d.ts +134 -0
- package/dist/telegram/messages.d.ts.map +1 -0
- package/dist/telegram/messages.js +379 -0
- package/dist/telegram/messages.js.map +1 -0
- package/dist/telegram/polls.d.ts +23 -4
- package/dist/telegram/polls.d.ts.map +1 -1
- package/dist/telegram/polls.js +83 -3
- package/dist/telegram/polls.js.map +1 -1
- package/dist/telegram/proxy.d.ts +3 -1
- package/dist/telegram/proxy.d.ts.map +1 -1
- package/dist/telegram/proxy.js +2 -2
- package/dist/telegram/proxy.js.map +1 -1
- package/dist/telegram/registration.d.ts +5 -1
- package/dist/telegram/registration.d.ts.map +1 -1
- package/dist/telegram/registration.js +39 -8
- package/dist/telegram/registration.js.map +1 -1
- package/dist/telegram/send-as.d.ts +2 -1
- package/dist/telegram/send-as.d.ts.map +1 -1
- package/dist/telegram/send-as.js +2 -2
- package/dist/telegram/send-as.js.map +1 -1
- package/dist/telegram/sending.d.ts.map +1 -1
- package/dist/telegram/sending.js +2 -1
- package/dist/telegram/sending.js.map +1 -1
- package/dist/telegram/stats.d.ts +8 -2
- package/dist/telegram/stats.d.ts.map +1 -1
- package/dist/telegram/stats.js +54 -0
- package/dist/telegram/stats.js.map +1 -1
- package/dist/telegram/topics.d.ts +36 -0
- package/dist/telegram/topics.d.ts.map +1 -0
- package/dist/telegram/topics.js +276 -0
- package/dist/telegram/topics.js.map +1 -0
- package/dist/telegram/upload.d.ts.map +1 -1
- package/dist/telegram/upload.js +2 -1
- package/dist/telegram/upload.js.map +1 -1
- package/dist/telegram/watch.d.ts +13 -0
- package/dist/telegram/watch.d.ts.map +1 -0
- package/dist/telegram/watch.js +112 -0
- package/dist/telegram/watch.js.map +1 -0
- package/dist/update.d.ts +3 -23
- package/dist/update.d.ts.map +1 -1
- package/dist/update.js +10 -37
- package/dist/update.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { TextSpan } from "@wirecat/cli-core";
|
|
2
|
+
import { type Attachment, type Chat, type CounterField, type Markup, type Message, type MessageHit, type Page } from "@wirecat/cli-core";
|
|
3
|
+
import type { After, Download, SendOptions, ServerQuery, Transcript } from "@wirecat/cli-core/cli";
|
|
4
|
+
import { type Feature, type Sent } from "./feature.js";
|
|
5
|
+
export declare const TRANSCRIBE_POLL_MS = 2000;
|
|
6
|
+
export declare const history: (feature: Feature, reference: string, { limit, before }: {
|
|
7
|
+
limit: number;
|
|
8
|
+
before?: string;
|
|
9
|
+
}) => Promise<Page<Message>>;
|
|
10
|
+
/**
|
|
11
|
+
* Forward from a message or a moment: `reverse` reads upwards from the offset, inclusive, so an id
|
|
12
|
+
* starts one past it. The filter keeps a date offset honest — Telegram places it, it does not cut at it.
|
|
13
|
+
*/
|
|
14
|
+
export declare const historyAfter: (feature: Feature, reference: string, { limit, after }: {
|
|
15
|
+
limit: number;
|
|
16
|
+
after: After;
|
|
17
|
+
}) => Promise<Page<Message>>;
|
|
18
|
+
/** One person's newest messages in a chat: Telegram's search by sender, newest first, answered oldest first. */
|
|
19
|
+
export declare const historyFrom: (feature: Feature, reference: string, person: string, { limit }: {
|
|
20
|
+
limit: number;
|
|
21
|
+
}) => Promise<Page<Message>>;
|
|
22
|
+
/** Back from a moment, newest first as Telegram reads, answered oldest first. The filter cuts at the moment itself. */
|
|
23
|
+
export declare const historyBefore: (feature: Feature, reference: string, { limit, time }: {
|
|
24
|
+
limit: number;
|
|
25
|
+
time: number;
|
|
26
|
+
}) => Promise<Page<Message>>;
|
|
27
|
+
/**
|
|
28
|
+
* Telegram's own text search, newest first: in one chat with `chat`, in every chat otherwise. Its
|
|
29
|
+
* matching is undocumented, so the answer is candidates for the store's strict query.
|
|
30
|
+
*/
|
|
31
|
+
export declare const searchMessages: (feature: Feature, query: ServerQuery, { limit, signal }: {
|
|
32
|
+
limit: number;
|
|
33
|
+
signal?: AbortSignal;
|
|
34
|
+
}) => Promise<Page<MessageHit> & {
|
|
35
|
+
chats: Chat[];
|
|
36
|
+
}>;
|
|
37
|
+
export declare const around: (feature: Feature, reference: string, messageId: string, { before, after }: {
|
|
38
|
+
before: number;
|
|
39
|
+
after: number;
|
|
40
|
+
}) => Promise<(Message | {
|
|
41
|
+
id: import("@wirecat/cli-core").Id;
|
|
42
|
+
chatId: import("@wirecat/cli-core").Id;
|
|
43
|
+
senderId: import("@wirecat/cli-core").Id | null;
|
|
44
|
+
senderName: string | null;
|
|
45
|
+
senderUsername?: string;
|
|
46
|
+
mentions?: import("@wirecat/cli-core").Id[];
|
|
47
|
+
senderIsChat?: boolean;
|
|
48
|
+
timestamp: string;
|
|
49
|
+
editedAt: string | null;
|
|
50
|
+
text: string;
|
|
51
|
+
outgoing: boolean | null;
|
|
52
|
+
attachments: Attachment[];
|
|
53
|
+
replyTo: import("@wirecat/cli-core").QuotedMessage | null;
|
|
54
|
+
replyToId?: import("@wirecat/cli-core").Id;
|
|
55
|
+
forwardedFrom: import("@wirecat/cli-core").QuotedMessage | null;
|
|
56
|
+
threadId?: import("@wirecat/cli-core").Id;
|
|
57
|
+
threadRootId?: import("@wirecat/cli-core").Id;
|
|
58
|
+
reactions: import("@wirecat/cli-core").Reactions | null;
|
|
59
|
+
counterObservations?: import("@wirecat/cli-core").CounterObservations;
|
|
60
|
+
scheduledFor?: string;
|
|
61
|
+
providerMetadata?: import("@wirecat/cli-core").ProviderMetadata;
|
|
62
|
+
anchor: true;
|
|
63
|
+
})[]>;
|
|
64
|
+
/**
|
|
65
|
+
* One request: history from just above the message, shifted `after` messages newer. Telegram's
|
|
66
|
+
* offset id is exclusive, hence the `+ 1`; ids are not contiguous, so the window is cut by position.
|
|
67
|
+
*/
|
|
68
|
+
export declare const fetchCounters: (feature: Feature, reference: string, messageId: string, fields: readonly CounterField[], signal?: AbortSignal) => Promise<Partial<Record<"comments" | "reactions" | "views", import("@wirecat/cli-core").CounterObservation>>>;
|
|
69
|
+
export declare const permalink: (feature: Feature, chatId: string, messageId: string) => Promise<{
|
|
70
|
+
url: null;
|
|
71
|
+
access: "unavailable";
|
|
72
|
+
reason: "unsupported_chat";
|
|
73
|
+
} | {
|
|
74
|
+
url: string;
|
|
75
|
+
access: "public" | "restricted" | "unknown";
|
|
76
|
+
reason: null;
|
|
77
|
+
}>;
|
|
78
|
+
export declare const scheduled: (feature: Feature, reference: string) => Promise<Message[]>;
|
|
79
|
+
/**
|
|
80
|
+
* One logical send carries one `random_id`, made before the request and repeated by a retry:
|
|
81
|
+
* Telegram delivers one message for both (measured 2026-09-27, across two connections).
|
|
82
|
+
*/
|
|
83
|
+
export declare const send: (feature: Feature, chatId: string, text: string, { sendId, replyTo, threadId, silent, noPreview, markup, formatting, at, attachments, sendAs, spoiler, captionAbove, }: SendOptions) => Promise<Sent>;
|
|
84
|
+
/**
|
|
85
|
+
* An edit has no `random_id`, but setting the same text twice is harmless: Telegram answers the
|
|
86
|
+
* repeat with MESSAGE_NOT_MODIFIED, taken here as done — so a retry after an unknown outcome is safe.
|
|
87
|
+
*/
|
|
88
|
+
export declare const edit: (feature: Feature, chatId: string, messageId: string, text: string, { markup, formatting }?: {
|
|
89
|
+
markup?: Markup[];
|
|
90
|
+
formatting?: TextSpan[];
|
|
91
|
+
}) => Promise<Message>;
|
|
92
|
+
/**
|
|
93
|
+
* The raw call, because mtcute's `forwardMessagesById` draws the `random_id` itself: a retry has to
|
|
94
|
+
* repeat the first one for Telegram to keep one copy, as a send does.
|
|
95
|
+
*/
|
|
96
|
+
export declare const forward: (feature: Feature, fromChatId: string, messageId: string, toChatId: string, { sendId, silent, sendAs, threadId }: {
|
|
97
|
+
sendId: string;
|
|
98
|
+
silent?: boolean;
|
|
99
|
+
sendAs?: string;
|
|
100
|
+
threadId?: string;
|
|
101
|
+
}) => Promise<Message>;
|
|
102
|
+
/** In a one-to-one chat the pin is on the owner's side only; `notify` reaches groups alone, as Telegram has it. */
|
|
103
|
+
export declare const pin: (feature: Feature, chatId: string, messageId: string, { notify }: {
|
|
104
|
+
notify: boolean;
|
|
105
|
+
}) => Promise<void>;
|
|
106
|
+
export declare const unpin: (feature: Feature, chatId: string, messageId: string) => Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Telegram sets the owner's reactions as a whole, so one emoji replaces what was there. An emoji the
|
|
109
|
+
* chat does not allow, or a second one without Premium, comes back as Telegram's refusal.
|
|
110
|
+
*/
|
|
111
|
+
export declare const react: (feature: Feature, chatId: string, messageId: string, emoji: string | null) => Promise<void>;
|
|
112
|
+
/** Up to `until`, or everything; mentions stay, as Telegram's own clients leave them until they are seen. */
|
|
113
|
+
export declare const markRead: (feature: Feature, chatId: string, until?: string) => Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* mtcute deletes for everyone unless told otherwise, so `revoke` is always passed. In a supergroup or
|
|
116
|
+
* a channel Telegram has no "for me": a deletion there is for everyone, and without `forEveryone` it is refused.
|
|
117
|
+
*
|
|
118
|
+
* **Outside a channel the ids are checked against the chat first.** Telegram numbers private-chat and
|
|
119
|
+
* basic-group messages per account and `messages.deleteMessages` takes no chat, so an id from another
|
|
120
|
+
* chat — or the other side's number for the same message — deletes whatever this account has under it
|
|
121
|
+
* (SEC-30). `getMessages` answers null for an id that is not in the chat it was given.
|
|
122
|
+
*/
|
|
123
|
+
export declare const deleteMessages: (feature: Feature, chatId: string, messageIds: string[], { forEveryone }: {
|
|
124
|
+
forEveryone: boolean;
|
|
125
|
+
}) => Promise<void>;
|
|
126
|
+
/** The message is fetched again, never taken from the store: Telegram's file references expire. */
|
|
127
|
+
export declare const download: (feature: Feature, reference: string, messageId: string) => Promise<Download>;
|
|
128
|
+
/**
|
|
129
|
+
* Telegram's own speech recognition; mtcute has no high-level method for `messages.transcribeAudio`.
|
|
130
|
+
* A first answer is usually still pending. The finished text arrives as an update, which a one-shot
|
|
131
|
+
* connection does not receive, but asking again returns it — measured 2026-09-29 on a 19 s voice note.
|
|
132
|
+
*/
|
|
133
|
+
export declare const transcribe: (feature: Feature, reference: string, messageId: string) => Promise<Transcript>;
|
|
134
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/telegram/messages.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,IAAI,EACT,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,OAAO,EACZ,KAAK,UAAU,EAEf,KAAK,IAAI,EACV,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElG,OAAO,EACL,KAAK,OAAO,EAQZ,KAAK,IAAI,EAGV,MAAM,cAAc,CAAA;AAQrB,eAAO,MAAM,kBAAkB,OAAO,CAAA;AAItC,eAAO,MAAM,OAAO,YACT,OAAO,aACL,MAAM,qBACE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KACpD,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAQvB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,YACd,OAAO,aACL,MAAM,oBACC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,KAChD,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G,OAAO,CAAC,QAAQ,CAoBjG,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,YAAa,OAAO,aAAa,MAAM,aAAa,MAAM,KAAG,OAAO,CAAC,UAAU,CAarG,CAAA"}
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { FileLocation, Long, PeersIndex, Message as TgMessage, tl } from "@mtcute/node";
|
|
2
|
+
import { CliError } from "@wirecat/cli-base";
|
|
3
|
+
import { observedCounters, } from "@wirecat/cli-core";
|
|
4
|
+
import { toCliError } from "./errors.js";
|
|
5
|
+
import { forwardedCopy, messageNumber, parseSendId, remoteHit, remoteMessage, repeatWith, retryDetails, topicNumber, unknownIfUnanswered, } from "./feature.js";
|
|
6
|
+
import { attachmentsOf, checkSpoiler, peerToChat, toFormatted, toInputMedia, toMessage } from "./map.js";
|
|
7
|
+
import { sendAsPeer } from "./send-as.js";
|
|
8
|
+
import { uploadAttachment } from "./upload.js";
|
|
9
|
+
/** The Bot API's deleteMessages cap; assumed for MTProto's getMessages and deleteMessages, not checked against Telegram. */
|
|
10
|
+
const BY_ID_BATCH = 100;
|
|
11
|
+
export const TRANSCRIBE_POLL_MS = 2000;
|
|
12
|
+
const TRANSCRIBE_WAIT_MS = 60_000;
|
|
13
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
14
|
+
export const history = (feature, reference, { limit, before }) => {
|
|
15
|
+
return feature.call(async () => {
|
|
16
|
+
const peer = await feature.inputOf(reference);
|
|
17
|
+
const offset = before === undefined ? undefined : { id: messageNumber(before), date: 0 };
|
|
18
|
+
const page = await feature.client.getHistory(peer, { limit, ...(offset ? { offset } : {}) });
|
|
19
|
+
// mtcute drops deleted entries and the inexact-count flag. Its iterator follows next, never total.
|
|
20
|
+
return { items: page.map(remoteMessage).reverse(), hasMore: page.next !== undefined };
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Forward from a message or a moment: `reverse` reads upwards from the offset, inclusive, so an id
|
|
25
|
+
* starts one past it. The filter keeps a date offset honest — Telegram places it, it does not cut at it.
|
|
26
|
+
*/
|
|
27
|
+
export const historyAfter = (feature, reference, { limit, after }) => {
|
|
28
|
+
const offset = "id" in after
|
|
29
|
+
? { id: messageNumber(after.id, "`id>` takes a message id") + 1, date: 0 }
|
|
30
|
+
: { id: 0, date: Math.floor(after.time / 1000) };
|
|
31
|
+
const newer = (message) => "id" in after ? Number(message.id) > Number(after.id) : Date.parse(message.timestamp) > after.time;
|
|
32
|
+
return feature.call(async () => {
|
|
33
|
+
const peer = await feature.inputOf(reference);
|
|
34
|
+
const page = await feature.client.getHistory(peer, { limit, reverse: true, offset });
|
|
35
|
+
// As history(): a short page is no end, deleted entries are dropped from it; only an empty one is.
|
|
36
|
+
return { items: page.map(remoteMessage).filter(newer), hasMore: page.next !== undefined };
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
/** One person's newest messages in a chat: Telegram's search by sender, newest first, answered oldest first. */
|
|
40
|
+
export const historyFrom = (feature, reference, person, { limit }) => {
|
|
41
|
+
return feature.call(async () => {
|
|
42
|
+
const [chatId, fromUser] = await Promise.all([feature.inputOf(reference), feature.inputOf(person)]);
|
|
43
|
+
const page = await feature.client.searchMessages({ chatId, fromUser, limit });
|
|
44
|
+
return { items: page.map(remoteMessage).reverse(), hasMore: page.total > page.length };
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
/** Back from a moment, newest first as Telegram reads, answered oldest first. The filter cuts at the moment itself. */
|
|
48
|
+
export const historyBefore = (feature, reference, { limit, time }) => {
|
|
49
|
+
return feature.call(async () => {
|
|
50
|
+
const peer = await feature.inputOf(reference);
|
|
51
|
+
const page = await feature.client.getHistory(peer, { limit, offset: { id: 0, date: Math.floor(time / 1000) } });
|
|
52
|
+
const older = page.map(remoteMessage).filter((message) => Date.parse(message.timestamp) < time);
|
|
53
|
+
return { items: older.reverse(), hasMore: page.next !== undefined };
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Telegram's own text search, newest first: in one chat with `chat`, in every chat otherwise. Its
|
|
58
|
+
* matching is undocumented, so the answer is candidates for the store's strict query.
|
|
59
|
+
*/
|
|
60
|
+
export const searchMessages = (feature, query, { limit, signal }) => {
|
|
61
|
+
return feature.call(async () => {
|
|
62
|
+
const seconds = (ms) => (ms === undefined ? 0 : Math.floor(ms / 1000));
|
|
63
|
+
const common = {
|
|
64
|
+
q: query.text,
|
|
65
|
+
filter: { _: "inputMessagesFilterEmpty" },
|
|
66
|
+
minDate: seconds(query.minDate),
|
|
67
|
+
maxDate: seconds(query.maxDate),
|
|
68
|
+
limit,
|
|
69
|
+
};
|
|
70
|
+
// The raw call, because only it takes these: a flood wait is answered at once instead of slept
|
|
71
|
+
// through, and the search's time bound cancels the request rather than leaving it to hold the connection.
|
|
72
|
+
const options = { floodSleepThreshold: 0, ...(signal ? { abortSignal: signal } : {}) };
|
|
73
|
+
const found = query.chat === undefined
|
|
74
|
+
? await feature.client.call({
|
|
75
|
+
_: "messages.searchGlobal",
|
|
76
|
+
...common,
|
|
77
|
+
offsetRate: 0,
|
|
78
|
+
offsetPeer: { _: "inputPeerEmpty" },
|
|
79
|
+
offsetId: 0,
|
|
80
|
+
}, options)
|
|
81
|
+
: await feature.client.call({
|
|
82
|
+
_: "messages.search",
|
|
83
|
+
...common,
|
|
84
|
+
peer: await feature.client.resolvePeer(await feature.inputOf(query.chat)),
|
|
85
|
+
...(query.from === undefined
|
|
86
|
+
? {}
|
|
87
|
+
: { fromId: await feature.client.resolvePeer(await feature.inputOf(query.from)) }),
|
|
88
|
+
offsetId: 0,
|
|
89
|
+
addOffset: 0,
|
|
90
|
+
maxId: 0,
|
|
91
|
+
minId: 0,
|
|
92
|
+
hash: Long.ZERO,
|
|
93
|
+
}, options);
|
|
94
|
+
if (found._ === "messages.messagesNotModified")
|
|
95
|
+
return { items: [], hasMore: false, chats: [] };
|
|
96
|
+
const peers = PeersIndex.from(found);
|
|
97
|
+
const page = found.messages.filter((one) => one._ !== "messageEmpty").map((one) => new TgMessage(one, peers));
|
|
98
|
+
const chats = new Map(page.map((message) => [String(message.chat.id), peerToChat(message.chat)]));
|
|
99
|
+
return {
|
|
100
|
+
items: page.map((message) => remoteHit(message, "remote_fetch")),
|
|
101
|
+
hasMore: page.length === limit,
|
|
102
|
+
chats: [...chats.values()],
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
export const around = (feature, reference, messageId, { before, after }) => {
|
|
107
|
+
const id = messageNumber(messageId, "a message id is a number");
|
|
108
|
+
return feature.call(async () => {
|
|
109
|
+
const peer = await feature.inputOf(reference);
|
|
110
|
+
const page = await feature.client.getHistory(peer, {
|
|
111
|
+
offset: { id: id + 1, date: 0 },
|
|
112
|
+
addOffset: -after,
|
|
113
|
+
limit: before + 1 + after,
|
|
114
|
+
});
|
|
115
|
+
const items = page.map(remoteMessage).reverse();
|
|
116
|
+
const index = items.findIndex((message) => message.id === String(id));
|
|
117
|
+
if (index < 0)
|
|
118
|
+
throw new CliError("not_found", `no message ${id} in that chat`);
|
|
119
|
+
return items
|
|
120
|
+
.slice(Math.max(0, index - before), index + after + 1)
|
|
121
|
+
.map((message) => (message.id === String(id) ? { ...message, anchor: true } : message));
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* One request: history from just above the message, shifted `after` messages newer. Telegram's
|
|
126
|
+
* offset id is exclusive, hence the `+ 1`; ids are not contiguous, so the window is cut by position.
|
|
127
|
+
*/
|
|
128
|
+
export const fetchCounters = (feature, reference, messageId, fields, signal) => {
|
|
129
|
+
const id = messageNumber(messageId);
|
|
130
|
+
return feature.call(async () => {
|
|
131
|
+
signal?.throwIfAborted();
|
|
132
|
+
const [found] = await feature.client.getMessages(await feature.inputOf(reference), [id]);
|
|
133
|
+
signal?.throwIfAborted();
|
|
134
|
+
return found ? (observedCounters(toMessage(found), new Date().toISOString(), fields).counterObservations ?? {}) : {};
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
export const permalink = (feature, chatId, messageId) => {
|
|
138
|
+
const id = messageNumber(messageId, "a message id is a positive Telegram integer");
|
|
139
|
+
if (id <= 0 || id > 2147483647)
|
|
140
|
+
throw new CliError("validation_error", "a message id is a positive Telegram integer");
|
|
141
|
+
return feature.call(async () => {
|
|
142
|
+
const input = await feature.inputOf(chatId);
|
|
143
|
+
const [found] = await feature.client.getMessages(input, [id]);
|
|
144
|
+
if (!found || found.id !== id)
|
|
145
|
+
throw new CliError("not_found", "that message no longer exists in this chat");
|
|
146
|
+
const peer = await feature.client.getPeer(input);
|
|
147
|
+
if (peer.type !== "chat" || peer.raw._ !== "channel")
|
|
148
|
+
return { url: null, access: "unavailable", reason: "unsupported_chat" };
|
|
149
|
+
const { link } = await feature.client.call({
|
|
150
|
+
_: "channels.exportMessageLink",
|
|
151
|
+
channel: await feature.client.resolveChannel(input),
|
|
152
|
+
id,
|
|
153
|
+
thread: true,
|
|
154
|
+
});
|
|
155
|
+
const url = new URL(link);
|
|
156
|
+
const known = ["t.me", "telegram.me", "telegram.dog"].includes(url.hostname);
|
|
157
|
+
const access = !known
|
|
158
|
+
? "unknown"
|
|
159
|
+
: url.pathname.startsWith("/c/")
|
|
160
|
+
? "restricted"
|
|
161
|
+
: "public";
|
|
162
|
+
return { url: link, access, reason: null };
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
export const scheduled = (feature, reference) => {
|
|
166
|
+
return feature.call(async () => {
|
|
167
|
+
const queued = await feature.client.getAllScheduledMessages(await feature.inputOf(reference));
|
|
168
|
+
return queued.map(toMessage).sort((a, b) => a.timestamp.localeCompare(b.timestamp));
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* One logical send carries one `random_id`, made before the request and repeated by a retry:
|
|
173
|
+
* Telegram delivers one message for both (measured 2026-09-27, across two connections).
|
|
174
|
+
*/
|
|
175
|
+
export const send = (feature, chatId, text, { sendId, replyTo, threadId, silent, noPreview, markup, formatting, at, attachments = [], sendAs, spoiler, captionAbove, }) => {
|
|
176
|
+
const id = parseSendId(sendId);
|
|
177
|
+
const thread = threadId === undefined ? undefined : topicNumber(threadId);
|
|
178
|
+
const answering = replyTo === undefined ? undefined : messageNumber(replyTo, "a message id is a number");
|
|
179
|
+
const author = sendAs === undefined ? undefined : sendAsPeer(chatId, sendAs, feature.self(), feature.checks);
|
|
180
|
+
if (attachments.length > 1)
|
|
181
|
+
throw new CliError("validation_error", "tg sends one file or photo per message");
|
|
182
|
+
const spans = formatting ?? markup;
|
|
183
|
+
const body = spans ? toFormatted(text, spans) : text;
|
|
184
|
+
const common = {
|
|
185
|
+
randomId: id,
|
|
186
|
+
...(thread === undefined || thread === 1 ? {} : { threadId: thread }),
|
|
187
|
+
...(answering === undefined ? {} : { replyTo: answering }),
|
|
188
|
+
...(silent ? { silent } : {}),
|
|
189
|
+
...(at === undefined ? {} : { schedule: new Date(at) }),
|
|
190
|
+
...(author === undefined ? {} : { sendAs: author }),
|
|
191
|
+
};
|
|
192
|
+
return feature.send(async () => {
|
|
193
|
+
const [attachment] = attachments;
|
|
194
|
+
if (spoiler && attachment)
|
|
195
|
+
checkSpoiler(attachment);
|
|
196
|
+
const media = attachment
|
|
197
|
+
? toInputMedia(attachment, body, await uploadAttachment(feature.client, attachment), { spoiler })
|
|
198
|
+
: undefined;
|
|
199
|
+
try {
|
|
200
|
+
const message = media
|
|
201
|
+
? await feature.client.sendMedia(Number(chatId), media, {
|
|
202
|
+
...common,
|
|
203
|
+
...(captionAbove ? { invert: true } : {}),
|
|
204
|
+
})
|
|
205
|
+
: await feature.client.sendText(Number(chatId), body, {
|
|
206
|
+
...common,
|
|
207
|
+
...(noPreview ? { disableWebPreview: true } : {}),
|
|
208
|
+
});
|
|
209
|
+
return { message: toMessage(message), sendId };
|
|
210
|
+
}
|
|
211
|
+
catch (error) {
|
|
212
|
+
throw unknownIfUnanswered(error, `the message may have been sent. Repeat with ${repeatWith(sendId, sendAs)}, never without it`, retryDetails(sendId, sendAs));
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* An edit has no `random_id`, but setting the same text twice is harmless: Telegram answers the
|
|
218
|
+
* repeat with MESSAGE_NOT_MODIFIED, taken here as done — so a retry after an unknown outcome is safe.
|
|
219
|
+
*/
|
|
220
|
+
export const edit = (feature, chatId, messageId, text, { markup, formatting } = {}) => {
|
|
221
|
+
const id = messageNumber(messageId, "a message id is a number");
|
|
222
|
+
const spans = formatting ?? markup;
|
|
223
|
+
const body = spans ? toFormatted(text, spans) : text;
|
|
224
|
+
return feature.call(async () => {
|
|
225
|
+
try {
|
|
226
|
+
return toMessage(await feature.client.editMessage({ chatId: Number(chatId), message: id, text: body }));
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
if (tl.RpcError.is(error, "MESSAGE_NOT_MODIFIED")) {
|
|
230
|
+
const [current] = await feature.client.getMessages(Number(chatId), [id]);
|
|
231
|
+
if (current)
|
|
232
|
+
return toMessage(current);
|
|
233
|
+
}
|
|
234
|
+
throw unknownIfUnanswered(error, "the edit may have been made — repeating it is safe");
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* The raw call, because mtcute's `forwardMessagesById` draws the `random_id` itself: a retry has to
|
|
240
|
+
* repeat the first one for Telegram to keep one copy, as a send does.
|
|
241
|
+
*/
|
|
242
|
+
export const forward = (feature, fromChatId, messageId, toChatId, { sendId, silent, sendAs, threadId }) => {
|
|
243
|
+
const id = messageNumber(messageId, "a message id is a number");
|
|
244
|
+
const randomId = parseSendId(sendId);
|
|
245
|
+
const thread = threadId === undefined ? undefined : topicNumber(threadId);
|
|
246
|
+
const author = sendAs === undefined ? undefined : sendAsPeer(toChatId, sendAs, feature.self(), feature.checks);
|
|
247
|
+
return feature.send(async () => {
|
|
248
|
+
try {
|
|
249
|
+
const updates = await feature.client.call({
|
|
250
|
+
_: "messages.forwardMessages",
|
|
251
|
+
fromPeer: await feature.client.resolvePeer(Number(fromChatId)),
|
|
252
|
+
toPeer: await feature.client.resolvePeer(Number(toChatId)),
|
|
253
|
+
id: [id],
|
|
254
|
+
randomId: [randomId],
|
|
255
|
+
...(silent ? { silent } : {}),
|
|
256
|
+
...(thread === undefined || thread === 1 ? {} : { topMsgId: thread }),
|
|
257
|
+
...(author === undefined ? {} : { sendAs: await feature.client.resolvePeer(author) }),
|
|
258
|
+
});
|
|
259
|
+
feature.client.handleClientUpdate(updates, true);
|
|
260
|
+
const copy = forwardedCopy(updates);
|
|
261
|
+
if (!copy)
|
|
262
|
+
throw new CliError("provider_error", "Telegram answered the forward without the new message");
|
|
263
|
+
return toMessage(copy);
|
|
264
|
+
}
|
|
265
|
+
catch (error) {
|
|
266
|
+
throw unknownIfUnanswered(error, `the message may have been forwarded. Repeat with ${repeatWith(sendId, sendAs)}, never without it`, retryDetails(sendId, sendAs));
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
/** In a one-to-one chat the pin is on the owner's side only; `notify` reaches groups alone, as Telegram has it. */
|
|
271
|
+
export const pin = (feature, chatId, messageId, { notify }) => {
|
|
272
|
+
const id = messageNumber(messageId, "a message id is a number");
|
|
273
|
+
return feature.write("the pin may have been made — repeating it is safe", async () => {
|
|
274
|
+
await feature.client.pinMessage({ chatId: Number(chatId), message: id, notify });
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
export const unpin = (feature, chatId, messageId) => {
|
|
278
|
+
const id = messageNumber(messageId, "a message id is a number");
|
|
279
|
+
return feature.write("the message may have been unpinned — repeating it is safe", async () => {
|
|
280
|
+
await feature.client.unpinMessage({ chatId: Number(chatId), message: id });
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Telegram sets the owner's reactions as a whole, so one emoji replaces what was there. An emoji the
|
|
285
|
+
* chat does not allow, or a second one without Premium, comes back as Telegram's refusal.
|
|
286
|
+
*/
|
|
287
|
+
export const react = (feature, chatId, messageId, emoji) => {
|
|
288
|
+
const id = messageNumber(messageId, "a message id is a number");
|
|
289
|
+
return feature.write("the reaction may have been set — repeating it is safe", async () => {
|
|
290
|
+
await feature.client.sendReaction({ chatId: Number(chatId), message: id, emoji });
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
/** Up to `until`, or everything; mentions stay, as Telegram's own clients leave them until they are seen. */
|
|
294
|
+
export const markRead = (feature, chatId, until) => {
|
|
295
|
+
const maxId = until === undefined ? undefined : messageNumber(until, "--until takes a message id");
|
|
296
|
+
return feature.write("the chat may have been marked read — repeating it is safe", async () => {
|
|
297
|
+
await feature.client.readHistory(Number(chatId), maxId === undefined ? {} : { maxId });
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* mtcute deletes for everyone unless told otherwise, so `revoke` is always passed. In a supergroup or
|
|
302
|
+
* a channel Telegram has no "for me": a deletion there is for everyone, and without `forEveryone` it is refused.
|
|
303
|
+
*
|
|
304
|
+
* **Outside a channel the ids are checked against the chat first.** Telegram numbers private-chat and
|
|
305
|
+
* basic-group messages per account and `messages.deleteMessages` takes no chat, so an id from another
|
|
306
|
+
* chat — or the other side's number for the same message — deletes whatever this account has under it
|
|
307
|
+
* (SEC-30). `getMessages` answers null for an id that is not in the chat it was given.
|
|
308
|
+
*/
|
|
309
|
+
export const deleteMessages = async (feature, chatId, messageIds, { forEveryone }) => {
|
|
310
|
+
const ids = messageIds.map((id) => messageNumber(id, "a message id is a number"));
|
|
311
|
+
const peer = await feature.call(async () => {
|
|
312
|
+
const peer = await feature.client.resolvePeer(Number(chatId));
|
|
313
|
+
if (peer._ === "inputPeerChannel") {
|
|
314
|
+
if (!forEveryone) {
|
|
315
|
+
throw new CliError("validation_error", "in a supergroup or a channel Telegram deletes for everyone — add --for-everyone if that is what you want");
|
|
316
|
+
}
|
|
317
|
+
return peer;
|
|
318
|
+
}
|
|
319
|
+
const found = [];
|
|
320
|
+
for (let at = 0; at < ids.length; at += BY_ID_BATCH)
|
|
321
|
+
for (const one of await feature.client.getMessages(peer, ids.slice(at, at + BY_ID_BATCH)))
|
|
322
|
+
found.push(one);
|
|
323
|
+
const missing = ids.filter((_, index) => found[index] == null);
|
|
324
|
+
if (missing.length > 0) {
|
|
325
|
+
throw new CliError("validation_error", `no message ${missing.join(", ")} in chat ${chatId} — not in this chat, or already deleted; nothing was deleted`);
|
|
326
|
+
}
|
|
327
|
+
return peer;
|
|
328
|
+
});
|
|
329
|
+
return feature.write("the messages may have been deleted — repeating it is safe", async () => {
|
|
330
|
+
for (let at = 0; at < ids.length; at += BY_ID_BATCH)
|
|
331
|
+
await feature.client.deleteMessagesById(peer, ids.slice(at, at + BY_ID_BATCH), { revoke: forEveryone });
|
|
332
|
+
});
|
|
333
|
+
};
|
|
334
|
+
/** The message is fetched again, never taken from the store: Telegram's file references expire. */
|
|
335
|
+
export const download = (feature, reference, messageId) => {
|
|
336
|
+
const id = messageNumber(messageId, "a message id is a number");
|
|
337
|
+
return feature.call(async () => {
|
|
338
|
+
const [found] = await feature.client.getMessages(await feature.inputOf(reference), id);
|
|
339
|
+
if (!found)
|
|
340
|
+
throw new CliError("not_found", `no message ${id} in that chat`);
|
|
341
|
+
const media = found.media;
|
|
342
|
+
if (!media)
|
|
343
|
+
return { files: [], skipped: [] };
|
|
344
|
+
if (!(media instanceof FileLocation))
|
|
345
|
+
return { files: [], skipped: [media.type] };
|
|
346
|
+
const [{ kind, name, mime, size }] = attachmentsOf(media);
|
|
347
|
+
const client = feature.client;
|
|
348
|
+
const { login, checks } = feature;
|
|
349
|
+
async function* bytes() {
|
|
350
|
+
try {
|
|
351
|
+
yield* client.downloadAsIterable(media);
|
|
352
|
+
}
|
|
353
|
+
catch (error) {
|
|
354
|
+
throw toCliError(error, checks, login);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return { files: [{ kind, name, mime, size, bytes }], skipped: [] };
|
|
358
|
+
});
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Telegram's own speech recognition; mtcute has no high-level method for `messages.transcribeAudio`.
|
|
362
|
+
* A first answer is usually still pending. The finished text arrives as an update, which a one-shot
|
|
363
|
+
* connection does not receive, but asking again returns it — measured 2026-09-29 on a 19 s voice note.
|
|
364
|
+
*/
|
|
365
|
+
export const transcribe = (feature, reference, messageId) => {
|
|
366
|
+
const id = messageNumber(messageId, "a message id is a number");
|
|
367
|
+
return feature.call(async () => {
|
|
368
|
+
const peer = await feature.client.resolvePeer(await feature.inputOf(reference));
|
|
369
|
+
const deadline = Date.now() + TRANSCRIBE_WAIT_MS;
|
|
370
|
+
for (;;) {
|
|
371
|
+
const answer = await feature.client.call({ _: "messages.transcribeAudio", peer, msgId: id });
|
|
372
|
+
if (answer.pending !== true || Date.now() >= deadline) {
|
|
373
|
+
return { text: answer.text, pending: answer.pending === true };
|
|
374
|
+
}
|
|
375
|
+
await sleep(TRANSCRIBE_POLL_MS);
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
};
|
|
379
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/telegram/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,IAAI,SAAS,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,OAAO,EAOL,gBAAgB,GAEjB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAEL,aAAa,EACb,aAAa,EACb,WAAW,EACX,SAAS,EACT,aAAa,EACb,UAAU,EACV,YAAY,EAEZ,WAAW,EACX,mBAAmB,GACpB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,aAAa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KAAK,EAAE,EAAE,EAAE,CAAC,CAAA;YAC5F,IAAI,MAAM,CAAC,OAAO,KAAK,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,QAAQ,EAAE,CAAC;gBACtD,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,IAAI,EAAE,CAAA;YAChE,CAAC;YACD,MAAM,KAAK,CAAC,kBAAkB,CAAC,CAAA;QACjC,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
package/dist/telegram/polls.d.ts
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import type { Poll
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
1
|
+
import type { Poll } from "@wirecat/cli-core";
|
|
2
|
+
import type { NewPoll } from "@wirecat/cli-core/cli";
|
|
3
|
+
import { type Feature, type Sent } from "./feature.js";
|
|
4
|
+
export declare const poll: (feature: Feature, chatId: string, messageId: string) => Promise<Poll>;
|
|
5
|
+
export declare const pollVoters: (feature: Feature, chatId: string, messageId: string, window: {
|
|
6
|
+
limit: number;
|
|
7
|
+
answerId?: string;
|
|
8
|
+
}) => Promise<import("@wirecat/cli-core").Page<import("@wirecat/cli-core").PollVote> & {
|
|
9
|
+
total: number;
|
|
10
|
+
}>;
|
|
11
|
+
/** Votes by the answers' own bytes, never by index: mtcute would fetch the poll and pick by position. */
|
|
12
|
+
export declare const vote: (feature: Feature, chatId: string, messageId: string, answerIds: string[]) => Promise<Poll>;
|
|
13
|
+
export declare const closePoll: (feature: Feature, chatId: string, messageId: string) => Promise<Poll>;
|
|
14
|
+
/**
|
|
15
|
+
* One `random_id` per logical create, as a send has: a retry repeats it and Telegram keeps one poll
|
|
16
|
+
* (measured 2026-10-08: the second call answered the first poll's message id — unlike topic creation).
|
|
17
|
+
*/
|
|
18
|
+
export declare const createPoll: (feature: Feature, chatId: string, poll: NewPoll, { sendId, silent, threadId, sendAs }: {
|
|
19
|
+
sendId: string;
|
|
20
|
+
silent?: boolean;
|
|
21
|
+
threadId?: string;
|
|
22
|
+
sendAs?: string;
|
|
23
|
+
}) => Promise<Sent>;
|
|
5
24
|
//# sourceMappingURL=polls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polls.d.ts","sourceRoot":"","sources":["../../src/telegram/polls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"polls.d.ts","sourceRoot":"","sources":["../../src/telegram/polls.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EACL,KAAK,OAAO,EAKZ,KAAK,IAAI,EAIV,MAAM,cAAc,CAAA;AAqBrB,eAAO,MAAM,IAAI,YAAa,OAAO,UAAU,MAAM,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CAEtF,CAAA;AAED,eAAO,MAAM,UAAU,YACZ,OAAO,UACR,MAAM,aACH,MAAM,UACT;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE;;EAI7C,CAAA;AAED,yGAAyG;AACzG,eAAO,MAAM,IAAI,YAAa,OAAO,UAAU,MAAM,aAAa,MAAM,aAAa,MAAM,EAAE,KAAG,OAAO,CAAC,IAAI,CAoB3G,CAAA;AAED,eAAO,MAAM,SAAS,YAAa,OAAO,UAAU,MAAM,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CAc3F,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,YACZ,OAAO,UACR,MAAM,QACR,OAAO,wCACyB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAC7G,OAAO,CAAC,IAAI,CAqBd,CAAA"}
|