@mtkruto/browser 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.
Files changed (73) hide show
  1. package/esm/3_types.d.ts +4 -0
  2. package/esm/3_types.d.ts.map +1 -1
  3. package/esm/3_types.js +4 -0
  4. package/esm/client/0_params.d.ts +12 -0
  5. package/esm/client/0_params.d.ts.map +1 -1
  6. package/esm/client/1_client_generic.d.ts +100 -19
  7. package/esm/client/1_client_generic.d.ts.map +1 -1
  8. package/esm/client/2_account_manager.d.ts +5 -1
  9. package/esm/client/2_account_manager.d.ts.map +1 -1
  10. package/esm/client/2_account_manager.js +23 -1
  11. package/esm/client/3_message_manager.d.ts +5 -1
  12. package/esm/client/3_message_manager.d.ts.map +1 -1
  13. package/esm/client/3_message_manager.js +21 -1
  14. package/esm/client/4_chat_manager.d.ts +7 -3
  15. package/esm/client/4_chat_manager.d.ts.map +1 -1
  16. package/esm/client/4_chat_manager.js +29 -3
  17. package/esm/client/4_context.d.ts +2 -2
  18. package/esm/client/4_context.d.ts.map +1 -1
  19. package/esm/client/6_client.d.ts +99 -18
  20. package/esm/client/6_client.d.ts.map +1 -1
  21. package/esm/client/6_client.js +125 -20
  22. package/esm/client/6_client_dispatcher.d.ts +100 -19
  23. package/esm/client/6_client_dispatcher.d.ts.map +1 -1
  24. package/esm/client/6_client_dispatcher.js +126 -21
  25. package/esm/types/1_available_reactions.d.ts +54 -0
  26. package/esm/types/1_available_reactions.d.ts.map +1 -0
  27. package/esm/types/1_available_reactions.js +30 -0
  28. package/esm/types/3_app_support.d.ts +27 -0
  29. package/esm/types/3_app_support.d.ts.map +1 -0
  30. package/esm/types/3_app_support.js +24 -0
  31. package/esm/types/3_blocked_user.d.ts +31 -0
  32. package/esm/types/3_blocked_user.d.ts.map +1 -0
  33. package/esm/types/3_blocked_user.js +33 -0
  34. package/esm/types/4_blocked_user_list.d.ts +31 -0
  35. package/esm/types/4_blocked_user_list.d.ts.map +1 -0
  36. package/esm/types/4_blocked_user_list.js +25 -0
  37. package/package.json +1 -1
  38. package/script/3_types.d.ts +4 -0
  39. package/script/3_types.d.ts.map +1 -1
  40. package/script/3_types.js +4 -0
  41. package/script/client/0_params.d.ts +12 -0
  42. package/script/client/0_params.d.ts.map +1 -1
  43. package/script/client/1_client_generic.d.ts +100 -19
  44. package/script/client/1_client_generic.d.ts.map +1 -1
  45. package/script/client/2_account_manager.d.ts +5 -1
  46. package/script/client/2_account_manager.d.ts.map +1 -1
  47. package/script/client/2_account_manager.js +22 -0
  48. package/script/client/3_message_manager.d.ts +5 -1
  49. package/script/client/3_message_manager.d.ts.map +1 -1
  50. package/script/client/3_message_manager.js +20 -0
  51. package/script/client/4_chat_manager.d.ts +7 -3
  52. package/script/client/4_chat_manager.d.ts.map +1 -1
  53. package/script/client/4_chat_manager.js +27 -1
  54. package/script/client/4_context.d.ts +2 -2
  55. package/script/client/4_context.d.ts.map +1 -1
  56. package/script/client/6_client.d.ts +99 -18
  57. package/script/client/6_client.d.ts.map +1 -1
  58. package/script/client/6_client.js +125 -20
  59. package/script/client/6_client_dispatcher.d.ts +100 -19
  60. package/script/client/6_client_dispatcher.d.ts.map +1 -1
  61. package/script/client/6_client_dispatcher.js +126 -21
  62. package/script/types/1_available_reactions.d.ts +54 -0
  63. package/script/types/1_available_reactions.d.ts.map +1 -0
  64. package/script/types/1_available_reactions.js +33 -0
  65. package/script/types/3_app_support.d.ts +27 -0
  66. package/script/types/3_app_support.d.ts.map +1 -0
  67. package/script/types/3_app_support.js +27 -0
  68. package/script/types/3_blocked_user.d.ts +31 -0
  69. package/script/types/3_blocked_user.d.ts.map +1 -0
  70. package/script/types/3_blocked_user.js +36 -0
  71. package/script/types/4_blocked_user_list.d.ts +31 -0
  72. package/script/types/4_blocked_user_list.d.ts.map +1 -0
  73. package/script/types/4_blocked_user_list.js +28 -0
@@ -519,6 +519,66 @@ export class ClientDispatcher extends Composer {
519
519
  async suggestBirthday(userId, birthday) {
520
520
  return await this.#dispatch("suggestBirthday", userId, birthday);
521
521
  }
522
+ /**
523
+ * Block a user. User-only.
524
+ *
525
+ * @method ac
526
+ * @param userId The identifier of the user to block.
527
+ */
528
+ async blockUser(userId) {
529
+ return await this.#dispatch("blockUser", userId);
530
+ }
531
+ /**
532
+ * Unblock a user. User-only.
533
+ *
534
+ * @method ac
535
+ * @param userId The identifier of the user to unblock.
536
+ */
537
+ async unblockUser(userId) {
538
+ return await this.#dispatch("unblockUser", userId);
539
+ }
540
+ /**
541
+ * Get blocked users. User-only.
542
+ *
543
+ * @method ac
544
+ */
545
+ async getBlockedUsers(params) {
546
+ return await this.#dispatch("getBlockedUsers", params);
547
+ }
548
+ /**
549
+ * Add a bot to the attachments menu. User-only.
550
+ *
551
+ * @method ac
552
+ * @param botId The identifier of the bot to add to the attachments menu.
553
+ */
554
+ async addBotToAttachmentsMenu(botId, params) {
555
+ return await this.#dispatch("addBotToAttachmentsMenu", botId, params);
556
+ }
557
+ /**
558
+ * Remove a bot from the attachments menu. User-only.
559
+ *
560
+ * @method ac
561
+ * @param botId The identifier of the bot to remove from the attachments menu.
562
+ */
563
+ async removeBotFromAttachmentsMenu(botId) {
564
+ return await this.#dispatch("removeBotFromAttachmentsMenu", botId);
565
+ }
566
+ /**
567
+ * Get app support. User-only.
568
+ *
569
+ * @method ac
570
+ */
571
+ async getAppSupport() {
572
+ return await this.#dispatch("getAppSupport");
573
+ }
574
+ /**
575
+ * Get app support name. User-only.
576
+ *
577
+ * @method ac
578
+ */
579
+ async getAppSupportName() {
580
+ return await this.#dispatch("getAppSupportName");
581
+ }
522
582
  //
523
583
  // ========================= MESSAGES ========================= //
524
584
  //
@@ -1125,13 +1185,30 @@ export class ClientDispatcher extends Composer {
1125
1185
  /**
1126
1186
  * Get a list of reactions made to a message. User-only.
1127
1187
  *
1188
+ * @method ms
1128
1189
  * @param chatId The identifier of a chat.
1129
1190
  * @param messageId The identifier of the message.
1130
- * @method ms
1131
1191
  */
1132
1192
  async getMessageReactions(chatId, messageId, params) {
1133
1193
  return await this.#dispatch("getMessageReactions", chatId, messageId, params);
1134
1194
  }
1195
+ /**
1196
+ * Set a reaction as default. User-only.
1197
+ *
1198
+ * @mehod ms
1199
+ * @param reaction The reaction to set as default.
1200
+ */
1201
+ async setDefaultReaction(reaction) {
1202
+ return await this.#dispatch("setDefaultReaction", reaction);
1203
+ }
1204
+ /**
1205
+ * Clear all message drafts. User-only.
1206
+ *
1207
+ * @mehod ms
1208
+ */
1209
+ async clearDrafts() {
1210
+ return await this.#dispatch("clearAllDrafts");
1211
+ }
1135
1212
  //
1136
1213
  // ========================= POLLS ========================= //
1137
1214
  //
@@ -2006,6 +2083,44 @@ export class ClientDispatcher extends Composer {
2006
2083
  async getSimilarBots(chatId) {
2007
2084
  return await this.#dispatch("getSimilarBots", chatId);
2008
2085
  }
2086
+ /**
2087
+ * Get the count of online members in a chat. User-only.
2088
+ *
2089
+ * @method ch
2090
+ * @param chatId The identifier of a chat.
2091
+ * @returns The count of online members in the chat.
2092
+ */
2093
+ async getOnlineCount(chatId) {
2094
+ return await this.#dispatch("getOnlineCount", chatId);
2095
+ }
2096
+ /**
2097
+ * Enable chat history for new members. User-only.
2098
+ *
2099
+ * @method ch
2100
+ * @param chatId The identifier of a chat.
2101
+ */
2102
+ async enableChatHistoryForNewMembers(chatId) {
2103
+ return await this.#dispatch("enableChatHistoryForNewMembers", chatId);
2104
+ }
2105
+ /**
2106
+ * Disable chat history for new members. User-only.
2107
+ *
2108
+ * @method ch
2109
+ * @param chatId The identifier of a chat.
2110
+ */
2111
+ async disableChatHistoryForNewMembers(chatId) {
2112
+ return await this.#dispatch("disableChatHistoryForNewMembers", chatId);
2113
+ }
2114
+ /**
2115
+ * Set the default send as chat of a chat. User-only.
2116
+ *
2117
+ * @method ch
2118
+ * @param chatId The identifier of a chat.
2119
+ * @param sendAs The new default send as chat.
2120
+ */
2121
+ async setDefaultSendAs(chatId, sendAs) {
2122
+ return await this.#dispatch("setDefaultSendAs", chatId, sendAs);
2123
+ }
2009
2124
  //
2010
2125
  // ========================= CALLBACK QUERIES ========================= //
2011
2126
  //
@@ -2164,6 +2279,14 @@ export class ClientDispatcher extends Composer {
2164
2279
  async removeReaction(chatId, messageId, reaction) {
2165
2280
  return await this.#dispatch("removeReaction", chatId, messageId, reaction);
2166
2281
  }
2282
+ /**
2283
+ * Clear recent reactions. User-only.
2284
+ *
2285
+ * @method re
2286
+ */
2287
+ async clearRecentReactions() {
2288
+ return await this.#dispatch("clearRecentReactions");
2289
+ }
2167
2290
  //
2168
2291
  // ========================= STORIES ========================= //
2169
2292
  //
@@ -2359,34 +2482,16 @@ export class ClientDispatcher extends Composer {
2359
2482
  return await this.#dispatch("getStoriesInAlbum", chatId, albumId);
2360
2483
  }
2361
2484
  //
2362
- // ========================= MISC ========================= //
2485
+ // ========================= NETWORK STATISTICS ========================= //
2363
2486
  //
2364
2487
  /**
2365
2488
  * Get network statistics. This might not always be available.
2366
2489
  *
2367
- * @method mc
2490
+ * @method ns
2368
2491
  */
2369
2492
  async getNetworkStatistics() {
2370
2493
  return await this.#dispatch("getNetworkStatistics");
2371
2494
  }
2372
- /**
2373
- * Block a user. User-only.
2374
- *
2375
- * @method mc
2376
- * @param userId The identifier of the user to block.
2377
- */
2378
- async blockUser(userId) {
2379
- return await this.#dispatch("blockUser", userId);
2380
- }
2381
- /**
2382
- * Unblock a user. User-only.
2383
- *
2384
- * @method mc
2385
- * @param userId The identifier of the user to unblock.
2386
- */
2387
- async unblockUser(userId) {
2388
- return await this.#dispatch("unblockUser", userId);
2389
- }
2390
2495
  //
2391
2496
  // ========================= VIDEO CHATS ========================= //
2392
2497
  //
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/browser",
3
- "version": "0.126.0",
3
+ "version": "0.128.0",
4
4
  "description": "MTKruto for browsers",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -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";
@@ -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,C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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