@mtkruto/node 0.192.0 → 0.194.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/README.md +5 -5
- package/esm/0_errors.d.ts +6 -0
- package/esm/0_errors.d.ts.map +1 -1
- package/esm/0_errors.js +12 -0
- package/esm/3_types.d.ts +8 -2
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +8 -2
- package/esm/client/0_html.d.ts +2 -1
- package/esm/client/0_html.d.ts.map +1 -1
- package/esm/client/0_html.js +18 -16
- package/esm/client/0_markdown.d.ts +3 -2
- package/esm/client/0_markdown.d.ts.map +1 -1
- package/esm/client/0_markdown.js +9 -7
- package/esm/client/0_params.d.ts +51 -0
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_password.js +5 -5
- package/esm/client/0_storage_operations.d.ts +9 -0
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +40 -51
- package/esm/client/1_client_generic.d.ts +161 -13
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/1_client_plain.d.ts.map +1 -1
- package/esm/client/1_client_plain.js +2 -1
- package/esm/client/2_client_encrypted.d.ts.map +1 -1
- package/esm/client/2_client_encrypted.js +2 -4
- package/esm/client/2_reaction_manager.d.ts +2 -1
- package/esm/client/2_reaction_manager.d.ts.map +1 -1
- package/esm/client/2_reaction_manager.js +7 -0
- package/esm/client/2_update_manager.d.ts +1 -1
- package/esm/client/2_update_manager.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +13 -12
- package/esm/client/3_account_manager.d.ts +8 -2
- package/esm/client/3_account_manager.d.ts.map +1 -1
- package/esm/client/3_account_manager.js +54 -2
- package/esm/client/3_message_manager.js +6 -6
- package/esm/client/3_secret_chat_manager.d.ts +7 -2
- package/esm/client/3_secret_chat_manager.d.ts.map +1 -1
- package/esm/client/3_secret_chat_manager.js +65 -16
- package/esm/client/3_sticker_set_manager.d.ts +5 -0
- package/esm/client/3_sticker_set_manager.d.ts.map +1 -1
- package/esm/client/3_sticker_set_manager.js +40 -9
- package/esm/client/4_chat_manager.d.ts +9 -3
- package/esm/client/4_chat_manager.d.ts.map +1 -1
- package/esm/client/4_chat_manager.js +102 -3
- package/esm/client/4_checklist_manager.js +1 -1
- package/esm/client/4_context.d.ts +17 -3
- package/esm/client/4_context.d.ts.map +1 -1
- package/esm/client/4_context.js +38 -0
- package/esm/client/4_forum_manager.d.ts +1 -0
- package/esm/client/4_forum_manager.d.ts.map +1 -1
- package/esm/client/4_forum_manager.js +5 -0
- package/esm/client/6_client.d.ts +159 -11
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +223 -25
- package/esm/client/6_client_dispatcher.d.ts +160 -12
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +198 -8
- package/esm/storage/2_storage_indexed_db.js +5 -5
- package/esm/storage/2_storage_session_storage.js +2 -2
- package/esm/tl/0_utilities.d.ts +1 -1
- package/esm/tl/0_utilities.d.ts.map +1 -1
- package/esm/tl/0_utilities.js +3 -2
- package/esm/tl/1_tl_reader.js +1 -1
- package/esm/tl/1_tl_writer.js +1 -1
- package/esm/types/1_available_reactions.d.ts +3 -2
- package/esm/types/1_available_reactions.d.ts.map +1 -1
- package/esm/types/1_available_reactions.js +18 -1
- package/esm/types/1_channel_location.d.ts +27 -0
- package/esm/types/1_channel_location.d.ts.map +1 -0
- package/esm/types/1_channel_location.js +30 -0
- package/esm/types/1_sticker_set_p.d.ts +48 -0
- package/esm/types/1_sticker_set_p.d.ts.map +1 -0
- package/esm/types/1_sticker_set_p.js +73 -0
- package/esm/types/2_poll_voter.d.ts +19 -0
- package/esm/types/2_poll_voter.d.ts.map +1 -1
- package/esm/types/2_poll_voter.js +19 -0
- package/esm/types/3_chat_join_result.d.ts +40 -0
- package/esm/types/3_chat_join_result.d.ts.map +1 -0
- package/esm/types/3_chat_join_result.js +45 -0
- package/esm/types/3_resolved_invite_link.d.ts +63 -0
- package/esm/types/3_resolved_invite_link.d.ts.map +1 -0
- package/esm/types/3_resolved_invite_link.js +45 -0
- package/esm/types/3_rich_text_component.d.ts +24 -0
- package/esm/types/3_rich_text_component.d.ts.map +1 -1
- package/esm/types/4_page_block.d.ts +45 -1
- package/esm/types/4_page_block.d.ts.map +1 -1
- package/esm/types/B_recent_action.d.ts +244 -0
- package/esm/types/B_recent_action.d.ts.map +1 -0
- package/esm/types/B_recent_action.js +322 -0
- package/esm/types/B_topic_list_item.d.ts +22 -0
- package/esm/types/B_topic_list_item.d.ts.map +1 -1
- package/esm/types/B_topic_list_item.js +19 -0
- package/esm/types/C_recent_actions_entry.d.ts +32 -0
- package/esm/types/C_recent_actions_entry.d.ts.map +1 -0
- package/esm/types/C_recent_actions_entry.js +32 -0
- package/esm/types/C_topic_list.d.ts +20 -0
- package/esm/types/C_topic_list.d.ts.map +1 -1
- package/esm/types/C_topic_list.js +19 -0
- package/esm/utilities/1_auth.d.ts.map +1 -1
- package/esm/utilities/1_auth.js +2 -1
- package/package.json +1 -1
- package/script/0_errors.d.ts +6 -0
- package/script/0_errors.d.ts.map +1 -1
- package/script/0_errors.js +15 -1
- package/script/3_types.d.ts +8 -2
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +8 -2
- package/script/client/0_html.d.ts +2 -1
- package/script/client/0_html.d.ts.map +1 -1
- package/script/client/0_html.js +17 -15
- package/script/client/0_markdown.d.ts +3 -2
- package/script/client/0_markdown.d.ts.map +1 -1
- package/script/client/0_markdown.js +8 -6
- package/script/client/0_params.d.ts +51 -0
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_password.js +5 -5
- package/script/client/0_storage_operations.d.ts +9 -0
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +42 -53
- package/script/client/1_client_generic.d.ts +161 -13
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/1_client_plain.d.ts.map +1 -1
- package/script/client/1_client_plain.js +2 -1
- package/script/client/2_client_encrypted.d.ts.map +1 -1
- package/script/client/2_client_encrypted.js +4 -6
- package/script/client/2_reaction_manager.d.ts +2 -1
- package/script/client/2_reaction_manager.d.ts.map +1 -1
- package/script/client/2_reaction_manager.js +7 -0
- package/script/client/2_update_manager.d.ts +1 -1
- package/script/client/2_update_manager.d.ts.map +1 -1
- package/script/client/2_update_manager.js +13 -12
- package/script/client/3_account_manager.d.ts +8 -2
- package/script/client/3_account_manager.d.ts.map +1 -1
- package/script/client/3_account_manager.js +54 -2
- package/script/client/3_message_manager.js +6 -6
- package/script/client/3_secret_chat_manager.d.ts +7 -2
- package/script/client/3_secret_chat_manager.d.ts.map +1 -1
- package/script/client/3_secret_chat_manager.js +65 -16
- package/script/client/3_sticker_set_manager.d.ts +5 -0
- package/script/client/3_sticker_set_manager.d.ts.map +1 -1
- package/script/client/3_sticker_set_manager.js +39 -8
- package/script/client/4_chat_manager.d.ts +9 -3
- package/script/client/4_chat_manager.d.ts.map +1 -1
- package/script/client/4_chat_manager.js +101 -2
- package/script/client/4_checklist_manager.js +1 -1
- package/script/client/4_context.d.ts +17 -3
- package/script/client/4_context.d.ts.map +1 -1
- package/script/client/4_context.js +38 -0
- package/script/client/4_forum_manager.d.ts +1 -0
- package/script/client/4_forum_manager.d.ts.map +1 -1
- package/script/client/4_forum_manager.js +5 -0
- package/script/client/6_client.d.ts +159 -11
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +223 -25
- package/script/client/6_client_dispatcher.d.ts +160 -12
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +198 -8
- package/script/storage/2_storage_indexed_db.js +5 -5
- package/script/storage/2_storage_session_storage.js +2 -2
- package/script/tl/0_utilities.d.ts +1 -1
- package/script/tl/0_utilities.d.ts.map +1 -1
- package/script/tl/0_utilities.js +3 -2
- package/script/tl/1_tl_reader.js +1 -1
- package/script/tl/1_tl_writer.js +1 -1
- package/script/types/1_available_reactions.d.ts +3 -2
- package/script/types/1_available_reactions.d.ts.map +1 -1
- package/script/types/1_available_reactions.js +18 -0
- package/script/types/1_channel_location.d.ts +27 -0
- package/script/types/1_channel_location.d.ts.map +1 -0
- package/script/types/1_channel_location.js +33 -0
- package/script/types/1_sticker_set_p.d.ts +48 -0
- package/script/types/1_sticker_set_p.d.ts.map +1 -0
- package/script/types/1_sticker_set_p.js +76 -0
- package/script/types/2_poll_voter.d.ts +19 -0
- package/script/types/2_poll_voter.d.ts.map +1 -1
- package/script/types/2_poll_voter.js +19 -0
- package/script/types/3_chat_join_result.d.ts +40 -0
- package/script/types/3_chat_join_result.d.ts.map +1 -0
- package/script/types/3_chat_join_result.js +48 -0
- package/script/types/3_resolved_invite_link.d.ts +63 -0
- package/script/types/3_resolved_invite_link.d.ts.map +1 -0
- package/script/types/3_resolved_invite_link.js +48 -0
- package/script/types/3_rich_text_component.d.ts +24 -0
- package/script/types/3_rich_text_component.d.ts.map +1 -1
- package/script/types/4_page_block.d.ts +45 -1
- package/script/types/4_page_block.d.ts.map +1 -1
- package/script/types/B_recent_action.d.ts +244 -0
- package/script/types/B_recent_action.d.ts.map +1 -0
- package/script/types/B_recent_action.js +325 -0
- package/script/types/B_topic_list_item.d.ts +22 -0
- package/script/types/B_topic_list_item.d.ts.map +1 -1
- package/script/types/B_topic_list_item.js +19 -0
- package/script/types/C_recent_actions_entry.d.ts +32 -0
- package/script/types/C_recent_actions_entry.d.ts.map +1 -0
- package/script/types/C_recent_actions_entry.js +35 -0
- package/script/types/C_topic_list.d.ts +20 -0
- package/script/types/C_topic_list.d.ts.map +1 -1
- package/script/types/C_topic_list.js +19 -0
- package/script/utilities/1_auth.d.ts.map +1 -1
- package/script/utilities/1_auth.js +2 -1
|
@@ -0,0 +1,76 @@
|
|
|
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.constructStickerSetP = constructStickerSetP;
|
|
23
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
|
+
const _file_id_js_1 = require("./_file_id.js");
|
|
25
|
+
function constructStickerSetP(stickerSet) {
|
|
26
|
+
const type = stickerSet.emojis ? "customEmoji" : stickerSet.masks ? "mask" : "regular";
|
|
27
|
+
const name = stickerSet.short_name;
|
|
28
|
+
const title = stickerSet.title;
|
|
29
|
+
const thumbnails = new Array();
|
|
30
|
+
const thumb = stickerSet.thumbs?.[0];
|
|
31
|
+
if (thumb !== undefined && stickerSet.thumb_version !== undefined && stickerSet.thumb_dc_id !== undefined && _2_tl_js_1.Api.is("photoSize", thumb)) {
|
|
32
|
+
const fileId = {
|
|
33
|
+
type: _file_id_js_1.FileType.Photo,
|
|
34
|
+
dcId: stickerSet.thumb_dc_id,
|
|
35
|
+
location: {
|
|
36
|
+
type: "photo",
|
|
37
|
+
source: {
|
|
38
|
+
type: _file_id_js_1.PhotoSourceType.StickerSetThumbnailVersion,
|
|
39
|
+
stickerSetId: stickerSet.id,
|
|
40
|
+
stickerSetAccessHash: stickerSet.access_hash,
|
|
41
|
+
version: stickerSet.thumb_version,
|
|
42
|
+
},
|
|
43
|
+
id: 0n,
|
|
44
|
+
accessHash: 0n,
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
thumbnails.push({
|
|
48
|
+
fileId: (0, _file_id_js_1.serializeFileId)(fileId),
|
|
49
|
+
fileUniqueId: (0, _file_id_js_1.toUniqueFileId)(fileId),
|
|
50
|
+
width: thumb.w,
|
|
51
|
+
height: thumb.h,
|
|
52
|
+
fileSize: thumb.size,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
const adaptive = !!stickerSet.text_color;
|
|
56
|
+
const canSetAsChannelStatus = !!stickerSet.channel_emoji_status;
|
|
57
|
+
const creator = !!stickerSet.creator;
|
|
58
|
+
const official = !!stickerSet.official;
|
|
59
|
+
const archived = !!stickerSet.archived;
|
|
60
|
+
const stickerSet_ = {
|
|
61
|
+
id: String(stickerSet.id),
|
|
62
|
+
type,
|
|
63
|
+
name,
|
|
64
|
+
title,
|
|
65
|
+
thumbnails,
|
|
66
|
+
isAdaptive: adaptive,
|
|
67
|
+
canSetAsChannelStatus,
|
|
68
|
+
isCreator: creator,
|
|
69
|
+
isOfficial: official,
|
|
70
|
+
isArchived: archived,
|
|
71
|
+
};
|
|
72
|
+
if (stickerSet.installed_date) {
|
|
73
|
+
stickerSet_.addedAt = stickerSet.installed_date;
|
|
74
|
+
}
|
|
75
|
+
return stickerSet_;
|
|
76
|
+
}
|
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
*/
|
|
1
20
|
import { Api } from "../2_tl.js";
|
|
2
21
|
import type { ChatP, PeerGetter } from "./1_chat_p.js";
|
|
3
22
|
/** A poll voter. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_poll_voter.d.ts","sourceRoot":"","sources":["../../src/types/2_poll_voter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"2_poll_voter.d.ts","sourceRoot":"","sources":["../../src/types/2_poll_voter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEvD,oBAAoB;AACpB,MAAM,WAAW,SAAS;IACxB,sBAAsB;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,uCAAuC;IACvC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,gDAAgD;IAChD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,eAAe,EAAE,OAAO,EAAE,UAAU,GAAG,SAAS,CAe3F"}
|
|
@@ -1,4 +1,23 @@
|
|
|
1
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
|
+
*/
|
|
2
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
22
|
exports.constructPollVoter = constructPollVoter;
|
|
4
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -0,0 +1,40 @@
|
|
|
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 User } from "./2_user.js";
|
|
23
|
+
/** @unlisted */
|
|
24
|
+
export interface ChatJoinResultJoined {
|
|
25
|
+
type: "joined";
|
|
26
|
+
}
|
|
27
|
+
/** @unlisted */
|
|
28
|
+
export interface ChatJoinResultCaptcha {
|
|
29
|
+
type: "captcha";
|
|
30
|
+
bot: User;
|
|
31
|
+
isFullSize: boolean;
|
|
32
|
+
isFullscreen: boolean;
|
|
33
|
+
isSameOrigin: boolean;
|
|
34
|
+
queryId?: string;
|
|
35
|
+
url: string;
|
|
36
|
+
}
|
|
37
|
+
/** Any type of chat join result. */
|
|
38
|
+
export type ChatJoinResult = ChatJoinResultJoined | ChatJoinResultCaptcha;
|
|
39
|
+
export declare function constructChatJoinResult(cijr: Api.messages_ChatInviteJoinResult, getPeer: PeerGetter): ChatJoinResult;
|
|
40
|
+
//# sourceMappingURL=3_chat_join_result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3_chat_join_result.d.ts","sourceRoot":"","sources":["../../src/types/3_chat_join_result.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,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,CAAC;IAChB,GAAG,EAAE,IAAI,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,oCAAoC;AACpC,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,qBAAqB,CAAC;AAE1E,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,CAAC,6BAA6B,EAAE,OAAO,EAAE,UAAU,GAAG,cAAc,CAuBpH"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.constructChatJoinResult = constructChatJoinResult;
|
|
23
|
+
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
|
+
const _2_user_js_1 = require("./2_user.js");
|
|
26
|
+
function constructChatJoinResult(cijr, getPeer) {
|
|
27
|
+
switch (cijr._) {
|
|
28
|
+
case "messages.chatInviteJoinResultOk":
|
|
29
|
+
return { type: "joined" };
|
|
30
|
+
case "messages.chatInviteJoinResultWebView": {
|
|
31
|
+
const peer = getPeer({ _: "peerUser", user_id: cijr.bot_id });
|
|
32
|
+
if (peer === null || peer[0].type !== "private") {
|
|
33
|
+
(0, _0_deps_js_1.unreachable)();
|
|
34
|
+
}
|
|
35
|
+
const bot = (0, _2_user_js_1.constructUser2)(peer[0]);
|
|
36
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
37
|
+
type: "captcha",
|
|
38
|
+
bot,
|
|
39
|
+
isFullSize: !!cijr.webview.fullsize,
|
|
40
|
+
isFullscreen: !!cijr.webview.fullscreen,
|
|
41
|
+
isSameOrigin: !!cijr.webview.same_origin,
|
|
42
|
+
queryId: cijr.webview.query_id ? String(cijr.webview.query_id) : undefined,
|
|
43
|
+
url: cijr.webview.url,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
(0, _0_deps_js_1.unreachable)();
|
|
48
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 Photo } from "./1_photo.js";
|
|
22
|
+
import { type User } from "./2_user.js";
|
|
23
|
+
/** A resolved invite link. */
|
|
24
|
+
export interface ResolvedInviteLink {
|
|
25
|
+
/** The type of the chat. */
|
|
26
|
+
type: "group" | "supergroup" | "channel";
|
|
27
|
+
/** Whether the chat is public. */
|
|
28
|
+
isPublic: boolean;
|
|
29
|
+
/** Whether approval is needed by an admin of the chat prior to joining. */
|
|
30
|
+
isApprovalNeeded: boolean;
|
|
31
|
+
/** Whether the chat is verified. */
|
|
32
|
+
isVerified: boolean;
|
|
33
|
+
/** Whether the chat has been identified as a scam. */
|
|
34
|
+
isScam: boolean;
|
|
35
|
+
/** Whether the chat has been identifier as a fake. */
|
|
36
|
+
isFake: boolean;
|
|
37
|
+
/** Whether no repayment is required to join the chat. */
|
|
38
|
+
isAlreadySubscribed: boolean;
|
|
39
|
+
/** The title of the chat. */
|
|
40
|
+
title: string;
|
|
41
|
+
/** The description of the chat. */
|
|
42
|
+
description?: string;
|
|
43
|
+
/** The chat's photo. */
|
|
44
|
+
photo?: Photo;
|
|
45
|
+
/** The chat's member count. */
|
|
46
|
+
memberCount: number;
|
|
47
|
+
/** A preview of the chat's members. */
|
|
48
|
+
members: User[];
|
|
49
|
+
/** The chat's color. */
|
|
50
|
+
color: number;
|
|
51
|
+
/** The chat's subscription period. */
|
|
52
|
+
subscriptionPeriod?: number;
|
|
53
|
+
/** The chat's subscription price. */
|
|
54
|
+
subscriptionPrice?: number;
|
|
55
|
+
/** The chat verification bot's identifier. */
|
|
56
|
+
verificationBotId?: number;
|
|
57
|
+
/** The chat verification's custom emoji identifier. */
|
|
58
|
+
verificationCustomEmojiId?: number;
|
|
59
|
+
/** The chat verification's description. */
|
|
60
|
+
verificationDescription?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare function constructResolvedInviteLink(il: Api.chatInvite): ResolvedInviteLink;
|
|
63
|
+
//# sourceMappingURL=3_resolved_invite_link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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ED,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,GAAG,CAAC,UAAU,GAAG,kBAAkB,CAqBlF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.constructResolvedInviteLink = constructResolvedInviteLink;
|
|
23
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
|
+
const _1_photo_js_1 = require("./1_photo.js");
|
|
26
|
+
const _2_user_js_1 = require("./2_user.js");
|
|
27
|
+
function constructResolvedInviteLink(il) {
|
|
28
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
29
|
+
type: il.megagroup ? "supergroup" : il.channel ? "channel" : "group",
|
|
30
|
+
isPublic: !!il.public,
|
|
31
|
+
isApprovalNeeded: !!il.request_needed,
|
|
32
|
+
isVerified: !!il.verified,
|
|
33
|
+
isScam: !!il.scam,
|
|
34
|
+
isFake: !!il.fake,
|
|
35
|
+
isAlreadySubscribed: !!il.can_refulfill_subscription,
|
|
36
|
+
title: il.title,
|
|
37
|
+
description: il.about || undefined,
|
|
38
|
+
photo: _2_tl_js_1.Api.is("photo", il.photo) ? (0, _1_photo_js_1.constructPhoto)(il.photo) : undefined,
|
|
39
|
+
memberCount: il.participants_count,
|
|
40
|
+
members: (il.participants ?? []).map((v) => (0, _2_user_js_1.constructUser)(_2_tl_js_1.Api.as("user", v))),
|
|
41
|
+
color: il.color,
|
|
42
|
+
subscriptionPeriod: il.subscription_pricing?.period,
|
|
43
|
+
subscriptionPrice: il.subscription_pricing?.amount ? Number(il.subscription_pricing.amount) : undefined,
|
|
44
|
+
verificationBotId: il.bot_verification?.bot_id ? Number(il.bot_verification.bot_id) : undefined,
|
|
45
|
+
verificationCustomEmojIid: il.bot_verification?.icon ? String(il.bot_verification.icon) : undefined,
|
|
46
|
+
verificationDescription: il.bot_verification?.description,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
@@ -31,6 +31,7 @@ export interface RichTextComponentEmpty {
|
|
|
31
31
|
*/
|
|
32
32
|
export interface RichTextComponentPlain {
|
|
33
33
|
type: "plain";
|
|
34
|
+
/** The plain text. */
|
|
34
35
|
text: string;
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
@@ -39,6 +40,7 @@ export interface RichTextComponentPlain {
|
|
|
39
40
|
*/
|
|
40
41
|
export interface RichTextComponentBold {
|
|
41
42
|
type: "bold";
|
|
43
|
+
/** The component's inner text. */
|
|
42
44
|
text: RichTextComponent;
|
|
43
45
|
}
|
|
44
46
|
/**
|
|
@@ -47,6 +49,7 @@ export interface RichTextComponentBold {
|
|
|
47
49
|
*/
|
|
48
50
|
export interface RichTextComponentItalic {
|
|
49
51
|
type: "italic";
|
|
52
|
+
/** The component's inner text. */
|
|
50
53
|
text: RichTextComponent;
|
|
51
54
|
}
|
|
52
55
|
/**
|
|
@@ -55,6 +58,7 @@ export interface RichTextComponentItalic {
|
|
|
55
58
|
*/
|
|
56
59
|
export interface RichTextComponentUnderline {
|
|
57
60
|
type: "underline";
|
|
61
|
+
/** The component's inner text. */
|
|
58
62
|
text: RichTextComponent;
|
|
59
63
|
}
|
|
60
64
|
/**
|
|
@@ -63,6 +67,7 @@ export interface RichTextComponentUnderline {
|
|
|
63
67
|
*/
|
|
64
68
|
export interface RichTextComponentStrikethrough {
|
|
65
69
|
type: "strikethrough";
|
|
70
|
+
/** The component's inner text. */
|
|
66
71
|
text: RichTextComponent;
|
|
67
72
|
}
|
|
68
73
|
/**
|
|
@@ -71,6 +76,7 @@ export interface RichTextComponentStrikethrough {
|
|
|
71
76
|
*/
|
|
72
77
|
export interface RichTextComponentFixed {
|
|
73
78
|
type: "fixed";
|
|
79
|
+
/** The component's inner text. */
|
|
74
80
|
text: RichTextComponent;
|
|
75
81
|
}
|
|
76
82
|
/**
|
|
@@ -81,6 +87,7 @@ export interface RichTextComponentLink {
|
|
|
81
87
|
type: "link";
|
|
82
88
|
url: string;
|
|
83
89
|
linkPreviewId: string;
|
|
90
|
+
/** The component's inner text. */
|
|
84
91
|
text: RichTextComponent;
|
|
85
92
|
}
|
|
86
93
|
/**
|
|
@@ -89,6 +96,7 @@ export interface RichTextComponentLink {
|
|
|
89
96
|
*/
|
|
90
97
|
export interface RichTextComponentEmail {
|
|
91
98
|
type: "email";
|
|
99
|
+
/** The component's inner text. */
|
|
92
100
|
text: RichTextComponent;
|
|
93
101
|
}
|
|
94
102
|
/**
|
|
@@ -105,6 +113,7 @@ export interface RichTextComponentConcatenate {
|
|
|
105
113
|
*/
|
|
106
114
|
export interface RichTextComponentSubscript {
|
|
107
115
|
type: "subscript";
|
|
116
|
+
/** The component's inner text. */
|
|
108
117
|
text: RichTextComponent;
|
|
109
118
|
}
|
|
110
119
|
/**
|
|
@@ -113,6 +122,7 @@ export interface RichTextComponentSubscript {
|
|
|
113
122
|
*/
|
|
114
123
|
export interface RichTextComponentSuperscript {
|
|
115
124
|
type: "superscript";
|
|
125
|
+
/** The component's inner text. */
|
|
116
126
|
text: RichTextComponent;
|
|
117
127
|
}
|
|
118
128
|
/**
|
|
@@ -121,6 +131,7 @@ export interface RichTextComponentSuperscript {
|
|
|
121
131
|
*/
|
|
122
132
|
export interface RichTextComponentMarked {
|
|
123
133
|
type: "marked";
|
|
134
|
+
/** The component's inner text. */
|
|
124
135
|
text: RichTextComponent;
|
|
125
136
|
}
|
|
126
137
|
/**
|
|
@@ -130,6 +141,7 @@ export interface RichTextComponentMarked {
|
|
|
130
141
|
export interface RichTextComponentPhoneNumberLink {
|
|
131
142
|
type: "phoneNumberLink";
|
|
132
143
|
phoneNumber: string;
|
|
144
|
+
/** The component's inner text. */
|
|
133
145
|
text: RichTextComponent;
|
|
134
146
|
}
|
|
135
147
|
/**
|
|
@@ -149,6 +161,7 @@ export interface RichTextComponentPhoto {
|
|
|
149
161
|
export interface RichTextComponentAnchor {
|
|
150
162
|
type: "anchor";
|
|
151
163
|
name: string;
|
|
164
|
+
/** The component's inner text. */
|
|
152
165
|
text: RichTextComponent;
|
|
153
166
|
}
|
|
154
167
|
/**
|
|
@@ -174,6 +187,7 @@ export interface RichTextComponentCustomEmoji {
|
|
|
174
187
|
*/
|
|
175
188
|
export interface RichTextComponentSpoiler {
|
|
176
189
|
type: "spoiler";
|
|
190
|
+
/** The component's inner text. */
|
|
177
191
|
text: RichTextComponent;
|
|
178
192
|
}
|
|
179
193
|
/**
|
|
@@ -182,6 +196,7 @@ export interface RichTextComponentSpoiler {
|
|
|
182
196
|
*/
|
|
183
197
|
export interface RichTextComponentMention {
|
|
184
198
|
type: "mention";
|
|
199
|
+
/** The component's inner text. */
|
|
185
200
|
text: RichTextComponent;
|
|
186
201
|
}
|
|
187
202
|
/**
|
|
@@ -190,6 +205,7 @@ export interface RichTextComponentMention {
|
|
|
190
205
|
*/
|
|
191
206
|
export interface RichTextComponentHashtag {
|
|
192
207
|
type: "hashtag";
|
|
208
|
+
/** The component's inner text. */
|
|
193
209
|
text: RichTextComponent;
|
|
194
210
|
}
|
|
195
211
|
/**
|
|
@@ -198,6 +214,7 @@ export interface RichTextComponentHashtag {
|
|
|
198
214
|
*/
|
|
199
215
|
export interface RichTextComponentBotCommand {
|
|
200
216
|
type: "botCommand";
|
|
217
|
+
/** The component's inner text. */
|
|
201
218
|
text: RichTextComponent;
|
|
202
219
|
}
|
|
203
220
|
/**
|
|
@@ -206,6 +223,7 @@ export interface RichTextComponentBotCommand {
|
|
|
206
223
|
*/
|
|
207
224
|
export interface RichTextComponentCashtag {
|
|
208
225
|
type: "cashtag";
|
|
226
|
+
/** The component's inner text. */
|
|
209
227
|
text: RichTextComponent;
|
|
210
228
|
}
|
|
211
229
|
/**
|
|
@@ -214,6 +232,7 @@ export interface RichTextComponentCashtag {
|
|
|
214
232
|
*/
|
|
215
233
|
export interface RichTextComponentUrl {
|
|
216
234
|
type: "url";
|
|
235
|
+
/** The component's inner text. */
|
|
217
236
|
text: RichTextComponent;
|
|
218
237
|
}
|
|
219
238
|
/**
|
|
@@ -223,6 +242,7 @@ export interface RichTextComponentUrl {
|
|
|
223
242
|
export interface RichTextComponentEmailLink {
|
|
224
243
|
type: "emailLink";
|
|
225
244
|
email: string;
|
|
245
|
+
/** The component's inner text. */
|
|
226
246
|
text: RichTextComponent;
|
|
227
247
|
}
|
|
228
248
|
/**
|
|
@@ -231,6 +251,7 @@ export interface RichTextComponentEmailLink {
|
|
|
231
251
|
*/
|
|
232
252
|
export interface RichTextComponentPhone {
|
|
233
253
|
type: "phoneNumber";
|
|
254
|
+
/** The component's inner text. */
|
|
234
255
|
text: RichTextComponent;
|
|
235
256
|
}
|
|
236
257
|
/**
|
|
@@ -239,6 +260,7 @@ export interface RichTextComponentPhone {
|
|
|
239
260
|
*/
|
|
240
261
|
export interface RichTextComponentBankCard {
|
|
241
262
|
type: "bankCard";
|
|
263
|
+
/** The component's inner text. */
|
|
242
264
|
text: RichTextComponent;
|
|
243
265
|
}
|
|
244
266
|
/**
|
|
@@ -248,6 +270,7 @@ export interface RichTextComponentBankCard {
|
|
|
248
270
|
export interface RichTextComponentTextMention {
|
|
249
271
|
type: "textMention";
|
|
250
272
|
userId: number;
|
|
273
|
+
/** The component's inner text. */
|
|
251
274
|
text: RichTextComponent;
|
|
252
275
|
}
|
|
253
276
|
/**
|
|
@@ -258,6 +281,7 @@ export interface RichTextComponentDateTime {
|
|
|
258
281
|
type: "dateTime";
|
|
259
282
|
format?: string;
|
|
260
283
|
date: number;
|
|
284
|
+
/** The component's inner text. */
|
|
261
285
|
text: RichTextComponent;
|
|
262
286
|
}
|
|
263
287
|
/** Any type of rich text component. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_rich_text_component.d.ts","sourceRoot":"","sources":["../../src/types/3_rich_text_component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKjC;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,O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