@mtkruto/node 0.126.0 → 0.128.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 +4 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +4 -0
- package/esm/client/0_params.d.ts +12 -0
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/1_client_generic.d.ts +100 -19
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/2_account_manager.d.ts +5 -1
- package/esm/client/2_account_manager.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +23 -1
- package/esm/client/3_message_manager.d.ts +5 -1
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +21 -1
- package/esm/client/4_chat_manager.d.ts +7 -3
- package/esm/client/4_chat_manager.d.ts.map +1 -1
- package/esm/client/4_chat_manager.js +29 -3
- package/esm/client/4_context.d.ts +2 -2
- package/esm/client/4_context.d.ts.map +1 -1
- package/esm/client/6_client.d.ts +99 -18
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +125 -20
- package/esm/client/6_client_dispatcher.d.ts +100 -19
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +126 -21
- package/esm/types/1_available_reactions.d.ts +54 -0
- package/esm/types/1_available_reactions.d.ts.map +1 -0
- package/esm/types/1_available_reactions.js +30 -0
- package/esm/types/3_app_support.d.ts +27 -0
- package/esm/types/3_app_support.d.ts.map +1 -0
- package/esm/types/3_app_support.js +24 -0
- package/esm/types/3_blocked_user.d.ts +31 -0
- package/esm/types/3_blocked_user.d.ts.map +1 -0
- package/esm/types/3_blocked_user.js +33 -0
- package/esm/types/4_blocked_user_list.d.ts +31 -0
- package/esm/types/4_blocked_user_list.d.ts.map +1 -0
- package/esm/types/4_blocked_user_list.js +25 -0
- package/package.json +1 -1
- package/script/3_types.d.ts +4 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +4 -0
- package/script/client/0_params.d.ts +12 -0
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/1_client_generic.d.ts +100 -19
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/2_account_manager.d.ts +5 -1
- package/script/client/2_account_manager.d.ts.map +1 -1
- package/script/client/2_account_manager.js +22 -0
- package/script/client/3_message_manager.d.ts +5 -1
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +20 -0
- package/script/client/4_chat_manager.d.ts +7 -3
- package/script/client/4_chat_manager.d.ts.map +1 -1
- package/script/client/4_chat_manager.js +27 -1
- package/script/client/4_context.d.ts +2 -2
- package/script/client/4_context.d.ts.map +1 -1
- package/script/client/6_client.d.ts +99 -18
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +125 -20
- package/script/client/6_client_dispatcher.d.ts +100 -19
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +126 -21
- package/script/types/1_available_reactions.d.ts +54 -0
- package/script/types/1_available_reactions.d.ts.map +1 -0
- package/script/types/1_available_reactions.js +33 -0
- package/script/types/3_app_support.d.ts +27 -0
- package/script/types/3_app_support.d.ts.map +1 -0
- package/script/types/3_app_support.js +27 -0
- package/script/types/3_blocked_user.d.ts +31 -0
- package/script/types/3_blocked_user.d.ts.map +1 -0
- package/script/types/3_blocked_user.js +36 -0
- package/script/types/4_blocked_user_list.d.ts +31 -0
- package/script/types/4_blocked_user_list.d.ts.map +1 -0
- package/script/types/4_blocked_user_list.js +28 -0
|
@@ -520,6 +520,66 @@ export class ClientDispatcher extends Composer {
|
|
|
520
520
|
async suggestBirthday(userId, birthday) {
|
|
521
521
|
return await this.#dispatch("suggestBirthday", userId, birthday);
|
|
522
522
|
}
|
|
523
|
+
/**
|
|
524
|
+
* Block a user. User-only.
|
|
525
|
+
*
|
|
526
|
+
* @method ac
|
|
527
|
+
* @param userId The identifier of the user to block.
|
|
528
|
+
*/
|
|
529
|
+
async blockUser(userId) {
|
|
530
|
+
return await this.#dispatch("blockUser", userId);
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Unblock a user. User-only.
|
|
534
|
+
*
|
|
535
|
+
* @method ac
|
|
536
|
+
* @param userId The identifier of the user to unblock.
|
|
537
|
+
*/
|
|
538
|
+
async unblockUser(userId) {
|
|
539
|
+
return await this.#dispatch("unblockUser", userId);
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Get blocked users. User-only.
|
|
543
|
+
*
|
|
544
|
+
* @method ac
|
|
545
|
+
*/
|
|
546
|
+
async getBlockedUsers(params) {
|
|
547
|
+
return await this.#dispatch("getBlockedUsers", params);
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Add a bot to the attachments menu. User-only.
|
|
551
|
+
*
|
|
552
|
+
* @method ac
|
|
553
|
+
* @param botId The identifier of the bot to add to the attachments menu.
|
|
554
|
+
*/
|
|
555
|
+
async addBotToAttachmentsMenu(botId, params) {
|
|
556
|
+
return await this.#dispatch("addBotToAttachmentsMenu", botId, params);
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Remove a bot from the attachments menu. User-only.
|
|
560
|
+
*
|
|
561
|
+
* @method ac
|
|
562
|
+
* @param botId The identifier of the bot to remove from the attachments menu.
|
|
563
|
+
*/
|
|
564
|
+
async removeBotFromAttachmentsMenu(botId) {
|
|
565
|
+
return await this.#dispatch("removeBotFromAttachmentsMenu", botId);
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Get app support. User-only.
|
|
569
|
+
*
|
|
570
|
+
* @method ac
|
|
571
|
+
*/
|
|
572
|
+
async getAppSupport() {
|
|
573
|
+
return await this.#dispatch("getAppSupport");
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Get app support name. User-only.
|
|
577
|
+
*
|
|
578
|
+
* @method ac
|
|
579
|
+
*/
|
|
580
|
+
async getAppSupportName() {
|
|
581
|
+
return await this.#dispatch("getAppSupportName");
|
|
582
|
+
}
|
|
523
583
|
//
|
|
524
584
|
// ========================= MESSAGES ========================= //
|
|
525
585
|
//
|
|
@@ -1126,13 +1186,30 @@ export class ClientDispatcher extends Composer {
|
|
|
1126
1186
|
/**
|
|
1127
1187
|
* Get a list of reactions made to a message. User-only.
|
|
1128
1188
|
*
|
|
1189
|
+
* @method ms
|
|
1129
1190
|
* @param chatId The identifier of a chat.
|
|
1130
1191
|
* @param messageId The identifier of the message.
|
|
1131
|
-
* @method ms
|
|
1132
1192
|
*/
|
|
1133
1193
|
async getMessageReactions(chatId, messageId, params) {
|
|
1134
1194
|
return await this.#dispatch("getMessageReactions", chatId, messageId, params);
|
|
1135
1195
|
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Set a reaction as default. User-only.
|
|
1198
|
+
*
|
|
1199
|
+
* @mehod ms
|
|
1200
|
+
* @param reaction The reaction to set as default.
|
|
1201
|
+
*/
|
|
1202
|
+
async setDefaultReaction(reaction) {
|
|
1203
|
+
return await this.#dispatch("setDefaultReaction", reaction);
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Clear all message drafts. User-only.
|
|
1207
|
+
*
|
|
1208
|
+
* @mehod ms
|
|
1209
|
+
*/
|
|
1210
|
+
async clearDrafts() {
|
|
1211
|
+
return await this.#dispatch("clearAllDrafts");
|
|
1212
|
+
}
|
|
1136
1213
|
//
|
|
1137
1214
|
// ========================= POLLS ========================= //
|
|
1138
1215
|
//
|
|
@@ -2007,6 +2084,44 @@ export class ClientDispatcher extends Composer {
|
|
|
2007
2084
|
async getSimilarBots(chatId) {
|
|
2008
2085
|
return await this.#dispatch("getSimilarBots", chatId);
|
|
2009
2086
|
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Get the count of online members in a chat. User-only.
|
|
2089
|
+
*
|
|
2090
|
+
* @method ch
|
|
2091
|
+
* @param chatId The identifier of a chat.
|
|
2092
|
+
* @returns The count of online members in the chat.
|
|
2093
|
+
*/
|
|
2094
|
+
async getOnlineCount(chatId) {
|
|
2095
|
+
return await this.#dispatch("getOnlineCount", chatId);
|
|
2096
|
+
}
|
|
2097
|
+
/**
|
|
2098
|
+
* Enable chat history for new members. User-only.
|
|
2099
|
+
*
|
|
2100
|
+
* @method ch
|
|
2101
|
+
* @param chatId The identifier of a chat.
|
|
2102
|
+
*/
|
|
2103
|
+
async enableChatHistoryForNewMembers(chatId) {
|
|
2104
|
+
return await this.#dispatch("enableChatHistoryForNewMembers", chatId);
|
|
2105
|
+
}
|
|
2106
|
+
/**
|
|
2107
|
+
* Disable chat history for new members. User-only.
|
|
2108
|
+
*
|
|
2109
|
+
* @method ch
|
|
2110
|
+
* @param chatId The identifier of a chat.
|
|
2111
|
+
*/
|
|
2112
|
+
async disableChatHistoryForNewMembers(chatId) {
|
|
2113
|
+
return await this.#dispatch("disableChatHistoryForNewMembers", chatId);
|
|
2114
|
+
}
|
|
2115
|
+
/**
|
|
2116
|
+
* Set the default send as chat of a chat. User-only.
|
|
2117
|
+
*
|
|
2118
|
+
* @method ch
|
|
2119
|
+
* @param chatId The identifier of a chat.
|
|
2120
|
+
* @param sendAs The new default send as chat.
|
|
2121
|
+
*/
|
|
2122
|
+
async setDefaultSendAs(chatId, sendAs) {
|
|
2123
|
+
return await this.#dispatch("setDefaultSendAs", chatId, sendAs);
|
|
2124
|
+
}
|
|
2010
2125
|
//
|
|
2011
2126
|
// ========================= CALLBACK QUERIES ========================= //
|
|
2012
2127
|
//
|
|
@@ -2165,6 +2280,14 @@ export class ClientDispatcher extends Composer {
|
|
|
2165
2280
|
async removeReaction(chatId, messageId, reaction) {
|
|
2166
2281
|
return await this.#dispatch("removeReaction", chatId, messageId, reaction);
|
|
2167
2282
|
}
|
|
2283
|
+
/**
|
|
2284
|
+
* Clear recent reactions. User-only.
|
|
2285
|
+
*
|
|
2286
|
+
* @method re
|
|
2287
|
+
*/
|
|
2288
|
+
async clearRecentReactions() {
|
|
2289
|
+
return await this.#dispatch("clearRecentReactions");
|
|
2290
|
+
}
|
|
2168
2291
|
//
|
|
2169
2292
|
// ========================= STORIES ========================= //
|
|
2170
2293
|
//
|
|
@@ -2360,34 +2483,16 @@ export class ClientDispatcher extends Composer {
|
|
|
2360
2483
|
return await this.#dispatch("getStoriesInAlbum", chatId, albumId);
|
|
2361
2484
|
}
|
|
2362
2485
|
//
|
|
2363
|
-
// =========================
|
|
2486
|
+
// ========================= NETWORK STATISTICS ========================= //
|
|
2364
2487
|
//
|
|
2365
2488
|
/**
|
|
2366
2489
|
* Get network statistics. This might not always be available.
|
|
2367
2490
|
*
|
|
2368
|
-
* @method
|
|
2491
|
+
* @method ns
|
|
2369
2492
|
*/
|
|
2370
2493
|
async getNetworkStatistics() {
|
|
2371
2494
|
return await this.#dispatch("getNetworkStatistics");
|
|
2372
2495
|
}
|
|
2373
|
-
/**
|
|
2374
|
-
* Block a user. User-only.
|
|
2375
|
-
*
|
|
2376
|
-
* @method mc
|
|
2377
|
-
* @param userId The identifier of the user to block.
|
|
2378
|
-
*/
|
|
2379
|
-
async blockUser(userId) {
|
|
2380
|
-
return await this.#dispatch("blockUser", userId);
|
|
2381
|
-
}
|
|
2382
|
-
/**
|
|
2383
|
-
* Unblock a user. User-only.
|
|
2384
|
-
*
|
|
2385
|
-
* @method mc
|
|
2386
|
-
* @param userId The identifier of the user to unblock.
|
|
2387
|
-
*/
|
|
2388
|
-
async unblockUser(userId) {
|
|
2389
|
-
return await this.#dispatch("unblockUser", userId);
|
|
2390
|
-
}
|
|
2391
2496
|
//
|
|
2392
2497
|
// ========================= VIDEO CHATS ========================= //
|
|
2393
2498
|
//
|
|
@@ -0,0 +1,54 @@
|
|
|
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 Reaction } from "./0_reaction.js";
|
|
22
|
+
/**
|
|
23
|
+
* An available reactions value allowing no type of reactions.
|
|
24
|
+
* @unlisted
|
|
25
|
+
*/
|
|
26
|
+
export interface AvailableReactionsNone {
|
|
27
|
+
/** @discriminator */
|
|
28
|
+
type: "none";
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* An available reactions value allowing a specific set of reactions.
|
|
32
|
+
* @unlisted
|
|
33
|
+
*/
|
|
34
|
+
export interface AvailableReactionsSome {
|
|
35
|
+
/** @discriminator */
|
|
36
|
+
type: "some";
|
|
37
|
+
/** The allowed reactions. */
|
|
38
|
+
reactions: Reaction[];
|
|
39
|
+
/** The maximum number of allowed reactions on a single message. */
|
|
40
|
+
maxReactionCount: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* An available reactions value allowing all types of reactions.
|
|
44
|
+
* @unlisted
|
|
45
|
+
*/
|
|
46
|
+
export interface AvailableReactionsAll {
|
|
47
|
+
/** @discriminator */
|
|
48
|
+
type: "all";
|
|
49
|
+
/** The maximum number of allowed reactions on a single message. */
|
|
50
|
+
maxReactionCount: number;
|
|
51
|
+
}
|
|
52
|
+
export type AvailableReactions = AvailableReactionsNone | AvailableReactionsSome | AvailableReactionsAll;
|
|
53
|
+
export declare function availableReactionsToTlObject(chatAvailableReactions: AvailableReactions): Api.ChatReactions;
|
|
54
|
+
//# sourceMappingURL=1_available_reactions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1_available_reactions.d.ts","sourceRoot":"","sources":["../../src/types/1_available_reactions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,QAAQ,EAAsB,MAAM,iBAAiB,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,qBAAqB;IACrB,IAAI,EAAE,KAAK,CAAC;IACZ,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAEzG,wBAAgB,4BAA4B,CAAC,sBAAsB,EAAE,kBAAkB,GAAG,GAAG,CAAC,aAAa,CAS1G"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { reactionToTlObject } from "./0_reaction.js";
|
|
21
|
+
export function availableReactionsToTlObject(chatAvailableReactions) {
|
|
22
|
+
switch (chatAvailableReactions.type) {
|
|
23
|
+
case "none":
|
|
24
|
+
return { _: "chatReactionsNone" };
|
|
25
|
+
case "some":
|
|
26
|
+
return { _: "chatReactionsSome", reactions: chatAvailableReactions.reactions.map(reactionToTlObject) };
|
|
27
|
+
case "all":
|
|
28
|
+
return { _: "chatReactionsAll" };
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 User } from "./2_user.js";
|
|
22
|
+
export interface AppSupport {
|
|
23
|
+
phoneNumber: string;
|
|
24
|
+
user: User;
|
|
25
|
+
}
|
|
26
|
+
export declare function constructAppSupport(result: Api.help_Support): AppSupport;
|
|
27
|
+
//# sourceMappingURL=3_app_support.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3_app_support.d.ts","sourceRoot":"","sources":["../../src/types/3_app_support.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,GAAG,UAAU,CAExE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { constructUser } from "./2_user.js";
|
|
22
|
+
export function constructAppSupport(result) {
|
|
23
|
+
return { phoneNumber: result.phone_number, user: constructUser(Api.as("user", result.user)) };
|
|
24
|
+
}
|
|
@@ -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 { Api } from "../2_tl.js";
|
|
21
|
+
import type { PeerGetter } from "./1_chat_p.js";
|
|
22
|
+
import { type User } from "./2_user.js";
|
|
23
|
+
/** A blocked user. */
|
|
24
|
+
export interface BlockedUser {
|
|
25
|
+
/** The blocked user. */
|
|
26
|
+
user: User;
|
|
27
|
+
/** The point in time in which the user was blocked. */
|
|
28
|
+
blockedAt: number;
|
|
29
|
+
}
|
|
30
|
+
export declare function constructBlockedUser(peerBlocked: Api.PeerBlocked, getPeer: PeerGetter): BlockedUser;
|
|
31
|
+
//# sourceMappingURL=3_blocked_user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3_blocked_user.d.ts","sourceRoot":"","sources":["../../src/types/3_blocked_user.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,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,sBAAsB;AACtB,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,GAAG,WAAW,CAanG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { constructUser2 } from "./2_user.js";
|
|
22
|
+
export function constructBlockedUser(peerBlocked, getPeer) {
|
|
23
|
+
const maybeChatP = getPeer(peerBlocked.peer_id);
|
|
24
|
+
if (maybeChatP === null || maybeChatP[0].type !== "private") {
|
|
25
|
+
unreachable();
|
|
26
|
+
}
|
|
27
|
+
const user = constructUser2(maybeChatP[0]);
|
|
28
|
+
const blockedAt = peerBlocked.date;
|
|
29
|
+
return {
|
|
30
|
+
user,
|
|
31
|
+
blockedAt,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -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 { Api } from "../2_tl.js";
|
|
21
|
+
import type { PeerGetter } from "./1_chat_p.js";
|
|
22
|
+
import { type BlockedUser } from "./3_blocked_user.js";
|
|
23
|
+
/** A list of blocked users. */
|
|
24
|
+
export interface BlockedUserList {
|
|
25
|
+
/** The blocked users. */
|
|
26
|
+
blockedUsers: BlockedUser[];
|
|
27
|
+
/** The total number of blocked users. */
|
|
28
|
+
count: number;
|
|
29
|
+
}
|
|
30
|
+
export declare function constructBlockedUserList(result: Api.contacts_Blocked, getPeer: PeerGetter): BlockedUserList;
|
|
31
|
+
//# sourceMappingURL=4_blocked_user_list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4_blocked_user_list.d.ts","sourceRoot":"","sources":["../../src/types/4_blocked_user_list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,qBAAqB,CAAC;AAE7E,+BAA+B;AAC/B,MAAM,WAAW,eAAe;IAC9B,yBAAyB;IACzB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,GAAG,eAAe,CAI3G"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { constructBlockedUser } from "./3_blocked_user.js";
|
|
21
|
+
export function constructBlockedUserList(result, getPeer) {
|
|
22
|
+
const blockedUsers = result.blocked.map((v) => constructBlockedUser(v, getPeer));
|
|
23
|
+
const count = "count" in result ? result.count : result.blocked.length;
|
|
24
|
+
return { blockedUsers, count };
|
|
25
|
+
}
|
package/package.json
CHANGED
package/script/3_types.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export * from "./types/0_voice.js";
|
|
|
77
77
|
export * from "./types/0_working_hours_interval.js";
|
|
78
78
|
export * from "./types/1_animation.js";
|
|
79
79
|
export * from "./types/1_audio.js";
|
|
80
|
+
export * from "./types/1_available_reactions.js";
|
|
80
81
|
export * from "./types/1_bot_command_scope.js";
|
|
81
82
|
export * from "./types/1_bot_commands.js";
|
|
82
83
|
export * from "./types/1_chat_action.js";
|
|
@@ -118,6 +119,8 @@ export * from "./types/2_story_interactive_area.js";
|
|
|
118
119
|
export * from "./types/2_story_privacy.js";
|
|
119
120
|
export * from "./types/2_successful_payment.js";
|
|
120
121
|
export * from "./types/2_user.js";
|
|
122
|
+
export * from "./types/3_app_support.js";
|
|
123
|
+
export * from "./types/3_blocked_user.js";
|
|
121
124
|
export * from "./types/3_business_connection.js";
|
|
122
125
|
export * from "./types/3_chat_settings.js";
|
|
123
126
|
export * from "./types/3_checklist_item.js";
|
|
@@ -139,6 +142,7 @@ export * from "./types/3_reply_quote.js";
|
|
|
139
142
|
export * from "./types/3_story_album.js";
|
|
140
143
|
export * from "./types/3_story.js";
|
|
141
144
|
export * from "./types/4_album_story_list.js";
|
|
145
|
+
export * from "./types/4_blocked_user_list.js";
|
|
142
146
|
export * from "./types/4_chat_member_updated.js";
|
|
143
147
|
export * from "./types/4_checklist.js";
|
|
144
148
|
export * from "./types/4_gift.js";
|
package/script/3_types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_types.d.ts","sourceRoot":"","sources":["../src/3_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CA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C;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
|
package/script/3_types.js
CHANGED
|
@@ -93,6 +93,7 @@ __exportStar(require("./types/0_voice.js"), exports);
|
|
|
93
93
|
__exportStar(require("./types/0_working_hours_interval.js"), exports);
|
|
94
94
|
__exportStar(require("./types/1_animation.js"), exports);
|
|
95
95
|
__exportStar(require("./types/1_audio.js"), exports);
|
|
96
|
+
__exportStar(require("./types/1_available_reactions.js"), exports);
|
|
96
97
|
__exportStar(require("./types/1_bot_command_scope.js"), exports);
|
|
97
98
|
__exportStar(require("./types/1_bot_commands.js"), exports);
|
|
98
99
|
__exportStar(require("./types/1_chat_action.js"), exports);
|
|
@@ -134,6 +135,8 @@ __exportStar(require("./types/2_story_interactive_area.js"), exports);
|
|
|
134
135
|
__exportStar(require("./types/2_story_privacy.js"), exports);
|
|
135
136
|
__exportStar(require("./types/2_successful_payment.js"), exports);
|
|
136
137
|
__exportStar(require("./types/2_user.js"), exports);
|
|
138
|
+
__exportStar(require("./types/3_app_support.js"), exports);
|
|
139
|
+
__exportStar(require("./types/3_blocked_user.js"), exports);
|
|
137
140
|
__exportStar(require("./types/3_business_connection.js"), exports);
|
|
138
141
|
__exportStar(require("./types/3_chat_settings.js"), exports);
|
|
139
142
|
__exportStar(require("./types/3_checklist_item.js"), exports);
|
|
@@ -155,6 +158,7 @@ __exportStar(require("./types/3_reply_quote.js"), exports);
|
|
|
155
158
|
__exportStar(require("./types/3_story_album.js"), exports);
|
|
156
159
|
__exportStar(require("./types/3_story.js"), exports);
|
|
157
160
|
__exportStar(require("./types/4_album_story_list.js"), exports);
|
|
161
|
+
__exportStar(require("./types/4_blocked_user_list.js"), exports);
|
|
158
162
|
__exportStar(require("./types/4_chat_member_updated.js"), exports);
|
|
159
163
|
__exportStar(require("./types/4_checklist.js"), exports);
|
|
160
164
|
__exportStar(require("./types/4_gift.js"), exports);
|
|
@@ -797,4 +797,16 @@ export interface GetStoriesInAlbumParams {
|
|
|
797
797
|
/** The maximum number of results to return. */
|
|
798
798
|
limit?: number;
|
|
799
799
|
}
|
|
800
|
+
export interface GetBlockedUsersParams {
|
|
801
|
+
/** Whether to fetch users blocked from viewing stories. */
|
|
802
|
+
isBlockedFromViewingStories?: boolean;
|
|
803
|
+
/** The number of results to skip. */
|
|
804
|
+
offset?: number;
|
|
805
|
+
/** The maximum number of results to return. */
|
|
806
|
+
limit?: number;
|
|
807
|
+
}
|
|
808
|
+
export interface AddBotToAttachmentsMenuParams {
|
|
809
|
+
/** Whether the bot is allowed to write to the user. */
|
|
810
|
+
isWriteAllowed?: boolean;
|
|
811
|
+
}
|
|
800
812
|
//# sourceMappingURL=0_params.d.ts.map
|