@mtkruto/node 0.148.0 → 0.150.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.
Files changed (77) hide show
  1. package/esm/3_types.d.ts +3 -0
  2. package/esm/3_types.d.ts.map +1 -1
  3. package/esm/3_types.js +3 -0
  4. package/esm/client/0_params.d.ts +8 -0
  5. package/esm/client/0_params.d.ts.map +1 -1
  6. package/esm/client/0_utilities.d.ts +1 -1
  7. package/esm/client/0_utilities.d.ts.map +1 -1
  8. package/esm/client/1_client_generic.d.ts +20 -2
  9. package/esm/client/1_client_generic.d.ts.map +1 -1
  10. package/esm/client/3_filters.d.ts.map +1 -1
  11. package/esm/client/3_filters.js +4 -1
  12. package/esm/client/3_message_manager.d.ts +4 -2
  13. package/esm/client/3_message_manager.d.ts.map +1 -1
  14. package/esm/client/3_message_manager.js +84 -1
  15. package/esm/client/6_client.d.ts +20 -2
  16. package/esm/client/6_client.d.ts.map +1 -1
  17. package/esm/client/6_client.js +22 -0
  18. package/esm/client/6_client_dispatcher.d.ts +20 -2
  19. package/esm/client/6_client_dispatcher.d.ts.map +1 -1
  20. package/esm/client/6_client_dispatcher.js +22 -0
  21. package/esm/tl/1_telegram_api.d.ts +120 -29
  22. package/esm/tl/1_telegram_api.d.ts.map +1 -1
  23. package/esm/tl/1_telegram_api.js +124 -26
  24. package/esm/types/2_message_entity.d.ts +16 -0
  25. package/esm/types/2_message_entity.d.ts.map +1 -1
  26. package/esm/types/2_message_entity.js +51 -45
  27. package/esm/types/3_rich_text_component.d.ts +268 -0
  28. package/esm/types/3_rich_text_component.d.ts.map +1 -0
  29. package/esm/types/3_rich_text_component.js +161 -0
  30. package/esm/types/4_page_block.d.ts +479 -0
  31. package/esm/types/4_page_block.d.ts.map +1 -0
  32. package/esm/types/4_page_block.js +552 -0
  33. package/esm/types/5_input_rich_text.d.ts +38 -0
  34. package/esm/types/5_input_rich_text.d.ts.map +1 -0
  35. package/esm/types/5_input_rich_text.js +20 -0
  36. package/esm/types/6_message.d.ts +20 -1
  37. package/esm/types/6_message.d.ts.map +1 -1
  38. package/esm/types/6_message.js +26 -0
  39. package/package.json +1 -1
  40. package/script/3_types.d.ts +3 -0
  41. package/script/3_types.d.ts.map +1 -1
  42. package/script/3_types.js +3 -0
  43. package/script/client/0_params.d.ts +8 -0
  44. package/script/client/0_params.d.ts.map +1 -1
  45. package/script/client/0_utilities.d.ts +1 -1
  46. package/script/client/0_utilities.d.ts.map +1 -1
  47. package/script/client/1_client_generic.d.ts +20 -2
  48. package/script/client/1_client_generic.d.ts.map +1 -1
  49. package/script/client/3_filters.d.ts.map +1 -1
  50. package/script/client/3_filters.js +4 -1
  51. package/script/client/3_message_manager.d.ts +4 -2
  52. package/script/client/3_message_manager.d.ts.map +1 -1
  53. package/script/client/3_message_manager.js +83 -0
  54. package/script/client/6_client.d.ts +20 -2
  55. package/script/client/6_client.d.ts.map +1 -1
  56. package/script/client/6_client.js +22 -0
  57. package/script/client/6_client_dispatcher.d.ts +20 -2
  58. package/script/client/6_client_dispatcher.d.ts.map +1 -1
  59. package/script/client/6_client_dispatcher.js +22 -0
  60. package/script/tl/1_telegram_api.d.ts +120 -29
  61. package/script/tl/1_telegram_api.d.ts.map +1 -1
  62. package/script/tl/1_telegram_api.js +124 -26
  63. package/script/types/2_message_entity.d.ts +16 -0
  64. package/script/types/2_message_entity.d.ts.map +1 -1
  65. package/script/types/2_message_entity.js +53 -45
  66. package/script/types/3_rich_text_component.d.ts +268 -0
  67. package/script/types/3_rich_text_component.d.ts.map +1 -0
  68. package/script/types/3_rich_text_component.js +165 -0
  69. package/script/types/4_page_block.d.ts +479 -0
  70. package/script/types/4_page_block.d.ts.map +1 -0
  71. package/script/types/4_page_block.js +569 -0
  72. package/script/types/5_input_rich_text.d.ts +38 -0
  73. package/script/types/5_input_rich_text.d.ts.map +1 -0
  74. package/script/types/5_input_rich_text.js +21 -0
  75. package/script/types/6_message.d.ts +20 -1
  76. package/script/types/6_message.d.ts.map +1 -1
  77. package/script/types/6_message.js +26 -0
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ /**
3
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
+ *
6
+ * This file is part of MTKruto.
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Lesser General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.constructRichTextComponent = constructRichTextComponent;
23
+ exports.richTextComponentToTlObject = richTextComponentToTlObject;
24
+ const _0_deps_js_1 = require("../0_deps.js");
25
+ const _1_utilities_js_1 = require("../1_utilities.js");
26
+ const _2_tl_js_1 = require("../2_tl.js");
27
+ const _file_id_js_1 = require("./_file_id.js");
28
+ const _1_photo_js_1 = require("./1_photo.js");
29
+ const _2_message_entity_js_1 = require("./2_message_entity.js");
30
+ function constructRichTextComponent(rt, photos) {
31
+ switch (rt._) {
32
+ case "textMention":
33
+ return { type: "mention", text: constructRichTextComponent(rt.text, photos) };
34
+ case "textEmpty":
35
+ return { type: "empty" };
36
+ case "textPlain":
37
+ return { type: "plain", text: rt.text };
38
+ case "textBold":
39
+ return { type: "bold", text: constructRichTextComponent(rt.text, photos) };
40
+ case "textItalic":
41
+ return { type: "italic", text: constructRichTextComponent(rt.text, photos) };
42
+ case "textUnderline":
43
+ return { type: "underline", text: constructRichTextComponent(rt.text, photos) };
44
+ case "textStrike":
45
+ return { type: "strikethrough", text: constructRichTextComponent(rt.text, photos) };
46
+ case "textFixed":
47
+ return { type: "fixed", text: constructRichTextComponent(rt.text, photos) };
48
+ case "textUrl":
49
+ return { type: "link", url: rt.url, linkPreviewId: String(rt.webpage_id), text: constructRichTextComponent(rt.text, photos) };
50
+ case "textEmail":
51
+ return { type: "emailLink", email: rt.email, text: constructRichTextComponent(rt.text, photos) };
52
+ case "textConcat":
53
+ return { type: "concatenate", components: rt.texts.map((v) => constructRichTextComponent(v, photos)) };
54
+ case "textSubscript":
55
+ return { type: "subscript", text: constructRichTextComponent(rt.text, photos) };
56
+ case "textSuperscript":
57
+ return { type: "superscript", text: constructRichTextComponent(rt.text, photos) };
58
+ case "textMarked":
59
+ return { type: "marked", text: constructRichTextComponent(rt.text, photos) };
60
+ case "textPhone":
61
+ return { type: "phoneNumberLink", phoneNumber: rt.phone, text: constructRichTextComponent(rt.text, photos) };
62
+ case "textImage": {
63
+ const photo = _2_tl_js_1.Api.as("photo", photos.find((v) => v.id === rt.document_id));
64
+ const fileId = (0, _1_photo_js_1.constructPhoto)(photo).fileId;
65
+ return { type: "photo", fileId, width: rt.w, height: rt.h };
66
+ }
67
+ case "textAnchor":
68
+ return { type: "anchor", name: rt.name, text: constructRichTextComponent(rt.text, photos) };
69
+ case "textMath":
70
+ return { type: "math", code: rt.source };
71
+ case "textCustomEmoji":
72
+ return { type: "customEmoji", customEmojiId: String(rt.document_id), alt: rt.alt };
73
+ case "textSpoiler":
74
+ return { type: "spoiler", text: constructRichTextComponent(rt.text, photos) };
75
+ case "textHashtag":
76
+ return { type: "hashtag", text: constructRichTextComponent(rt.text, photos) };
77
+ case "textBotCommand":
78
+ return { type: "botCommand", text: constructRichTextComponent(rt.text, photos) };
79
+ case "textCashtag":
80
+ return { type: "cashtag", text: constructRichTextComponent(rt.text, photos) };
81
+ case "textAutoUrl":
82
+ return { type: "url", text: constructRichTextComponent(rt.text, photos) };
83
+ case "textAutoEmail":
84
+ return { type: "email", text: constructRichTextComponent(rt.text, photos) };
85
+ case "textAutoPhone":
86
+ return { type: "phoneNumber", text: constructRichTextComponent(rt.text, photos) };
87
+ case "textBankCard":
88
+ return { type: "bankCard", text: constructRichTextComponent(rt.text, photos) };
89
+ case "textMentionName":
90
+ return { type: "textMention", userId: Number(rt.user_id), text: constructRichTextComponent(rt.text, photos) };
91
+ case "textDate":
92
+ return (0, _1_utilities_js_1.cleanObject)({ type: "dateTime", isRelative: !!rt.relative, format: (0, _2_message_entity_js_1.constructDateTimeFormat)(rt) || undefined, date: rt.date, text: constructRichTextComponent(rt.text, photos) });
93
+ }
94
+ (0, _0_deps_js_1.unreachable)();
95
+ }
96
+ function richTextComponentToTlObject(rtc) {
97
+ switch (rtc.type) {
98
+ case "empty":
99
+ return { _: "textEmpty" };
100
+ case "plain":
101
+ return { _: "textPlain", text: rtc.text };
102
+ case "bold":
103
+ return { _: "textBold", text: richTextComponentToTlObject(rtc.text) };
104
+ case "italic":
105
+ return { _: "textItalic", text: richTextComponentToTlObject(rtc.text) };
106
+ case "underline":
107
+ return { _: "textUnderline", text: richTextComponentToTlObject(rtc.text) };
108
+ case "strikethrough":
109
+ return { _: "textStrike", text: richTextComponentToTlObject(rtc.text) };
110
+ case "fixed":
111
+ return { _: "textFixed", text: richTextComponentToTlObject(rtc.text) };
112
+ case "link":
113
+ return { _: "textUrl", url: rtc.url, webpage_id: BigInt(rtc.linkPreviewId), text: richTextComponentToTlObject(rtc.text) };
114
+ case "emailLink":
115
+ return { _: "textEmail", email: rtc.email, text: richTextComponentToTlObject(rtc.text) };
116
+ case "concatenate":
117
+ return { _: "textConcat", texts: rtc.components.map(richTextComponentToTlObject) };
118
+ case "subscript":
119
+ return { _: "textSubscript", text: richTextComponentToTlObject(rtc.text) };
120
+ case "superscript":
121
+ return { _: "textSuperscript", text: richTextComponentToTlObject(rtc.text) };
122
+ case "marked":
123
+ return { _: "textMarked", text: richTextComponentToTlObject(rtc.text) };
124
+ case "phoneNumberLink":
125
+ return { _: "textPhone", phone: rtc.phoneNumber, text: richTextComponentToTlObject(rtc.text) };
126
+ case "photo": {
127
+ const fileId = (0, _file_id_js_1.deserializeFileId)(rtc.fileId);
128
+ if (!("id" in fileId.location)) {
129
+ (0, _0_deps_js_1.unreachable)();
130
+ }
131
+ return { _: "textImage", document_id: fileId.location.id, w: rtc.width, h: rtc.height };
132
+ }
133
+ case "anchor":
134
+ return { _: "textAnchor", name: rtc.name, text: richTextComponentToTlObject(rtc.text) };
135
+ case "math":
136
+ return { _: "textMath", source: rtc.code };
137
+ case "customEmoji":
138
+ return { _: "textCustomEmoji", document_id: BigInt(rtc.customEmojiId), alt: rtc.alt };
139
+ case "spoiler":
140
+ return { _: "textSpoiler", text: richTextComponentToTlObject(rtc.text) };
141
+ case "mention":
142
+ return { _: "textMention", text: richTextComponentToTlObject(rtc.text) };
143
+ case "hashtag":
144
+ return { _: "textHashtag", text: richTextComponentToTlObject(rtc.text) };
145
+ case "botCommand":
146
+ return { _: "textBotCommand", text: richTextComponentToTlObject(rtc.text) };
147
+ case "cashtag":
148
+ return { _: "textCashtag", text: richTextComponentToTlObject(rtc.text) };
149
+ case "url":
150
+ return { _: "textAutoUrl", text: richTextComponentToTlObject(rtc.text) };
151
+ case "email":
152
+ return { _: "textAutoEmail", text: richTextComponentToTlObject(rtc.text) };
153
+ case "phoneNumber":
154
+ return { _: "textAutoPhone", text: richTextComponentToTlObject(rtc.text) };
155
+ case "bankCard":
156
+ return { _: "textBankCard", text: richTextComponentToTlObject(rtc.text) };
157
+ case "textMention":
158
+ return { _: "textMentionName", text: richTextComponentToTlObject(rtc.text), user_id: BigInt(rtc.userId) };
159
+ case "dateTime": {
160
+ const obj = { _: "textDate", text: richTextComponentToTlObject(rtc.text), date: rtc.date };
161
+ (0, _2_message_entity_js_1.timeFormatToTlObject)(rtc.format ?? "", obj);
162
+ return obj;
163
+ }
164
+ }
165
+ }
@@ -0,0 +1,479 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+ import { Api } from "../2_tl.js";
21
+ import { type Location } from "./0_location.js";
22
+ import { type ChatP } from "./1_chat_p.js";
23
+ import { type RichTextComponent } from "./3_rich_text_component.js";
24
+ /**
25
+ * An unsupported type of page block.
26
+ * @unlisted
27
+ */
28
+ export interface PageBlockUnsupported {
29
+ type: "unsupported";
30
+ }
31
+ /**
32
+ * A title page block.
33
+ * @unlisted
34
+ */
35
+ export interface PageBlockTitle {
36
+ type: "title";
37
+ text: RichTextComponent;
38
+ }
39
+ /**
40
+ * A subtitle page block.
41
+ * @unlisted
42
+ */
43
+ export interface PageBlockSubtitle {
44
+ type: "subtitle";
45
+ text: RichTextComponent;
46
+ }
47
+ /**
48
+ * An author-date page block.
49
+ * @unlisted
50
+ */
51
+ export interface PageBlockAuthorDate {
52
+ type: "authorDate";
53
+ author: RichTextComponent;
54
+ date: number;
55
+ }
56
+ /**
57
+ * A header page block.
58
+ * @unlisted
59
+ */
60
+ export interface PageBlockHeader {
61
+ type: "header";
62
+ text: RichTextComponent;
63
+ }
64
+ /**
65
+ * A subheader page block.
66
+ * @unlisted
67
+ */
68
+ export interface PageBlockSubheader {
69
+ type: "subheader";
70
+ text: RichTextComponent;
71
+ }
72
+ /**
73
+ * A paragraph page block.
74
+ * @unlisted
75
+ */
76
+ export interface PageBlockParagraph {
77
+ type: "paragraph";
78
+ text: RichTextComponent;
79
+ }
80
+ /**
81
+ * A pre-formatted page block.
82
+ * @unlisted
83
+ */
84
+ export interface PageBlockPre {
85
+ type: "pre";
86
+ language?: string;
87
+ text: RichTextComponent;
88
+ }
89
+ /**
90
+ * A footer page block.
91
+ * @unlisted
92
+ */
93
+ export interface PageBlockFooter {
94
+ type: "footer";
95
+ text: RichTextComponent;
96
+ }
97
+ /**
98
+ * A divider page block.
99
+ * @unlisted
100
+ */
101
+ export interface PageBlockDivider {
102
+ type: "divider";
103
+ }
104
+ /**
105
+ * An anchor page block.
106
+ * @unlisted
107
+ */
108
+ export interface PageBlockAnchor {
109
+ type: "anchor";
110
+ name: string;
111
+ }
112
+ /** @unlisted */
113
+ export interface PageBlockListItemText {
114
+ type: "text";
115
+ isCheckbox: boolean;
116
+ isChecked: boolean;
117
+ text: RichTextComponent;
118
+ }
119
+ /** @unlisted */
120
+ export interface PageBlockListItemBlockList {
121
+ type: "blockList";
122
+ isCheckbox: boolean;
123
+ isChecked: boolean;
124
+ blocks: PageBlock[];
125
+ }
126
+ /** @unlisted */
127
+ export type PageBlockListItem = PageBlockListItemText | PageBlockListItemBlockList;
128
+ export declare function constructPageBlockListItem(pli: Api.PageListItem, photos: Api.Photo[], documents: Api.Document[]): PageBlockListItem;
129
+ export declare function pageBlockListItemToTlObject(pbli: PageBlockListItem): Api.PageListItem;
130
+ /**
131
+ * An list page block.
132
+ * @unlisted
133
+ */
134
+ export interface PageBlockList {
135
+ type: "list";
136
+ items: PageBlockListItem[];
137
+ }
138
+ /**
139
+ * A block quote page block.
140
+ * @unlisted
141
+ */
142
+ export interface PageBlockBlockQuote {
143
+ type: "blockQuote";
144
+ text: RichTextComponent;
145
+ caption: RichTextComponent;
146
+ }
147
+ /**
148
+ * A pull quote page block.
149
+ * @unlisted
150
+ */
151
+ export interface PageBlockPullQuote {
152
+ type: "pullQuote";
153
+ text: RichTextComponent;
154
+ caption: RichTextComponent;
155
+ }
156
+ /** @unlisted */
157
+ export interface PageBlockCaption {
158
+ text: RichTextComponent;
159
+ credit: RichTextComponent;
160
+ }
161
+ export declare function constructPageBlockCaption(pc: Api.PageCaption, photos: Api.Photo[]): PageBlockCaption;
162
+ export declare function pageBlockCaptionToTlObject(pbc: PageBlockCaption): Api.PageCaption;
163
+ /**
164
+ * A photo page block.
165
+ * @unlisted
166
+ */
167
+ export interface PageBlockPhoto {
168
+ type: "photo";
169
+ fileId: string;
170
+ caption: PageBlockCaption;
171
+ isSpoiler: boolean;
172
+ url?: string;
173
+ linkPreviewId?: string;
174
+ }
175
+ /**
176
+ * A video page block.
177
+ * @unlisted
178
+ */
179
+ export interface PageBlockVideo {
180
+ type: "video";
181
+ fileId: string;
182
+ caption: PageBlockCaption;
183
+ isSpoiler: boolean;
184
+ isLoop: boolean;
185
+ isAutoplay: boolean;
186
+ linkPreviewId?: string;
187
+ }
188
+ /**
189
+ * An animation page block.
190
+ * @unlisted
191
+ */
192
+ export interface PageBlockAnimation {
193
+ type: "animation";
194
+ fileId: string;
195
+ caption: PageBlockCaption;
196
+ isSpoiler: boolean;
197
+ isLoop: boolean;
198
+ isAutoplay: boolean;
199
+ linkPreviewId?: string;
200
+ }
201
+ /**
202
+ * A cover page block.
203
+ * @unlisted
204
+ */
205
+ export interface PageBlockCover {
206
+ type: "cover";
207
+ cover: PageBlock;
208
+ }
209
+ /**
210
+ * An embed page block.
211
+ * @unlisted
212
+ */
213
+ export interface PageBlockEmbed {
214
+ type: "embed";
215
+ isFullWidth: boolean;
216
+ isScrollingAllowed: boolean;
217
+ url?: string;
218
+ html?: string;
219
+ posterPhotoId?: string;
220
+ width?: number;
221
+ height?: number;
222
+ caption: PageBlockCaption;
223
+ }
224
+ /**
225
+ * An embed post page block.
226
+ * @unlisted
227
+ */
228
+ export interface PageBlockEmbedPost {
229
+ type: "embedPost";
230
+ url: string;
231
+ linkPreviewId: string;
232
+ authorPhotoId: string;
233
+ author: string;
234
+ date: number;
235
+ blocks: PageBlock[];
236
+ caption: PageBlockCaption;
237
+ }
238
+ /**
239
+ * A collage page block.
240
+ * @unlisted
241
+ */
242
+ export interface PageBlockCollage {
243
+ type: "collage";
244
+ items: PageBlock[];
245
+ caption: PageBlockCaption;
246
+ }
247
+ /**
248
+ * A slideshow page block.
249
+ * @unlisted
250
+ */
251
+ export interface PageBlockSlideshow {
252
+ type: "slideshow";
253
+ items: PageBlock[];
254
+ caption: PageBlockCaption;
255
+ }
256
+ /**
257
+ * A channel page block.
258
+ * @unlisted
259
+ */
260
+ export interface PageBlockChannel {
261
+ type: "channel";
262
+ chat: ChatP;
263
+ }
264
+ /**
265
+ * An audio page block.
266
+ * @unlisted
267
+ */
268
+ export interface PageBlockAudio {
269
+ type: "audio";
270
+ fileId: string;
271
+ caption: PageBlockCaption;
272
+ }
273
+ /**
274
+ * A voice page block.
275
+ * @unlisted
276
+ */
277
+ export interface PageBlockVoice {
278
+ type: "voice";
279
+ fileId: string;
280
+ caption: PageBlockCaption;
281
+ }
282
+ /**
283
+ * A kicker page block.
284
+ * @unlisted
285
+ */
286
+ export interface PageBlockKicker {
287
+ type: "kicker";
288
+ text: RichTextComponent;
289
+ }
290
+ /** @unlisted */
291
+ export interface PageBlockTableCell {
292
+ isHeader: boolean;
293
+ isCenterAligned: boolean;
294
+ isRightAligned: boolean;
295
+ isMiddleVerticallyAligned: boolean;
296
+ isBottomVerticallyAligned: boolean;
297
+ text?: RichTextComponent;
298
+ colspan?: number;
299
+ rowspan?: number;
300
+ }
301
+ export declare function constructPageBlockTableCell(ptc: Api.PageTableCell, photos: Api.Photo[]): PageBlockTableCell;
302
+ export declare function pageBlockTableCellToTlObject(pbtc: PageBlockTableCell): Api.PageTableCell;
303
+ /** @unlisted */
304
+ export interface PageBlockTableRow {
305
+ cells: PageBlockTableCell[];
306
+ }
307
+ export declare function constructPageBlockTableRow(ptr: Api.PageTableRow, photos: Api.Photo[]): PageBlockTableRow;
308
+ export declare function pageBlockTableRowToTlObject(pbtr: PageBlockTableRow): Api.PageTableRow;
309
+ /**
310
+ * A table page block.
311
+ * @unlisted
312
+ */
313
+ export interface PageBlockTable {
314
+ type: "table";
315
+ isBordered: boolean;
316
+ isStriped: boolean;
317
+ title: RichTextComponent;
318
+ rows: PageBlockTableRow[];
319
+ }
320
+ /** @unlisted */
321
+ export interface PageBlockOrderedListItemText {
322
+ type: "text";
323
+ isCheckbox: boolean;
324
+ isChecked: boolean;
325
+ number?: string;
326
+ value?: number;
327
+ itemType?: string;
328
+ text: RichTextComponent;
329
+ }
330
+ /** @unlisted */
331
+ export interface PageBlockOrderedListItemTextBlockList {
332
+ type: "blockList";
333
+ isCheckbox: boolean;
334
+ isChecked: boolean;
335
+ number?: string;
336
+ value?: number;
337
+ itemType?: string;
338
+ blocks: PageBlock[];
339
+ }
340
+ /** @unlisted */
341
+ export type PageBlockOrderedListItem = PageBlockOrderedListItemText | PageBlockOrderedListItemTextBlockList;
342
+ export declare function constructPageBlockOrderedListItem(ploi: Api.PageListOrderedItem, photos: Api.Photo[], documents: Api.Document[]): PageBlockOrderedListItem;
343
+ export declare function pageBlockOrderedListItemToTlObject(pboli: PageBlockOrderedListItem): Api.PageListOrderedItem;
344
+ /**
345
+ * An order list page block.
346
+ * @unlisted
347
+ */
348
+ export interface PageBlockOrderedList {
349
+ type: "orderedList";
350
+ isReversed: boolean;
351
+ items: PageBlockOrderedListItem[];
352
+ start?: number;
353
+ itemsType?: string;
354
+ }
355
+ /**
356
+ * A details page block.
357
+ * @unlisted
358
+ */
359
+ export interface PageBlockDetails {
360
+ type: "details";
361
+ isOpen: boolean;
362
+ blocks: PageBlock[];
363
+ title: RichTextComponent;
364
+ }
365
+ /** @unlisted */
366
+ export interface PageBlockRelatedArticle {
367
+ url: string;
368
+ linkPreviewId: string;
369
+ title?: string;
370
+ description?: string;
371
+ photoId?: string;
372
+ author?: string;
373
+ date?: number;
374
+ }
375
+ export declare function constructPageBlockRelatedArticle(pra: Api.PageRelatedArticle): PageBlockRelatedArticle;
376
+ export declare function pageBlockRelatedArticleToTlObject(pbra: PageBlockRelatedArticle): Api.PageRelatedArticle;
377
+ /**
378
+ * A related articles page block.
379
+ * @unlisted
380
+ */
381
+ export interface PageBlockRelatedArticles {
382
+ type: "relatedArticles";
383
+ title: RichTextComponent;
384
+ articles: PageBlockRelatedArticle[];
385
+ }
386
+ /**
387
+ * A map page block.
388
+ * @unlisted
389
+ */
390
+ export interface PageBlockMap {
391
+ type: "map";
392
+ location: Location;
393
+ zoom: number;
394
+ width: number;
395
+ height: number;
396
+ caption: PageBlockCaption;
397
+ }
398
+ /**
399
+ * A heading 1 page block.
400
+ * @unlisted
401
+ */
402
+ export interface PageBlockHeading1 {
403
+ type: "heading1";
404
+ text: RichTextComponent;
405
+ }
406
+ /**
407
+ * A heading 2 page block.
408
+ * @unlisted
409
+ */
410
+ export interface PageBlockHeading2 {
411
+ type: "heading2";
412
+ text: RichTextComponent;
413
+ }
414
+ /**
415
+ * A heading 3 page block.
416
+ * @unlisted
417
+ */
418
+ export interface PageBlockHeading3 {
419
+ type: "heading3";
420
+ text: RichTextComponent;
421
+ }
422
+ /**
423
+ * A heading 4 page block.
424
+ * @unlisted
425
+ */
426
+ export interface PageBlockHeading4 {
427
+ type: "heading4";
428
+ text: RichTextComponent;
429
+ }
430
+ /**
431
+ * A heading 5 page block.
432
+ * @unlisted
433
+ */
434
+ export interface PageBlockHeading5 {
435
+ type: "heading5";
436
+ text: RichTextComponent;
437
+ }
438
+ /**
439
+ * A heading 6 page block.
440
+ * @unlisted
441
+ */
442
+ export interface PageBlockHeading6 {
443
+ type: "heading6";
444
+ text: RichTextComponent;
445
+ }
446
+ /**
447
+ * A math page block.
448
+ * @unlisted
449
+ */
450
+ export interface PageBlockMath {
451
+ type: "math";
452
+ code: string;
453
+ }
454
+ /**
455
+ * A thinking block.
456
+ * @unlisted
457
+ */
458
+ export interface PageBlockThinking {
459
+ type: "thinking";
460
+ text: RichTextComponent;
461
+ }
462
+ /**
463
+ * A block quote blocks block.
464
+ * @unlisted
465
+ */
466
+ export interface PageBlockBlockQuoteBlocks {
467
+ type: "blockQuoteBlocks";
468
+ blocks: PageBlock[];
469
+ caption: RichTextComponent;
470
+ }
471
+ /** Any type of page block. */
472
+ export type PageBlock = PageBlockUnsupported | PageBlockTitle | PageBlockSubtitle | PageBlockAuthorDate | PageBlockHeader | PageBlockSubheader | PageBlockParagraph | PageBlockPre | PageBlockFooter | PageBlockDivider | PageBlockAnchor | PageBlockList | PageBlockBlockQuote | PageBlockPullQuote | PageBlockPhoto | PageBlockVideo | PageBlockAnimation | PageBlockCover | PageBlockEmbed | PageBlockEmbedPost | PageBlockCollage | PageBlockSlideshow | PageBlockChannel | PageBlockAudio | PageBlockVoice | PageBlockKicker | PageBlockTable | PageBlockOrderedList | PageBlockDetails | PageBlockRelatedArticles | PageBlockMap | PageBlockHeading1 | PageBlockHeading2 | PageBlockHeading3 | PageBlockHeading4 | PageBlockHeading5 | PageBlockHeading6 | PageBlockMath | PageBlockThinking | PageBlockBlockQuoteBlocks;
473
+ export declare function constructPageBlock(pb: Api.PageBlock, photos: Api.Photo[], documents: Api.Document[]): PageBlock;
474
+ export declare function pageBlockToTlObject(pb: PageBlock): Api.PageBlock;
475
+ export declare function collectMediaFileIds(pageBlocks: PageBlock[]): {
476
+ fileId: string;
477
+ type: "photo" | "audio" | "video" | "voice" | "animation";
478
+ }[];
479
+ //# sourceMappingURL=4_page_block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4_page_block.d.ts","sourceRoot":"","sources":["../../src/types/4_page_block.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,eAAe,CAAC;AAE3D,OAAO,EAA8B,KAAK,iBAAiB,EAA4D,MAAM,4BAA4B,CAAC;AAE1J;;;GAGG;AACH,MAAM,WAAW,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