@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
@@ -582,6 +582,30 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
582
582
  async getAppSupportName() {
583
583
  return await this.#dispatch("getAppSupportName");
584
584
  }
585
+ /**
586
+ * Get owned bots. User-only.
587
+ *
588
+ * @method ac
589
+ */
590
+ async getOwnedBots() {
591
+ return await this.#dispatch("getOwnedBots");
592
+ }
593
+ /**
594
+ * Get timezones. User-only.
595
+ *
596
+ * @method ac
597
+ */
598
+ async getTimezones() {
599
+ return await this.#dispatch("getTimezones");
600
+ }
601
+ /**
602
+ * Get countries. User-only.
603
+ *
604
+ * @method ac
605
+ */
606
+ async getCountries(languageCode) {
607
+ return await this.#dispatch("getCountries", languageCode);
608
+ }
585
609
  //
586
610
  // ========================= MESSAGES ========================= //
587
611
  //
@@ -2806,5 +2830,35 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
2806
2830
  async deleteGiftCollection(chatId, collectionId) {
2807
2831
  return await this.#dispatch("deleteGiftCollection", chatId, collectionId);
2808
2832
  }
2833
+ //
2834
+ // ========================= TAKEOUTS ========================= //
2835
+ //
2836
+ /**
2837
+ * Start a takeout session. User-only.
2838
+ *
2839
+ * @method to
2840
+ * @returns The identifier of the takeout session.
2841
+ */
2842
+ async startTakeoutSession(params) {
2843
+ return await this.#dispatch("startTakeoutSession", params);
2844
+ }
2845
+ /**
2846
+ * End a takeout session. User-only.
2847
+ *
2848
+ * @method to
2849
+ * @param takeoutId The identifier of a takeout session.
2850
+ */
2851
+ async endTakeoutSession(takeoutId, params) {
2852
+ return await this.#dispatch("endTakeoutSession", takeoutId, params);
2853
+ }
2854
+ /**
2855
+ * Get left channels. User-only.
2856
+ *
2857
+ * @method to
2858
+ * @param takeoutId The identifier of a takeout session.
2859
+ */
2860
+ async getLeftChannels(takeoutId, params) {
2861
+ return await this.#dispatch("getLeftChannels", takeoutId, params);
2862
+ }
2809
2863
  }
2810
2864
  exports.ClientDispatcher = ClientDispatcher;
@@ -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,29 @@
1
+ "use strict";
2
+ /**
3
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
+ *
6
+ * This file is part of MTKruto.
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Lesser General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.constructCallingCode = constructCallingCode;
23
+ function constructCallingCode(countryCode) {
24
+ return {
25
+ countryCode: countryCode.country_code,
26
+ prefixes: countryCode.prefixes ?? [],
27
+ patterns: countryCode.patterns ?? [],
28
+ };
29
+ }
@@ -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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C/B,6BAA6B,GAC7B,8BAA8B,GAC9B,gCAAgC,GAChC,oCAAoC,GACpC,yBAAyB,GACzB,oBAAoB,CAAC;AAEzB,wBAAgB,uBAAuB,CAAC,MAAM,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,29 @@
1
+ "use strict";
2
+ /**
3
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
+ *
6
+ * This file is part of MTKruto.
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Lesser General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.constructTimezone = constructTimezone;
23
+ function constructTimezone(timezone) {
24
+ return {
25
+ id: timezone.id,
26
+ name: timezone.name,
27
+ utcOffset: timezone.utc_offset,
28
+ };
29
+ }
@@ -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,C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AG,YAAY,GAAG,UAAU,GAAG,eAAe,GAAG,YAAY,CAAC;AAE/E,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,YAAY,CAAC;AAC7D,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,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"}
@@ -59,7 +59,7 @@ function constructChatP(chat) {
59
59
  isSupport: chat.support || false,
60
60
  isRestricted: chat.restricted || false,
61
61
  restrictionReason: chat.restriction_reason?.map((v) => (0, _0_restriction_reason_js_1.constructRestrictionReason)(v)),
62
- isAddedToAttachmentMenu: chat.bot ? chat.attach_menu_enabled || false : undefined,
62
+ isAddedToAttachmentsMenu: chat.bot ? chat.attach_menu_enabled || false : undefined,
63
63
  hasMainMiniApp: chat.bot ? chat.attach_menu_enabled || false : undefined,
64
64
  };
65
65
  if (_2_tl_js_1.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,33 @@
1
+ "use strict";
2
+ /**
3
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
+ *
6
+ * This file is part of MTKruto.
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Lesser General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.constructCountry = constructCountry;
23
+ const _1_utilities_js_1 = require("../1_utilities.js");
24
+ const _0_calling_code_js_1 = require("./0_calling_code.js");
25
+ function constructCountry(country) {
26
+ return (0, _1_utilities_js_1.cleanObject)({
27
+ defaultName: country.default_name,
28
+ name: country.name,
29
+ code: country.iso2,
30
+ callingCodes: country.country_codes.map(_0_calling_code_js_1.constructCallingCode),
31
+ isHidden: country.hidden ?? false,
32
+ });
33
+ }
@@ -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,28 @@
1
+ "use strict";
2
+ /**
3
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
+ *
6
+ * This file is part of MTKruto.
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Lesser General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.constructLeftChannelList = constructLeftChannelList;
23
+ const _1_chat_p_js_1 = require("./1_chat_p.js");
24
+ function constructLeftChannelList(result) {
25
+ const leftChannels = result.chats.map(_1_chat_p_js_1.constructChatP);
26
+ const count = "count" in result ? result.count : result.chats.length;
27
+ return { leftChannels, count };
28
+ }
@@ -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,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,EAAE,UAAU,CAAC;IACpB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gCAAgC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,uFAAuF;IACvF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,MAAM,EAAE,OAAO,CAAC;IAChB,yCAAyC;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,4CAA4C;IAC5C,eAAe,EAAE,OAAO,CAAC;IACzB,0CAA0C;IAC1C,aAAa,EAAE,OAAO,CAAC;IACvB,oDAAoD;IACpD,MAAM,EAAE,OAAO,CAAC;IAChB,+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"}
@@ -55,7 +55,7 @@ function constructUser(user_) {
55
55
  isSupport: user_.support || false,
56
56
  isRestricted: user_.restricted || false,
57
57
  restrictionReason: user_.restriction_reason?.map((v) => (0, _0_restriction_reason_js_1.constructRestrictionReason)(v)),
58
- isAddedToAttachmentMenu: user_.bot ? user_.attach_menu_enabled || false : undefined,
58
+ isAddedToAttachmentsMenu: user_.bot ? user_.attach_menu_enabled || false : undefined,
59
59
  hasMainMiniApp: user_.bot ? user_.bot_has_main_app || false : undefined,
60
60
  };
61
61
  if (_2_tl_js_1.Api.is("userProfilePhoto", user_.photo)) {
@@ -89,7 +89,7 @@ function constructUser2(chatP) {
89
89
  isSupport: chatP.isSupport,
90
90
  isRestricted: chatP.isRestricted,
91
91
  restrictionReason: chatP.restrictionReason,
92
- isAddedToAttachmentMenu: chatP.isAddedToAttachmentMenu,
92
+ isAddedToAttachmentsMenu: chatP.isAddedToAttachmentsMenu,
93
93
  hasMainMiniApp: chatP.hasMainMiniApp,
94
94
  };
95
95
  return (0, _1_utilities_js_1.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"}
@@ -1,2 +0,0 @@
1
- export declare function exponentialBackoffWithJitter(cap: number, base: number, attempt: number, multiplier: number, jitter: number): number;
2
- //# sourceMappingURL=_util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.2.0/_util.ts"],"names":[],"mappings":"AAGA,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,UAIf"}
@@ -1,6 +0,0 @@
1
- // Copyright 2018-2026 the Deno authors. MIT license.
2
- // This module is browser compatible.
3
- export function exponentialBackoffWithJitter(cap, base, attempt, multiplier, jitter) {
4
- const exp = Math.min(cap, base * multiplier ** attempt);
5
- return (1 - jitter * Math.random()) * exp;
6
- }