@leitwerk-dev/telegram 0.1.9 → 0.2.1

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.
Files changed (71) hide show
  1. package/README.md +9 -1
  2. package/dist/actions.d.ts +1 -0
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actor.d.ts +1 -1
  5. package/dist/actor.d.ts.map +1 -1
  6. package/dist/bridge.d.ts +13 -10
  7. package/dist/bridge.d.ts.map +1 -1
  8. package/dist/config.d.ts +18 -0
  9. package/dist/config.d.ts.map +1 -1
  10. package/dist/fake-telegram-client.d.ts +60 -0
  11. package/dist/fake-telegram-client.d.ts.map +1 -1
  12. package/dist/form-session.d.ts +112 -19
  13. package/dist/form-session.d.ts.map +1 -1
  14. package/dist/grammy-telegram-client.d.ts +17 -41
  15. package/dist/grammy-telegram-client.d.ts.map +1 -1
  16. package/dist/index.d.ts +1 -16
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +3580 -52
  19. package/dist/index.js.map +1 -1
  20. package/dist/launch-session.d.ts +84 -1
  21. package/dist/launch-session.d.ts.map +1 -1
  22. package/dist/markdown-html.d.ts +19 -0
  23. package/dist/markdown-html.d.ts.map +1 -1
  24. package/dist/process-thread-store.d.ts +8 -0
  25. package/dist/process-thread-store.d.ts.map +1 -1
  26. package/dist/topic-title.d.ts +4 -0
  27. package/dist/topic-title.d.ts.map +1 -1
  28. package/dist/types.d.ts +99 -6
  29. package/dist/types.d.ts.map +1 -1
  30. package/package.json +7 -7
  31. package/src/actions.ts +14 -5
  32. package/src/actor.ts +1 -1
  33. package/src/bridge.ts +123 -303
  34. package/src/config.ts +37 -9
  35. package/src/fake-telegram-client.ts +92 -9
  36. package/src/form-session.ts +153 -42
  37. package/src/grammy-telegram-client.ts +23 -43
  38. package/src/index.ts +7 -12
  39. package/src/launch-session.ts +165 -70
  40. package/src/markdown-html.ts +35 -4
  41. package/src/process-thread-store.ts +8 -0
  42. package/src/topic-title.ts +8 -1
  43. package/src/types.ts +113 -10
  44. package/dist/actions.js +0 -32
  45. package/dist/actions.js.map +0 -1
  46. package/dist/actor.js +0 -7
  47. package/dist/actor.js.map +0 -1
  48. package/dist/bridge.js +0 -2032
  49. package/dist/bridge.js.map +0 -1
  50. package/dist/config.js +0 -70
  51. package/dist/config.js.map +0 -1
  52. package/dist/fake-telegram-client.js +0 -107
  53. package/dist/fake-telegram-client.js.map +0 -1
  54. package/dist/form-session.js +0 -218
  55. package/dist/form-session.js.map +0 -1
  56. package/dist/grammy-telegram-client.js +0 -195
  57. package/dist/grammy-telegram-client.js.map +0 -1
  58. package/dist/launch-session.js +0 -435
  59. package/dist/launch-session.js.map +0 -1
  60. package/dist/markdown-html.js +0 -259
  61. package/dist/markdown-html.js.map +0 -1
  62. package/dist/mermaid-image.js +0 -99
  63. package/dist/mermaid-image.js.map +0 -1
  64. package/dist/process-feed.js +0 -165
  65. package/dist/process-feed.js.map +0 -1
  66. package/dist/process-thread-store.js +0 -74
  67. package/dist/process-thread-store.js.map +0 -1
  68. package/dist/topic-title.js +0 -29
  69. package/dist/topic-title.js.map +0 -1
  70. package/dist/types.js +0 -19
  71. package/dist/types.js.map +0 -1
@@ -50,11 +50,32 @@ const markdown = new MarkdownIt("commonmark", {
50
50
  linkify: false,
51
51
  });
52
52
 
53
+ /** @internal */
53
54
  export type TelegramResultVisual =
54
- | { kind: "image"; imageId: string; alt: string }
55
- | { kind: "mermaid"; source: string };
56
-
57
- export type TelegramResultPart = { kind: "html"; html: string } | TelegramResultVisual;
55
+ | {
56
+ /** @internal */
57
+ kind: "image";
58
+ /** @internal */
59
+ imageId: string;
60
+ /** @internal */
61
+ alt: string;
62
+ }
63
+ | {
64
+ /** @internal */
65
+ kind: "mermaid";
66
+ /** @internal */
67
+ source: string;
68
+ };
69
+
70
+ /** @internal */
71
+ export type TelegramResultPart =
72
+ | {
73
+ /** @internal */
74
+ kind: "html";
75
+ /** @internal */
76
+ html: string;
77
+ }
78
+ | TelegramResultVisual;
58
79
 
59
80
  markdown.renderer.rules.image = (tokens, index) => escapeTelegramHtml(tokens[index]?.content ?? "");
60
81
 
@@ -62,10 +83,12 @@ type Parse5Node = DefaultTreeAdapterMap["node"];
62
83
  type Parse5Element = DefaultTreeAdapterMap["element"];
63
84
  type Parse5TextNode = DefaultTreeAdapterMap["textNode"];
64
85
 
86
+ /** @internal */
65
87
  export function escapeTelegramHtml(value: string): string {
66
88
  return value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
67
89
  }
68
90
 
91
+ /** @internal */
69
92
  export function escapeTelegramAttribute(value: string): string {
70
93
  return escapeTelegramHtml(value).replaceAll('"', "&quot;");
71
94
  }
@@ -150,6 +173,7 @@ function normalizeTelegramHtml(html: string): string {
150
173
  return parseFragment(html).childNodes.map(renderNode).join("").trim();
151
174
  }
152
175
 
176
+ /** @internal */
153
177
  export function telegramHtmlToPlainText(html: string): string {
154
178
  return parseFragment(normalizeTelegramHtml(html)).childNodes.map(collectText).join("").trim();
155
179
  }
@@ -202,6 +226,7 @@ function splitEncodedText(
202
226
  return chunks;
203
227
  }
204
228
 
229
+ /** @internal */
205
230
  export function splitPlainTelegramText(
206
231
  value: string,
207
232
  maxChars = DEFAULT_TELEGRAM_SOFT_LIMIT,
@@ -209,6 +234,7 @@ export function splitPlainTelegramText(
209
234
  return splitEncodedText(value, maxChars, (char) => char);
210
235
  }
211
236
 
237
+ /** @internal */
212
238
  export function splitTelegramHtml(value: string, maxChars = DEFAULT_TELEGRAM_SOFT_LIMIT): string[] {
213
239
  const normalized = normalizeLineEndings(value);
214
240
  if (!normalized) return [];
@@ -221,6 +247,7 @@ export function splitTelegramHtml(value: string, maxChars = DEFAULT_TELEGRAM_SOF
221
247
  : splitEncodedText(telegramHtmlToPlainText(safeHtml), max, escapeTelegramHtml);
222
248
  }
223
249
 
250
+ /** @internal */
224
251
  export function renderMarkdownToTelegramHtml(markdownText: string): string {
225
252
  const normalized = normalizeLineEndings(markdownText);
226
253
  return normalized ? normalizeTelegramHtml(markdown.render(normalized)) : "";
@@ -249,9 +276,13 @@ function resultVisual(
249
276
  * ordinary rendered Markdown so media delivery never has to reconstruct open
250
277
  * formatting containers around Telegram uploads.
251
278
  */
279
+ /** @internal */
252
280
  export function renderResultMarkdownForTelegram(input: {
281
+ /** @internal */
253
282
  markdown: string;
283
+ /** @internal */
254
284
  instanceId: string;
285
+ /** @internal */
255
286
  turnRecordId: string;
256
287
  }): TelegramResultPart[] {
257
288
  const normalized = normalizeLineEndings(input.markdown);
@@ -2,6 +2,7 @@ import type { ProcessEvent, ProcessInstance } from "@leitwerk-dev/domain";
2
2
  import type { CoreServerSetupDeps } from "@leitwerk-dev/process-sdk";
3
3
  import type { TelegramProcessThread } from "./types.js";
4
4
 
5
+ /** @internal */
5
6
  export const TELEGRAM_THREAD_LINKED_EVENT = "telegram.thread_linked";
6
7
 
7
8
  function readThreadFromEvent(event: ProcessEvent): TelegramProcessThread | null {
@@ -32,16 +33,20 @@ type ProcessEventRepoWithTypedLookup = CoreServerSetupDeps["events"] & {
32
33
  ) => ProcessEvent[];
33
34
  };
34
35
 
36
+ /** @internal */
35
37
  export function threadKey(chatId: string, messageThreadId: number | undefined): string {
36
38
  return `${chatId}:${messageThreadId ?? 0}`;
37
39
  }
38
40
 
41
+ /** @internal */
39
42
  export class ProcessThreadStore {
40
43
  private readonly byInstanceId = new Map<string, TelegramProcessThread>();
41
44
  private readonly byThreadKey = new Map<string, string>();
42
45
 
46
+ /** @internal */
43
47
  constructor(private readonly deps: Pick<CoreServerSetupDeps, "events" | "processes">) {}
44
48
 
49
+ /** @internal */
45
50
  rebuildFromEvents(): readonly string[] {
46
51
  this.byInstanceId.clear();
47
52
  this.byThreadKey.clear();
@@ -58,14 +63,17 @@ export class ProcessThreadStore {
58
63
  return mappedInstanceIds;
59
64
  }
60
65
 
66
+ /** @internal */
61
67
  getByInstanceId(instanceId: string): TelegramProcessThread | null {
62
68
  return this.byInstanceId.get(instanceId) ?? null;
63
69
  }
64
70
 
71
+ /** @internal */
65
72
  getInstanceIdForThread(chatId: string, messageThreadId: number | undefined): string | null {
66
73
  return this.byThreadKey.get(threadKey(chatId, messageThreadId)) ?? null;
67
74
  }
68
75
 
76
+ /** @internal */
69
77
  record(process: Pick<ProcessInstance, "id">, thread: TelegramProcessThread): void {
70
78
  this.deps.events.create({
71
79
  instanceId: process.id,
@@ -14,6 +14,7 @@ function truncate(value: string, max: number): string {
14
14
  return `${value.slice(0, Math.max(1, max - 1)).trimEnd()}…`;
15
15
  }
16
16
 
17
+ /** @internal */
17
18
  export function getProcessTopicBaseTitle(process: ProcessInstance): string {
18
19
  return (
19
20
  flatten(process.title ?? "") ||
@@ -23,7 +24,13 @@ export function getProcessTopicBaseTitle(process: ProcessInstance): string {
23
24
  );
24
25
  }
25
26
 
26
- export function buildTopicTitle(input: { process: ProcessInstance; template: string }): string {
27
+ /** @internal */
28
+ export function buildTopicTitle(input: {
29
+ /** @internal */
30
+ process: ProcessInstance;
31
+ /** @internal */
32
+ template: string;
33
+ }): string {
27
34
  const shortId = input.process.id.slice(-8);
28
35
  const title = getProcessTopicBaseTitle(input.process);
29
36
  const rendered = input.template
package/src/types.ts CHANGED
@@ -1,138 +1,241 @@
1
+ /** @internal */
1
2
  export type TelegramParseMode = "HTML";
2
3
 
4
+ /** @internal */
3
5
  export interface TelegramInlineKeyboardButton {
6
+ /** @internal */
4
7
  text: string;
8
+ /** @internal */
5
9
  callbackData: string;
6
10
  }
7
11
 
12
+ /** @internal */
8
13
  export interface TelegramReplyMarkupBase {
14
+ /** @internal */
9
15
  inlineKeyboard?: readonly (readonly TelegramInlineKeyboardButton[])[];
16
+ /** @internal */
10
17
  forceReply?: true;
18
+ /** @internal */
11
19
  inputFieldPlaceholder?: string;
20
+ /** @internal */
12
21
  selective?: boolean;
13
22
  }
14
23
 
24
+ /** @internal */
15
25
  export interface TelegramInlineKeyboard extends TelegramReplyMarkupBase {
26
+ /** @internal */
16
27
  inlineKeyboard: readonly (readonly TelegramInlineKeyboardButton[])[];
17
28
  }
18
29
 
30
+ /** @internal */
19
31
  export interface TelegramForceReply extends TelegramReplyMarkupBase {
32
+ /** @internal */
20
33
  forceReply: true;
21
34
  }
22
35
 
36
+ /** @internal */
23
37
  export type TelegramReplyMarkup = TelegramInlineKeyboard | TelegramForceReply;
24
38
 
39
+ /** @internal */
25
40
  export interface TelegramUserRef {
41
+ /** @internal */
26
42
  id: number;
43
+ /** @internal */
27
44
  username?: string;
28
45
  }
29
46
 
47
+ /** @internal */
30
48
  export interface TelegramTextUpdate {
49
+ /** @internal */
31
50
  messageId: number;
51
+ /** @internal */
32
52
  chatId: string;
53
+ /** @internal */
33
54
  messageThreadId?: number;
55
+ /** @internal */
34
56
  from: TelegramUserRef | null;
57
+ /** @internal */
35
58
  text: string;
36
59
  }
37
60
 
61
+ /** @internal */
38
62
  export interface TelegramCallbackUpdate {
63
+ /** @internal */
39
64
  id: string;
65
+ /** @internal */
40
66
  chatId: string;
67
+ /** @internal */
41
68
  messageThreadId?: number;
69
+ /** @internal */
42
70
  from: TelegramUserRef | null;
71
+ /** @internal */
43
72
  data: string;
44
73
  }
45
74
 
46
- export interface TelegramForumTopicCreatedUpdate {
75
+ /** @internal */
76
+ interface TelegramForumTopicUpdate {
77
+ /** @internal */
47
78
  messageId: number;
79
+ /** @internal */
48
80
  chatId: string;
81
+ /** @internal */
49
82
  messageThreadId: number;
83
+ /** @internal */
50
84
  from: TelegramUserRef | null;
51
85
  }
52
86
 
53
- export interface TelegramForumTopicClosedUpdate {
54
- messageId: number;
55
- chatId: string;
56
- messageThreadId: number;
57
- from: TelegramUserRef | null;
58
- }
87
+ /** @internal */
88
+ export interface TelegramForumTopicCreatedUpdate extends TelegramForumTopicUpdate {}
89
+
90
+ /** @internal */
91
+ export interface TelegramForumTopicClosedUpdate extends TelegramForumTopicUpdate {}
59
92
 
93
+ /** @internal */
60
94
  export type TelegramTextHandler = (update: TelegramTextUpdate) => void | Promise<void>;
95
+ /** @internal */
61
96
  export type TelegramCallbackHandler = (update: TelegramCallbackUpdate) => void | Promise<void>;
97
+ /** @internal */
62
98
  export type TelegramForumTopicCreatedHandler = (
63
99
  update: TelegramForumTopicCreatedUpdate,
64
100
  ) => void | Promise<void>;
101
+ /** @internal */
65
102
  export type TelegramForumTopicClosedHandler = (
66
103
  update: TelegramForumTopicClosedUpdate,
67
104
  ) => void | Promise<void>;
68
105
 
106
+ /** @internal */
69
107
  export interface TelegramSendMessageInput {
108
+ /** @internal */
70
109
  chatId: string;
110
+ /** @internal */
71
111
  messageThreadId?: number;
112
+ /** @internal */
72
113
  text: string;
114
+ /** @internal */
73
115
  parseMode?: TelegramParseMode;
116
+ /** @internal */
74
117
  replyMarkup?: TelegramReplyMarkup;
75
118
  }
76
119
 
120
+ /** @internal */
77
121
  export interface TelegramSendFileInput {
122
+ /** @internal */
78
123
  chatId: string;
124
+ /** @internal */
79
125
  messageThreadId?: number;
126
+ /** @internal */
80
127
  bytes: Uint8Array;
128
+ /** @internal */
81
129
  filename: string;
130
+ /** @internal */
82
131
  caption?: string;
132
+ /** @internal */
83
133
  parseMode?: TelegramParseMode;
84
134
  }
85
135
 
136
+ /** @internal */
86
137
  export interface TelegramSentMessage {
138
+ /** @internal */
87
139
  messageId: number;
88
140
  }
89
141
 
142
+ /** @internal */
90
143
  export interface TelegramClient {
144
+ /** @internal */
91
145
  start(): Promise<void>;
146
+ /** @internal */
92
147
  stop(): Promise<void>;
93
- createForumTopic(input: { chatId: string; name: string }): Promise<{ messageThreadId: number }>;
94
- editForumTopic(input: { chatId: string; messageThreadId: number; name: string }): Promise<void>;
95
- closeForumTopic(input: { chatId: string; messageThreadId: number }): Promise<void>;
148
+ /** @internal */
149
+ createForumTopic(input: {
150
+ /** @internal */
151
+ chatId: string;
152
+ /** @internal */
153
+ name: string;
154
+ }): Promise<{
155
+ /** @internal */
156
+ messageThreadId: number;
157
+ }>;
158
+ /** @internal */
159
+ editForumTopic(input: {
160
+ /** @internal */
161
+ chatId: string;
162
+ /** @internal */
163
+ messageThreadId: number;
164
+ /** @internal */
165
+ name: string;
166
+ }): Promise<void>;
167
+ /** @internal */
168
+ closeForumTopic(input: {
169
+ /** @internal */
170
+ chatId: string;
171
+ /** @internal */
172
+ messageThreadId: number;
173
+ }): Promise<void>;
174
+ /** @internal */
96
175
  sendMessage(input: TelegramSendMessageInput): Promise<TelegramSentMessage>;
176
+ /** @internal */
97
177
  sendPhoto(input: TelegramSendFileInput): Promise<TelegramSentMessage>;
178
+ /** @internal */
98
179
  sendDocument(input: TelegramSendFileInput): Promise<TelegramSentMessage>;
180
+ /** @internal */
99
181
  answerCallbackQuery(input: {
182
+ /** @internal */
100
183
  callbackQueryId: string;
184
+ /** @internal */
101
185
  text?: string;
186
+ /** @internal */
102
187
  showAlert?: boolean;
103
188
  }): Promise<void>;
189
+ /** @internal */
104
190
  onText(handler: TelegramTextHandler): void;
191
+ /** @internal */
105
192
  onCallback(handler: TelegramCallbackHandler): void;
193
+ /** @internal */
106
194
  onForumTopicCreated(handler: TelegramForumTopicCreatedHandler): void;
195
+ /** @internal */
107
196
  onForumTopicClosed(handler: TelegramForumTopicClosedHandler): void;
108
197
  }
109
198
 
199
+ /** @internal */
110
200
  export abstract class BaseTelegramClientEventRegistrar {
201
+ /** @internal */
111
202
  protected textHandlers = new Set<TelegramTextHandler>();
203
+ /** @internal */
112
204
  protected callbackHandlers = new Set<TelegramCallbackHandler>();
205
+ /** @internal */
113
206
  protected forumTopicCreatedHandlers = new Set<TelegramForumTopicCreatedHandler>();
207
+ /** @internal */
114
208
  protected forumTopicClosedHandlers = new Set<TelegramForumTopicClosedHandler>();
115
209
 
210
+ /** @internal */
116
211
  onText(handler: TelegramTextHandler): void {
117
212
  this.textHandlers.add(handler);
118
213
  }
119
214
 
215
+ /** @internal */
120
216
  onCallback(handler: TelegramCallbackHandler): void {
121
217
  this.callbackHandlers.add(handler);
122
218
  }
123
219
 
220
+ /** @internal */
124
221
  onForumTopicCreated(handler: TelegramForumTopicCreatedHandler): void {
125
222
  this.forumTopicCreatedHandlers.add(handler);
126
223
  }
127
224
 
225
+ /** @internal */
128
226
  onForumTopicClosed(handler: TelegramForumTopicClosedHandler): void {
129
227
  this.forumTopicClosedHandlers.add(handler);
130
228
  }
131
229
  }
132
230
 
231
+ /** @internal */
133
232
  export interface TelegramProcessThread {
233
+ /** @internal */
134
234
  mode: "forum_topic";
235
+ /** @internal */
135
236
  chatId: string;
237
+ /** @internal */
136
238
  messageThreadId: number;
239
+ /** @internal */
137
240
  topicName: string;
138
241
  }
package/dist/actions.js DELETED
@@ -1,32 +0,0 @@
1
- import { readFailedTurnRecoveryContext } from "@leitwerk-dev/domain";
2
- const CALLBACKS = {
3
- retry: "r",
4
- continue: "c",
5
- };
6
- function rows(items, size) {
7
- return Array.from({ length: Math.ceil(items.length / size) }, (_, index) => [
8
- ...items.slice(index * size, index * size + size),
9
- ]);
10
- }
11
- export function continuableFailedTurnRecordId(process) {
12
- const turnRecordId = process.lifecycleStatus === "error" && process.currentExecution?.kind === "server_turn"
13
- ? process.currentExecution.id
14
- : null;
15
- return turnRecordId && readFailedTurnRecoveryContext(process.metadata, turnRecordId)
16
- ? turnRecordId
17
- : null;
18
- }
19
- export function buildActionKeyboard(input) {
20
- const buttons = input.actions.map((action) => ({
21
- text: action.label,
22
- callbackData: `a:${input.process.id}:${action.id}`,
23
- }));
24
- if (input.process.lifecycleStatus === "error" && input.process.currentExecution) {
25
- buttons.push({ text: "Retry", callbackData: `${CALLBACKS.retry}:${input.process.id}` });
26
- if (continuableFailedTurnRecordId(input.process)) {
27
- buttons.push({ text: "Continue", callbackData: `${CALLBACKS.continue}:${input.process.id}` });
28
- }
29
- }
30
- return buttons.length ? { inlineKeyboard: rows(buttons, 2) } : undefined;
31
- }
32
- //# sourceMappingURL=actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAI3F,MAAM,SAAS,GAAG;IACjB,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,GAAG;CACJ,CAAC;AAEX,SAAS,IAAI,CAAI,KAAmB,EAAE,IAAY;IACjD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;QAC3E,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC;KACjD,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,OAAwB;IACrE,MAAM,YAAY,GACjB,OAAO,CAAC,eAAe,KAAK,OAAO,IAAI,OAAO,CAAC,gBAAgB,EAAE,IAAI,KAAK,aAAa;QACtF,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE;QAC7B,CAAC,CAAC,IAAI,CAAC;IACT,OAAO,YAAY,IAAI,6BAA6B,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC;QACnF,CAAC,CAAC,YAAY;QACd,CAAC,CAAC,IAAI,CAAC;AACT,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAGnC;IACA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC9C,IAAI,EAAE,MAAM,CAAC,KAAK;QAClB,YAAY,EAAE,KAAK,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,MAAM,CAAC,EAAE,EAAE;KAClD,CAAC,CAAC,CAAC;IACJ,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,KAAK,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;QACjF,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACxF,IAAI,6BAA6B,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;YAClD,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/F,CAAC;IACF,CAAC;IACD,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1E,CAAC"}
package/dist/actor.js DELETED
@@ -1,7 +0,0 @@
1
- /** Single collapsed principal for all actions originating from this channel. */
2
- export const TELEGRAM_ACTOR = {
3
- id: "telegram",
4
- kind: "channel",
5
- provider: "telegram",
6
- };
7
- //# sourceMappingURL=actor.js.map
package/dist/actor.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"actor.js","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,MAAM,CAAC,MAAM,cAAc,GAAU;IACpC,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,UAAU;CACpB,CAAC"}