@mtkruto/node 0.110.1 → 0.111.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 +5 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +5 -0
- package/esm/client/0_params.d.ts +11 -3
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/1_client_generic.d.ts +13 -3
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/2_context.d.ts +2 -2
- package/esm/client/2_context.d.ts.map +1 -1
- package/esm/client/3_message_manager.d.ts +5 -4
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +65 -19
- package/esm/client/4_chat_manager.d.ts +6 -6
- package/esm/client/4_chat_manager.d.ts.map +1 -1
- package/esm/client/4_chat_manager.js +84 -84
- package/esm/client/5_client.d.ts +13 -3
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +12 -0
- package/esm/client/5_client_dispatcher.d.ts +13 -3
- package/esm/client/5_client_dispatcher.d.ts.map +1 -1
- package/esm/client/5_client_dispatcher.js +12 -0
- package/esm/types/0_checklist_changed.d.ts +29 -0
- package/esm/types/0_checklist_changed.d.ts.map +1 -0
- package/esm/types/0_checklist_changed.js +25 -0
- package/esm/types/3_checklist_item.d.ts +65 -0
- package/esm/types/3_checklist_item.d.ts.map +1 -0
- package/esm/types/3_checklist_item.js +51 -0
- package/esm/types/3_input_checklist_item.d.ts +31 -0
- package/esm/types/3_input_checklist_item.d.ts.map +1 -0
- package/esm/types/3_input_checklist_item.js +20 -0
- package/esm/types/3_input_poll_option.d.ts +31 -0
- package/esm/types/3_input_poll_option.d.ts.map +1 -0
- package/esm/types/3_input_poll_option.js +20 -0
- package/esm/types/4_checklist.d.ts +38 -0
- package/esm/types/4_checklist.d.ts.map +1 -0
- package/esm/types/4_checklist.js +31 -0
- package/esm/types/6_message.d.ts +50 -17
- package/esm/types/6_message.d.ts.map +1 -1
- package/esm/types/6_message.js +19 -1
- package/esm/types/7_inline_query_result.d.ts +1 -1
- package/esm/types/7_inline_query_result.d.ts.map +1 -1
- package/esm/types/7_inline_query_result.js +2 -2
- package/package.json +1 -1
- package/script/3_types.d.ts +5 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +5 -0
- package/script/client/0_params.d.ts +11 -3
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/1_client_generic.d.ts +13 -3
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/2_context.d.ts +2 -2
- package/script/client/2_context.d.ts.map +1 -1
- package/script/client/3_message_manager.d.ts +5 -4
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +65 -19
- package/script/client/4_chat_manager.d.ts +6 -6
- package/script/client/4_chat_manager.d.ts.map +1 -1
- package/script/client/4_chat_manager.js +84 -84
- package/script/client/5_client.d.ts +13 -3
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +12 -0
- package/script/client/5_client_dispatcher.d.ts +13 -3
- package/script/client/5_client_dispatcher.d.ts.map +1 -1
- package/script/client/5_client_dispatcher.js +12 -0
- package/script/types/0_checklist_changed.d.ts +29 -0
- package/script/types/0_checklist_changed.d.ts.map +1 -0
- package/script/types/0_checklist_changed.js +28 -0
- package/script/types/3_checklist_item.d.ts +65 -0
- package/script/types/3_checklist_item.d.ts.map +1 -0
- package/script/types/3_checklist_item.js +54 -0
- package/script/types/3_input_checklist_item.d.ts +31 -0
- package/script/types/3_input_checklist_item.d.ts.map +1 -0
- package/script/types/3_input_checklist_item.js +21 -0
- package/script/types/3_input_poll_option.d.ts +31 -0
- package/script/types/3_input_poll_option.d.ts.map +1 -0
- package/script/types/3_input_poll_option.js +21 -0
- package/script/types/4_checklist.d.ts +38 -0
- package/script/types/4_checklist.d.ts.map +1 -0
- package/script/types/4_checklist.js +34 -0
- package/script/types/6_message.d.ts +50 -17
- package/script/types/6_message.d.ts.map +1 -1
- package/script/types/6_message.js +19 -1
- package/script/types/7_inline_query_result.d.ts +1 -1
- package/script/types/7_inline_query_result.d.ts.map +1 -1
- package/script/types/7_inline_query_result.js +2 -2
|
@@ -0,0 +1,65 @@
|
|
|
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 type { Api } from "../2_tl.js";
|
|
21
|
+
import type { PeerGetter } from "./1_chat_p.js";
|
|
22
|
+
import { type MessageEntity } from "./2_message_entity.js";
|
|
23
|
+
import { type User } from "./2_user.js";
|
|
24
|
+
/**
|
|
25
|
+
* An unchecked checklist item.
|
|
26
|
+
* @unlisted
|
|
27
|
+
*/
|
|
28
|
+
export interface ChecklistItemUnchecked {
|
|
29
|
+
/**
|
|
30
|
+
* The type of the checklist item.
|
|
31
|
+
* @discriminator
|
|
32
|
+
*/
|
|
33
|
+
type: "unchecked";
|
|
34
|
+
/** The identifier of the checklist item. */
|
|
35
|
+
id: number;
|
|
36
|
+
/** The item's text. */
|
|
37
|
+
text: string;
|
|
38
|
+
/** The entities of the text. */
|
|
39
|
+
entities?: MessageEntity[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A checked checklist item.
|
|
43
|
+
* @unlisted
|
|
44
|
+
*/
|
|
45
|
+
export interface ChecklistItemChecked {
|
|
46
|
+
/**
|
|
47
|
+
* The type of the checklist item.
|
|
48
|
+
* @discriminator
|
|
49
|
+
*/
|
|
50
|
+
type: "checked";
|
|
51
|
+
/** The identifier of the to-do item. */
|
|
52
|
+
id: number;
|
|
53
|
+
/** The item's text. */
|
|
54
|
+
text: string;
|
|
55
|
+
/** The entities of the text. */
|
|
56
|
+
entities?: MessageEntity[];
|
|
57
|
+
/** A point in time in which the checklist item was checked. */
|
|
58
|
+
checkedAt: number;
|
|
59
|
+
/** The user who checked the item. */
|
|
60
|
+
checkedBy: User;
|
|
61
|
+
}
|
|
62
|
+
/** Any type of checklist item. */
|
|
63
|
+
export type ChecklistItem = ChecklistItemUnchecked | ChecklistItemChecked;
|
|
64
|
+
export declare function constructChecklistItem(todoItem: Api.todoItem, completions: Api.todoCompletion[], getPeer: PeerGetter): ChecklistItem;
|
|
65
|
+
//# sourceMappingURL=3_checklist_item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3_checklist_item.d.ts","sourceRoot":"","sources":["../../src/types/3_checklist_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,kCAAkC;AAClC,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,oBAAoB,CAAC;AAE1E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,UAAU,GAAG,aAAa,CA4BpI"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.constructChecklistItem = constructChecklistItem;
|
|
23
|
+
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
|
+
const _2_message_entity_js_1 = require("./2_message_entity.js");
|
|
26
|
+
const _2_user_js_1 = require("./2_user.js");
|
|
27
|
+
function constructChecklistItem(todoItem, completions, getPeer) {
|
|
28
|
+
const id = todoItem.id;
|
|
29
|
+
const text = todoItem.title.text;
|
|
30
|
+
const entities = todoItem.title.entities.length ? todoItem.title.entities.map((v) => (0, _2_message_entity_js_1.constructMessageEntity)(v)).filter((v) => v !== null) : undefined;
|
|
31
|
+
const completion = completions.find((v) => v.id === todoItem.id);
|
|
32
|
+
if (completion) {
|
|
33
|
+
const peer = getPeer(completion.completed_by);
|
|
34
|
+
if (!peer || peer[0].type !== "private") {
|
|
35
|
+
(0, _0_deps_js_1.unreachable)();
|
|
36
|
+
}
|
|
37
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
38
|
+
type: "checked",
|
|
39
|
+
id,
|
|
40
|
+
text,
|
|
41
|
+
entities,
|
|
42
|
+
checkedAt: completion.date,
|
|
43
|
+
checkedBy: (0, _2_user_js_1.constructUser2)(peer[0]),
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
48
|
+
type: "unchecked",
|
|
49
|
+
id,
|
|
50
|
+
text,
|
|
51
|
+
entities,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 type { ParseMode } from "./0_parse_mode.js";
|
|
21
|
+
import type { MessageEntity } from "./2_message_entity.js";
|
|
22
|
+
/** A checklist item that is to be provided as an input. */
|
|
23
|
+
export interface InputChecklistItem {
|
|
24
|
+
/** The item's text. */
|
|
25
|
+
text: string;
|
|
26
|
+
/** The entities of the text. */
|
|
27
|
+
entities?: MessageEntity[];
|
|
28
|
+
/** The parse mode to use for the text. If omitted, the default parse mode will be used. */
|
|
29
|
+
parseMode?: ParseMode;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=3_input_checklist_item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3_input_checklist_item.d.ts","sourceRoot":"","sources":["../../src/types/3_input_checklist_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,2DAA2D;AAC3D,MAAM,WAAW,kBAAkB;IACjC,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,2FAA2F;IAC3F,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 });
|
|
@@ -0,0 +1,31 @@
|
|
|
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 type { ParseMode } from "./0_parse_mode.js";
|
|
21
|
+
import type { MessageEntity } from "./2_message_entity.js";
|
|
22
|
+
/** A poll option to be provided as an input. */
|
|
23
|
+
export interface InputPollOption {
|
|
24
|
+
/** The option's text (1-100 characters). */
|
|
25
|
+
text: string;
|
|
26
|
+
/** The parse mode to use for the option's text. If omitted, the default parse mode will be used. */
|
|
27
|
+
parseMode?: ParseMode;
|
|
28
|
+
/** The entities of the option's text. */
|
|
29
|
+
entities?: MessageEntity[];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=3_input_poll_option.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3_input_poll_option.d.ts","sourceRoot":"","sources":["../../src/types/3_input_poll_option.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,oGAAoG;IACpG,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 });
|
|
@@ -0,0 +1,38 @@
|
|
|
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 type { Api } from "../2_tl.js";
|
|
21
|
+
import type { PeerGetter } from "./1_chat_p.js";
|
|
22
|
+
import { type MessageEntity } from "./2_message_entity.js";
|
|
23
|
+
import { type ChecklistItem } from "./3_checklist_item.js";
|
|
24
|
+
/** A checklist. */
|
|
25
|
+
export interface Checklist {
|
|
26
|
+
/** The checklist's title. */
|
|
27
|
+
title: string;
|
|
28
|
+
/** The entities of the checklist's title. */
|
|
29
|
+
titleEntities?: MessageEntity[];
|
|
30
|
+
/** The checklist's items. At least one item must be provided. */
|
|
31
|
+
items: ChecklistItem[];
|
|
32
|
+
/** Whether users other than the creator of the checklist can add more items. */
|
|
33
|
+
isExtendableByOthers: boolean;
|
|
34
|
+
/** Whether users other than the creator of the checklist can mark items as completed. */
|
|
35
|
+
isCheckableByOthers: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare function constructChecklist(todoList: Api.todoList, completions: Api.todoCompletion[], getPeer: PeerGetter): Checklist;
|
|
38
|
+
//# sourceMappingURL=4_checklist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4_checklist.d.ts","sourceRoot":"","sources":["../../src/types/4_checklist.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,KAAK,aAAa,EAA0B,MAAM,uBAAuB,CAAC;AAEnF,mBAAmB;AACnB,MAAM,WAAW,SAAS;IACxB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC;IAChC,iEAAiE;IACjE,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,gFAAgF;IAChF,oBAAoB,EAAE,OAAO,CAAC;IAC9B,yFAAyF;IACzF,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,UAAU,GAAG,SAAS,CAQ5H"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.constructChecklist = constructChecklist;
|
|
23
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
|
+
const _2_message_entity_js_1 = require("./2_message_entity.js");
|
|
25
|
+
const _3_checklist_item_js_1 = require("./3_checklist_item.js");
|
|
26
|
+
function constructChecklist(todoList, completions, getPeer) {
|
|
27
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
28
|
+
title: todoList.title.text,
|
|
29
|
+
titleEntities: todoList.title.entities.length ? todoList.title.entities.map((v) => (0, _2_message_entity_js_1.constructMessageEntity)(v)).filter((v) => v !== null) : undefined,
|
|
30
|
+
items: todoList.list.map((v) => (0, _3_checklist_item_js_1.constructChecklistItem)(v, completions, getPeer)),
|
|
31
|
+
isExtendableByOthers: !!todoList.others_can_append,
|
|
32
|
+
isCheckableByOthers: !!todoList.others_can_complete,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { type MaybePromise } from "../1_utilities.js";
|
|
21
21
|
import { Api } from "../2_tl.js";
|
|
22
|
+
import { type ChecklistChanged } from "./0_checklist_changed.js";
|
|
22
23
|
import { type Contact } from "./0_contact.js";
|
|
23
24
|
import { type Dice } from "./0_dice.js";
|
|
24
25
|
import { type Invoice } from "./0_invoice.js";
|
|
@@ -44,8 +45,10 @@ import { type User } from "./2_user.js";
|
|
|
44
45
|
import { type ForwardHeader } from "./3_forward_header.js";
|
|
45
46
|
import { type Game } from "./3_game.js";
|
|
46
47
|
import { type ReplyQuote } from "./3_reply_quote.js";
|
|
48
|
+
import { type Checklist } from "./4_checklist.js";
|
|
47
49
|
import { type Poll } from "./4_poll.js";
|
|
48
50
|
import { type LinkPreview } from "./5_link_preview.js";
|
|
51
|
+
import { type ChecklistItem } from "./3_checklist_item.js";
|
|
49
52
|
/**
|
|
50
53
|
* Properties shared between all message types.
|
|
51
54
|
* @unlisted
|
|
@@ -125,7 +128,7 @@ export interface _MessageMediaBase extends _MessageBase {
|
|
|
125
128
|
*/
|
|
126
129
|
export interface MessageText extends _MessageBase {
|
|
127
130
|
/**
|
|
128
|
-
* The text included in the message
|
|
131
|
+
* The text included in the message.
|
|
129
132
|
* @discriminator
|
|
130
133
|
*/
|
|
131
134
|
text: string;
|
|
@@ -149,7 +152,7 @@ export interface MessageLink extends _MessageBase {
|
|
|
149
152
|
}
|
|
150
153
|
/** @unlisted */
|
|
151
154
|
export interface MessagePhoto extends _MessageMediaBase {
|
|
152
|
-
/** The photo included in the message
|
|
155
|
+
/** The photo included in the message.
|
|
153
156
|
* @discriminator
|
|
154
157
|
*/
|
|
155
158
|
photo: Photo;
|
|
@@ -160,7 +163,7 @@ export interface MessagePhoto extends _MessageMediaBase {
|
|
|
160
163
|
*/
|
|
161
164
|
export interface MessageDocument extends _MessageMediaBase {
|
|
162
165
|
/**
|
|
163
|
-
* The document included in the message
|
|
166
|
+
* The document included in the message.
|
|
164
167
|
* @discriminator
|
|
165
168
|
*/
|
|
166
169
|
document: Document;
|
|
@@ -171,7 +174,7 @@ export interface MessageDocument extends _MessageMediaBase {
|
|
|
171
174
|
*/
|
|
172
175
|
export interface MessageVideo extends _MessageMediaBase {
|
|
173
176
|
/**
|
|
174
|
-
* The video included in the message
|
|
177
|
+
* The video included in the message.
|
|
175
178
|
* @discriminator
|
|
176
179
|
*/
|
|
177
180
|
video: Video;
|
|
@@ -182,7 +185,7 @@ export interface MessageVideo extends _MessageMediaBase {
|
|
|
182
185
|
*/
|
|
183
186
|
export interface MessageSticker extends _MessageBase {
|
|
184
187
|
/**
|
|
185
|
-
* The sticker included in the message
|
|
188
|
+
* The sticker included in the message.
|
|
186
189
|
* @discriminator
|
|
187
190
|
*/
|
|
188
191
|
sticker: Sticker;
|
|
@@ -193,7 +196,7 @@ export interface MessageSticker extends _MessageBase {
|
|
|
193
196
|
*/
|
|
194
197
|
export interface MessageAnimation extends _MessageMediaBase {
|
|
195
198
|
/**
|
|
196
|
-
* The animation included in the message
|
|
199
|
+
* The animation included in the message.
|
|
197
200
|
* @discriminator
|
|
198
201
|
*/
|
|
199
202
|
animation: Animation;
|
|
@@ -204,7 +207,7 @@ export interface MessageAnimation extends _MessageMediaBase {
|
|
|
204
207
|
*/
|
|
205
208
|
export interface MessageVoice extends _MessageMediaBase {
|
|
206
209
|
/**
|
|
207
|
-
* The voice included in the message
|
|
210
|
+
* The voice included in the message.
|
|
208
211
|
* @discriminator
|
|
209
212
|
*/
|
|
210
213
|
voice: Voice;
|
|
@@ -215,7 +218,7 @@ export interface MessageVoice extends _MessageMediaBase {
|
|
|
215
218
|
*/
|
|
216
219
|
export interface MessageAudio extends _MessageMediaBase {
|
|
217
220
|
/**
|
|
218
|
-
* The audio included in the message
|
|
221
|
+
* The audio included in the message.
|
|
219
222
|
* @discriminator
|
|
220
223
|
*/
|
|
221
224
|
audio: Audio;
|
|
@@ -226,7 +229,7 @@ export interface MessageAudio extends _MessageMediaBase {
|
|
|
226
229
|
*/
|
|
227
230
|
export interface MessageDice extends _MessageBase {
|
|
228
231
|
/**
|
|
229
|
-
* The dice included in the message
|
|
232
|
+
* The dice included in the message.
|
|
230
233
|
* @discriminator
|
|
231
234
|
*/
|
|
232
235
|
dice: Dice;
|
|
@@ -237,7 +240,7 @@ export interface MessageDice extends _MessageBase {
|
|
|
237
240
|
*/
|
|
238
241
|
export interface MessageVideoNote extends _MessageBase {
|
|
239
242
|
/**
|
|
240
|
-
* The video note included in the message
|
|
243
|
+
* The video note included in the message.
|
|
241
244
|
* @discriminator
|
|
242
245
|
*/
|
|
243
246
|
videoNote: VideoNote;
|
|
@@ -248,7 +251,7 @@ export interface MessageVideoNote extends _MessageBase {
|
|
|
248
251
|
*/
|
|
249
252
|
export interface MessageContact extends _MessageBase {
|
|
250
253
|
/**
|
|
251
|
-
* The contact included in the message
|
|
254
|
+
* The contact included in the message.
|
|
252
255
|
* @discriminator
|
|
253
256
|
*/
|
|
254
257
|
contact: Contact;
|
|
@@ -259,7 +262,7 @@ export interface MessageContact extends _MessageBase {
|
|
|
259
262
|
*/
|
|
260
263
|
export interface MessageGame extends _MessageBase {
|
|
261
264
|
/**
|
|
262
|
-
* The game included in the message
|
|
265
|
+
* The game included in the message.
|
|
263
266
|
* @discriminator
|
|
264
267
|
*/
|
|
265
268
|
game: Game;
|
|
@@ -270,18 +273,29 @@ export interface MessageGame extends _MessageBase {
|
|
|
270
273
|
*/
|
|
271
274
|
export interface MessagePoll extends _MessageBase {
|
|
272
275
|
/**
|
|
273
|
-
* The poll included in the message
|
|
276
|
+
* The poll included in the message.
|
|
274
277
|
* @discriminator
|
|
275
278
|
*/
|
|
276
279
|
poll: Poll;
|
|
277
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* A checklist message.
|
|
283
|
+
* @unlisted
|
|
284
|
+
*/
|
|
285
|
+
export interface MessageChecklist extends _MessageBase {
|
|
286
|
+
/**
|
|
287
|
+
* The checklist included in the message.
|
|
288
|
+
* @discriminator
|
|
289
|
+
*/
|
|
290
|
+
checklist: Checklist;
|
|
291
|
+
}
|
|
278
292
|
/**
|
|
279
293
|
* An invoice message.
|
|
280
294
|
* @unlisted
|
|
281
295
|
*/
|
|
282
296
|
export interface MessageInvoice extends _MessageBase {
|
|
283
297
|
/**
|
|
284
|
-
* The invoice included in the message
|
|
298
|
+
* The invoice included in the message.
|
|
285
299
|
* @discriminator
|
|
286
300
|
*/
|
|
287
301
|
invoice: Invoice;
|
|
@@ -292,7 +306,7 @@ export interface MessageInvoice extends _MessageBase {
|
|
|
292
306
|
*/
|
|
293
307
|
export interface MessageVenue extends _MessageBase {
|
|
294
308
|
/**
|
|
295
|
-
* The venue included in the message
|
|
309
|
+
* The venue included in the message.
|
|
296
310
|
* @discriminator
|
|
297
311
|
*/
|
|
298
312
|
venue: Venue;
|
|
@@ -303,7 +317,7 @@ export interface MessageVenue extends _MessageBase {
|
|
|
303
317
|
*/
|
|
304
318
|
export interface MessageLocation extends _MessageBase {
|
|
305
319
|
/**
|
|
306
|
-
* The location included in the message
|
|
320
|
+
* The location included in the message.
|
|
307
321
|
* @discriminator
|
|
308
322
|
*/
|
|
309
323
|
location: Location;
|
|
@@ -556,6 +570,22 @@ export interface MessageRefundedPayment extends _MessageBase {
|
|
|
556
570
|
/** @discriminator */
|
|
557
571
|
refundedPayment: RefundedPayment;
|
|
558
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* A checklist was changed.
|
|
575
|
+
* @unlisted
|
|
576
|
+
*/
|
|
577
|
+
export interface MessageChecklistChanged extends _MessageBase {
|
|
578
|
+
/** @discriminator */
|
|
579
|
+
checklistChanged: ChecklistChanged;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* A checklist was extended.
|
|
583
|
+
* @unlisted
|
|
584
|
+
*/
|
|
585
|
+
export interface MessageChecklistExtended extends _MessageBase {
|
|
586
|
+
/** @discriminator */
|
|
587
|
+
checklistExtended: ChecklistItem[];
|
|
588
|
+
}
|
|
559
589
|
/** @unlisted */
|
|
560
590
|
export interface MessageTypes {
|
|
561
591
|
text: MessageText;
|
|
@@ -572,6 +602,7 @@ export interface MessageTypes {
|
|
|
572
602
|
contact: MessageContact;
|
|
573
603
|
game: MessageGame;
|
|
574
604
|
poll: MessagePoll;
|
|
605
|
+
checklist: MessageChecklist;
|
|
575
606
|
invoice: MessageInvoice;
|
|
576
607
|
venue: MessageVenue;
|
|
577
608
|
location: MessageLocation;
|
|
@@ -600,11 +631,13 @@ export interface MessageTypes {
|
|
|
600
631
|
unsupported: MessageUnsupported;
|
|
601
632
|
successfulPayment: MessageSuccessfulPayment;
|
|
602
633
|
refundedPayment: MessageRefundedPayment;
|
|
634
|
+
checklistChanged: MessageChecklistChanged;
|
|
635
|
+
checklistExtended: MessageChecklistExtended;
|
|
603
636
|
}
|
|
604
637
|
export declare function isMessageType<T extends keyof MessageTypes>(message: Message, type: T): message is MessageTypes[T];
|
|
605
638
|
export declare function assertMessageType<T extends keyof MessageTypes>(message: Message, type: T): MessageTypes[T];
|
|
606
639
|
/** Any type of message. */
|
|
607
|
-
export type Message = MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment;
|
|
640
|
+
export type Message = MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageChecklist | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | MessageChecklistChanged | MessageChecklistExtended;
|
|
608
641
|
/** @unlisted */
|
|
609
642
|
export interface MessageGetter {
|
|
610
643
|
(chatId: number, messageId: number): MaybePromise<Message | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"6_message.d.ts","sourceRoot":"","sources":["../../src/types/6_message.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAA0B,KAAK,YAAY,EAAmB,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAA4B,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAA+B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AAO,GAAG,IAAI,CAAC,CAAC;CACnE;AAED,KAAK,qBAAqB,GAAG,aAAa,GAAG,IAAI,CAAC;AA6KlD,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,GAAG,CAAC,OAAO,EACrB,OAAO,EAAE,UAAU,EACnB,UAAU,EAAE,qBAAqB,EACjC,iBAAiB,EAAE,oBAAoB,EACvC,SAAS,UAAO,EAChB,QAAQ,CAAC,EAAE;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CAAE,EACjE,IAAI,CAAC,EAAE,GAAG,CAAC,IAAI,EACf,WAAW,CAAC,EAAE,GAAG,CAAC,WAAW,GAC5B,OAAO,CAAC,OAAO,CAAC,CA2OlB"}
|
|
@@ -27,6 +27,7 @@ const _1_utilities_js_1 = require("../1_utilities.js");
|
|
|
27
27
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
28
28
|
const _file_id_js_1 = require("./_file_id.js");
|
|
29
29
|
const _file_id_js_2 = require("./_file_id.js");
|
|
30
|
+
const _0_checklist_changed_js_1 = require("./0_checklist_changed.js");
|
|
30
31
|
const _0_contact_js_1 = require("./0_contact.js");
|
|
31
32
|
const _0_dice_js_1 = require("./0_dice.js");
|
|
32
33
|
const _0_invoice_js_1 = require("./0_invoice.js");
|
|
@@ -52,8 +53,10 @@ const _2_user_js_1 = require("./2_user.js");
|
|
|
52
53
|
const _3_forward_header_js_1 = require("./3_forward_header.js");
|
|
53
54
|
const _3_game_js_1 = require("./3_game.js");
|
|
54
55
|
const _3_reply_quote_js_1 = require("./3_reply_quote.js");
|
|
56
|
+
const _4_checklist_js_1 = require("./4_checklist.js");
|
|
55
57
|
const _4_poll_js_1 = require("./4_poll.js");
|
|
56
58
|
const _5_link_preview_js_1 = require("./5_link_preview.js");
|
|
59
|
+
const _3_checklist_item_js_1 = require("./3_checklist_item.js");
|
|
57
60
|
const L = (0, _1_utilities_js_1.getLogger)("Message");
|
|
58
61
|
const keys = {
|
|
59
62
|
text: ["text"],
|
|
@@ -70,6 +73,7 @@ const keys = {
|
|
|
70
73
|
contact: ["contact"],
|
|
71
74
|
game: ["game"],
|
|
72
75
|
poll: ["poll"],
|
|
76
|
+
checklist: ["checklist"],
|
|
73
77
|
invoice: ["invoice"],
|
|
74
78
|
venue: ["venue"],
|
|
75
79
|
location: ["location"],
|
|
@@ -98,6 +102,8 @@ const keys = {
|
|
|
98
102
|
unsupported: ["unsupported"],
|
|
99
103
|
successfulPayment: ["successfulPayment"],
|
|
100
104
|
refundedPayment: ["refundedPayment"],
|
|
105
|
+
checklistChanged: ["checklistChanged"],
|
|
106
|
+
checklistExtended: ["checklistExtended"],
|
|
101
107
|
};
|
|
102
108
|
function isMessageType(message, type) {
|
|
103
109
|
for (const key of keys[type]) {
|
|
@@ -296,6 +302,14 @@ async function constructServiceMessage(message_, chat, getPeer, getMessage, getR
|
|
|
296
302
|
const refundedPayment = (0, _0_refunded_payment_js_1.constructRefundedPayment)(message_.action);
|
|
297
303
|
return { ...message, refundedPayment };
|
|
298
304
|
}
|
|
305
|
+
else if (_2_tl_js_1.Api.is("messageActionTodoCompletions", message_.action)) {
|
|
306
|
+
const checklistChanged = (0, _0_checklist_changed_js_1.constructChecklistChanged)(message_.action);
|
|
307
|
+
return { ...message, checklistChanged };
|
|
308
|
+
}
|
|
309
|
+
else if (_2_tl_js_1.Api.is("messageActionTodoAppendTasks", message_.action)) {
|
|
310
|
+
const checklistExtended = message_.action.list.map((v) => (0, _3_checklist_item_js_1.constructChecklistItem)(v, [], getPeer));
|
|
311
|
+
return { ...message, checklistExtended };
|
|
312
|
+
}
|
|
299
313
|
return { ...message, unsupported: true };
|
|
300
314
|
}
|
|
301
315
|
async function constructMessage(message_, getPeer, getMessage, getStickerSetName, getReply_ = true, business, poll, pollResults) {
|
|
@@ -316,7 +330,7 @@ async function constructMessage(message_, getPeer, getMessage, getStickerSetName
|
|
|
316
330
|
}
|
|
317
331
|
}
|
|
318
332
|
if (_2_tl_js_1.Api.is("messageService", message_)) {
|
|
319
|
-
return constructServiceMessage(message_, chat_, getPeer, getMessage, getReply_);
|
|
333
|
+
return (0, _1_utilities_js_1.cleanObject)(await constructServiceMessage(message_, chat_, getPeer, getMessage, getReply_));
|
|
320
334
|
}
|
|
321
335
|
const message = {
|
|
322
336
|
isOutgoing: message_.out ?? false,
|
|
@@ -495,6 +509,10 @@ async function constructMessage(message_, getPeer, getMessage, getStickerSetName
|
|
|
495
509
|
const poll_ = (0, _4_poll_js_1.constructPoll)(message_.media);
|
|
496
510
|
m = { ...message, poll: poll_ };
|
|
497
511
|
}
|
|
512
|
+
else if (_2_tl_js_1.Api.is("messageMediaToDo", message_.media)) {
|
|
513
|
+
const todoList = (0, _4_checklist_js_1.constructChecklist)(message_.media.todo, message_.media.completions ?? [], getPeer);
|
|
514
|
+
m = { ...message, checklist: todoList };
|
|
515
|
+
}
|
|
498
516
|
else if (_2_tl_js_1.Api.is("messageMediaVenue", message_.media)) {
|
|
499
517
|
const venue = (0, _1_venue_js_1.constructVenue)(message_.media);
|
|
500
518
|
m = { ...message, venue };
|