@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.
- package/esm/3_types.d.ts +3 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +3 -0
- package/esm/client/0_params.d.ts +8 -0
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_utilities.d.ts +1 -1
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/1_client_generic.d.ts +20 -2
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/3_filters.d.ts.map +1 -1
- package/esm/client/3_filters.js +4 -1
- package/esm/client/3_message_manager.d.ts +4 -2
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +84 -1
- package/esm/client/6_client.d.ts +20 -2
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +22 -0
- package/esm/client/6_client_dispatcher.d.ts +20 -2
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +22 -0
- package/esm/tl/1_telegram_api.d.ts +120 -29
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +124 -26
- package/esm/types/2_message_entity.d.ts +16 -0
- package/esm/types/2_message_entity.d.ts.map +1 -1
- package/esm/types/2_message_entity.js +51 -45
- package/esm/types/3_rich_text_component.d.ts +268 -0
- package/esm/types/3_rich_text_component.d.ts.map +1 -0
- package/esm/types/3_rich_text_component.js +161 -0
- package/esm/types/4_page_block.d.ts +479 -0
- package/esm/types/4_page_block.d.ts.map +1 -0
- package/esm/types/4_page_block.js +552 -0
- package/esm/types/5_input_rich_text.d.ts +38 -0
- package/esm/types/5_input_rich_text.d.ts.map +1 -0
- package/esm/types/5_input_rich_text.js +20 -0
- package/esm/types/6_message.d.ts +20 -1
- package/esm/types/6_message.d.ts.map +1 -1
- package/esm/types/6_message.js +26 -0
- package/package.json +1 -1
- package/script/3_types.d.ts +3 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +3 -0
- package/script/client/0_params.d.ts +8 -0
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_utilities.d.ts +1 -1
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/1_client_generic.d.ts +20 -2
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/3_filters.d.ts.map +1 -1
- package/script/client/3_filters.js +4 -1
- package/script/client/3_message_manager.d.ts +4 -2
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +83 -0
- package/script/client/6_client.d.ts +20 -2
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +22 -0
- package/script/client/6_client_dispatcher.d.ts +20 -2
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +22 -0
- package/script/tl/1_telegram_api.d.ts +120 -29
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +124 -26
- package/script/types/2_message_entity.d.ts +16 -0
- package/script/types/2_message_entity.d.ts.map +1 -1
- package/script/types/2_message_entity.js +53 -45
- package/script/types/3_rich_text_component.d.ts +268 -0
- package/script/types/3_rich_text_component.d.ts.map +1 -0
- package/script/types/3_rich_text_component.js +165 -0
- package/script/types/4_page_block.d.ts +479 -0
- package/script/types/4_page_block.d.ts.map +1 -0
- package/script/types/4_page_block.js +569 -0
- package/script/types/5_input_rich_text.d.ts +38 -0
- package/script/types/5_input_rich_text.d.ts.map +1 -0
- package/script/types/5_input_rich_text.js +21 -0
- package/script/types/6_message.d.ts +20 -1
- package/script/types/6_message.d.ts.map +1 -1
- package/script/types/6_message.js +26 -0
|
@@ -0,0 +1,161 @@
|
|
|
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 { unreachable } from "../0_deps.js";
|
|
21
|
+
import { cleanObject } from "../1_utilities.js";
|
|
22
|
+
import { Api } from "../2_tl.js";
|
|
23
|
+
import { deserializeFileId } from "./_file_id.js";
|
|
24
|
+
import { constructPhoto } from "./1_photo.js";
|
|
25
|
+
import { constructDateTimeFormat, timeFormatToTlObject } from "./2_message_entity.js";
|
|
26
|
+
export function constructRichTextComponent(rt, photos) {
|
|
27
|
+
switch (rt._) {
|
|
28
|
+
case "textMention":
|
|
29
|
+
return { type: "mention", text: constructRichTextComponent(rt.text, photos) };
|
|
30
|
+
case "textEmpty":
|
|
31
|
+
return { type: "empty" };
|
|
32
|
+
case "textPlain":
|
|
33
|
+
return { type: "plain", text: rt.text };
|
|
34
|
+
case "textBold":
|
|
35
|
+
return { type: "bold", text: constructRichTextComponent(rt.text, photos) };
|
|
36
|
+
case "textItalic":
|
|
37
|
+
return { type: "italic", text: constructRichTextComponent(rt.text, photos) };
|
|
38
|
+
case "textUnderline":
|
|
39
|
+
return { type: "underline", text: constructRichTextComponent(rt.text, photos) };
|
|
40
|
+
case "textStrike":
|
|
41
|
+
return { type: "strikethrough", text: constructRichTextComponent(rt.text, photos) };
|
|
42
|
+
case "textFixed":
|
|
43
|
+
return { type: "fixed", text: constructRichTextComponent(rt.text, photos) };
|
|
44
|
+
case "textUrl":
|
|
45
|
+
return { type: "link", url: rt.url, linkPreviewId: String(rt.webpage_id), text: constructRichTextComponent(rt.text, photos) };
|
|
46
|
+
case "textEmail":
|
|
47
|
+
return { type: "emailLink", email: rt.email, text: constructRichTextComponent(rt.text, photos) };
|
|
48
|
+
case "textConcat":
|
|
49
|
+
return { type: "concatenate", components: rt.texts.map((v) => constructRichTextComponent(v, photos)) };
|
|
50
|
+
case "textSubscript":
|
|
51
|
+
return { type: "subscript", text: constructRichTextComponent(rt.text, photos) };
|
|
52
|
+
case "textSuperscript":
|
|
53
|
+
return { type: "superscript", text: constructRichTextComponent(rt.text, photos) };
|
|
54
|
+
case "textMarked":
|
|
55
|
+
return { type: "marked", text: constructRichTextComponent(rt.text, photos) };
|
|
56
|
+
case "textPhone":
|
|
57
|
+
return { type: "phoneNumberLink", phoneNumber: rt.phone, text: constructRichTextComponent(rt.text, photos) };
|
|
58
|
+
case "textImage": {
|
|
59
|
+
const photo = Api.as("photo", photos.find((v) => v.id === rt.document_id));
|
|
60
|
+
const fileId = constructPhoto(photo).fileId;
|
|
61
|
+
return { type: "photo", fileId, width: rt.w, height: rt.h };
|
|
62
|
+
}
|
|
63
|
+
case "textAnchor":
|
|
64
|
+
return { type: "anchor", name: rt.name, text: constructRichTextComponent(rt.text, photos) };
|
|
65
|
+
case "textMath":
|
|
66
|
+
return { type: "math", code: rt.source };
|
|
67
|
+
case "textCustomEmoji":
|
|
68
|
+
return { type: "customEmoji", customEmojiId: String(rt.document_id), alt: rt.alt };
|
|
69
|
+
case "textSpoiler":
|
|
70
|
+
return { type: "spoiler", text: constructRichTextComponent(rt.text, photos) };
|
|
71
|
+
case "textHashtag":
|
|
72
|
+
return { type: "hashtag", text: constructRichTextComponent(rt.text, photos) };
|
|
73
|
+
case "textBotCommand":
|
|
74
|
+
return { type: "botCommand", text: constructRichTextComponent(rt.text, photos) };
|
|
75
|
+
case "textCashtag":
|
|
76
|
+
return { type: "cashtag", text: constructRichTextComponent(rt.text, photos) };
|
|
77
|
+
case "textAutoUrl":
|
|
78
|
+
return { type: "url", text: constructRichTextComponent(rt.text, photos) };
|
|
79
|
+
case "textAutoEmail":
|
|
80
|
+
return { type: "email", text: constructRichTextComponent(rt.text, photos) };
|
|
81
|
+
case "textAutoPhone":
|
|
82
|
+
return { type: "phoneNumber", text: constructRichTextComponent(rt.text, photos) };
|
|
83
|
+
case "textBankCard":
|
|
84
|
+
return { type: "bankCard", text: constructRichTextComponent(rt.text, photos) };
|
|
85
|
+
case "textMentionName":
|
|
86
|
+
return { type: "textMention", userId: Number(rt.user_id), text: constructRichTextComponent(rt.text, photos) };
|
|
87
|
+
case "textDate":
|
|
88
|
+
return cleanObject({ type: "dateTime", isRelative: !!rt.relative, format: constructDateTimeFormat(rt) || undefined, date: rt.date, text: constructRichTextComponent(rt.text, photos) });
|
|
89
|
+
}
|
|
90
|
+
unreachable();
|
|
91
|
+
}
|
|
92
|
+
export function richTextComponentToTlObject(rtc) {
|
|
93
|
+
switch (rtc.type) {
|
|
94
|
+
case "empty":
|
|
95
|
+
return { _: "textEmpty" };
|
|
96
|
+
case "plain":
|
|
97
|
+
return { _: "textPlain", text: rtc.text };
|
|
98
|
+
case "bold":
|
|
99
|
+
return { _: "textBold", text: richTextComponentToTlObject(rtc.text) };
|
|
100
|
+
case "italic":
|
|
101
|
+
return { _: "textItalic", text: richTextComponentToTlObject(rtc.text) };
|
|
102
|
+
case "underline":
|
|
103
|
+
return { _: "textUnderline", text: richTextComponentToTlObject(rtc.text) };
|
|
104
|
+
case "strikethrough":
|
|
105
|
+
return { _: "textStrike", text: richTextComponentToTlObject(rtc.text) };
|
|
106
|
+
case "fixed":
|
|
107
|
+
return { _: "textFixed", text: richTextComponentToTlObject(rtc.text) };
|
|
108
|
+
case "link":
|
|
109
|
+
return { _: "textUrl", url: rtc.url, webpage_id: BigInt(rtc.linkPreviewId), text: richTextComponentToTlObject(rtc.text) };
|
|
110
|
+
case "emailLink":
|
|
111
|
+
return { _: "textEmail", email: rtc.email, text: richTextComponentToTlObject(rtc.text) };
|
|
112
|
+
case "concatenate":
|
|
113
|
+
return { _: "textConcat", texts: rtc.components.map(richTextComponentToTlObject) };
|
|
114
|
+
case "subscript":
|
|
115
|
+
return { _: "textSubscript", text: richTextComponentToTlObject(rtc.text) };
|
|
116
|
+
case "superscript":
|
|
117
|
+
return { _: "textSuperscript", text: richTextComponentToTlObject(rtc.text) };
|
|
118
|
+
case "marked":
|
|
119
|
+
return { _: "textMarked", text: richTextComponentToTlObject(rtc.text) };
|
|
120
|
+
case "phoneNumberLink":
|
|
121
|
+
return { _: "textPhone", phone: rtc.phoneNumber, text: richTextComponentToTlObject(rtc.text) };
|
|
122
|
+
case "photo": {
|
|
123
|
+
const fileId = deserializeFileId(rtc.fileId);
|
|
124
|
+
if (!("id" in fileId.location)) {
|
|
125
|
+
unreachable();
|
|
126
|
+
}
|
|
127
|
+
return { _: "textImage", document_id: fileId.location.id, w: rtc.width, h: rtc.height };
|
|
128
|
+
}
|
|
129
|
+
case "anchor":
|
|
130
|
+
return { _: "textAnchor", name: rtc.name, text: richTextComponentToTlObject(rtc.text) };
|
|
131
|
+
case "math":
|
|
132
|
+
return { _: "textMath", source: rtc.code };
|
|
133
|
+
case "customEmoji":
|
|
134
|
+
return { _: "textCustomEmoji", document_id: BigInt(rtc.customEmojiId), alt: rtc.alt };
|
|
135
|
+
case "spoiler":
|
|
136
|
+
return { _: "textSpoiler", text: richTextComponentToTlObject(rtc.text) };
|
|
137
|
+
case "mention":
|
|
138
|
+
return { _: "textMention", text: richTextComponentToTlObject(rtc.text) };
|
|
139
|
+
case "hashtag":
|
|
140
|
+
return { _: "textHashtag", text: richTextComponentToTlObject(rtc.text) };
|
|
141
|
+
case "botCommand":
|
|
142
|
+
return { _: "textBotCommand", text: richTextComponentToTlObject(rtc.text) };
|
|
143
|
+
case "cashtag":
|
|
144
|
+
return { _: "textCashtag", text: richTextComponentToTlObject(rtc.text) };
|
|
145
|
+
case "url":
|
|
146
|
+
return { _: "textAutoUrl", text: richTextComponentToTlObject(rtc.text) };
|
|
147
|
+
case "email":
|
|
148
|
+
return { _: "textAutoEmail", text: richTextComponentToTlObject(rtc.text) };
|
|
149
|
+
case "phoneNumber":
|
|
150
|
+
return { _: "textAutoPhone", text: richTextComponentToTlObject(rtc.text) };
|
|
151
|
+
case "bankCard":
|
|
152
|
+
return { _: "textBankCard", text: richTextComponentToTlObject(rtc.text) };
|
|
153
|
+
case "textMention":
|
|
154
|
+
return { _: "textMentionName", text: richTextComponentToTlObject(rtc.text), user_id: BigInt(rtc.userId) };
|
|
155
|
+
case "dateTime": {
|
|
156
|
+
const obj = { _: "textDate", text: richTextComponentToTlObject(rtc.text), date: rtc.date };
|
|
157
|
+
timeFormatToTlObject(rtc.format ?? "", obj);
|
|
158
|
+
return obj;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -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,oBAAoB;IACnC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,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