@mtkruto/browser 0.128.0 → 0.130.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 (151) hide show
  1. package/esm/0_deps.d.ts +4 -3
  2. package/esm/0_deps.d.ts.map +1 -1
  3. package/esm/0_deps.js +4 -3
  4. package/esm/3_types.d.ts +4 -0
  5. package/esm/3_types.d.ts.map +1 -1
  6. package/esm/3_types.js +4 -0
  7. package/esm/client/0_params.d.ts +26 -0
  8. package/esm/client/0_params.d.ts.map +1 -1
  9. package/esm/client/1_client_generic.d.ts +41 -2
  10. package/esm/client/1_client_generic.d.ts.map +1 -1
  11. package/esm/client/1_types.d.ts +1 -0
  12. package/esm/client/1_types.d.ts.map +1 -1
  13. package/esm/client/2_account_manager.d.ts +3 -0
  14. package/esm/client/2_account_manager.d.ts.map +1 -1
  15. package/esm/client/2_account_manager.js +16 -1
  16. package/esm/client/2_takeout_manager.d.ts +29 -0
  17. package/esm/client/2_takeout_manager.d.ts.map +1 -0
  18. package/esm/client/2_takeout_manager.js +41 -0
  19. package/esm/client/3_message_manager.js +1 -1
  20. package/esm/client/6_client.d.ts +41 -2
  21. package/esm/client/6_client.d.ts.map +1 -1
  22. package/esm/client/6_client.js +64 -3
  23. package/esm/client/6_client_dispatcher.d.ts +41 -2
  24. package/esm/client/6_client_dispatcher.d.ts.map +1 -1
  25. package/esm/client/6_client_dispatcher.js +54 -0
  26. package/esm/types/0_calling_code.d.ts +31 -0
  27. package/esm/types/0_calling_code.d.ts.map +1 -0
  28. package/esm/types/0_calling_code.js +26 -0
  29. package/esm/types/0_chat_action_type.d.ts +13 -0
  30. package/esm/types/0_chat_action_type.d.ts.map +1 -1
  31. package/esm/types/0_timezone.d.ts +31 -0
  32. package/esm/types/0_timezone.d.ts.map +1 -0
  33. package/esm/types/0_timezone.js +26 -0
  34. package/esm/types/1_available_reactions.d.ts +1 -0
  35. package/esm/types/1_available_reactions.d.ts.map +1 -1
  36. package/esm/types/1_chat_p.d.ts +1 -1
  37. package/esm/types/1_chat_p.d.ts.map +1 -1
  38. package/esm/types/1_chat_p.js +1 -1
  39. package/esm/types/1_country.d.ts +36 -0
  40. package/esm/types/1_country.d.ts.map +1 -0
  41. package/esm/types/1_country.js +30 -0
  42. package/esm/types/2_left_channel_list.d.ts +30 -0
  43. package/esm/types/2_left_channel_list.d.ts.map +1 -0
  44. package/esm/types/2_left_channel_list.js +25 -0
  45. package/esm/types/2_story_album_icon.d.ts +1 -0
  46. package/esm/types/2_story_album_icon.d.ts.map +1 -1
  47. package/esm/types/2_user.d.ts +1 -1
  48. package/esm/types/2_user.d.ts.map +1 -1
  49. package/esm/types/2_user.js +2 -2
  50. package/esm/types/3_app_support.d.ts +3 -0
  51. package/esm/types/3_app_support.d.ts.map +1 -1
  52. package/package.json +1 -1
  53. package/script/0_deps.d.ts +4 -3
  54. package/script/0_deps.d.ts.map +1 -1
  55. package/script/0_deps.js +13 -12
  56. package/script/3_types.d.ts +4 -0
  57. package/script/3_types.d.ts.map +1 -1
  58. package/script/3_types.js +4 -0
  59. package/script/client/0_params.d.ts +26 -0
  60. package/script/client/0_params.d.ts.map +1 -1
  61. package/script/client/1_client_generic.d.ts +41 -2
  62. package/script/client/1_client_generic.d.ts.map +1 -1
  63. package/script/client/1_types.d.ts +1 -0
  64. package/script/client/1_types.d.ts.map +1 -1
  65. package/script/client/2_account_manager.d.ts +3 -0
  66. package/script/client/2_account_manager.d.ts.map +1 -1
  67. package/script/client/2_account_manager.js +15 -0
  68. package/script/client/2_takeout_manager.d.ts +29 -0
  69. package/script/client/2_takeout_manager.d.ts.map +1 -0
  70. package/script/client/2_takeout_manager.js +45 -0
  71. package/script/client/3_message_manager.js +1 -1
  72. package/script/client/6_client.d.ts +41 -2
  73. package/script/client/6_client.d.ts.map +1 -1
  74. package/script/client/6_client.js +64 -3
  75. package/script/client/6_client_dispatcher.d.ts +41 -2
  76. package/script/client/6_client_dispatcher.d.ts.map +1 -1
  77. package/script/client/6_client_dispatcher.js +54 -0
  78. package/script/types/0_calling_code.d.ts +31 -0
  79. package/script/types/0_calling_code.d.ts.map +1 -0
  80. package/script/types/0_calling_code.js +29 -0
  81. package/script/types/0_chat_action_type.d.ts +13 -0
  82. package/script/types/0_chat_action_type.d.ts.map +1 -1
  83. package/script/types/0_timezone.d.ts +31 -0
  84. package/script/types/0_timezone.d.ts.map +1 -0
  85. package/script/types/0_timezone.js +29 -0
  86. package/script/types/1_available_reactions.d.ts +1 -0
  87. package/script/types/1_available_reactions.d.ts.map +1 -1
  88. package/script/types/1_chat_p.d.ts +1 -1
  89. package/script/types/1_chat_p.d.ts.map +1 -1
  90. package/script/types/1_chat_p.js +1 -1
  91. package/script/types/1_country.d.ts +36 -0
  92. package/script/types/1_country.d.ts.map +1 -0
  93. package/script/types/1_country.js +33 -0
  94. package/script/types/2_left_channel_list.d.ts +30 -0
  95. package/script/types/2_left_channel_list.d.ts.map +1 -0
  96. package/script/types/2_left_channel_list.js +28 -0
  97. package/script/types/2_story_album_icon.d.ts +1 -0
  98. package/script/types/2_story_album_icon.d.ts.map +1 -1
  99. package/script/types/2_user.d.ts +1 -1
  100. package/script/types/2_user.d.ts.map +1 -1
  101. package/script/types/2_user.js +2 -2
  102. package/script/types/3_app_support.d.ts +3 -0
  103. package/script/types/3_app_support.d.ts.map +1 -1
  104. package/esm/deps/jsr.io/@std/async/1.2.0/_util.d.ts +0 -2
  105. package/esm/deps/jsr.io/@std/async/1.2.0/_util.d.ts.map +0 -1
  106. package/esm/deps/jsr.io/@std/async/1.2.0/_util.js +0 -6
  107. package/esm/deps/jsr.io/@std/async/1.2.0/abortable.d.ts +0 -107
  108. package/esm/deps/jsr.io/@std/async/1.2.0/abortable.d.ts.map +0 -1
  109. package/esm/deps/jsr.io/@std/async/1.2.0/abortable.js +0 -46
  110. package/esm/deps/jsr.io/@std/async/1.2.0/deadline.d.ts +0 -37
  111. package/esm/deps/jsr.io/@std/async/1.2.0/deadline.d.ts.map +0 -1
  112. package/esm/deps/jsr.io/@std/async/1.2.0/deadline.js +0 -41
  113. package/esm/deps/jsr.io/@std/async/1.2.0/debounce.d.ts +0 -44
  114. package/esm/deps/jsr.io/@std/async/1.2.0/debounce.d.ts.map +0 -1
  115. package/esm/deps/jsr.io/@std/async/1.2.0/debounce.js +0 -57
  116. package/esm/deps/jsr.io/@std/async/1.2.0/mod.d.ts +0 -22
  117. package/esm/deps/jsr.io/@std/async/1.2.0/mod.d.ts.map +0 -1
  118. package/esm/deps/jsr.io/@std/async/1.2.0/mod.js +0 -23
  119. package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts +0 -111
  120. package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts.map +0 -1
  121. package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.js +0 -154
  122. package/esm/deps/jsr.io/@std/async/1.2.0/retry.d.ts +0 -155
  123. package/esm/deps/jsr.io/@std/async/1.2.0/retry.d.ts.map +0 -1
  124. package/esm/deps/jsr.io/@std/async/1.2.0/retry.js +0 -147
  125. package/esm/deps/jsr.io/@std/async/1.2.0/tee.d.ts +0 -43
  126. package/esm/deps/jsr.io/@std/async/1.2.0/tee.d.ts.map +0 -1
  127. package/esm/deps/jsr.io/@std/async/1.2.0/tee.js +0 -79
  128. package/script/deps/jsr.io/@std/async/1.2.0/_util.d.ts +0 -2
  129. package/script/deps/jsr.io/@std/async/1.2.0/_util.d.ts.map +0 -1
  130. package/script/deps/jsr.io/@std/async/1.2.0/_util.js +0 -9
  131. package/script/deps/jsr.io/@std/async/1.2.0/abortable.d.ts +0 -107
  132. package/script/deps/jsr.io/@std/async/1.2.0/abortable.d.ts.map +0 -1
  133. package/script/deps/jsr.io/@std/async/1.2.0/abortable.js +0 -49
  134. package/script/deps/jsr.io/@std/async/1.2.0/deadline.d.ts +0 -37
  135. package/script/deps/jsr.io/@std/async/1.2.0/deadline.d.ts.map +0 -1
  136. package/script/deps/jsr.io/@std/async/1.2.0/deadline.js +0 -44
  137. package/script/deps/jsr.io/@std/async/1.2.0/debounce.d.ts +0 -44
  138. package/script/deps/jsr.io/@std/async/1.2.0/debounce.d.ts.map +0 -1
  139. package/script/deps/jsr.io/@std/async/1.2.0/debounce.js +0 -60
  140. package/script/deps/jsr.io/@std/async/1.2.0/mod.d.ts +0 -22
  141. package/script/deps/jsr.io/@std/async/1.2.0/mod.d.ts.map +0 -1
  142. package/script/deps/jsr.io/@std/async/1.2.0/mod.js +0 -39
  143. package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts +0 -111
  144. package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts.map +0 -1
  145. package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.js +0 -158
  146. package/script/deps/jsr.io/@std/async/1.2.0/retry.d.ts +0 -155
  147. package/script/deps/jsr.io/@std/async/1.2.0/retry.d.ts.map +0 -1
  148. package/script/deps/jsr.io/@std/async/1.2.0/retry.js +0 -152
  149. package/script/deps/jsr.io/@std/async/1.2.0/tee.d.ts +0 -43
  150. package/script/deps/jsr.io/@std/async/1.2.0/tee.d.ts.map +0 -1
  151. package/script/deps/jsr.io/@std/async/1.2.0/tee.js +0 -82
@@ -579,6 +579,30 @@ export class ClientDispatcher extends Composer {
579
579
  async getAppSupportName() {
580
580
  return await this.#dispatch("getAppSupportName");
581
581
  }
582
+ /**
583
+ * Get owned bots. User-only.
584
+ *
585
+ * @method ac
586
+ */
587
+ async getOwnedBots() {
588
+ return await this.#dispatch("getOwnedBots");
589
+ }
590
+ /**
591
+ * Get timezones. User-only.
592
+ *
593
+ * @method ac
594
+ */
595
+ async getTimezones() {
596
+ return await this.#dispatch("getTimezones");
597
+ }
598
+ /**
599
+ * Get countries. User-only.
600
+ *
601
+ * @method ac
602
+ */
603
+ async getCountries(languageCode) {
604
+ return await this.#dispatch("getCountries", languageCode);
605
+ }
582
606
  //
583
607
  // ========================= MESSAGES ========================= //
584
608
  //
@@ -2803,4 +2827,34 @@ export class ClientDispatcher extends Composer {
2803
2827
  async deleteGiftCollection(chatId, collectionId) {
2804
2828
  return await this.#dispatch("deleteGiftCollection", chatId, collectionId);
2805
2829
  }
2830
+ //
2831
+ // ========================= TAKEOUTS ========================= //
2832
+ //
2833
+ /**
2834
+ * Start a takeout session. User-only.
2835
+ *
2836
+ * @method to
2837
+ * @returns The identifier of the takeout session.
2838
+ */
2839
+ async startTakeoutSession(params) {
2840
+ return await this.#dispatch("startTakeoutSession", params);
2841
+ }
2842
+ /**
2843
+ * End a takeout session. User-only.
2844
+ *
2845
+ * @method to
2846
+ * @param takeoutId The identifier of a takeout session.
2847
+ */
2848
+ async endTakeoutSession(takeoutId, params) {
2849
+ return await this.#dispatch("endTakeoutSession", takeoutId, params);
2850
+ }
2851
+ /**
2852
+ * Get left channels. User-only.
2853
+ *
2854
+ * @method to
2855
+ * @param takeoutId The identifier of a takeout session.
2856
+ */
2857
+ async getLeftChannels(takeoutId, params) {
2858
+ return await this.#dispatch("getLeftChannels", takeoutId, params);
2859
+ }
2806
2860
  }
@@ -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
+ /** A country calling code. */
22
+ export interface CallingCode {
23
+ /** The country's calling code. */
24
+ countryCode: string;
25
+ /** Phone number prefixes. */
26
+ prefixes: string[];
27
+ /** Phone number patterns. */
28
+ patterns: string[];
29
+ }
30
+ export declare function constructCallingCode(countryCode: Api.help_CountryCode): CallingCode;
31
+ //# sourceMappingURL=0_calling_code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"0_calling_code.d.ts","sourceRoot":"","sources":["../../src/types/0_calling_code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,8BAA8B;AAC9B,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,GAAG,CAAC,gBAAgB,GAAG,WAAW,CAMnF"}
@@ -0,0 +1,26 @@
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
+ export function constructCallingCode(countryCode) {
21
+ return {
22
+ countryCode: countryCode.country_code,
23
+ prefixes: countryCode.prefixes ?? [],
24
+ patterns: countryCode.patterns ?? [],
25
+ };
26
+ }
@@ -18,59 +18,72 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import type { Api } from "../2_tl.js";
21
+ /** @unlisted */
21
22
  export interface ChatActionTypeTyping {
22
23
  /** @discriminator */
23
24
  type: "typing";
24
25
  }
26
+ /** @unlisted */
25
27
  export interface ChatActionTypeUploadingPhoto {
26
28
  /** @discriminator */
27
29
  type: "uploadingPhoto";
28
30
  progress?: number;
29
31
  }
32
+ /** @unlisted */
30
33
  export interface ChatActionTypeRecordingVideo {
31
34
  /** @discriminator */
32
35
  type: "recordingVideo";
33
36
  }
37
+ /** @unlisted */
34
38
  export interface ChatActionTypeUploadingVideo {
35
39
  /** @discriminator */
36
40
  type: "uploadingVideo";
37
41
  progress?: number;
38
42
  }
43
+ /** @unlisted */
39
44
  export interface ChatActionTypeRecordingVoice {
40
45
  /** @discriminator */
41
46
  type: "recordingVoice";
42
47
  }
48
+ /** @unlisted */
43
49
  export interface ChatActionTypeUploadingAudio {
44
50
  /** @discriminator */
45
51
  type: "uploadingAudio";
46
52
  progress?: number;
47
53
  }
54
+ /** @unlisted */
48
55
  export interface ChatActionTypeUploadingDocument {
49
56
  /** @discriminator */
50
57
  type: "uploadingDocument";
51
58
  progress?: number;
52
59
  }
60
+ /** @unlisted */
53
61
  export interface ChatActionTypeChoosingSticker {
54
62
  /** @discriminator */
55
63
  type: "choosingSticker";
56
64
  }
65
+ /** @unlisted */
57
66
  export interface ChatActionTypeChoosingLocation {
58
67
  /** @discriminator */
59
68
  type: "choosingLocation";
60
69
  }
70
+ /** @unlisted */
61
71
  export interface ChatActionTypeRecordingVideoNote {
62
72
  /** @discriminator */
63
73
  type: "recordingVideoNote";
64
74
  }
75
+ /** @unlisted */
65
76
  export interface ChatActionTypeUploadingTypeVideoNote {
66
77
  /** @discriminator */
67
78
  type: "uploadingVideoNote";
68
79
  progress?: number;
69
80
  }
81
+ /** @unlisted */
70
82
  export interface ChatActionTypePlayingGame {
71
83
  /** @discriminator */
72
84
  type: "playingGame";
73
85
  }
86
+ /** @unlisted */
74
87
  export interface ChatActionTypeCancel {
75
88
  /** @discriminator */
76
89
  type: "cancel";
@@ -1 +1 @@
1
- {"version":3,"file":"0_chat_action_type.d.ts","sourceRoot":"","sources":["../../src/types/0_chat_action_type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,oBAAoB;IACnC,qBAAqB;IACrB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB;IACrB,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB;IACrB,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB;IACrB,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB;IACrB,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB;IACrB,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,+BAA+B;IAC9C,qBAAqB;IACrB,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,qBAAqB;IACrB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,WAAW,8BAA8B;IAC7C,qBAAqB;IACrB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,gCAAgC;IAC/C,qBAAqB;IACrB,IAAI,EAAE,oBAAoB,CAAC;CAC5B;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EAAE,GAAG,CAAC,iBAAiB,GAAG,cAAc,GAAG,IAAI,CA0C5F"}
@@ -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
+ /** A timezone. */
22
+ export interface Timezone {
23
+ /** The identifier of the timezone. */
24
+ id: string;
25
+ /** The name of the timezone. */
26
+ name: string;
27
+ /** The UTC offset of the timezone. */
28
+ utcOffset: number;
29
+ }
30
+ export declare function constructTimezone(timezone: Api.Timezone): Timezone;
31
+ //# sourceMappingURL=0_timezone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"0_timezone.d.ts","sourceRoot":"","sources":["../../src/types/0_timezone.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,kBAAkB;AAClB,MAAM,WAAW,QAAQ;IACvB,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAMlE"}
@@ -0,0 +1,26 @@
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
+ export function constructTimezone(timezone) {
21
+ return {
22
+ id: timezone.id,
23
+ name: timezone.name,
24
+ utcOffset: timezone.utc_offset,
25
+ };
26
+ }
@@ -49,6 +49,7 @@ export interface AvailableReactionsAll {
49
49
  /** The maximum number of allowed reactions on a single message. */
50
50
  maxReactionCount: number;
51
51
  }
52
+ /** A chat's available reactions. */
52
53
  export type AvailableReactions = AvailableReactionsNone | AvailableReactionsSome | AvailableReactionsAll;
53
54
  export declare function availableReactionsToTlObject(chatAvailableReactions: AvailableReactions): Api.ChatReactions;
54
55
  //# sourceMappingURL=1_available_reactions.d.ts.map
@@ -1 +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"}
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,oCAAoC;AACpC,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAEzG,wBAAgB,4BAA4B,CAAC,sBAAsB,EAAE,kBAAkB,GAAG,GAAG,CAAC,aAAa,CAS1G"}
@@ -82,7 +82,7 @@ export interface ChatPPrivate extends _ChatPBase {
82
82
  /** The reason why the user has been restricted. */
83
83
  restrictionReason?: RestrictionReason[];
84
84
  /** Whether the user is a bot that has been added to the attachment menu by the current user. */
85
- isAddedToAttachmentMenu?: boolean;
85
+ isAddedToAttachmentsMenu?: boolean;
86
86
  /** Whether the user is a bot that has been added to the attachment menu by the current user. */
87
87
  hasMainMiniApp?: boolean;
88
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"1_chat_p.d.ts","sourceRoot":"","sources":["../../src/types/1_chat_p.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE1E,gBAAgB;AAChB,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,OAAO,GACP,YAAY,GACZ,SAAS,CAAC;AAEd,gBAAgB;AAChB,MAAM,WAAW,UAAU;IACzB,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,gBAAgB;AAChB,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,qBAAqB;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,oCAAoC;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,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C,aAAa,GAAG,UAAU,CAAC;AAC/E,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,gBAAgB,GAAG,eAAe,GAAG,YAAY,CAAC;AACzG,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC;AAwHjE,gBAAgB;AAChB,MAAM,WAAW,UAAU;IACzB,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACpD,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAClD,CAAC,IAAI,EAAE,GAAG,CAAC,WAAW,GAAG,CAAC,YAAY,GAAG,eAAe,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACzE,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC/E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,YAAY,CAE/D"}
@@ -55,7 +55,7 @@ export function constructChatP(chat) {
55
55
  isSupport: chat.support || false,
56
56
  isRestricted: chat.restricted || false,
57
57
  restrictionReason: chat.restriction_reason?.map((v) => constructRestrictionReason(v)),
58
- isAddedToAttachmentMenu: chat.bot ? chat.attach_menu_enabled || false : undefined,
58
+ isAddedToAttachmentsMenu: chat.bot ? chat.attach_menu_enabled || false : undefined,
59
59
  hasMainMiniApp: chat.bot ? chat.attach_menu_enabled || false : undefined,
60
60
  };
61
61
  if (Api.is("userProfilePhoto", chat.photo)) {
@@ -0,0 +1,36 @@
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 CallingCode } from "./0_calling_code.js";
22
+ /** A country. */
23
+ export interface Country {
24
+ /** The default name for the country. */
25
+ defaultName: string;
26
+ /** The country's name. */
27
+ name?: string;
28
+ /** The country's 2-letter code. */
29
+ code: string;
30
+ /** The country's calling codes. */
31
+ callingCodes: CallingCode[];
32
+ /** Whether the country is hidden. */
33
+ isHidden: boolean;
34
+ }
35
+ export declare function constructCountry(country: Api.help_Country): Country;
36
+ //# sourceMappingURL=1_country.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1_country.d.ts","sourceRoot":"","sources":["../../src/types/1_country.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,qBAAqB,CAAC;AAE7E,iBAAiB;AACjB,MAAM,WAAW,OAAO;IACtB,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,qCAAqC;IACrC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,YAAY,GAAG,OAAO,CAQnE"}
@@ -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 { cleanObject } from "../1_utilities.js";
21
+ import { constructCallingCode } from "./0_calling_code.js";
22
+ export function constructCountry(country) {
23
+ return cleanObject({
24
+ defaultName: country.default_name,
25
+ name: country.name,
26
+ code: country.iso2,
27
+ callingCodes: country.country_codes.map(constructCallingCode),
28
+ isHidden: country.hidden ?? false,
29
+ });
30
+ }
@@ -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 type { Api } from "../2_tl.js";
21
+ import { type ChatP } from "./1_chat_p.js";
22
+ /** A list of left channels. */
23
+ export interface LeftChannelList {
24
+ /** The left channels. */
25
+ leftChannels: ChatP[];
26
+ /** The total number of left channels */
27
+ count: number;
28
+ }
29
+ export declare function constructLeftChannelList(result: Api.messages_Chats): LeftChannelList;
30
+ //# sourceMappingURL=2_left_channel_list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2_left_channel_list.d.ts","sourceRoot":"","sources":["../../src/types/2_left_channel_list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,eAAe,CAAC;AAE3D,+BAA+B;AAC/B,MAAM,WAAW,eAAe;IAC9B,yBAAyB;IACzB,YAAY,EAAE,KAAK,EAAE,CAAC;IACtB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,cAAc,GAAG,eAAe,CAIpF"}
@@ -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 { constructChatP } from "./1_chat_p.js";
21
+ export function constructLeftChannelList(result) {
22
+ const leftChannels = result.chats.map(constructChatP);
23
+ const count = "count" in result ? result.count : result.chats.length;
24
+ return { leftChannels, count };
25
+ }
@@ -31,5 +31,6 @@ export interface StoryAlbumIconVideo {
31
31
  type: "video";
32
32
  video: Document;
33
33
  }
34
+ /** A story album's icon. */
34
35
  export type StoryAlbumIcon = StoryAlbumIconPhoto | StoryAlbumIconVideo;
35
36
  //# sourceMappingURL=2_story_album_icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"2_story_album_icon.d.ts","sourceRoot":"","sources":["../../src/types/2_story_album_icon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,gBAAgB;AAChB,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,KAAK,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,mBAAmB,CAAC"}
1
+ {"version":3,"file":"2_story_album_icon.d.ts","sourceRoot":"","sources":["../../src/types/2_story_album_icon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,gBAAgB;AAChB,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,KAAK,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,4BAA4B;AAC5B,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,mBAAmB,CAAC"}
@@ -74,7 +74,7 @@ export interface User {
74
74
  /** The reason why the user has been restricted. */
75
75
  restrictionReason?: RestrictionReason[];
76
76
  /** Whether the user is a bot that has been added to the attachment menu by the current user. */
77
- isAddedToAttachmentMenu?: boolean;
77
+ isAddedToAttachmentsMenu?: boolean;
78
78
  /** Whether the user is a bot that has a main mini app. */
79
79
  hasMainMiniApp?: boolean;
80
80
  }
@@ -1 +1 @@
1
- {"version":3,"file":"2_user.d.ts","sourceRoot":"","sources":["../../src/types/2_user.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,cAAc;AACd,MAAM,WAAW,IAAI;IACnB,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,KAAK,EAAE,OAAO,CAAC;IACf,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BA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AChB,+DAA+D;IAC/D,MAAM,EAAE,OAAO,CAAC;IAChB,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,UAAU,EAAE,OAAO,CAAC;IACpB,4CAA4C;IAC5C,SAAS,EAAE,OAAO,CAAC;IACnB,4CAA4C;IAC5C,YAAY,EAAE,OAAO,CAAC;IACtB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACxC,gGAAgG;IAChG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,0DAA0D;IAC1D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAoCnD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CA8BxD"}
@@ -51,7 +51,7 @@ export function constructUser(user_) {
51
51
  isSupport: user_.support || false,
52
52
  isRestricted: user_.restricted || false,
53
53
  restrictionReason: user_.restriction_reason?.map((v) => constructRestrictionReason(v)),
54
- isAddedToAttachmentMenu: user_.bot ? user_.attach_menu_enabled || false : undefined,
54
+ isAddedToAttachmentsMenu: user_.bot ? user_.attach_menu_enabled || false : undefined,
55
55
  hasMainMiniApp: user_.bot ? user_.bot_has_main_app || false : undefined,
56
56
  };
57
57
  if (Api.is("userProfilePhoto", user_.photo)) {
@@ -85,7 +85,7 @@ export function constructUser2(chatP) {
85
85
  isSupport: chatP.isSupport,
86
86
  isRestricted: chatP.isRestricted,
87
87
  restrictionReason: chatP.restrictionReason,
88
- isAddedToAttachmentMenu: chatP.isAddedToAttachmentMenu,
88
+ isAddedToAttachmentsMenu: chatP.isAddedToAttachmentsMenu,
89
89
  hasMainMiniApp: chatP.hasMainMiniApp,
90
90
  };
91
91
  return cleanObject(user);
@@ -19,8 +19,11 @@
19
19
  */
20
20
  import { Api } from "../2_tl.js";
21
21
  import { type User } from "./2_user.js";
22
+ /** Information about app support. */
22
23
  export interface AppSupport {
24
+ /** App support's phone number. */
23
25
  phoneNumber: string;
26
+ /** The app support user. */
24
27
  user: User;
25
28
  }
26
29
  export declare function constructAppSupport(result: Api.help_Support): AppSupport;
@@ -1 +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"}
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,qCAAqC;AACrC,MAAM,WAAW,UAAU;IACzB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,GAAG,UAAU,CAExE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/browser",
3
- "version": "0.128.0",
3
+ "version": "0.130.0",
4
4
  "description": "MTKruto for browsers",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -27,17 +27,18 @@ export { extname } from "./deps/jsr.io/@std/path/1.1.4/extname.js";
27
27
  export { basename } from "./deps/jsr.io/@std/path/1.1.4/basename.js";
28
28
  export { toFileUrl } from "./deps/jsr.io/@std/path/1.1.4/to_file_url.js";
29
29
  export { isAbsolute } from "./deps/jsr.io/@std/path/1.1.4/is_absolute.js";
30
- export { delay, pooledMap } from "./deps/jsr.io/@std/async/1.2.0/mod.js";
30
+ export { delay } from "./deps/jsr.io/@std/async/1.2.0/delay.js";
31
+ export { pooledMap } from "./deps/jsr.io/@std/async/1.2.0/pool.js";
31
32
  export { concat } from "./deps/jsr.io/@std/bytes/1.0.6/concat.js";
32
- export { startsWith } from "./deps/jsr.io/@std/bytes/1.0.6/starts_with.js";
33
33
  export { equals } from "./deps/jsr.io/@std/bytes/1.0.6/equals.js";
34
+ export { startsWith } from "./deps/jsr.io/@std/bytes/1.0.6/starts_with.js";
34
35
  export { LruCache } from "./deps/jsr.io/@std/cache/0.2.2/lru_cache.js";
35
36
  export { iterateReader } from "./deps/jsr.io/@std/io/0.225.3/iterate_reader.js";
36
37
  export { format } from "./deps/jsr.io/@std/datetime/0.225.7/format.js";
37
38
  export { MINUTE, SECOND } from "./deps/jsr.io/@std/datetime/0.225.7/constants.js";
38
39
  export { toArrayBuffer } from "./deps/jsr.io/@std/streams/1.0.17/to_array_buffer.js";
39
- export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.10/base64.js";
40
40
  export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.10/hex.js";
41
+ export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.10/base64.js";
41
42
  import { contentType as contentType_ } from "./deps/jsr.io/@std/media-types/1.1.0/content_type.js";
42
43
  export declare const contentType: typeof contentType_;
43
44
  export declare function extension(mimeType: string): string;
@@ -1 +1 @@
1
- {"version":3,"file":"0_deps.d.ts","sourceRoot":"","sources":["../src/0_deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AACpE,OAAO,EAAE,WAAW,EAA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