@mtkruto/browser 0.6.0 → 0.119.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 (3202) hide show
  1. package/README.md +75 -1
  2. package/esm/0_deps.d.ts +24 -11
  3. package/esm/0_deps.d.ts.map +1 -1
  4. package/esm/0_deps.js +27 -14
  5. package/esm/0_errors.d.ts +9 -2
  6. package/esm/0_errors.d.ts.map +1 -1
  7. package/esm/0_errors.js +35 -1
  8. package/esm/1_utilities.d.ts +6 -6
  9. package/esm/1_utilities.d.ts.map +1 -1
  10. package/esm/1_utilities.js +6 -6
  11. package/esm/2_connection.d.ts +1 -1
  12. package/esm/2_connection.js +1 -1
  13. package/esm/2_storage.d.ts +1 -1
  14. package/esm/2_storage.js +1 -1
  15. package/esm/2_tl.d.ts +7 -10
  16. package/esm/2_tl.d.ts.map +1 -1
  17. package/esm/2_tl.js +7 -10
  18. package/esm/3_errors.d.ts +8 -3
  19. package/esm/3_errors.d.ts.map +1 -1
  20. package/esm/3_errors.js +9 -2
  21. package/esm/3_transport.d.ts +4 -4
  22. package/esm/3_transport.js +4 -4
  23. package/esm/3_types.d.ts +74 -34
  24. package/esm/3_types.d.ts.map +1 -1
  25. package/esm/3_types.js +74 -34
  26. package/esm/4_constants.d.ts +21 -2
  27. package/esm/4_constants.d.ts.map +1 -1
  28. package/esm/4_constants.js +4 -4
  29. package/esm/4_errors.d.ts +4 -4
  30. package/esm/4_errors.d.ts.map +1 -1
  31. package/esm/4_errors.js +1 -1
  32. package/esm/4_session.d.ts +24 -0
  33. package/esm/4_session.d.ts.map +1 -0
  34. package/esm/4_session.js +23 -0
  35. package/esm/5_client.d.ts +9 -3
  36. package/esm/5_client.d.ts.map +1 -1
  37. package/esm/5_client.js +9 -3
  38. package/esm/_dnt.polyfills.d.ts +119 -0
  39. package/esm/_dnt.polyfills.d.ts.map +1 -1
  40. package/esm/_dnt.polyfills.js +247 -1
  41. package/esm/_dnt.shims.d.ts +0 -1
  42. package/esm/_dnt.shims.d.ts.map +1 -1
  43. package/esm/client/0_abortable_loop.d.ts +27 -0
  44. package/esm/client/0_abortable_loop.d.ts.map +1 -0
  45. package/esm/client/0_abortable_loop.js +69 -0
  46. package/esm/client/0_client_abstract.d.ts +31 -28
  47. package/esm/client/0_client_abstract.d.ts.map +1 -1
  48. package/esm/client/0_client_abstract.js +21 -90
  49. package/esm/client/0_html.d.ts +4 -3
  50. package/esm/client/0_html.d.ts.map +1 -1
  51. package/esm/client/0_html.js +412 -74
  52. package/esm/client/0_markdown.d.ts +2 -2
  53. package/esm/client/0_markdown.d.ts.map +1 -1
  54. package/esm/client/0_markdown.js +39 -19
  55. package/esm/client/0_params.d.ts +327 -44
  56. package/esm/client/0_params.d.ts.map +1 -1
  57. package/esm/client/0_params.js +1 -1
  58. package/esm/client/0_password.d.ts +6 -6
  59. package/esm/client/0_password.d.ts.map +1 -1
  60. package/esm/client/0_password.js +13 -13
  61. package/esm/client/0_storage_operations.d.ts +81 -69
  62. package/esm/client/0_storage_operations.d.ts.map +1 -1
  63. package/esm/client/0_storage_operations.js +356 -235
  64. package/esm/client/0_update_processor.d.ts +26 -0
  65. package/esm/client/0_update_processor.d.ts.map +1 -0
  66. package/esm/client/0_update_processor.js +20 -0
  67. package/esm/client/0_utilities.d.ts +10 -5
  68. package/esm/client/0_utilities.d.ts.map +1 -1
  69. package/esm/client/0_utilities.js +45 -31
  70. package/esm/client/0_worker_error.d.ts +26 -0
  71. package/esm/client/0_worker_error.d.ts.map +1 -0
  72. package/esm/client/0_worker_error.js +86 -0
  73. package/esm/client/0_worker_request.d.ts +27 -0
  74. package/esm/client/0_worker_request.d.ts.map +1 -0
  75. package/esm/client/0_worker_request.js +20 -0
  76. package/esm/client/1_client_generic.d.ts +1846 -0
  77. package/esm/client/1_client_generic.d.ts.map +1 -0
  78. package/esm/client/1_client_generic.js +24 -0
  79. package/esm/client/1_client_plain.d.ts +12 -9
  80. package/esm/client/1_client_plain.d.ts.map +1 -1
  81. package/esm/client/1_client_plain.js +41 -52
  82. package/esm/client/1_invoke_middleware.d.ts +32 -0
  83. package/esm/client/1_invoke_middleware.d.ts.map +1 -0
  84. package/esm/client/1_invoke_middleware.js +22 -0
  85. package/esm/client/1_types.d.ts +17 -32
  86. package/esm/client/1_types.d.ts.map +1 -1
  87. package/esm/client/1_types.js +1 -1
  88. package/esm/client/1_worker_response.d.ts +37 -0
  89. package/esm/client/1_worker_response.d.ts.map +1 -0
  90. package/esm/client/1_worker_response.js +20 -0
  91. package/esm/client/2_account_manager.d.ts +43 -5
  92. package/esm/client/2_account_manager.d.ts.map +1 -1
  93. package/esm/client/2_account_manager.js +338 -9
  94. package/esm/client/2_bot_info_manager.d.ts +12 -5
  95. package/esm/client/2_bot_info_manager.d.ts.map +1 -1
  96. package/esm/client/2_bot_info_manager.js +15 -1
  97. package/esm/client/2_business_connection_manager.d.ts +6 -5
  98. package/esm/client/2_business_connection_manager.d.ts.map +1 -1
  99. package/esm/client/2_business_connection_manager.js +9 -9
  100. package/esm/client/2_client_encrypted.d.ts +58 -0
  101. package/esm/client/2_client_encrypted.d.ts.map +1 -0
  102. package/esm/client/2_client_encrypted.js +290 -0
  103. package/esm/client/2_file_manager.d.ts +27 -7
  104. package/esm/client/2_file_manager.d.ts.map +1 -1
  105. package/esm/client/2_file_manager.js +242 -197
  106. package/esm/client/2_network_statistics_manager.d.ts +5 -5
  107. package/esm/client/2_network_statistics_manager.d.ts.map +1 -1
  108. package/esm/client/2_network_statistics_manager.js +36 -10
  109. package/esm/client/2_payment_manager.d.ts +8 -7
  110. package/esm/client/2_payment_manager.d.ts.map +1 -1
  111. package/esm/client/2_payment_manager.js +7 -7
  112. package/esm/client/2_reaction_manager.d.ts +6 -5
  113. package/esm/client/2_reaction_manager.d.ts.map +1 -1
  114. package/esm/client/2_reaction_manager.js +14 -14
  115. package/esm/client/2_sign_in.d.ts +25 -0
  116. package/esm/client/2_sign_in.d.ts.map +1 -0
  117. package/esm/client/2_sign_in.js +114 -0
  118. package/esm/client/2_translations_manager.d.ts +35 -0
  119. package/esm/client/2_translations_manager.d.ts.map +1 -0
  120. package/esm/client/2_translations_manager.js +171 -0
  121. package/esm/client/2_update_manager.d.ts +11 -8
  122. package/esm/client/2_update_manager.d.ts.map +1 -1
  123. package/esm/client/2_update_manager.js +354 -296
  124. package/esm/client/3_client_encrypted_pool.d.ts +29 -0
  125. package/esm/client/3_client_encrypted_pool.d.ts.map +1 -0
  126. package/esm/client/3_client_encrypted_pool.js +63 -0
  127. package/esm/client/3_filters.d.ts +96 -0
  128. package/esm/client/3_filters.d.ts.map +1 -0
  129. package/esm/client/3_filters.js +52 -0
  130. package/esm/client/3_message_manager.d.ts +30 -35
  131. package/esm/client/3_message_manager.d.ts.map +1 -1
  132. package/esm/client/3_message_manager.js +791 -493
  133. package/esm/client/3_video_chat_manager.d.ts +11 -10
  134. package/esm/client/3_video_chat_manager.d.ts.map +1 -1
  135. package/esm/client/3_video_chat_manager.js +49 -46
  136. package/esm/client/4_callback_query_manager.d.ts +9 -8
  137. package/esm/client/4_callback_query_manager.d.ts.map +1 -1
  138. package/esm/client/4_callback_query_manager.js +14 -13
  139. package/esm/client/4_chat_list_manager.d.ts +20 -11
  140. package/esm/client/4_chat_list_manager.d.ts.map +1 -1
  141. package/esm/client/4_chat_list_manager.js +143 -367
  142. package/esm/client/4_chat_manager.d.ts +86 -0
  143. package/esm/client/4_chat_manager.d.ts.map +1 -0
  144. package/esm/client/4_chat_manager.js +486 -0
  145. package/esm/client/4_checklist_manager.d.ts +38 -0
  146. package/esm/client/4_checklist_manager.d.ts.map +1 -0
  147. package/esm/client/4_checklist_manager.js +81 -0
  148. package/esm/client/4_context.d.ts +691 -0
  149. package/esm/client/4_context.d.ts.map +1 -0
  150. package/esm/client/4_context.js +1421 -0
  151. package/esm/client/4_forum_manager.d.ts +40 -0
  152. package/esm/client/4_forum_manager.d.ts.map +1 -0
  153. package/esm/client/4_forum_manager.js +134 -0
  154. package/esm/client/4_gift_manager.d.ts +39 -0
  155. package/esm/client/4_gift_manager.d.ts.map +1 -0
  156. package/esm/client/4_gift_manager.js +97 -0
  157. package/esm/client/4_inline_query_manager.d.ts +10 -9
  158. package/esm/client/4_inline_query_manager.d.ts.map +1 -1
  159. package/esm/client/4_inline_query_manager.js +15 -15
  160. package/esm/client/4_link_preview_manager.d.ts +39 -0
  161. package/esm/client/4_link_preview_manager.d.ts.map +1 -0
  162. package/esm/client/4_link_preview_manager.js +64 -0
  163. package/esm/client/4_poll_manager.d.ts +39 -0
  164. package/esm/client/4_poll_manager.d.ts.map +1 -0
  165. package/esm/client/4_poll_manager.js +118 -0
  166. package/esm/client/4_story_manager.d.ts +11 -10
  167. package/esm/client/4_story_manager.d.ts.map +1 -1
  168. package/esm/client/4_story_manager.js +21 -21
  169. package/esm/client/5_composer.d.ts +51 -0
  170. package/esm/client/5_composer.d.ts.map +1 -0
  171. package/esm/client/5_composer.js +119 -0
  172. package/esm/client/6_client.d.ts +1952 -0
  173. package/esm/client/6_client.d.ts.map +1 -0
  174. package/esm/client/6_client.js +3439 -0
  175. package/esm/client/6_client_dispatcher.d.ts +1917 -0
  176. package/esm/client/6_client_dispatcher.d.ts.map +1 -0
  177. package/esm/client/6_client_dispatcher.js +2493 -0
  178. package/esm/client/7_client_worker.d.ts +27 -0
  179. package/esm/client/7_client_worker.d.ts.map +1 -0
  180. package/esm/client/7_client_worker.js +89 -0
  181. package/esm/connection/0_connection.d.ts +9 -8
  182. package/esm/connection/0_connection.d.ts.map +1 -1
  183. package/esm/connection/0_connection.js +1 -1
  184. package/esm/connection/1_connection_tcp.d.ts +4 -5
  185. package/esm/connection/1_connection_tcp.d.ts.map +1 -1
  186. package/esm/connection/1_connection_tcp.js +26 -27
  187. package/esm/connection/1_connection_web_socket.d.ts +3 -3
  188. package/esm/connection/1_connection_web_socket.d.ts.map +1 -1
  189. package/esm/connection/1_connection_web_socket.js +10 -13
  190. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.d.ts +18 -0
  191. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.d.ts.map +1 -0
  192. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.js +63 -0
  193. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.d.ts +3 -0
  194. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.d.ts.map +1 -0
  195. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.js +301 -0
  196. package/esm/deps/jsr.io/@std/assert/1.0.19/assert.d.ts +17 -0
  197. package/esm/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
  198. package/esm/deps/jsr.io/@std/assert/1.0.19/assert.js +23 -0
  199. package/esm/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
  200. package/esm/deps/jsr.io/@std/assert/1.0.19/assertion_error.js +30 -0
  201. package/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts +25 -0
  202. package/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
  203. package/esm/deps/jsr.io/@std/assert/1.0.19/equal.js +194 -0
  204. package/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts +37 -0
  205. package/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
  206. package/esm/deps/jsr.io/@std/assert/1.0.19/equals.js +61 -0
  207. package/esm/deps/jsr.io/@std/assert/1.0.19/false.d.ts +19 -0
  208. package/esm/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
  209. package/esm/deps/jsr.io/@std/assert/1.0.19/false.js +23 -0
  210. package/esm/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
  211. package/esm/deps/jsr.io/@std/assert/1.0.19/unreachable.js +20 -0
  212. package/esm/deps/jsr.io/@std/async/1.2.0/_util.d.ts +2 -0
  213. package/esm/deps/jsr.io/@std/async/1.2.0/_util.d.ts.map +1 -0
  214. package/esm/deps/jsr.io/@std/async/1.2.0/_util.js +6 -0
  215. package/esm/deps/jsr.io/@std/async/1.2.0/abortable.d.ts +107 -0
  216. package/esm/deps/jsr.io/@std/async/1.2.0/abortable.d.ts.map +1 -0
  217. package/esm/deps/jsr.io/@std/async/1.2.0/abortable.js +46 -0
  218. package/esm/deps/jsr.io/@std/async/1.2.0/deadline.d.ts +37 -0
  219. package/esm/deps/jsr.io/@std/async/1.2.0/deadline.d.ts.map +1 -0
  220. package/esm/deps/jsr.io/@std/async/1.2.0/deadline.js +41 -0
  221. package/esm/deps/jsr.io/@std/async/1.2.0/debounce.d.ts +44 -0
  222. package/esm/deps/jsr.io/@std/async/1.2.0/debounce.d.ts.map +1 -0
  223. package/esm/deps/jsr.io/@std/async/1.2.0/debounce.js +57 -0
  224. package/esm/deps/jsr.io/@std/async/1.2.0/delay.d.ts +45 -0
  225. package/esm/deps/jsr.io/@std/async/1.2.0/delay.d.ts.map +1 -0
  226. package/esm/deps/jsr.io/@std/async/1.2.0/delay.js +84 -0
  227. package/esm/deps/jsr.io/@std/async/1.2.0/mod.d.ts +22 -0
  228. package/esm/deps/jsr.io/@std/async/1.2.0/mod.d.ts.map +1 -0
  229. package/esm/deps/jsr.io/@std/async/1.2.0/mod.js +23 -0
  230. package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts +111 -0
  231. package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts.map +1 -0
  232. package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.js +170 -0
  233. package/esm/deps/jsr.io/@std/async/1.2.0/pool.d.ts +33 -0
  234. package/esm/deps/jsr.io/@std/async/1.2.0/pool.d.ts.map +1 -0
  235. package/esm/deps/jsr.io/@std/async/1.2.0/pool.js +99 -0
  236. package/esm/deps/jsr.io/@std/async/1.2.0/retry.d.ts +155 -0
  237. package/esm/deps/jsr.io/@std/async/1.2.0/retry.d.ts.map +1 -0
  238. package/esm/deps/jsr.io/@std/async/1.2.0/retry.js +147 -0
  239. package/esm/deps/jsr.io/@std/async/1.2.0/tee.d.ts +43 -0
  240. package/esm/deps/jsr.io/@std/async/1.2.0/tee.d.ts.map +1 -0
  241. package/esm/deps/jsr.io/@std/async/1.2.0/tee.js +102 -0
  242. package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
  243. package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
  244. package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js +2 -0
  245. package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
  246. package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
  247. package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js +32 -0
  248. package/esm/deps/jsr.io/@std/bytes/1.0.6/equals.d.ts +22 -0
  249. package/esm/deps/jsr.io/@std/bytes/1.0.6/equals.d.ts.map +1 -0
  250. package/esm/deps/jsr.io/@std/bytes/1.0.6/equals.js +82 -0
  251. package/esm/deps/jsr.io/@std/bytes/1.0.6/starts_with.d.ts +24 -0
  252. package/esm/deps/jsr.io/@std/bytes/1.0.6/starts_with.d.ts.map +1 -0
  253. package/esm/deps/jsr.io/@std/bytes/1.0.6/starts_with.js +34 -0
  254. package/esm/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.d.ts +12 -0
  255. package/esm/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.d.ts.map +1 -0
  256. package/esm/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.js +69 -0
  257. package/esm/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts +155 -0
  258. package/esm/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts.map +1 -0
  259. package/esm/deps/jsr.io/@std/cache/0.2.2/lru_cache.js +205 -0
  260. package/esm/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts +111 -0
  261. package/esm/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts.map +1 -0
  262. package/esm/deps/jsr.io/@std/cache/0.2.2/memoize.js +82 -0
  263. package/esm/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.d.ts +19 -0
  264. package/esm/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.d.ts.map +1 -0
  265. package/esm/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.js +550 -0
  266. package/esm/deps/jsr.io/@std/datetime/0.225.7/constants.d.ts +265 -0
  267. package/esm/deps/jsr.io/@std/datetime/0.225.7/constants.d.ts.map +1 -0
  268. package/esm/deps/jsr.io/@std/datetime/0.225.7/constants.js +266 -0
  269. package/esm/deps/jsr.io/@std/datetime/0.225.7/format.d.ts +70 -0
  270. package/esm/deps/jsr.io/@std/datetime/0.225.7/format.d.ts.map +1 -0
  271. package/esm/deps/jsr.io/@std/datetime/0.225.7/format.js +66 -0
  272. package/esm/deps/jsr.io/@std/encoding/1.0.10/_common16.d.ts +23 -0
  273. package/esm/deps/jsr.io/@std/encoding/1.0.10/_common16.d.ts.map +1 -0
  274. package/esm/deps/jsr.io/@std/encoding/1.0.10/_common16.js +51 -0
  275. package/esm/deps/jsr.io/@std/encoding/1.0.10/_common64.d.ts +35 -0
  276. package/esm/deps/jsr.io/@std/encoding/1.0.10/_common64.d.ts.map +1 -0
  277. package/esm/deps/jsr.io/@std/encoding/1.0.10/_common64.js +113 -0
  278. package/esm/deps/jsr.io/@std/encoding/1.0.10/_common_detach.d.ts +4 -0
  279. package/esm/deps/jsr.io/@std/encoding/1.0.10/_common_detach.d.ts.map +1 -0
  280. package/esm/deps/jsr.io/@std/encoding/1.0.10/_common_detach.js +13 -0
  281. package/esm/deps/jsr.io/@std/encoding/1.0.10/_types.d.ts +9 -0
  282. package/esm/deps/jsr.io/@std/encoding/1.0.10/_types.d.ts.map +1 -0
  283. package/esm/deps/jsr.io/@std/encoding/1.0.10/_types.js +2 -0
  284. package/esm/deps/jsr.io/@std/encoding/1.0.10/base64.d.ts +40 -0
  285. package/esm/deps/jsr.io/@std/encoding/1.0.10/base64.d.ts.map +1 -0
  286. package/esm/deps/jsr.io/@std/encoding/1.0.10/base64.js +82 -0
  287. package/esm/deps/jsr.io/@std/encoding/1.0.10/hex.d.ts +39 -0
  288. package/esm/deps/jsr.io/@std/encoding/1.0.10/hex.d.ts.map +1 -0
  289. package/esm/deps/jsr.io/@std/encoding/1.0.10/hex.js +87 -0
  290. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
  291. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
  292. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
  293. package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts +80 -0
  294. package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
  295. package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.js +116 -0
  296. package/esm/deps/jsr.io/@std/internal/1.0.12/diff.d.ts.map +1 -0
  297. package/esm/deps/jsr.io/@std/internal/1.0.12/diff.js +276 -0
  298. package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
  299. package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.js +182 -0
  300. package/esm/deps/jsr.io/@std/internal/1.0.12/format.d.ts +29 -0
  301. package/esm/deps/jsr.io/@std/internal/1.0.12/format.d.ts.map +1 -0
  302. package/esm/deps/jsr.io/@std/internal/1.0.12/format.js +70 -0
  303. package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
  304. package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
  305. package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
  306. package/esm/deps/jsr.io/@std/internal/1.0.12/styles.d.ts.map +1 -0
  307. package/esm/deps/jsr.io/@std/internal/1.0.12/styles.js +207 -0
  308. package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts +25 -0
  309. package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
  310. package/esm/deps/jsr.io/@std/internal/1.0.12/types.js +3 -0
  311. package/esm/deps/jsr.io/@std/io/0.225.3/_constants.d.ts.map +1 -0
  312. package/esm/deps/jsr.io/@std/io/0.225.3/_constants.js +4 -0
  313. package/esm/deps/jsr.io/@std/io/0.225.3/iterate_reader.d.ts.map +1 -0
  314. package/esm/deps/jsr.io/@std/io/0.225.3/iterate_reader.js +96 -0
  315. package/esm/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
  316. package/esm/deps/jsr.io/@std/io/0.225.3/types.js +15 -0
  317. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
  318. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +1 -0
  319. package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +1 -0
  320. package/esm/deps/jsr.io/@std/media-types/1.1.0/all_extensions.d.ts.map +1 -0
  321. package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +1 -0
  322. package/esm/deps/jsr.io/@std/media-types/1.1.0/extension.d.ts.map +1 -0
  323. package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +1 -0
  324. package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +1 -0
  325. package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +1 -0
  326. package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
  327. package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +9103 -0
  328. package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +1 -0
  329. package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +9138 -0
  330. package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
  331. package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +7 -0
  332. package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
  333. package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.js +40 -0
  334. package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
  335. package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.js +46 -0
  336. package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
  337. package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +9 -0
  338. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
  339. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +8 -0
  340. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
  341. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +77 -0
  342. package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
  343. package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +19 -0
  344. package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
  345. package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +15 -0
  346. package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
  347. package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
  348. package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +35 -0
  349. package/esm/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
  350. package/esm/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
  351. package/esm/deps/jsr.io/@std/path/1.1.4/extname.js +28 -0
  352. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
  353. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +28 -0
  354. package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
  355. package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
  356. package/esm/deps/jsr.io/@std/path/1.1.4/join.js +29 -0
  357. package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
  358. package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.js +8 -0
  359. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
  360. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
  361. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.js +52 -0
  362. package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
  363. package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
  364. package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.js +93 -0
  365. package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
  366. package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +21 -0
  367. package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
  368. package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +23 -0
  369. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
  370. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
  371. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.js +45 -0
  372. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
  373. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
  374. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +58 -0
  375. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
  376. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +27 -0
  377. package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
  378. package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.js +28 -0
  379. package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
  380. package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.js +15 -0
  381. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
  382. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
  383. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.js +47 -0
  384. package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
  385. package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
  386. package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.js +82 -0
  387. package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
  388. package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +30 -0
  389. package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
  390. package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +38 -0
  391. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
  392. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
  393. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.js +77 -0
  394. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
  395. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
  396. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +135 -0
  397. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
  398. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +34 -0
  399. package/esm/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts +22 -0
  400. package/esm/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts.map +1 -0
  401. package/esm/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.js +35 -0
  402. package/esm/mod.d.ts +2 -2
  403. package/esm/mod.d.ts.map +1 -1
  404. package/esm/mod.js +2 -2
  405. package/esm/session/0_session_error.d.ts +24 -0
  406. package/esm/session/0_session_error.d.ts.map +1 -0
  407. package/esm/session/0_session_error.js +25 -0
  408. package/esm/session/0_session_state.d.ts +28 -0
  409. package/esm/session/0_session_state.d.ts.map +1 -0
  410. package/esm/session/0_session_state.js +77 -0
  411. package/esm/session/1_session.d.ts +51 -0
  412. package/esm/session/1_session.d.ts.map +1 -0
  413. package/esm/session/1_session.js +147 -0
  414. package/esm/session/2_session_encrypted.d.ts +41 -0
  415. package/esm/session/2_session_encrypted.d.ts.map +1 -0
  416. package/esm/session/2_session_encrypted.js +507 -0
  417. package/esm/session/2_session_plain.d.ts +25 -0
  418. package/esm/session/2_session_plain.d.ts.map +1 -0
  419. package/esm/session/2_session_plain.js +56 -0
  420. package/esm/storage/0_storage.d.ts +3 -2
  421. package/esm/storage/0_storage.d.ts.map +1 -1
  422. package/esm/storage/0_storage.js +1 -1
  423. package/esm/storage/1_utilities.d.ts +15 -11
  424. package/esm/storage/1_utilities.d.ts.map +1 -1
  425. package/esm/storage/1_utilities.js +33 -41
  426. package/esm/storage/2_storage_indexed_db.d.ts +3 -2
  427. package/esm/storage/2_storage_indexed_db.d.ts.map +1 -1
  428. package/esm/storage/2_storage_indexed_db.js +7 -4
  429. package/esm/storage/2_storage_local_storage.d.ts +3 -2
  430. package/esm/storage/2_storage_local_storage.d.ts.map +1 -1
  431. package/esm/storage/2_storage_local_storage.js +7 -4
  432. package/esm/storage/2_storage_memory.d.ts +4 -3
  433. package/esm/storage/2_storage_memory.d.ts.map +1 -1
  434. package/esm/storage/2_storage_memory.js +6 -3
  435. package/esm/storage/2_storage_session_storage.d.ts +4 -3
  436. package/esm/storage/2_storage_session_storage.d.ts.map +1 -1
  437. package/esm/storage/2_storage_session_storage.js +7 -4
  438. package/esm/tl/0_types.d.ts +25 -0
  439. package/esm/tl/0_types.d.ts.map +1 -0
  440. package/esm/tl/0_types.js +20 -0
  441. package/esm/tl/0_utilities.d.ts +34 -0
  442. package/esm/tl/0_utilities.d.ts.map +1 -0
  443. package/esm/tl/0_utilities.js +79 -0
  444. package/esm/tl/1_mtproto_api.d.ts +371 -0
  445. package/esm/tl/1_mtproto_api.d.ts.map +1 -0
  446. package/esm/tl/1_mtproto_api.js +416 -0
  447. package/esm/tl/1_telegram_api.d.ts +19410 -0
  448. package/esm/tl/1_telegram_api.d.ts.map +1 -0
  449. package/esm/tl/1_telegram_api.js +22386 -0
  450. package/esm/tl/1_tl_reader.d.ts +39 -0
  451. package/esm/tl/1_tl_reader.d.ts.map +1 -0
  452. package/esm/tl/1_tl_reader.js +228 -0
  453. package/esm/tl/1_tl_writer.d.ts +37 -0
  454. package/esm/tl/1_tl_writer.d.ts.map +1 -0
  455. package/esm/tl/1_tl_writer.js +278 -0
  456. package/esm/tl/1_utilities.d.ts +9 -14
  457. package/esm/tl/1_utilities.d.ts.map +1 -1
  458. package/esm/tl/1_utilities.js +21 -40
  459. package/esm/tl/2_message.d.ts +36 -0
  460. package/esm/tl/2_message.d.ts.map +1 -0
  461. package/esm/tl/2_message.js +73 -0
  462. package/esm/tl/2_mtproto.d.ts +33 -0
  463. package/esm/tl/2_mtproto.d.ts.map +1 -0
  464. package/esm/tl/2_mtproto.js +53 -0
  465. package/esm/tl/2_telegram.d.ts +49 -0
  466. package/esm/tl/2_telegram.d.ts.map +1 -0
  467. package/esm/tl/2_telegram.js +135 -0
  468. package/esm/transport/0_obfuscation.d.ts +2 -2
  469. package/esm/transport/0_obfuscation.d.ts.map +1 -1
  470. package/esm/transport/0_obfuscation.js +10 -9
  471. package/esm/transport/0_transport.d.ts +4 -6
  472. package/esm/transport/0_transport.d.ts.map +1 -1
  473. package/esm/transport/0_transport.js +10 -11
  474. package/esm/transport/1_transport_abridged.d.ts +2 -4
  475. package/esm/transport/1_transport_abridged.d.ts.map +1 -1
  476. package/esm/transport/1_transport_abridged.js +17 -34
  477. package/esm/transport/1_transport_intermediate.d.ts +2 -4
  478. package/esm/transport/1_transport_intermediate.d.ts.map +1 -1
  479. package/esm/transport/1_transport_intermediate.js +12 -31
  480. package/esm/transport/1_transport_provider.d.ts +35 -0
  481. package/esm/transport/1_transport_provider.d.ts.map +1 -0
  482. package/esm/transport/1_transport_provider.js +81 -0
  483. package/esm/transport/2_transport_provider_tcp.d.ts +25 -0
  484. package/esm/transport/2_transport_provider_tcp.d.ts.map +1 -0
  485. package/esm/transport/2_transport_provider_tcp.js +29 -0
  486. package/esm/transport/2_transport_provider_web_socket.d.ts +24 -0
  487. package/esm/transport/2_transport_provider_web_socket.d.ts.map +1 -0
  488. package/esm/transport/2_transport_provider_web_socket.js +43 -0
  489. package/esm/types/0_authorization_state.d.ts +2 -2
  490. package/esm/types/0_authorization_state.d.ts.map +1 -1
  491. package/esm/types/0_authorization_state.js +1 -1
  492. package/esm/types/0_birthday.d.ts +3 -2
  493. package/esm/types/0_birthday.d.ts.map +1 -1
  494. package/esm/types/0_birthday.js +10 -1
  495. package/esm/types/0_bot_command.d.ts +1 -1
  496. package/esm/types/0_bot_command.js +1 -1
  497. package/esm/types/0_bot_token_check_result.d.ts +31 -0
  498. package/esm/types/0_bot_token_check_result.d.ts.map +1 -0
  499. package/esm/types/0_bot_token_check_result.js +20 -0
  500. package/esm/types/0_button_style.d.ts +28 -0
  501. package/esm/types/0_button_style.d.ts.map +1 -0
  502. package/esm/types/0_button_style.js +36 -0
  503. package/esm/types/0_callback_query_answer.d.ts +3 -3
  504. package/esm/types/0_callback_query_answer.d.ts.map +1 -1
  505. package/esm/types/0_callback_query_answer.js +2 -2
  506. package/esm/types/0_callback_query_question.d.ts +1 -1
  507. package/esm/types/0_callback_query_question.js +3 -3
  508. package/esm/types/0_chat_action.d.ts +1 -1
  509. package/esm/types/0_chat_action.js +1 -1
  510. package/esm/types/0_chat_administrator_rights.d.ts +17 -7
  511. package/esm/types/0_chat_administrator_rights.d.ts.map +1 -1
  512. package/esm/types/0_chat_administrator_rights.js +31 -16
  513. package/esm/types/0_chat_folder.d.ts +29 -0
  514. package/esm/types/0_chat_folder.d.ts.map +1 -0
  515. package/esm/types/0_chat_folder.js +25 -0
  516. package/esm/types/0_chat_member_rights.d.ts +3 -3
  517. package/esm/types/0_chat_member_rights.d.ts.map +1 -1
  518. package/esm/types/0_chat_member_rights.js +23 -23
  519. package/esm/types/0_chat_photo.d.ts +2 -2
  520. package/esm/types/0_chat_photo.d.ts.map +1 -1
  521. package/esm/types/0_chat_photo.js +5 -5
  522. package/esm/types/0_checklist_changed.d.ts +29 -0
  523. package/esm/types/0_checklist_changed.d.ts.map +1 -0
  524. package/esm/types/0_checklist_changed.js +25 -0
  525. package/esm/types/0_code_check_result.d.ts +47 -0
  526. package/esm/types/0_code_check_result.d.ts.map +1 -0
  527. package/esm/types/0_code_check_result.js +20 -0
  528. package/esm/types/0_connection_state.d.ts +1 -1
  529. package/esm/types/0_connection_state.js +1 -1
  530. package/esm/types/0_contact.d.ts +2 -2
  531. package/esm/types/0_contact.d.ts.map +1 -1
  532. package/esm/types/0_contact.js +4 -3
  533. package/esm/types/0_dice.d.ts +2 -2
  534. package/esm/types/0_dice.d.ts.map +1 -1
  535. package/esm/types/0_dice.js +1 -1
  536. package/esm/types/0_emoji_status.d.ts +48 -0
  537. package/esm/types/0_emoji_status.d.ts.map +1 -0
  538. package/esm/types/0_emoji_status.js +33 -0
  539. package/esm/types/0_failed_invitation.d.ts +8 -4
  540. package/esm/types/0_failed_invitation.d.ts.map +1 -1
  541. package/esm/types/0_failed_invitation.js +3 -3
  542. package/esm/types/0_file_source.d.ts +2 -2
  543. package/esm/types/0_file_source.d.ts.map +1 -1
  544. package/esm/types/0_file_source.js +1 -1
  545. package/esm/types/0_gift_component_rarity.d.ts +50 -0
  546. package/esm/types/0_gift_component_rarity.d.ts.map +1 -0
  547. package/esm/types/0_gift_component_rarity.js +43 -0
  548. package/esm/types/0_gift_value.d.ts +25 -0
  549. package/esm/types/0_gift_value.d.ts.map +1 -0
  550. package/esm/types/0_gift_value.js +20 -0
  551. package/esm/types/0_giveaway_parameters.d.ts +2 -2
  552. package/esm/types/0_giveaway_parameters.d.ts.map +1 -1
  553. package/esm/types/0_giveaway_parameters.js +5 -6
  554. package/esm/types/0_id.d.ts +1 -1
  555. package/esm/types/0_id.js +1 -1
  556. package/esm/types/0_input_emoji_status.d.ts +36 -0
  557. package/esm/types/0_input_emoji_status.d.ts.map +1 -0
  558. package/esm/types/0_input_emoji_status.js +20 -0
  559. package/esm/types/0_invoice.d.ts +3 -2
  560. package/esm/types/0_invoice.d.ts.map +1 -1
  561. package/esm/types/0_invoice.js +1 -1
  562. package/esm/types/0_keyboard_button_poll_type.d.ts +1 -1
  563. package/esm/types/0_keyboard_button_poll_type.js +1 -1
  564. package/esm/types/0_link_preview_media_size.d.ts +22 -0
  565. package/esm/types/0_link_preview_media_size.d.ts.map +1 -0
  566. package/esm/types/0_link_preview_media_size.js +20 -0
  567. package/esm/types/0_live_stream_channel.d.ts +2 -2
  568. package/esm/types/0_live_stream_channel.d.ts.map +1 -1
  569. package/esm/types/0_live_stream_channel.js +1 -1
  570. package/esm/types/0_location.d.ts +1 -1
  571. package/esm/types/0_location.d.ts.map +1 -1
  572. package/esm/types/0_location.js +13 -12
  573. package/esm/types/0_login_url.d.ts +1 -1
  574. package/esm/types/0_login_url.js +1 -1
  575. package/esm/types/0_mask_position.d.ts +2 -2
  576. package/esm/types/0_mask_position.d.ts.map +1 -1
  577. package/esm/types/0_mask_position.js +2 -2
  578. package/esm/types/0_message_reference.d.ts +1 -1
  579. package/esm/types/0_message_reference.js +1 -1
  580. package/esm/types/0_message_search_filter.d.ts +3 -2
  581. package/esm/types/0_message_search_filter.d.ts.map +1 -1
  582. package/esm/types/0_message_search_filter.js +1 -1
  583. package/esm/types/0_mini_app_button_info.d.ts +26 -0
  584. package/esm/types/0_mini_app_button_info.d.ts.map +1 -0
  585. package/esm/types/0_mini_app_button_info.js +22 -0
  586. package/esm/types/0_mini_app_mode.d.ts +22 -0
  587. package/esm/types/0_mini_app_mode.d.ts.map +1 -0
  588. package/esm/types/0_mini_app_mode.js +20 -0
  589. package/esm/types/0_network_statistics_entry.d.ts +1 -1
  590. package/esm/types/0_network_statistics_entry.js +1 -1
  591. package/esm/types/0_parse_mode.d.ts +1 -1
  592. package/esm/types/0_parse_mode.js +1 -1
  593. package/esm/types/0_password_check_result.d.ts +39 -0
  594. package/esm/types/0_password_check_result.d.ts.map +1 -0
  595. package/esm/types/0_password_check_result.js +20 -0
  596. package/esm/types/0_price_tag.d.ts +1 -1
  597. package/esm/types/0_price_tag.js +1 -1
  598. package/esm/types/0_reaction.d.ts +4 -1
  599. package/esm/types/0_reaction.d.ts.map +1 -1
  600. package/esm/types/0_reaction.js +10 -10
  601. package/esm/types/0_refunded_payment.d.ts +2 -2
  602. package/esm/types/0_refunded_payment.d.ts.map +1 -1
  603. package/esm/types/0_refunded_payment.js +3 -3
  604. package/esm/types/0_restriction_reason.d.ts +2 -2
  605. package/esm/types/0_restriction_reason.d.ts.map +1 -1
  606. package/esm/types/0_restriction_reason.js +1 -1
  607. package/esm/types/0_self_destruct_option.d.ts +11 -3
  608. package/esm/types/0_self_destruct_option.d.ts.map +1 -1
  609. package/esm/types/0_self_destruct_option.js +12 -3
  610. package/esm/types/0_shipping_address.d.ts +2 -2
  611. package/esm/types/0_shipping_address.d.ts.map +1 -1
  612. package/esm/types/0_shipping_address.js +1 -1
  613. package/esm/types/0_slow_mode_duration.d.ts +23 -0
  614. package/esm/types/0_slow_mode_duration.d.ts.map +1 -0
  615. package/esm/types/0_slow_mode_duration.js +28 -0
  616. package/esm/types/0_story_reference.d.ts +1 -1
  617. package/esm/types/0_story_reference.js +1 -1
  618. package/esm/types/0_switch_inline_query_chosen_chats.d.ts +20 -0
  619. package/esm/types/0_switch_inline_query_chosen_chats.d.ts.map +1 -1
  620. package/esm/types/0_switch_inline_query_chosen_chats.js +19 -0
  621. package/esm/types/0_thumbnail.d.ts +1 -1
  622. package/esm/types/0_thumbnail.d.ts.map +1 -1
  623. package/esm/types/0_thumbnail.js +4 -4
  624. package/esm/types/0_translation.d.ts +32 -0
  625. package/esm/types/0_translation.d.ts.map +1 -0
  626. package/esm/types/0_translation.js +45 -0
  627. package/esm/types/0_upload_progress.d.ts +29 -0
  628. package/esm/types/0_upload_progress.d.ts.map +1 -0
  629. package/esm/types/0_upload_progress.js +20 -0
  630. package/esm/types/0_user_status.d.ts +66 -0
  631. package/esm/types/0_user_status.d.ts.map +1 -0
  632. package/esm/types/0_user_status.js +35 -0
  633. package/esm/types/0_video_chat.d.ts +8 -4
  634. package/esm/types/0_video_chat.d.ts.map +1 -1
  635. package/esm/types/0_video_chat.js +7 -8
  636. package/esm/types/0_voice.d.ts +2 -2
  637. package/esm/types/0_voice.d.ts.map +1 -1
  638. package/esm/types/0_voice.js +1 -1
  639. package/esm/types/0_voice_transcription.d.ts +31 -0
  640. package/esm/types/0_voice_transcription.d.ts.map +1 -0
  641. package/esm/types/0_voice_transcription.js +26 -0
  642. package/esm/types/0_working_hours_interval.d.ts +27 -0
  643. package/esm/types/0_working_hours_interval.d.ts.map +1 -0
  644. package/esm/types/0_working_hours_interval.js +20 -0
  645. package/esm/types/1_animation.d.ts +2 -2
  646. package/esm/types/1_animation.d.ts.map +1 -1
  647. package/esm/types/1_animation.js +6 -5
  648. package/esm/types/1_audio.d.ts +2 -2
  649. package/esm/types/1_audio.d.ts.map +1 -1
  650. package/esm/types/1_audio.js +6 -5
  651. package/esm/types/1_bot_command_scope.d.ts +3 -3
  652. package/esm/types/1_bot_command_scope.d.ts.map +1 -1
  653. package/esm/types/1_bot_command_scope.js +4 -4
  654. package/esm/types/1_bot_commands.d.ts +30 -0
  655. package/esm/types/1_bot_commands.d.ts.map +1 -0
  656. package/esm/types/1_bot_commands.js +20 -0
  657. package/esm/types/1_chat_p.d.ts +36 -7
  658. package/esm/types/1_chat_p.d.ts.map +1 -1
  659. package/esm/types/1_chat_p.js +43 -17
  660. package/esm/types/1_document.d.ts +2 -2
  661. package/esm/types/1_document.d.ts.map +1 -1
  662. package/esm/types/1_document.js +3 -3
  663. package/esm/types/1_giveaway.d.ts +3 -3
  664. package/esm/types/1_giveaway.d.ts.map +1 -1
  665. package/esm/types/1_giveaway.js +1 -1
  666. package/esm/types/1_inline_keyboard_button.d.ts +140 -0
  667. package/esm/types/1_inline_keyboard_button.d.ts.map +1 -0
  668. package/esm/types/1_inline_keyboard_button.js +128 -0
  669. package/esm/types/1_inline_query_result_button.d.ts +3 -3
  670. package/esm/types/1_inline_query_result_button.d.ts.map +1 -1
  671. package/esm/types/1_inline_query_result_button.js +1 -1
  672. package/esm/types/1_input_gift.d.ts +54 -0
  673. package/esm/types/1_input_gift.d.ts.map +1 -0
  674. package/esm/types/1_input_gift.js +32 -0
  675. package/esm/types/1_input_story_content.d.ts +3 -3
  676. package/esm/types/1_input_story_content.d.ts.map +1 -1
  677. package/esm/types/1_input_story_content.js +1 -1
  678. package/esm/types/1_keyboard_button.d.ts +14 -12
  679. package/esm/types/1_keyboard_button.d.ts.map +1 -1
  680. package/esm/types/1_keyboard_button.js +87 -34
  681. package/esm/types/1_message_reaction.d.ts +3 -3
  682. package/esm/types/1_message_reaction.d.ts.map +1 -1
  683. package/esm/types/1_message_reaction.js +8 -8
  684. package/esm/types/1_mini_app_info.d.ts +32 -0
  685. package/esm/types/1_mini_app_info.d.ts.map +1 -0
  686. package/esm/types/1_mini_app_info.js +27 -0
  687. package/esm/types/1_network_statistics.d.ts +2 -2
  688. package/esm/types/1_network_statistics.d.ts.map +1 -1
  689. package/esm/types/1_network_statistics.js +1 -1
  690. package/esm/types/1_order_info.d.ts +8 -3
  691. package/esm/types/1_order_info.d.ts.map +1 -1
  692. package/esm/types/1_order_info.js +1 -1
  693. package/esm/types/1_photo.d.ts +2 -2
  694. package/esm/types/1_photo.d.ts.map +1 -1
  695. package/esm/types/1_photo.js +4 -4
  696. package/esm/types/1_reaction_count.d.ts +3 -3
  697. package/esm/types/1_reaction_count.d.ts.map +1 -1
  698. package/esm/types/1_reaction_count.js +1 -1
  699. package/esm/types/1_sticker.d.ts +6 -5
  700. package/esm/types/1_sticker.d.ts.map +1 -1
  701. package/esm/types/1_sticker.js +15 -11
  702. package/esm/types/1_story_reaction.d.ts +4 -4
  703. package/esm/types/1_story_reaction.d.ts.map +1 -1
  704. package/esm/types/1_story_reaction.js +2 -2
  705. package/esm/types/1_venue.d.ts +2 -2
  706. package/esm/types/1_venue.d.ts.map +1 -1
  707. package/esm/types/1_venue.js +5 -8
  708. package/esm/types/1_video.d.ts +2 -2
  709. package/esm/types/1_video.d.ts.map +1 -1
  710. package/esm/types/1_video.js +3 -3
  711. package/esm/types/1_video_note.d.ts +2 -2
  712. package/esm/types/1_video_note.d.ts.map +1 -1
  713. package/esm/types/1_video_note.js +3 -3
  714. package/esm/types/1_working_hours.d.ts +31 -0
  715. package/esm/types/1_working_hours.d.ts.map +1 -0
  716. package/esm/types/1_working_hours.js +33 -0
  717. package/esm/types/2_chat.d.ts +14 -17
  718. package/esm/types/2_chat.d.ts.map +1 -1
  719. package/esm/types/2_chat.js +23 -28
  720. package/esm/types/2_chat_member.d.ts +72 -15
  721. package/esm/types/2_chat_member.d.ts.map +1 -1
  722. package/esm/types/2_chat_member.js +40 -28
  723. package/esm/types/2_inactive_chat.d.ts +3 -3
  724. package/esm/types/2_inactive_chat.d.ts.map +1 -1
  725. package/esm/types/2_inactive_chat.js +4 -5
  726. package/esm/types/2_message_entity.d.ts +148 -0
  727. package/esm/types/2_message_entity.d.ts.map +1 -0
  728. package/esm/types/2_message_entity.js +243 -0
  729. package/esm/types/2_message_interactions.d.ts +2 -2
  730. package/esm/types/2_message_interactions.d.ts.map +1 -1
  731. package/esm/types/2_message_interactions.js +1 -1
  732. package/esm/types/2_message_reaction_count.d.ts +6 -7
  733. package/esm/types/2_message_reaction_count.d.ts.map +1 -1
  734. package/esm/types/2_message_reaction_count.js +6 -9
  735. package/esm/types/2_message_reaction_list_item.d.ts +39 -0
  736. package/esm/types/2_message_reaction_list_item.d.ts.map +1 -0
  737. package/esm/types/2_message_reaction_list_item.js +50 -0
  738. package/esm/types/2_poll_answer.d.ts +32 -0
  739. package/esm/types/2_poll_answer.d.ts.map +1 -0
  740. package/esm/types/2_poll_answer.js +35 -0
  741. package/esm/types/2_reply_markup.d.ts +71 -0
  742. package/esm/types/2_reply_markup.d.ts.map +1 -0
  743. package/esm/types/2_reply_markup.js +127 -0
  744. package/esm/types/2_sticker_set.d.ts +51 -0
  745. package/esm/types/2_sticker_set.d.ts.map +1 -0
  746. package/esm/types/2_sticker_set.js +91 -0
  747. package/esm/types/2_story_content.d.ts +3 -3
  748. package/esm/types/2_story_content.d.ts.map +1 -1
  749. package/esm/types/2_story_content.js +7 -7
  750. package/esm/types/2_story_interactions.d.ts +3 -3
  751. package/esm/types/2_story_interactions.d.ts.map +1 -1
  752. package/esm/types/2_story_interactions.js +3 -2
  753. package/esm/types/2_story_interactive_area.d.ts +9 -9
  754. package/esm/types/2_story_interactive_area.d.ts.map +1 -1
  755. package/esm/types/2_story_interactive_area.js +16 -15
  756. package/esm/types/2_story_privacy.d.ts +46 -0
  757. package/esm/types/2_story_privacy.d.ts.map +1 -0
  758. package/esm/types/2_story_privacy.js +76 -0
  759. package/esm/types/2_successful_payment.d.ts +11 -3
  760. package/esm/types/2_successful_payment.d.ts.map +1 -1
  761. package/esm/types/2_successful_payment.js +3 -3
  762. package/esm/types/2_user.d.ts +73 -0
  763. package/esm/types/2_user.d.ts.map +1 -0
  764. package/esm/types/2_user.js +82 -0
  765. package/esm/types/3_business_connection.d.ts +37 -0
  766. package/esm/types/3_business_connection.d.ts.map +1 -0
  767. package/esm/types/3_business_connection.js +36 -0
  768. package/esm/types/3_chat_settings.d.ts +47 -0
  769. package/esm/types/3_chat_settings.d.ts.map +1 -0
  770. package/esm/types/3_chat_settings.js +51 -0
  771. package/esm/types/3_checklist_item.d.ts +65 -0
  772. package/esm/types/3_checklist_item.d.ts.map +1 -0
  773. package/esm/types/3_checklist_item.js +51 -0
  774. package/esm/types/3_chosen_inline_result.d.ts +38 -0
  775. package/esm/types/3_chosen_inline_result.d.ts.map +1 -0
  776. package/esm/types/3_chosen_inline_result.js +37 -0
  777. package/esm/types/3_forward_header.d.ts +77 -0
  778. package/esm/types/3_forward_header.d.ts.map +1 -0
  779. package/esm/types/3_forward_header.js +73 -0
  780. package/esm/types/3_game.d.ts +40 -0
  781. package/esm/types/3_game.d.ts.map +1 -0
  782. package/esm/types/3_game.js +44 -0
  783. package/esm/types/3_gift_upgraded_component.d.ts +96 -0
  784. package/esm/types/3_gift_upgraded_component.d.ts.map +1 -0
  785. package/esm/types/3_gift_upgraded_component.js +88 -0
  786. package/esm/types/3_inline_query.d.ts +40 -0
  787. package/esm/types/3_inline_query.d.ts.map +1 -0
  788. package/esm/types/3_inline_query.js +60 -0
  789. package/esm/types/3_input_checklist_item.d.ts +31 -0
  790. package/esm/types/3_input_checklist_item.d.ts.map +1 -0
  791. package/esm/types/3_input_checklist_item.js +20 -0
  792. package/esm/types/3_input_media.d.ts +123 -0
  793. package/esm/types/3_input_media.d.ts.map +1 -0
  794. package/esm/types/3_input_media.js +20 -0
  795. package/esm/types/3_input_poll_option.d.ts +31 -0
  796. package/esm/types/3_input_poll_option.d.ts.map +1 -0
  797. package/esm/types/3_input_poll_option.js +20 -0
  798. package/esm/types/3_invite_link.d.ts +47 -0
  799. package/esm/types/3_invite_link.d.ts.map +1 -0
  800. package/esm/types/3_invite_link.js +48 -0
  801. package/esm/types/3_message_reaction_list.d.ts +32 -0
  802. package/esm/types/3_message_reaction_list.d.ts.map +1 -0
  803. package/esm/types/3_message_reaction_list.js +31 -0
  804. package/esm/types/3_message_reactions.d.ts +42 -0
  805. package/esm/types/3_message_reactions.d.ts.map +1 -0
  806. package/esm/types/3_message_reactions.js +54 -0
  807. package/esm/types/3_poll_option.d.ts +34 -0
  808. package/esm/types/3_poll_option.d.ts.map +1 -0
  809. package/esm/types/3_poll_option.js +29 -0
  810. package/esm/types/3_pre_checkout_query.d.ts +42 -0
  811. package/esm/types/3_pre_checkout_query.d.ts.map +1 -0
  812. package/esm/types/3_pre_checkout_query.js +39 -0
  813. package/esm/types/3_reply_quote.d.ts +32 -0
  814. package/esm/types/3_reply_quote.d.ts.map +1 -0
  815. package/esm/types/3_reply_quote.js +30 -0
  816. package/esm/types/3_story.d.ts +13 -14
  817. package/esm/types/3_story.d.ts.map +1 -1
  818. package/esm/types/3_story.js +13 -14
  819. package/esm/types/4_chat_member_updated.d.ts +43 -0
  820. package/esm/types/4_chat_member_updated.d.ts.map +1 -0
  821. package/esm/types/4_chat_member_updated.js +52 -0
  822. package/esm/types/4_checklist.d.ts +38 -0
  823. package/esm/types/4_checklist.d.ts.map +1 -0
  824. package/esm/types/4_checklist.js +31 -0
  825. package/esm/types/4_gift.d.ts +100 -0
  826. package/esm/types/4_gift.d.ts.map +1 -0
  827. package/esm/types/4_gift.js +112 -0
  828. package/esm/types/4_join_request.d.ts +39 -0
  829. package/esm/types/4_join_request.d.ts.map +1 -0
  830. package/esm/types/4_join_request.js +62 -0
  831. package/esm/types/4_poll.d.ts +55 -0
  832. package/esm/types/4_poll.d.ts.map +1 -0
  833. package/esm/types/4_poll.js +43 -0
  834. package/esm/types/4_reply_to.d.ts +51 -0
  835. package/esm/types/4_reply_to.d.ts.map +1 -0
  836. package/esm/types/4_reply_to.js +20 -0
  837. package/esm/types/5_claimed_gift.d.ts +44 -0
  838. package/esm/types/5_claimed_gift.d.ts.map +1 -0
  839. package/esm/types/5_claimed_gift.js +43 -0
  840. package/esm/types/5_gift_non_upgraded_information.d.ts +47 -0
  841. package/esm/types/5_gift_non_upgraded_information.d.ts.map +1 -0
  842. package/esm/types/5_gift_non_upgraded_information.js +69 -0
  843. package/esm/types/5_gift_upgraded_information.d.ts +41 -0
  844. package/esm/types/5_gift_upgraded_information.d.ts.map +1 -0
  845. package/esm/types/5_gift_upgraded_information.js +58 -0
  846. package/esm/types/5_link_preview.d.ts +186 -0
  847. package/esm/types/5_link_preview.d.ts.map +1 -0
  848. package/esm/types/5_link_preview.js +205 -0
  849. package/esm/types/6_claimed_gifts.d.ts +33 -0
  850. package/esm/types/6_claimed_gifts.d.ts.map +1 -0
  851. package/esm/types/6_claimed_gifts.js +43 -0
  852. package/esm/types/6_message.d.ts +704 -0
  853. package/esm/types/6_message.d.ts.map +1 -0
  854. package/esm/types/6_message.js +553 -0
  855. package/esm/types/6_message_content.d.ts +124 -0
  856. package/esm/types/6_message_content.d.ts.map +1 -0
  857. package/esm/types/6_message_content.js +20 -0
  858. package/esm/types/7_callback_query.d.ts +43 -0
  859. package/esm/types/7_callback_query.d.ts.map +1 -0
  860. package/esm/types/7_callback_query.js +59 -0
  861. package/esm/types/7_chat_list_item.d.ts +43 -0
  862. package/esm/types/7_chat_list_item.d.ts.map +1 -0
  863. package/esm/types/7_chat_list_item.js +57 -0
  864. package/esm/types/7_inline_query_result.d.ts +251 -0
  865. package/esm/types/7_inline_query_result.d.ts.map +1 -0
  866. package/esm/types/7_inline_query_result.js +380 -0
  867. package/esm/types/7_message_list.d.ts +28 -0
  868. package/esm/types/7_message_list.d.ts.map +1 -0
  869. package/esm/types/7_message_list.js +20 -0
  870. package/esm/types/7_saved_chat.d.ts +35 -0
  871. package/esm/types/7_saved_chat.d.ts.map +1 -0
  872. package/esm/types/7_saved_chat.js +42 -0
  873. package/esm/types/7_topic.d.ts +44 -0
  874. package/esm/types/7_topic.d.ts.map +1 -0
  875. package/esm/types/7_topic.js +61 -0
  876. package/esm/types/8_inline_query_answer.d.ts +32 -0
  877. package/esm/types/8_inline_query_answer.d.ts.map +1 -0
  878. package/esm/types/8_inline_query_answer.js +28 -0
  879. package/esm/types/8_saved_chats.d.ts +33 -0
  880. package/esm/types/8_saved_chats.d.ts.map +1 -0
  881. package/esm/types/8_saved_chats.js +36 -0
  882. package/esm/types/8_update.d.ts +583 -0
  883. package/esm/types/8_update.d.ts.map +1 -0
  884. package/esm/types/8_update.js +20 -0
  885. package/esm/types/_file_id.d.ts +64 -51
  886. package/esm/types/_file_id.d.ts.map +1 -1
  887. package/esm/types/_file_id.js +96 -77
  888. package/esm/types/_getters.d.ts +4 -11
  889. package/esm/types/_getters.d.ts.map +1 -1
  890. package/esm/types/_getters.js +1 -1
  891. package/esm/utilities/0_color.d.ts +1 -1
  892. package/esm/utilities/0_color.js +1 -1
  893. package/esm/utilities/0_env.d.ts.map +1 -1
  894. package/esm/utilities/0_env.js +20 -1
  895. package/esm/utilities/0_gzip.d.ts +22 -0
  896. package/esm/utilities/0_gzip.d.ts.map +1 -0
  897. package/esm/utilities/0_gzip.js +42 -0
  898. package/esm/utilities/0_hash.d.ts +3 -3
  899. package/esm/utilities/0_hash.d.ts.map +1 -1
  900. package/esm/utilities/0_hash.js +1 -1
  901. package/esm/utilities/0_int.d.ts +71 -0
  902. package/esm/utilities/0_int.d.ts.map +1 -0
  903. package/esm/utilities/0_int.js +140 -0
  904. package/esm/utilities/0_misc.d.ts +29 -0
  905. package/esm/utilities/0_misc.d.ts.map +1 -0
  906. package/esm/utilities/0_misc.js +84 -0
  907. package/esm/utilities/0_mutex.d.ts +1 -1
  908. package/esm/utilities/0_mutex.js +1 -1
  909. package/esm/utilities/0_object.d.ts +1 -1
  910. package/esm/utilities/0_object.js +1 -1
  911. package/esm/utilities/0_part_stream.d.ts +4 -4
  912. package/esm/utilities/0_part_stream.d.ts.map +1 -1
  913. package/esm/utilities/0_part_stream.js +3 -3
  914. package/esm/utilities/0_rle.d.ts +3 -3
  915. package/esm/utilities/0_rle.d.ts.map +1 -1
  916. package/esm/utilities/0_rle.js +2 -2
  917. package/esm/utilities/0_text.d.ts +22 -0
  918. package/esm/utilities/0_text.d.ts.map +1 -0
  919. package/esm/utilities/0_text.js +27 -0
  920. package/esm/utilities/0_types.d.ts +1 -1
  921. package/esm/utilities/0_types.js +1 -1
  922. package/esm/utilities/0_units.d.ts +1 -4
  923. package/esm/utilities/0_units.d.ts.map +1 -1
  924. package/esm/utilities/0_units.js +1 -4
  925. package/esm/utilities/1_auth.d.ts +2 -2
  926. package/esm/utilities/1_auth.d.ts.map +1 -1
  927. package/esm/utilities/1_auth.js +5 -6
  928. package/esm/utilities/1_base64.d.ts +3 -3
  929. package/esm/utilities/1_base64.d.ts.map +1 -1
  930. package/esm/utilities/1_base64.js +3 -3
  931. package/esm/utilities/1_crypto.d.ts +30 -0
  932. package/esm/utilities/1_crypto.d.ts.map +1 -0
  933. package/esm/utilities/1_crypto.js +90 -0
  934. package/esm/utilities/1_logger.d.ts +3 -3
  935. package/esm/utilities/1_logger.d.ts.map +1 -1
  936. package/esm/utilities/1_logger.js +5 -4
  937. package/esm/utilities/1_math.d.ts +1 -1
  938. package/esm/utilities/1_math.js +4 -4
  939. package/esm/utilities/2_queue.d.ts +2 -2
  940. package/esm/utilities/2_queue.d.ts.map +1 -1
  941. package/esm/utilities/2_queue.js +12 -8
  942. package/package.json +2 -4
  943. package/script/0_deps.d.ts +24 -11
  944. package/script/0_deps.d.ts.map +1 -1
  945. package/script/0_deps.js +51 -51
  946. package/script/0_errors.d.ts +9 -2
  947. package/script/0_errors.d.ts.map +1 -1
  948. package/script/0_errors.js +37 -2
  949. package/script/1_utilities.d.ts +6 -6
  950. package/script/1_utilities.d.ts.map +1 -1
  951. package/script/1_utilities.js +6 -6
  952. package/script/2_connection.d.ts +1 -1
  953. package/script/2_connection.js +1 -1
  954. package/script/2_storage.d.ts +1 -1
  955. package/script/2_storage.js +1 -1
  956. package/script/2_tl.d.ts +7 -10
  957. package/script/2_tl.d.ts.map +1 -1
  958. package/script/2_tl.js +25 -19
  959. package/script/3_errors.d.ts +8 -3
  960. package/script/3_errors.d.ts.map +1 -1
  961. package/script/3_errors.js +14 -5
  962. package/script/3_transport.d.ts +4 -4
  963. package/script/3_transport.js +4 -4
  964. package/script/3_types.d.ts +74 -34
  965. package/script/3_types.d.ts.map +1 -1
  966. package/script/3_types.js +74 -34
  967. package/script/4_constants.d.ts +21 -2
  968. package/script/4_constants.d.ts.map +1 -1
  969. package/script/4_constants.js +6 -29
  970. package/script/4_errors.d.ts +4 -4
  971. package/script/4_errors.d.ts.map +1 -1
  972. package/script/4_errors.js +1 -1
  973. package/script/4_session.d.ts +24 -0
  974. package/script/4_session.d.ts.map +1 -0
  975. package/script/4_session.js +39 -0
  976. package/script/5_client.d.ts +9 -3
  977. package/script/5_client.d.ts.map +1 -1
  978. package/script/5_client.js +9 -3
  979. package/script/_dnt.polyfills.d.ts +119 -0
  980. package/script/_dnt.polyfills.d.ts.map +1 -1
  981. package/script/_dnt.polyfills.js +248 -0
  982. package/script/_dnt.shims.d.ts +0 -1
  983. package/script/_dnt.shims.d.ts.map +1 -1
  984. package/script/client/0_abortable_loop.d.ts +27 -0
  985. package/script/client/0_abortable_loop.d.ts.map +1 -0
  986. package/script/client/0_abortable_loop.js +73 -0
  987. package/script/client/0_client_abstract.d.ts +31 -28
  988. package/script/client/0_client_abstract.d.ts.map +1 -1
  989. package/script/client/0_client_abstract.js +23 -115
  990. package/script/client/0_html.d.ts +4 -3
  991. package/script/client/0_html.d.ts.map +1 -1
  992. package/script/client/0_html.js +413 -74
  993. package/script/client/0_markdown.d.ts +2 -2
  994. package/script/client/0_markdown.d.ts.map +1 -1
  995. package/script/client/0_markdown.js +39 -19
  996. package/script/client/0_params.d.ts +327 -44
  997. package/script/client/0_params.d.ts.map +1 -1
  998. package/script/client/0_params.js +1 -1
  999. package/script/client/0_password.d.ts +6 -6
  1000. package/script/client/0_password.d.ts.map +1 -1
  1001. package/script/client/0_password.js +11 -11
  1002. package/script/client/0_storage_operations.d.ts +81 -69
  1003. package/script/client/0_storage_operations.d.ts.map +1 -1
  1004. package/script/client/0_storage_operations.js +354 -233
  1005. package/script/client/0_update_processor.d.ts +26 -0
  1006. package/script/client/0_update_processor.d.ts.map +1 -0
  1007. package/script/client/0_update_processor.js +21 -0
  1008. package/script/client/0_utilities.d.ts +10 -5
  1009. package/script/client/0_utilities.d.ts.map +1 -1
  1010. package/script/client/0_utilities.js +47 -32
  1011. package/script/client/0_worker_error.d.ts +26 -0
  1012. package/script/client/0_worker_error.d.ts.map +1 -0
  1013. package/script/client/0_worker_error.js +90 -0
  1014. package/script/client/0_worker_request.d.ts +27 -0
  1015. package/script/client/0_worker_request.d.ts.map +1 -0
  1016. package/script/client/0_worker_request.js +21 -0
  1017. package/script/client/1_client_generic.d.ts +1846 -0
  1018. package/script/client/1_client_generic.d.ts.map +1 -0
  1019. package/script/client/1_client_generic.js +28 -0
  1020. package/script/client/1_client_plain.d.ts +12 -9
  1021. package/script/client/1_client_plain.d.ts.map +1 -1
  1022. package/script/client/1_client_plain.js +39 -50
  1023. package/script/client/1_invoke_middleware.d.ts +32 -0
  1024. package/script/client/1_invoke_middleware.d.ts.map +1 -0
  1025. package/script/client/1_invoke_middleware.js +25 -0
  1026. package/script/client/1_types.d.ts +17 -32
  1027. package/script/client/1_types.d.ts.map +1 -1
  1028. package/script/client/1_types.js +1 -1
  1029. package/script/client/1_worker_response.d.ts +37 -0
  1030. package/script/client/1_worker_response.d.ts.map +1 -0
  1031. package/script/client/1_worker_response.js +21 -0
  1032. package/script/client/2_account_manager.d.ts +43 -5
  1033. package/script/client/2_account_manager.d.ts.map +1 -1
  1034. package/script/client/2_account_manager.js +336 -7
  1035. package/script/client/2_bot_info_manager.d.ts +12 -5
  1036. package/script/client/2_bot_info_manager.d.ts.map +1 -1
  1037. package/script/client/2_bot_info_manager.js +15 -1
  1038. package/script/client/2_business_connection_manager.d.ts +6 -5
  1039. package/script/client/2_business_connection_manager.d.ts.map +1 -1
  1040. package/script/client/2_business_connection_manager.js +8 -8
  1041. package/script/client/2_client_encrypted.d.ts +58 -0
  1042. package/script/client/2_client_encrypted.d.ts.map +1 -0
  1043. package/script/client/2_client_encrypted.js +294 -0
  1044. package/script/client/2_file_manager.d.ts +27 -7
  1045. package/script/client/2_file_manager.d.ts.map +1 -1
  1046. package/script/client/2_file_manager.js +240 -218
  1047. package/script/client/2_network_statistics_manager.d.ts +5 -5
  1048. package/script/client/2_network_statistics_manager.d.ts.map +1 -1
  1049. package/script/client/2_network_statistics_manager.js +36 -10
  1050. package/script/client/2_payment_manager.d.ts +8 -7
  1051. package/script/client/2_payment_manager.d.ts.map +1 -1
  1052. package/script/client/2_payment_manager.js +6 -6
  1053. package/script/client/2_reaction_manager.d.ts +6 -5
  1054. package/script/client/2_reaction_manager.d.ts.map +1 -1
  1055. package/script/client/2_reaction_manager.js +13 -13
  1056. package/script/client/2_sign_in.d.ts +25 -0
  1057. package/script/client/2_sign_in.d.ts.map +1 -0
  1058. package/script/client/2_sign_in.js +118 -0
  1059. package/script/client/2_translations_manager.d.ts +35 -0
  1060. package/script/client/2_translations_manager.d.ts.map +1 -0
  1061. package/script/client/2_translations_manager.js +175 -0
  1062. package/script/client/2_update_manager.d.ts +11 -8
  1063. package/script/client/2_update_manager.d.ts.map +1 -1
  1064. package/script/client/2_update_manager.js +351 -293
  1065. package/script/client/3_client_encrypted_pool.d.ts +29 -0
  1066. package/script/client/3_client_encrypted_pool.d.ts.map +1 -0
  1067. package/script/client/3_client_encrypted_pool.js +67 -0
  1068. package/script/client/3_filters.d.ts +96 -0
  1069. package/script/client/3_filters.d.ts.map +1 -0
  1070. package/script/client/3_filters.js +55 -0
  1071. package/script/client/3_message_manager.d.ts +30 -35
  1072. package/script/client/3_message_manager.d.ts.map +1 -1
  1073. package/script/client/3_message_manager.js +785 -487
  1074. package/script/client/3_video_chat_manager.d.ts +11 -10
  1075. package/script/client/3_video_chat_manager.d.ts.map +1 -1
  1076. package/script/client/3_video_chat_manager.js +46 -43
  1077. package/script/client/4_callback_query_manager.d.ts +9 -8
  1078. package/script/client/4_callback_query_manager.d.ts.map +1 -1
  1079. package/script/client/4_callback_query_manager.js +13 -12
  1080. package/script/client/4_chat_list_manager.d.ts +20 -11
  1081. package/script/client/4_chat_list_manager.d.ts.map +1 -1
  1082. package/script/client/4_chat_list_manager.js +141 -365
  1083. package/script/client/4_chat_manager.d.ts +86 -0
  1084. package/script/client/4_chat_manager.d.ts.map +1 -0
  1085. package/script/client/4_chat_manager.js +490 -0
  1086. package/script/client/4_checklist_manager.d.ts +38 -0
  1087. package/script/client/4_checklist_manager.d.ts.map +1 -0
  1088. package/script/client/4_checklist_manager.js +85 -0
  1089. package/script/client/4_context.d.ts +691 -0
  1090. package/script/client/4_context.d.ts.map +1 -0
  1091. package/script/client/4_context.js +1425 -0
  1092. package/script/client/4_forum_manager.d.ts +40 -0
  1093. package/script/client/4_forum_manager.d.ts.map +1 -0
  1094. package/script/client/4_forum_manager.js +138 -0
  1095. package/script/client/4_gift_manager.d.ts +39 -0
  1096. package/script/client/4_gift_manager.d.ts.map +1 -0
  1097. package/script/client/4_gift_manager.js +101 -0
  1098. package/script/client/4_inline_query_manager.d.ts +10 -9
  1099. package/script/client/4_inline_query_manager.d.ts.map +1 -1
  1100. package/script/client/4_inline_query_manager.js +13 -13
  1101. package/script/client/4_link_preview_manager.d.ts +39 -0
  1102. package/script/client/4_link_preview_manager.d.ts.map +1 -0
  1103. package/script/client/4_link_preview_manager.js +68 -0
  1104. package/script/client/4_poll_manager.d.ts +39 -0
  1105. package/script/client/4_poll_manager.d.ts.map +1 -0
  1106. package/script/client/4_poll_manager.js +122 -0
  1107. package/script/client/4_story_manager.d.ts +11 -10
  1108. package/script/client/4_story_manager.d.ts.map +1 -1
  1109. package/script/client/4_story_manager.js +20 -20
  1110. package/script/client/5_composer.d.ts +51 -0
  1111. package/script/client/5_composer.d.ts.map +1 -0
  1112. package/script/client/5_composer.js +126 -0
  1113. package/script/client/6_client.d.ts +1952 -0
  1114. package/script/client/6_client.d.ts.map +1 -0
  1115. package/script/client/6_client.js +3444 -0
  1116. package/script/client/6_client_dispatcher.d.ts +1917 -0
  1117. package/script/client/6_client_dispatcher.d.ts.map +1 -0
  1118. package/script/client/6_client_dispatcher.js +2497 -0
  1119. package/script/client/7_client_worker.d.ts +27 -0
  1120. package/script/client/7_client_worker.d.ts.map +1 -0
  1121. package/script/client/7_client_worker.js +93 -0
  1122. package/script/connection/0_connection.d.ts +9 -8
  1123. package/script/connection/0_connection.d.ts.map +1 -1
  1124. package/script/connection/0_connection.js +1 -1
  1125. package/script/connection/1_connection_tcp.d.ts +4 -5
  1126. package/script/connection/1_connection_tcp.d.ts.map +1 -1
  1127. package/script/connection/1_connection_tcp.js +28 -52
  1128. package/script/connection/1_connection_web_socket.d.ts +3 -3
  1129. package/script/connection/1_connection_web_socket.d.ts.map +1 -1
  1130. package/script/connection/1_connection_web_socket.js +10 -13
  1131. package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.d.ts +18 -0
  1132. package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.d.ts.map +1 -0
  1133. package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.js +71 -0
  1134. package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.d.ts +3 -0
  1135. package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.d.ts.map +1 -0
  1136. package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.js +303 -0
  1137. package/script/deps/jsr.io/@std/assert/1.0.19/assert.d.ts +17 -0
  1138. package/script/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
  1139. package/script/deps/jsr.io/@std/assert/1.0.19/assert.js +26 -0
  1140. package/script/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
  1141. package/script/deps/jsr.io/@std/assert/1.0.19/assertion_error.js +34 -0
  1142. package/script/deps/jsr.io/@std/assert/1.0.19/equal.d.ts +25 -0
  1143. package/script/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
  1144. package/script/deps/jsr.io/@std/assert/1.0.19/equal.js +230 -0
  1145. package/script/deps/jsr.io/@std/assert/1.0.19/equals.d.ts +37 -0
  1146. package/script/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
  1147. package/script/deps/jsr.io/@std/assert/1.0.19/equals.js +64 -0
  1148. package/script/deps/jsr.io/@std/assert/1.0.19/false.d.ts +19 -0
  1149. package/script/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
  1150. package/script/deps/jsr.io/@std/assert/1.0.19/false.js +26 -0
  1151. package/script/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
  1152. package/script/deps/jsr.io/@std/assert/1.0.19/unreachable.js +23 -0
  1153. package/script/deps/jsr.io/@std/async/1.2.0/_util.d.ts +2 -0
  1154. package/script/deps/jsr.io/@std/async/1.2.0/_util.d.ts.map +1 -0
  1155. package/script/deps/jsr.io/@std/async/1.2.0/_util.js +9 -0
  1156. package/script/deps/jsr.io/@std/async/1.2.0/abortable.d.ts +107 -0
  1157. package/script/deps/jsr.io/@std/async/1.2.0/abortable.d.ts.map +1 -0
  1158. package/script/deps/jsr.io/@std/async/1.2.0/abortable.js +49 -0
  1159. package/script/deps/jsr.io/@std/async/1.2.0/deadline.d.ts +37 -0
  1160. package/script/deps/jsr.io/@std/async/1.2.0/deadline.d.ts.map +1 -0
  1161. package/script/deps/jsr.io/@std/async/1.2.0/deadline.js +44 -0
  1162. package/script/deps/jsr.io/@std/async/1.2.0/debounce.d.ts +44 -0
  1163. package/script/deps/jsr.io/@std/async/1.2.0/debounce.d.ts.map +1 -0
  1164. package/script/deps/jsr.io/@std/async/1.2.0/debounce.js +60 -0
  1165. package/script/deps/jsr.io/@std/async/1.2.0/delay.d.ts +45 -0
  1166. package/script/deps/jsr.io/@std/async/1.2.0/delay.d.ts.map +1 -0
  1167. package/script/deps/jsr.io/@std/async/1.2.0/delay.js +87 -0
  1168. package/script/deps/jsr.io/@std/async/1.2.0/mod.d.ts +22 -0
  1169. package/script/deps/jsr.io/@std/async/1.2.0/mod.d.ts.map +1 -0
  1170. package/script/deps/jsr.io/@std/async/1.2.0/mod.js +39 -0
  1171. package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts +111 -0
  1172. package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts.map +1 -0
  1173. package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.js +174 -0
  1174. package/script/deps/jsr.io/@std/async/1.2.0/pool.d.ts +33 -0
  1175. package/script/deps/jsr.io/@std/async/1.2.0/pool.d.ts.map +1 -0
  1176. package/script/deps/jsr.io/@std/async/1.2.0/pool.js +102 -0
  1177. package/script/deps/jsr.io/@std/async/1.2.0/retry.d.ts +155 -0
  1178. package/script/deps/jsr.io/@std/async/1.2.0/retry.d.ts.map +1 -0
  1179. package/script/deps/jsr.io/@std/async/1.2.0/retry.js +152 -0
  1180. package/script/deps/jsr.io/@std/async/1.2.0/tee.d.ts +43 -0
  1181. package/script/deps/jsr.io/@std/async/1.2.0/tee.d.ts.map +1 -0
  1182. package/script/deps/jsr.io/@std/async/1.2.0/tee.js +105 -0
  1183. package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
  1184. package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
  1185. package/script/deps/jsr.io/@std/bytes/1.0.6/_types.js +3 -0
  1186. package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
  1187. package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
  1188. package/script/deps/jsr.io/@std/bytes/1.0.6/concat.js +35 -0
  1189. package/script/deps/jsr.io/@std/bytes/1.0.6/equals.d.ts +22 -0
  1190. package/script/deps/jsr.io/@std/bytes/1.0.6/equals.d.ts.map +1 -0
  1191. package/script/deps/jsr.io/@std/bytes/1.0.6/equals.js +85 -0
  1192. package/script/deps/jsr.io/@std/bytes/1.0.6/starts_with.d.ts +24 -0
  1193. package/script/deps/jsr.io/@std/bytes/1.0.6/starts_with.d.ts.map +1 -0
  1194. package/script/deps/jsr.io/@std/bytes/1.0.6/starts_with.js +37 -0
  1195. package/script/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.d.ts +12 -0
  1196. package/script/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.d.ts.map +1 -0
  1197. package/script/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.js +72 -0
  1198. package/script/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts +155 -0
  1199. package/script/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts.map +1 -0
  1200. package/script/deps/jsr.io/@std/cache/0.2.2/lru_cache.js +209 -0
  1201. package/script/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts +111 -0
  1202. package/script/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts.map +1 -0
  1203. package/script/deps/jsr.io/@std/cache/0.2.2/memoize.js +85 -0
  1204. package/script/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.d.ts +19 -0
  1205. package/script/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.d.ts.map +1 -0
  1206. package/script/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.js +554 -0
  1207. package/script/deps/jsr.io/@std/datetime/0.225.7/constants.d.ts +265 -0
  1208. package/script/deps/jsr.io/@std/datetime/0.225.7/constants.d.ts.map +1 -0
  1209. package/script/deps/jsr.io/@std/datetime/0.225.7/constants.js +269 -0
  1210. package/script/deps/jsr.io/@std/datetime/0.225.7/format.d.ts +70 -0
  1211. package/script/deps/jsr.io/@std/datetime/0.225.7/format.d.ts.map +1 -0
  1212. package/script/deps/jsr.io/@std/datetime/0.225.7/format.js +69 -0
  1213. package/script/deps/jsr.io/@std/encoding/1.0.10/_common16.d.ts +23 -0
  1214. package/script/deps/jsr.io/@std/encoding/1.0.10/_common16.d.ts.map +1 -0
  1215. package/script/deps/jsr.io/@std/encoding/1.0.10/_common16.js +57 -0
  1216. package/script/deps/jsr.io/@std/encoding/1.0.10/_common64.d.ts +35 -0
  1217. package/script/deps/jsr.io/@std/encoding/1.0.10/_common64.d.ts.map +1 -0
  1218. package/script/deps/jsr.io/@std/encoding/1.0.10/_common64.js +119 -0
  1219. package/script/deps/jsr.io/@std/encoding/1.0.10/_common_detach.d.ts +4 -0
  1220. package/script/deps/jsr.io/@std/encoding/1.0.10/_common_detach.d.ts.map +1 -0
  1221. package/script/deps/jsr.io/@std/encoding/1.0.10/_common_detach.js +16 -0
  1222. package/script/deps/jsr.io/@std/encoding/1.0.10/_types.d.ts +9 -0
  1223. package/script/deps/jsr.io/@std/encoding/1.0.10/_types.d.ts.map +1 -0
  1224. package/script/deps/jsr.io/@std/encoding/1.0.10/_types.js +3 -0
  1225. package/script/deps/jsr.io/@std/encoding/1.0.10/base64.d.ts +40 -0
  1226. package/script/deps/jsr.io/@std/encoding/1.0.10/base64.d.ts.map +1 -0
  1227. package/script/deps/jsr.io/@std/encoding/1.0.10/base64.js +86 -0
  1228. package/script/deps/jsr.io/@std/encoding/1.0.10/hex.d.ts +39 -0
  1229. package/script/deps/jsr.io/@std/encoding/1.0.10/hex.d.ts.map +1 -0
  1230. package/script/deps/jsr.io/@std/encoding/1.0.10/hex.js +91 -0
  1231. package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
  1232. package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
  1233. package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +48 -0
  1234. package/script/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts +80 -0
  1235. package/script/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
  1236. package/script/deps/jsr.io/@std/internal/1.0.12/build_message.js +121 -0
  1237. package/script/deps/jsr.io/@std/internal/1.0.12/diff.d.ts.map +1 -0
  1238. package/script/deps/jsr.io/@std/internal/1.0.12/diff.js +283 -0
  1239. package/script/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
  1240. package/script/deps/jsr.io/@std/internal/1.0.12/diff_str.js +188 -0
  1241. package/script/deps/jsr.io/@std/internal/1.0.12/format.d.ts +29 -0
  1242. package/script/deps/jsr.io/@std/internal/1.0.12/format.d.ts.map +1 -0
  1243. package/script/deps/jsr.io/@std/internal/1.0.12/format.js +106 -0
  1244. package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
  1245. package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
  1246. package/script/deps/jsr.io/@std/internal/1.0.12/os.js +8 -0
  1247. package/script/deps/jsr.io/@std/internal/1.0.12/styles.d.ts.map +1 -0
  1248. package/script/deps/jsr.io/@std/internal/1.0.12/styles.js +252 -0
  1249. package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts +25 -0
  1250. package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
  1251. package/script/deps/jsr.io/@std/internal/1.0.12/types.js +4 -0
  1252. package/script/deps/jsr.io/@std/io/0.225.3/_constants.d.ts.map +1 -0
  1253. package/script/deps/jsr.io/@std/io/0.225.3/_constants.js +7 -0
  1254. package/script/deps/jsr.io/@std/io/0.225.3/iterate_reader.d.ts.map +1 -0
  1255. package/script/deps/jsr.io/@std/io/0.225.3/iterate_reader.js +100 -0
  1256. package/script/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
  1257. package/script/deps/jsr.io/@std/io/0.225.3/types.js +18 -0
  1258. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
  1259. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +1 -0
  1260. package/script/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +1 -0
  1261. package/script/deps/jsr.io/@std/media-types/1.1.0/all_extensions.d.ts.map +1 -0
  1262. package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +1 -0
  1263. package/script/deps/jsr.io/@std/media-types/1.1.0/extension.d.ts.map +1 -0
  1264. package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +1 -0
  1265. package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +1 -0
  1266. package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +1 -0
  1267. package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
  1268. package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +9103 -0
  1269. package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +1 -0
  1270. package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +9140 -0
  1271. package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
  1272. package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +10 -0
  1273. package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
  1274. package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.js +45 -0
  1275. package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
  1276. package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.js +49 -0
  1277. package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
  1278. package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +12 -0
  1279. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
  1280. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +11 -0
  1281. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
  1282. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +80 -0
  1283. package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
  1284. package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +22 -0
  1285. package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
  1286. package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +18 -0
  1287. package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
  1288. package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
  1289. package/script/deps/jsr.io/@std/path/1.1.4/basename.js +38 -0
  1290. package/script/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
  1291. package/script/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
  1292. package/script/deps/jsr.io/@std/path/1.1.4/extname.js +31 -0
  1293. package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
  1294. package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.js +31 -0
  1295. package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
  1296. package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
  1297. package/script/deps/jsr.io/@std/path/1.1.4/join.js +32 -0
  1298. package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
  1299. package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.js +11 -0
  1300. package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
  1301. package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
  1302. package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.js +55 -0
  1303. package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
  1304. package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
  1305. package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.js +96 -0
  1306. package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
  1307. package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +24 -0
  1308. package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
  1309. package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +26 -0
  1310. package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
  1311. package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
  1312. package/script/deps/jsr.io/@std/path/1.1.4/posix/join.js +48 -0
  1313. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
  1314. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
  1315. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +61 -0
  1316. package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
  1317. package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +30 -0
  1318. package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
  1319. package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.js +31 -0
  1320. package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
  1321. package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.js +20 -0
  1322. package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
  1323. package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
  1324. package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.js +50 -0
  1325. package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
  1326. package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
  1327. package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.js +85 -0
  1328. package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
  1329. package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +33 -0
  1330. package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
  1331. package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +41 -0
  1332. package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
  1333. package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
  1334. package/script/deps/jsr.io/@std/path/1.1.4/windows/join.js +80 -0
  1335. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
  1336. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
  1337. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +138 -0
  1338. package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
  1339. package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +37 -0
  1340. package/script/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts +22 -0
  1341. package/script/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts.map +1 -0
  1342. package/script/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.js +38 -0
  1343. package/script/mod.d.ts +2 -2
  1344. package/script/mod.d.ts.map +1 -1
  1345. package/script/mod.js +19 -10
  1346. package/script/session/0_session_error.d.ts +24 -0
  1347. package/script/session/0_session_error.d.ts.map +1 -0
  1348. package/script/session/0_session_error.js +29 -0
  1349. package/script/session/0_session_state.d.ts +28 -0
  1350. package/script/session/0_session_state.d.ts.map +1 -0
  1351. package/script/session/0_session_state.js +81 -0
  1352. package/script/session/1_session.d.ts +51 -0
  1353. package/script/session/1_session.d.ts.map +1 -0
  1354. package/script/session/1_session.js +151 -0
  1355. package/script/session/2_session_encrypted.d.ts +41 -0
  1356. package/script/session/2_session_encrypted.d.ts.map +1 -0
  1357. package/script/session/2_session_encrypted.js +511 -0
  1358. package/script/session/2_session_plain.d.ts +25 -0
  1359. package/script/session/2_session_plain.d.ts.map +1 -0
  1360. package/script/session/2_session_plain.js +60 -0
  1361. package/script/storage/0_storage.d.ts +3 -2
  1362. package/script/storage/0_storage.d.ts.map +1 -1
  1363. package/script/storage/0_storage.js +1 -1
  1364. package/script/storage/1_utilities.d.ts +15 -11
  1365. package/script/storage/1_utilities.d.ts.map +1 -1
  1366. package/script/storage/1_utilities.js +47 -55
  1367. package/script/storage/2_storage_indexed_db.d.ts +3 -2
  1368. package/script/storage/2_storage_indexed_db.d.ts.map +1 -1
  1369. package/script/storage/2_storage_indexed_db.js +7 -4
  1370. package/script/storage/2_storage_local_storage.d.ts +3 -2
  1371. package/script/storage/2_storage_local_storage.d.ts.map +1 -1
  1372. package/script/storage/2_storage_local_storage.js +7 -4
  1373. package/script/storage/2_storage_memory.d.ts +4 -3
  1374. package/script/storage/2_storage_memory.d.ts.map +1 -1
  1375. package/script/storage/2_storage_memory.js +6 -3
  1376. package/script/storage/2_storage_session_storage.d.ts +4 -3
  1377. package/script/storage/2_storage_session_storage.d.ts.map +1 -1
  1378. package/script/storage/2_storage_session_storage.js +7 -4
  1379. package/script/tl/0_types.d.ts +25 -0
  1380. package/script/tl/0_types.d.ts.map +1 -0
  1381. package/script/tl/0_types.js +21 -0
  1382. package/script/tl/0_utilities.d.ts +34 -0
  1383. package/script/tl/0_utilities.d.ts.map +1 -0
  1384. package/script/tl/0_utilities.js +89 -0
  1385. package/script/tl/1_mtproto_api.d.ts +371 -0
  1386. package/script/tl/1_mtproto_api.d.ts.map +1 -0
  1387. package/script/tl/1_mtproto_api.js +419 -0
  1388. package/script/tl/1_telegram_api.d.ts +19410 -0
  1389. package/script/tl/1_telegram_api.d.ts.map +1 -0
  1390. package/script/tl/1_telegram_api.js +22389 -0
  1391. package/script/tl/1_tl_reader.d.ts +39 -0
  1392. package/script/tl/1_tl_reader.d.ts.map +1 -0
  1393. package/script/tl/1_tl_reader.js +232 -0
  1394. package/script/tl/1_tl_writer.d.ts +37 -0
  1395. package/script/tl/1_tl_writer.d.ts.map +1 -0
  1396. package/script/tl/1_tl_writer.js +282 -0
  1397. package/script/tl/1_utilities.d.ts +9 -14
  1398. package/script/tl/1_utilities.d.ts.map +1 -1
  1399. package/script/tl/1_utilities.js +23 -44
  1400. package/script/tl/2_message.d.ts +36 -0
  1401. package/script/tl/2_message.d.ts.map +1 -0
  1402. package/script/tl/2_message.js +80 -0
  1403. package/script/tl/2_mtproto.d.ts +33 -0
  1404. package/script/tl/2_mtproto.d.ts.map +1 -0
  1405. package/script/tl/2_mtproto.js +78 -0
  1406. package/script/tl/2_telegram.d.ts +49 -0
  1407. package/script/tl/2_telegram.d.ts.map +1 -0
  1408. package/script/tl/2_telegram.js +189 -0
  1409. package/script/transport/0_obfuscation.d.ts +2 -2
  1410. package/script/transport/0_obfuscation.d.ts.map +1 -1
  1411. package/script/transport/0_obfuscation.js +9 -8
  1412. package/script/transport/0_transport.d.ts +4 -6
  1413. package/script/transport/0_transport.d.ts.map +1 -1
  1414. package/script/transport/0_transport.js +10 -11
  1415. package/script/transport/1_transport_abridged.d.ts +2 -4
  1416. package/script/transport/1_transport_abridged.d.ts.map +1 -1
  1417. package/script/transport/1_transport_abridged.js +16 -33
  1418. package/script/transport/1_transport_intermediate.d.ts +2 -4
  1419. package/script/transport/1_transport_intermediate.d.ts.map +1 -1
  1420. package/script/transport/1_transport_intermediate.js +11 -30
  1421. package/script/transport/1_transport_provider.d.ts +35 -0
  1422. package/script/transport/1_transport_provider.d.ts.map +1 -0
  1423. package/script/transport/1_transport_provider.js +86 -0
  1424. package/script/transport/2_transport_provider_tcp.d.ts +25 -0
  1425. package/script/transport/2_transport_provider_tcp.d.ts.map +1 -0
  1426. package/script/transport/2_transport_provider_tcp.js +32 -0
  1427. package/script/transport/2_transport_provider_web_socket.d.ts +24 -0
  1428. package/script/transport/2_transport_provider_web_socket.d.ts.map +1 -0
  1429. package/script/transport/2_transport_provider_web_socket.js +47 -0
  1430. package/script/types/0_authorization_state.d.ts +2 -2
  1431. package/script/types/0_authorization_state.d.ts.map +1 -1
  1432. package/script/types/0_authorization_state.js +1 -1
  1433. package/script/types/0_birthday.d.ts +3 -2
  1434. package/script/types/0_birthday.d.ts.map +1 -1
  1435. package/script/types/0_birthday.js +11 -1
  1436. package/script/types/0_bot_command.d.ts +1 -1
  1437. package/script/types/0_bot_command.js +1 -1
  1438. package/script/types/0_bot_token_check_result.d.ts +31 -0
  1439. package/script/types/0_bot_token_check_result.d.ts.map +1 -0
  1440. package/script/types/0_bot_token_check_result.js +21 -0
  1441. package/script/types/0_button_style.d.ts +28 -0
  1442. package/script/types/0_button_style.d.ts.map +1 -0
  1443. package/script/types/0_button_style.js +40 -0
  1444. package/script/types/0_callback_query_answer.d.ts +3 -3
  1445. package/script/types/0_callback_query_answer.d.ts.map +1 -1
  1446. package/script/types/0_callback_query_answer.js +2 -2
  1447. package/script/types/0_callback_query_question.d.ts +1 -1
  1448. package/script/types/0_callback_query_question.js +3 -3
  1449. package/script/types/0_chat_action.d.ts +1 -1
  1450. package/script/types/0_chat_action.js +1 -1
  1451. package/script/types/0_chat_administrator_rights.d.ts +17 -7
  1452. package/script/types/0_chat_administrator_rights.d.ts.map +1 -1
  1453. package/script/types/0_chat_administrator_rights.js +31 -16
  1454. package/script/types/0_chat_folder.d.ts +29 -0
  1455. package/script/types/0_chat_folder.d.ts.map +1 -0
  1456. package/script/types/0_chat_folder.js +28 -0
  1457. package/script/types/0_chat_member_rights.d.ts +3 -3
  1458. package/script/types/0_chat_member_rights.d.ts.map +1 -1
  1459. package/script/types/0_chat_member_rights.js +22 -22
  1460. package/script/types/0_chat_photo.d.ts +2 -2
  1461. package/script/types/0_chat_photo.d.ts.map +1 -1
  1462. package/script/types/0_chat_photo.js +4 -4
  1463. package/script/types/0_checklist_changed.d.ts +29 -0
  1464. package/script/types/0_checklist_changed.d.ts.map +1 -0
  1465. package/script/types/0_checklist_changed.js +28 -0
  1466. package/script/types/0_code_check_result.d.ts +47 -0
  1467. package/script/types/0_code_check_result.d.ts.map +1 -0
  1468. package/script/types/0_code_check_result.js +21 -0
  1469. package/script/types/0_connection_state.d.ts +1 -1
  1470. package/script/types/0_connection_state.js +1 -1
  1471. package/script/types/0_contact.d.ts +2 -2
  1472. package/script/types/0_contact.d.ts.map +1 -1
  1473. package/script/types/0_contact.js +4 -3
  1474. package/script/types/0_dice.d.ts +2 -2
  1475. package/script/types/0_dice.d.ts.map +1 -1
  1476. package/script/types/0_dice.js +1 -1
  1477. package/script/types/0_emoji_status.d.ts +48 -0
  1478. package/script/types/0_emoji_status.d.ts.map +1 -0
  1479. package/script/types/0_emoji_status.js +36 -0
  1480. package/script/types/0_failed_invitation.d.ts +8 -4
  1481. package/script/types/0_failed_invitation.d.ts.map +1 -1
  1482. package/script/types/0_failed_invitation.js +3 -3
  1483. package/script/types/0_file_source.d.ts +2 -2
  1484. package/script/types/0_file_source.d.ts.map +1 -1
  1485. package/script/types/0_file_source.js +1 -1
  1486. package/script/types/0_gift_component_rarity.d.ts +50 -0
  1487. package/script/types/0_gift_component_rarity.d.ts.map +1 -0
  1488. package/script/types/0_gift_component_rarity.js +46 -0
  1489. package/script/types/0_gift_value.d.ts +25 -0
  1490. package/script/types/0_gift_value.d.ts.map +1 -0
  1491. package/script/types/0_gift_value.js +21 -0
  1492. package/script/types/0_giveaway_parameters.d.ts +2 -2
  1493. package/script/types/0_giveaway_parameters.d.ts.map +1 -1
  1494. package/script/types/0_giveaway_parameters.js +4 -5
  1495. package/script/types/0_id.d.ts +1 -1
  1496. package/script/types/0_id.js +1 -1
  1497. package/script/types/0_input_emoji_status.d.ts +36 -0
  1498. package/script/types/0_input_emoji_status.d.ts.map +1 -0
  1499. package/script/types/0_input_emoji_status.js +21 -0
  1500. package/script/types/0_invoice.d.ts +3 -2
  1501. package/script/types/0_invoice.d.ts.map +1 -1
  1502. package/script/types/0_invoice.js +1 -1
  1503. package/script/types/0_keyboard_button_poll_type.d.ts +1 -1
  1504. package/script/types/0_keyboard_button_poll_type.js +1 -1
  1505. package/script/types/0_link_preview_media_size.d.ts +22 -0
  1506. package/script/types/0_link_preview_media_size.d.ts.map +1 -0
  1507. package/script/types/0_link_preview_media_size.js +21 -0
  1508. package/script/types/0_live_stream_channel.d.ts +2 -2
  1509. package/script/types/0_live_stream_channel.d.ts.map +1 -1
  1510. package/script/types/0_live_stream_channel.js +1 -1
  1511. package/script/types/0_location.d.ts +1 -1
  1512. package/script/types/0_location.d.ts.map +1 -1
  1513. package/script/types/0_location.js +12 -11
  1514. package/script/types/0_login_url.d.ts +1 -1
  1515. package/script/types/0_login_url.js +1 -1
  1516. package/script/types/0_mask_position.d.ts +2 -2
  1517. package/script/types/0_mask_position.d.ts.map +1 -1
  1518. package/script/types/0_mask_position.js +2 -2
  1519. package/script/types/0_message_reference.d.ts +1 -1
  1520. package/script/types/0_message_reference.js +1 -1
  1521. package/script/types/0_message_search_filter.d.ts +3 -2
  1522. package/script/types/0_message_search_filter.d.ts.map +1 -1
  1523. package/script/types/0_message_search_filter.js +1 -1
  1524. package/script/types/0_mini_app_button_info.d.ts +26 -0
  1525. package/script/types/0_mini_app_button_info.d.ts.map +1 -0
  1526. package/script/types/0_mini_app_button_info.js +25 -0
  1527. package/script/types/0_mini_app_mode.d.ts +22 -0
  1528. package/script/types/0_mini_app_mode.d.ts.map +1 -0
  1529. package/script/types/0_mini_app_mode.js +21 -0
  1530. package/script/types/0_network_statistics_entry.d.ts +1 -1
  1531. package/script/types/0_network_statistics_entry.js +1 -1
  1532. package/script/types/0_parse_mode.d.ts +1 -1
  1533. package/script/types/0_parse_mode.js +1 -1
  1534. package/script/types/0_password_check_result.d.ts +39 -0
  1535. package/script/types/0_password_check_result.d.ts.map +1 -0
  1536. package/script/types/0_password_check_result.js +21 -0
  1537. package/script/types/0_price_tag.d.ts +1 -1
  1538. package/script/types/0_price_tag.js +1 -1
  1539. package/script/types/0_reaction.d.ts +4 -1
  1540. package/script/types/0_reaction.d.ts.map +1 -1
  1541. package/script/types/0_reaction.js +9 -9
  1542. package/script/types/0_refunded_payment.d.ts +2 -2
  1543. package/script/types/0_refunded_payment.d.ts.map +1 -1
  1544. package/script/types/0_refunded_payment.js +2 -2
  1545. package/script/types/0_restriction_reason.d.ts +2 -2
  1546. package/script/types/0_restriction_reason.d.ts.map +1 -1
  1547. package/script/types/0_restriction_reason.js +1 -1
  1548. package/script/types/0_self_destruct_option.d.ts +11 -3
  1549. package/script/types/0_self_destruct_option.d.ts.map +1 -1
  1550. package/script/types/0_self_destruct_option.js +13 -3
  1551. package/script/types/0_shipping_address.d.ts +2 -2
  1552. package/script/types/0_shipping_address.d.ts.map +1 -1
  1553. package/script/types/0_shipping_address.js +1 -1
  1554. package/script/types/0_slow_mode_duration.d.ts +23 -0
  1555. package/script/types/0_slow_mode_duration.d.ts.map +1 -0
  1556. package/script/types/0_slow_mode_duration.js +31 -0
  1557. package/script/types/0_story_reference.d.ts +1 -1
  1558. package/script/types/0_story_reference.js +1 -1
  1559. package/script/types/0_switch_inline_query_chosen_chats.d.ts +20 -0
  1560. package/script/types/0_switch_inline_query_chosen_chats.d.ts.map +1 -1
  1561. package/script/types/0_switch_inline_query_chosen_chats.js +19 -0
  1562. package/script/types/0_thumbnail.d.ts +1 -1
  1563. package/script/types/0_thumbnail.d.ts.map +1 -1
  1564. package/script/types/0_thumbnail.js +3 -3
  1565. package/script/types/0_translation.d.ts +32 -0
  1566. package/script/types/0_translation.d.ts.map +1 -0
  1567. package/script/types/0_translation.js +48 -0
  1568. package/script/types/0_upload_progress.d.ts +29 -0
  1569. package/script/types/0_upload_progress.d.ts.map +1 -0
  1570. package/script/types/0_upload_progress.js +21 -0
  1571. package/script/types/0_user_status.d.ts +66 -0
  1572. package/script/types/0_user_status.d.ts.map +1 -0
  1573. package/script/types/0_user_status.js +38 -0
  1574. package/script/types/0_video_chat.d.ts +8 -4
  1575. package/script/types/0_video_chat.d.ts.map +1 -1
  1576. package/script/types/0_video_chat.js +6 -7
  1577. package/script/types/0_voice.d.ts +2 -2
  1578. package/script/types/0_voice.d.ts.map +1 -1
  1579. package/script/types/0_voice.js +1 -1
  1580. package/script/types/0_voice_transcription.d.ts +31 -0
  1581. package/script/types/0_voice_transcription.d.ts.map +1 -0
  1582. package/script/types/0_voice_transcription.js +29 -0
  1583. package/script/types/0_working_hours_interval.d.ts +27 -0
  1584. package/script/types/0_working_hours_interval.d.ts.map +1 -0
  1585. package/script/types/0_working_hours_interval.js +21 -0
  1586. package/script/types/1_animation.d.ts +2 -2
  1587. package/script/types/1_animation.d.ts.map +1 -1
  1588. package/script/types/1_animation.js +5 -4
  1589. package/script/types/1_audio.d.ts +2 -2
  1590. package/script/types/1_audio.d.ts.map +1 -1
  1591. package/script/types/1_audio.js +5 -4
  1592. package/script/types/1_bot_command_scope.d.ts +3 -3
  1593. package/script/types/1_bot_command_scope.d.ts.map +1 -1
  1594. package/script/types/1_bot_command_scope.js +3 -3
  1595. package/script/types/1_bot_commands.d.ts +30 -0
  1596. package/script/types/1_bot_commands.d.ts.map +1 -0
  1597. package/script/types/1_bot_commands.js +21 -0
  1598. package/script/types/1_chat_p.d.ts +36 -7
  1599. package/script/types/1_chat_p.d.ts.map +1 -1
  1600. package/script/types/1_chat_p.js +43 -16
  1601. package/script/types/1_document.d.ts +2 -2
  1602. package/script/types/1_document.d.ts.map +1 -1
  1603. package/script/types/1_document.js +2 -2
  1604. package/script/types/1_giveaway.d.ts +3 -3
  1605. package/script/types/1_giveaway.d.ts.map +1 -1
  1606. package/script/types/1_giveaway.js +1 -1
  1607. package/script/types/1_inline_keyboard_button.d.ts +140 -0
  1608. package/script/types/1_inline_keyboard_button.d.ts.map +1 -0
  1609. package/script/types/1_inline_keyboard_button.js +132 -0
  1610. package/script/types/1_inline_query_result_button.d.ts +3 -3
  1611. package/script/types/1_inline_query_result_button.d.ts.map +1 -1
  1612. package/script/types/1_inline_query_result_button.js +1 -1
  1613. package/script/types/1_input_gift.d.ts +54 -0
  1614. package/script/types/1_input_gift.d.ts.map +1 -0
  1615. package/script/types/1_input_gift.js +35 -0
  1616. package/script/types/1_input_story_content.d.ts +3 -3
  1617. package/script/types/1_input_story_content.d.ts.map +1 -1
  1618. package/script/types/1_input_story_content.js +1 -1
  1619. package/script/types/1_keyboard_button.d.ts +14 -12
  1620. package/script/types/1_keyboard_button.d.ts.map +1 -1
  1621. package/script/types/1_keyboard_button.js +86 -33
  1622. package/script/types/1_message_reaction.d.ts +3 -3
  1623. package/script/types/1_message_reaction.d.ts.map +1 -1
  1624. package/script/types/1_message_reaction.js +7 -7
  1625. package/script/types/1_mini_app_info.d.ts +32 -0
  1626. package/script/types/1_mini_app_info.d.ts.map +1 -0
  1627. package/script/types/1_mini_app_info.js +30 -0
  1628. package/script/types/1_network_statistics.d.ts +2 -2
  1629. package/script/types/1_network_statistics.d.ts.map +1 -1
  1630. package/script/types/1_network_statistics.js +1 -1
  1631. package/script/types/1_order_info.d.ts +8 -3
  1632. package/script/types/1_order_info.d.ts.map +1 -1
  1633. package/script/types/1_order_info.js +1 -1
  1634. package/script/types/1_photo.d.ts +2 -2
  1635. package/script/types/1_photo.d.ts.map +1 -1
  1636. package/script/types/1_photo.js +3 -3
  1637. package/script/types/1_reaction_count.d.ts +3 -3
  1638. package/script/types/1_reaction_count.d.ts.map +1 -1
  1639. package/script/types/1_reaction_count.js +1 -1
  1640. package/script/types/1_sticker.d.ts +6 -5
  1641. package/script/types/1_sticker.d.ts.map +1 -1
  1642. package/script/types/1_sticker.js +15 -10
  1643. package/script/types/1_story_reaction.d.ts +4 -4
  1644. package/script/types/1_story_reaction.d.ts.map +1 -1
  1645. package/script/types/1_story_reaction.js +2 -2
  1646. package/script/types/1_venue.d.ts +2 -2
  1647. package/script/types/1_venue.d.ts.map +1 -1
  1648. package/script/types/1_venue.js +4 -7
  1649. package/script/types/1_video.d.ts +2 -2
  1650. package/script/types/1_video.d.ts.map +1 -1
  1651. package/script/types/1_video.js +2 -2
  1652. package/script/types/1_video_note.d.ts +2 -2
  1653. package/script/types/1_video_note.d.ts.map +1 -1
  1654. package/script/types/1_video_note.js +2 -2
  1655. package/script/types/1_working_hours.d.ts +31 -0
  1656. package/script/types/1_working_hours.d.ts.map +1 -0
  1657. package/script/types/1_working_hours.js +37 -0
  1658. package/script/types/2_chat.d.ts +14 -17
  1659. package/script/types/2_chat.d.ts.map +1 -1
  1660. package/script/types/2_chat.js +22 -27
  1661. package/script/types/2_chat_member.d.ts +72 -15
  1662. package/script/types/2_chat_member.d.ts.map +1 -1
  1663. package/script/types/2_chat_member.js +38 -26
  1664. package/script/types/2_inactive_chat.d.ts +3 -3
  1665. package/script/types/2_inactive_chat.d.ts.map +1 -1
  1666. package/script/types/2_inactive_chat.js +3 -4
  1667. package/script/types/2_message_entity.d.ts +148 -0
  1668. package/script/types/2_message_entity.d.ts.map +1 -0
  1669. package/script/types/2_message_entity.js +248 -0
  1670. package/script/types/2_message_interactions.d.ts +2 -2
  1671. package/script/types/2_message_interactions.d.ts.map +1 -1
  1672. package/script/types/2_message_interactions.js +1 -1
  1673. package/script/types/2_message_reaction_count.d.ts +6 -7
  1674. package/script/types/2_message_reaction_count.d.ts.map +1 -1
  1675. package/script/types/2_message_reaction_count.js +6 -9
  1676. package/script/types/2_message_reaction_list_item.d.ts +39 -0
  1677. package/script/types/2_message_reaction_list_item.d.ts.map +1 -0
  1678. package/script/types/2_message_reaction_list_item.js +53 -0
  1679. package/script/types/2_poll_answer.d.ts +32 -0
  1680. package/script/types/2_poll_answer.d.ts.map +1 -0
  1681. package/script/types/2_poll_answer.js +38 -0
  1682. package/script/types/2_reply_markup.d.ts +71 -0
  1683. package/script/types/2_reply_markup.d.ts.map +1 -0
  1684. package/script/types/2_reply_markup.js +131 -0
  1685. package/script/types/2_sticker_set.d.ts +51 -0
  1686. package/script/types/2_sticker_set.d.ts.map +1 -0
  1687. package/script/types/2_sticker_set.js +94 -0
  1688. package/script/types/2_story_content.d.ts +3 -3
  1689. package/script/types/2_story_content.d.ts.map +1 -1
  1690. package/script/types/2_story_content.js +6 -6
  1691. package/script/types/2_story_interactions.d.ts +3 -3
  1692. package/script/types/2_story_interactions.d.ts.map +1 -1
  1693. package/script/types/2_story_interactions.js +3 -2
  1694. package/script/types/2_story_interactive_area.d.ts +9 -9
  1695. package/script/types/2_story_interactive_area.d.ts.map +1 -1
  1696. package/script/types/2_story_interactive_area.js +15 -14
  1697. package/script/types/2_story_privacy.d.ts +46 -0
  1698. package/script/types/2_story_privacy.d.ts.map +1 -0
  1699. package/script/types/2_story_privacy.js +80 -0
  1700. package/script/types/2_successful_payment.d.ts +11 -3
  1701. package/script/types/2_successful_payment.d.ts.map +1 -1
  1702. package/script/types/2_successful_payment.js +2 -2
  1703. package/script/types/2_user.d.ts +73 -0
  1704. package/script/types/2_user.d.ts.map +1 -0
  1705. package/script/types/2_user.js +86 -0
  1706. package/script/types/3_business_connection.d.ts +37 -0
  1707. package/script/types/3_business_connection.d.ts.map +1 -0
  1708. package/script/types/3_business_connection.js +39 -0
  1709. package/script/types/3_chat_settings.d.ts +47 -0
  1710. package/script/types/3_chat_settings.d.ts.map +1 -0
  1711. package/script/types/3_chat_settings.js +54 -0
  1712. package/script/types/3_checklist_item.d.ts +65 -0
  1713. package/script/types/3_checklist_item.d.ts.map +1 -0
  1714. package/script/types/3_checklist_item.js +54 -0
  1715. package/script/types/3_chosen_inline_result.d.ts +38 -0
  1716. package/script/types/3_chosen_inline_result.d.ts.map +1 -0
  1717. package/script/types/3_chosen_inline_result.js +40 -0
  1718. package/script/types/3_forward_header.d.ts +77 -0
  1719. package/script/types/3_forward_header.d.ts.map +1 -0
  1720. package/script/types/3_forward_header.js +76 -0
  1721. package/script/types/3_game.d.ts +40 -0
  1722. package/script/types/3_game.d.ts.map +1 -0
  1723. package/script/types/3_game.js +47 -0
  1724. package/script/types/3_gift_upgraded_component.d.ts +96 -0
  1725. package/script/types/3_gift_upgraded_component.d.ts.map +1 -0
  1726. package/script/types/3_gift_upgraded_component.js +91 -0
  1727. package/script/types/3_inline_query.d.ts +40 -0
  1728. package/script/types/3_inline_query.d.ts.map +1 -0
  1729. package/script/types/3_inline_query.js +63 -0
  1730. package/script/types/3_input_checklist_item.d.ts +31 -0
  1731. package/script/types/3_input_checklist_item.d.ts.map +1 -0
  1732. package/script/types/3_input_checklist_item.js +21 -0
  1733. package/script/types/3_input_media.d.ts +123 -0
  1734. package/script/types/3_input_media.d.ts.map +1 -0
  1735. package/script/types/3_input_media.js +21 -0
  1736. package/script/types/3_input_poll_option.d.ts +31 -0
  1737. package/script/types/3_input_poll_option.d.ts.map +1 -0
  1738. package/script/types/3_input_poll_option.js +21 -0
  1739. package/script/types/3_invite_link.d.ts +47 -0
  1740. package/script/types/3_invite_link.d.ts.map +1 -0
  1741. package/script/types/3_invite_link.js +51 -0
  1742. package/script/types/3_message_reaction_list.d.ts +32 -0
  1743. package/script/types/3_message_reaction_list.d.ts.map +1 -0
  1744. package/script/types/3_message_reaction_list.js +34 -0
  1745. package/script/types/3_message_reactions.d.ts +42 -0
  1746. package/script/types/3_message_reactions.d.ts.map +1 -0
  1747. package/script/types/3_message_reactions.js +57 -0
  1748. package/script/types/3_poll_option.d.ts +34 -0
  1749. package/script/types/3_poll_option.d.ts.map +1 -0
  1750. package/script/types/3_poll_option.js +32 -0
  1751. package/script/types/3_pre_checkout_query.d.ts +42 -0
  1752. package/script/types/3_pre_checkout_query.d.ts.map +1 -0
  1753. package/script/types/3_pre_checkout_query.js +42 -0
  1754. package/script/types/3_reply_quote.d.ts +32 -0
  1755. package/script/types/3_reply_quote.d.ts.map +1 -0
  1756. package/script/types/3_reply_quote.js +33 -0
  1757. package/script/types/3_story.d.ts +13 -14
  1758. package/script/types/3_story.d.ts.map +1 -1
  1759. package/script/types/3_story.js +14 -15
  1760. package/script/types/4_chat_member_updated.d.ts +43 -0
  1761. package/script/types/4_chat_member_updated.d.ts.map +1 -0
  1762. package/script/types/4_chat_member_updated.js +55 -0
  1763. package/script/types/4_checklist.d.ts +38 -0
  1764. package/script/types/4_checklist.d.ts.map +1 -0
  1765. package/script/types/4_checklist.js +34 -0
  1766. package/script/types/4_gift.d.ts +100 -0
  1767. package/script/types/4_gift.d.ts.map +1 -0
  1768. package/script/types/4_gift.js +117 -0
  1769. package/script/types/4_join_request.d.ts +39 -0
  1770. package/script/types/4_join_request.d.ts.map +1 -0
  1771. package/script/types/4_join_request.js +66 -0
  1772. package/script/types/4_poll.d.ts +55 -0
  1773. package/script/types/4_poll.d.ts.map +1 -0
  1774. package/script/types/4_poll.js +46 -0
  1775. package/script/types/4_reply_to.d.ts +51 -0
  1776. package/script/types/4_reply_to.d.ts.map +1 -0
  1777. package/script/types/4_reply_to.js +21 -0
  1778. package/script/types/5_claimed_gift.d.ts +44 -0
  1779. package/script/types/5_claimed_gift.d.ts.map +1 -0
  1780. package/script/types/5_claimed_gift.js +46 -0
  1781. package/script/types/5_gift_non_upgraded_information.d.ts +47 -0
  1782. package/script/types/5_gift_non_upgraded_information.d.ts.map +1 -0
  1783. package/script/types/5_gift_non_upgraded_information.js +72 -0
  1784. package/script/types/5_gift_upgraded_information.d.ts +41 -0
  1785. package/script/types/5_gift_upgraded_information.d.ts.map +1 -0
  1786. package/script/types/5_gift_upgraded_information.js +61 -0
  1787. package/script/types/5_link_preview.d.ts +186 -0
  1788. package/script/types/5_link_preview.d.ts.map +1 -0
  1789. package/script/types/5_link_preview.js +208 -0
  1790. package/script/types/6_claimed_gifts.d.ts +33 -0
  1791. package/script/types/6_claimed_gifts.d.ts.map +1 -0
  1792. package/script/types/6_claimed_gifts.js +46 -0
  1793. package/script/types/6_message.d.ts +704 -0
  1794. package/script/types/6_message.d.ts.map +1 -0
  1795. package/script/types/6_message.js +558 -0
  1796. package/script/types/6_message_content.d.ts +124 -0
  1797. package/script/types/6_message_content.d.ts.map +1 -0
  1798. package/script/types/6_message_content.js +21 -0
  1799. package/script/types/7_callback_query.d.ts +43 -0
  1800. package/script/types/7_callback_query.d.ts.map +1 -0
  1801. package/script/types/7_callback_query.js +63 -0
  1802. package/script/types/7_chat_list_item.d.ts +43 -0
  1803. package/script/types/7_chat_list_item.d.ts.map +1 -0
  1804. package/script/types/7_chat_list_item.js +60 -0
  1805. package/script/types/7_inline_query_result.d.ts +251 -0
  1806. package/script/types/7_inline_query_result.d.ts.map +1 -0
  1807. package/script/types/7_inline_query_result.js +384 -0
  1808. package/script/types/7_message_list.d.ts +28 -0
  1809. package/script/types/7_message_list.d.ts.map +1 -0
  1810. package/script/types/7_message_list.js +21 -0
  1811. package/script/types/7_saved_chat.d.ts +35 -0
  1812. package/script/types/7_saved_chat.d.ts.map +1 -0
  1813. package/script/types/7_saved_chat.js +45 -0
  1814. package/script/types/7_topic.d.ts +44 -0
  1815. package/script/types/7_topic.d.ts.map +1 -0
  1816. package/script/types/7_topic.js +64 -0
  1817. package/script/types/8_inline_query_answer.d.ts +32 -0
  1818. package/script/types/8_inline_query_answer.d.ts.map +1 -0
  1819. package/script/types/8_inline_query_answer.js +31 -0
  1820. package/script/types/8_saved_chats.d.ts +33 -0
  1821. package/script/types/8_saved_chats.d.ts.map +1 -0
  1822. package/script/types/8_saved_chats.js +39 -0
  1823. package/script/types/8_update.d.ts +583 -0
  1824. package/script/types/8_update.d.ts.map +1 -0
  1825. package/script/types/8_update.js +21 -0
  1826. package/script/types/_file_id.d.ts +64 -51
  1827. package/script/types/_file_id.d.ts.map +1 -1
  1828. package/script/types/_file_id.js +158 -139
  1829. package/script/types/_getters.d.ts +4 -11
  1830. package/script/types/_getters.d.ts.map +1 -1
  1831. package/script/types/_getters.js +1 -1
  1832. package/script/utilities/0_color.d.ts +1 -1
  1833. package/script/utilities/0_color.js +1 -1
  1834. package/script/utilities/0_env.d.ts.map +1 -1
  1835. package/script/utilities/0_env.js +37 -8
  1836. package/script/utilities/0_gzip.d.ts +22 -0
  1837. package/script/utilities/0_gzip.d.ts.map +1 -0
  1838. package/script/utilities/0_gzip.js +46 -0
  1839. package/script/utilities/0_hash.d.ts +3 -3
  1840. package/script/utilities/0_hash.d.ts.map +1 -1
  1841. package/script/utilities/0_hash.js +1 -1
  1842. package/script/utilities/0_int.d.ts +71 -0
  1843. package/script/utilities/0_int.d.ts.map +1 -0
  1844. package/script/utilities/0_int.js +149 -0
  1845. package/script/utilities/0_misc.d.ts +29 -0
  1846. package/script/utilities/0_misc.d.ts.map +1 -0
  1847. package/script/utilities/0_misc.js +95 -0
  1848. package/script/utilities/0_mutex.d.ts +1 -1
  1849. package/script/utilities/0_mutex.js +1 -1
  1850. package/script/utilities/0_object.d.ts +1 -1
  1851. package/script/utilities/0_object.js +1 -1
  1852. package/script/utilities/0_part_stream.d.ts +4 -4
  1853. package/script/utilities/0_part_stream.d.ts.map +1 -1
  1854. package/script/utilities/0_part_stream.js +3 -3
  1855. package/script/utilities/0_rle.d.ts +3 -3
  1856. package/script/utilities/0_rle.d.ts.map +1 -1
  1857. package/script/utilities/0_rle.js +2 -2
  1858. package/script/utilities/0_text.d.ts +22 -0
  1859. package/script/utilities/0_text.d.ts.map +1 -0
  1860. package/script/utilities/0_text.js +31 -0
  1861. package/script/utilities/0_types.d.ts +1 -1
  1862. package/script/utilities/0_types.js +1 -1
  1863. package/script/utilities/0_units.d.ts +1 -4
  1864. package/script/utilities/0_units.d.ts.map +1 -1
  1865. package/script/utilities/0_units.js +2 -5
  1866. package/script/utilities/1_auth.d.ts +2 -2
  1867. package/script/utilities/1_auth.d.ts.map +1 -1
  1868. package/script/utilities/1_auth.js +6 -7
  1869. package/script/utilities/1_base64.d.ts +3 -3
  1870. package/script/utilities/1_base64.d.ts.map +1 -1
  1871. package/script/utilities/1_base64.js +4 -4
  1872. package/script/utilities/1_crypto.d.ts +30 -0
  1873. package/script/utilities/1_crypto.d.ts.map +1 -0
  1874. package/script/utilities/1_crypto.js +94 -0
  1875. package/script/utilities/1_logger.d.ts +3 -3
  1876. package/script/utilities/1_logger.d.ts.map +1 -1
  1877. package/script/utilities/1_logger.js +5 -4
  1878. package/script/utilities/1_math.d.ts +1 -1
  1879. package/script/utilities/1_math.js +7 -7
  1880. package/script/utilities/2_queue.d.ts +2 -2
  1881. package/script/utilities/2_queue.d.ts.map +1 -1
  1882. package/script/utilities/2_queue.js +12 -8
  1883. package/esm/client/0_filters.d.ts +0 -58
  1884. package/esm/client/0_filters.d.ts.map +0 -1
  1885. package/esm/client/0_filters.js +0 -49
  1886. package/esm/client/0_message.d.ts +0 -29
  1887. package/esm/client/0_message.d.ts.map +0 -1
  1888. package/esm/client/0_message.js +0 -83
  1889. package/esm/client/1_client_encrypted.d.ts +0 -52
  1890. package/esm/client/1_client_encrypted.d.ts.map +0 -1
  1891. package/esm/client/1_client_encrypted.js +0 -339
  1892. package/esm/client/1_composer.d.ts +0 -51
  1893. package/esm/client/1_composer.d.ts.map +0 -1
  1894. package/esm/client/1_composer.js +0 -168
  1895. package/esm/client/5_client.d.ts +0 -1372
  1896. package/esm/client/5_client.d.ts.map +0 -1
  1897. package/esm/client/5_client.js +0 -2858
  1898. package/esm/deps/deno.land/std@0.224.0/io/types.d.ts +0 -95
  1899. package/esm/deps/deno.land/std@0.224.0/io/types.d.ts.map +0 -1
  1900. package/esm/deps/deno.land/std@0.224.0/io/types.js +0 -3
  1901. package/esm/deps/deno.land/std@0.224.0/io/write_all.d.ts +0 -39
  1902. package/esm/deps/deno.land/std@0.224.0/io/write_all.d.ts.map +0 -1
  1903. package/esm/deps/deno.land/std@0.224.0/io/write_all.js +0 -49
  1904. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -84
  1905. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts.map +0 -1
  1906. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -203
  1907. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -51
  1908. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts.map +0 -1
  1909. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -274
  1910. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -48
  1911. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts.map +0 -1
  1912. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -51
  1913. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -67
  1914. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts.map +0 -1
  1915. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -191
  1916. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -169
  1917. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts.map +0 -1
  1918. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -385
  1919. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -160
  1920. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts.map +0 -1
  1921. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -431
  1922. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -182
  1923. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts.map +0 -1
  1924. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1046
  1925. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -43
  1926. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts.map +0 -1
  1927. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -52
  1928. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -12
  1929. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts.map +0 -1
  1930. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -122
  1931. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -2
  1932. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts.map +0 -1
  1933. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -24
  1934. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -47
  1935. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts.map +0 -1
  1936. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -121
  1937. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -32
  1938. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts.map +0 -1
  1939. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -30
  1940. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2129
  1941. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts.map +0 -1
  1942. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2127
  1943. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -110
  1944. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts.map +0 -1
  1945. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -108
  1946. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -9
  1947. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts.map +0 -1
  1948. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -1
  1949. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -91
  1950. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts.map +0 -1
  1951. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -95
  1952. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -51
  1953. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts.map +0 -1
  1954. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -128
  1955. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -47
  1956. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts.map +0 -1
  1957. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -110
  1958. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -43
  1959. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts.map +0 -1
  1960. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -120
  1961. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -7
  1962. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts.map +0 -1
  1963. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -6
  1964. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -55
  1965. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts.map +0 -1
  1966. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -110
  1967. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -41
  1968. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts.map +0 -1
  1969. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -75
  1970. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -59
  1971. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts.map +0 -1
  1972. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -101
  1973. package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts +0 -55
  1974. package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts.map +0 -1
  1975. package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.js +0 -167
  1976. package/esm/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts +0 -3
  1977. package/esm/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts.map +0 -1
  1978. package/esm/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.js +0 -308
  1979. package/esm/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts +0 -29
  1980. package/esm/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts.map +0 -1
  1981. package/esm/deps/jsr.io/@std/assert/1.0.7/almost_equals.js +0 -46
  1982. package/esm/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts +0 -24
  1983. package/esm/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts.map +0 -1
  1984. package/esm/deps/jsr.io/@std/assert/1.0.7/array_includes.js +0 -46
  1985. package/esm/deps/jsr.io/@std/assert/1.0.7/assert.d.ts +0 -16
  1986. package/esm/deps/jsr.io/@std/assert/1.0.7/assert.d.ts.map +0 -1
  1987. package/esm/deps/jsr.io/@std/assert/1.0.7/assert.js +0 -22
  1988. package/esm/deps/jsr.io/@std/assert/1.0.7/assertion_error.d.ts.map +0 -1
  1989. package/esm/deps/jsr.io/@std/assert/1.0.7/assertion_error.js +0 -30
  1990. package/esm/deps/jsr.io/@std/assert/1.0.7/equal.d.ts +0 -17
  1991. package/esm/deps/jsr.io/@std/assert/1.0.7/equal.d.ts.map +0 -1
  1992. package/esm/deps/jsr.io/@std/assert/1.0.7/equal.js +0 -136
  1993. package/esm/deps/jsr.io/@std/assert/1.0.7/equals.d.ts +0 -22
  1994. package/esm/deps/jsr.io/@std/assert/1.0.7/equals.d.ts.map +0 -1
  1995. package/esm/deps/jsr.io/@std/assert/1.0.7/equals.js +0 -45
  1996. package/esm/deps/jsr.io/@std/assert/1.0.7/exists.d.ts +0 -18
  1997. package/esm/deps/jsr.io/@std/assert/1.0.7/exists.d.ts.map +0 -1
  1998. package/esm/deps/jsr.io/@std/assert/1.0.7/exists.js +0 -27
  1999. package/esm/deps/jsr.io/@std/assert/1.0.7/fail.d.ts +0 -15
  2000. package/esm/deps/jsr.io/@std/assert/1.0.7/fail.d.ts.map +0 -1
  2001. package/esm/deps/jsr.io/@std/assert/1.0.7/fail.js +0 -20
  2002. package/esm/deps/jsr.io/@std/assert/1.0.7/false.d.ts +0 -18
  2003. package/esm/deps/jsr.io/@std/assert/1.0.7/false.d.ts.map +0 -1
  2004. package/esm/deps/jsr.io/@std/assert/1.0.7/false.js +0 -22
  2005. package/esm/deps/jsr.io/@std/assert/1.0.7/greater.d.ts +0 -20
  2006. package/esm/deps/jsr.io/@std/assert/1.0.7/greater.d.ts.map +0 -1
  2007. package/esm/deps/jsr.io/@std/assert/1.0.7/greater.js +0 -29
  2008. package/esm/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts +0 -20
  2009. package/esm/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts.map +0 -1
  2010. package/esm/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.js +0 -29
  2011. package/esm/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts +0 -23
  2012. package/esm/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts.map +0 -1
  2013. package/esm/deps/jsr.io/@std/assert/1.0.7/instance_of.js +0 -52
  2014. package/esm/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts +0 -25
  2015. package/esm/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts.map +0 -1
  2016. package/esm/deps/jsr.io/@std/assert/1.0.7/is_error.js +0 -53
  2017. package/esm/deps/jsr.io/@std/assert/1.0.7/less.d.ts +0 -19
  2018. package/esm/deps/jsr.io/@std/assert/1.0.7/less.d.ts.map +0 -1
  2019. package/esm/deps/jsr.io/@std/assert/1.0.7/less.js +0 -28
  2020. package/esm/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts +0 -20
  2021. package/esm/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts.map +0 -1
  2022. package/esm/deps/jsr.io/@std/assert/1.0.7/less_or_equal.js +0 -29
  2023. package/esm/deps/jsr.io/@std/assert/1.0.7/match.d.ts +0 -18
  2024. package/esm/deps/jsr.io/@std/assert/1.0.7/match.d.ts.map +0 -1
  2025. package/esm/deps/jsr.io/@std/assert/1.0.7/match.js +0 -26
  2026. package/esm/deps/jsr.io/@std/assert/1.0.7/mod.d.ts +0 -44
  2027. package/esm/deps/jsr.io/@std/assert/1.0.7/mod.d.ts.map +0 -1
  2028. package/esm/deps/jsr.io/@std/assert/1.0.7/mod.js +0 -45
  2029. package/esm/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts +0 -21
  2030. package/esm/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts.map +0 -1
  2031. package/esm/deps/jsr.io/@std/assert/1.0.7/not_equals.js +0 -32
  2032. package/esm/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts +0 -20
  2033. package/esm/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts.map +0 -1
  2034. package/esm/deps/jsr.io/@std/assert/1.0.7/not_instance_of.js +0 -29
  2035. package/esm/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts +0 -18
  2036. package/esm/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts.map +0 -1
  2037. package/esm/deps/jsr.io/@std/assert/1.0.7/not_match.js +0 -26
  2038. package/esm/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts +0 -23
  2039. package/esm/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts.map +0 -1
  2040. package/esm/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.js +0 -32
  2041. package/esm/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts +0 -28
  2042. package/esm/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts.map +0 -1
  2043. package/esm/deps/jsr.io/@std/assert/1.0.7/object_match.js +0 -159
  2044. package/esm/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts +0 -42
  2045. package/esm/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts.map +0 -1
  2046. package/esm/deps/jsr.io/@std/assert/1.0.7/rejects.js +0 -53
  2047. package/esm/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts +0 -24
  2048. package/esm/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts.map +0 -1
  2049. package/esm/deps/jsr.io/@std/assert/1.0.7/strict_equals.js +0 -57
  2050. package/esm/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts +0 -18
  2051. package/esm/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts.map +0 -1
  2052. package/esm/deps/jsr.io/@std/assert/1.0.7/string_includes.js +0 -26
  2053. package/esm/deps/jsr.io/@std/assert/1.0.7/throws.d.ts +0 -45
  2054. package/esm/deps/jsr.io/@std/assert/1.0.7/throws.d.ts.map +0 -1
  2055. package/esm/deps/jsr.io/@std/assert/1.0.7/throws.js +0 -44
  2056. package/esm/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts +0 -15
  2057. package/esm/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts.map +0 -1
  2058. package/esm/deps/jsr.io/@std/assert/1.0.7/unimplemented.js +0 -20
  2059. package/esm/deps/jsr.io/@std/assert/1.0.7/unreachable.d.ts.map +0 -1
  2060. package/esm/deps/jsr.io/@std/assert/1.0.7/unreachable.js +0 -20
  2061. package/esm/deps/jsr.io/@std/bytes/1.0.3/concat.d.ts +0 -19
  2062. package/esm/deps/jsr.io/@std/bytes/1.0.3/concat.d.ts.map +0 -1
  2063. package/esm/deps/jsr.io/@std/bytes/1.0.3/concat.js +0 -32
  2064. package/esm/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts +0 -2
  2065. package/esm/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts.map +0 -1
  2066. package/esm/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.js +0 -26
  2067. package/esm/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts +0 -38
  2068. package/esm/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts.map +0 -1
  2069. package/esm/deps/jsr.io/@std/encoding/1.0.5/base64.js +0 -163
  2070. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
  2071. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
  2072. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -110
  2073. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
  2074. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -276
  2075. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
  2076. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -179
  2077. package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
  2078. package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
  2079. package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +0 -37
  2080. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
  2081. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -207
  2082. package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
  2083. package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
  2084. package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +0 -2
  2085. package/esm/deps/jsr.io/@std/io/0.225.0/_constants.d.ts.map +0 -1
  2086. package/esm/deps/jsr.io/@std/io/0.225.0/_constants.js +0 -4
  2087. package/esm/deps/jsr.io/@std/io/0.225.0/iterate_reader.d.ts.map +0 -1
  2088. package/esm/deps/jsr.io/@std/io/0.225.0/iterate_reader.js +0 -96
  2089. package/esm/deps/jsr.io/@std/io/0.225.0/types.d.ts.map +0 -1
  2090. package/esm/deps/jsr.io/@std/io/0.225.0/types.js +0 -15
  2091. package/esm/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts +0 -8
  2092. package/esm/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts.map +0 -1
  2093. package/esm/deps/jsr.io/@std/media-types/1.0.3/_util.d.ts.map +0 -1
  2094. package/esm/deps/jsr.io/@std/media-types/1.0.3/all_extensions.d.ts.map +0 -1
  2095. package/esm/deps/jsr.io/@std/media-types/1.0.3/content_type.d.ts.map +0 -1
  2096. package/esm/deps/jsr.io/@std/media-types/1.0.3/extension.d.ts.map +0 -1
  2097. package/esm/deps/jsr.io/@std/media-types/1.0.3/format_media_type.d.ts.map +0 -1
  2098. package/esm/deps/jsr.io/@std/media-types/1.0.3/get_charset.d.ts.map +0 -1
  2099. package/esm/deps/jsr.io/@std/media-types/1.0.3/parse_media_type.d.ts.map +0 -1
  2100. package/esm/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.d.ts.map +0 -1
  2101. package/esm/deps/jsr.io/@std/media-types/1.0.3/vendor/db.d.ts +0 -8796
  2102. package/esm/deps/jsr.io/@std/media-types/1.0.3/vendor/db.d.ts.map +0 -1
  2103. package/esm/deps/jsr.io/@std/media-types/1.0.3/vendor/db.js +0 -8831
  2104. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
  2105. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +0 -7
  2106. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +0 -1
  2107. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +0 -40
  2108. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  2109. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  2110. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -23
  2111. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
  2112. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +0 -46
  2113. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  2114. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  2115. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -8
  2116. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  2117. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  2118. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -19
  2119. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  2120. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -9
  2121. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  2122. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  2123. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -234
  2124. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
  2125. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +0 -8
  2126. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
  2127. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +0 -77
  2128. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  2129. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  2130. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -9
  2131. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +0 -1
  2132. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +0 -19
  2133. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +0 -1
  2134. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +0 -15
  2135. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
  2136. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
  2137. package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +0 -9
  2138. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts +0 -28
  2139. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
  2140. package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +0 -36
  2141. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  2142. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  2143. package/esm/deps/jsr.io/@std/path/1.0.8/common.js +0 -33
  2144. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  2145. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  2146. package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +0 -17
  2147. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  2148. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  2149. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -29
  2150. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts +0 -23
  2151. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
  2152. package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +0 -29
  2153. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  2154. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  2155. package/esm/deps/jsr.io/@std/path/1.0.8/format.js +0 -27
  2156. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
  2157. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  2158. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -28
  2159. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  2160. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  2161. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -83
  2162. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +0 -1
  2163. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +0 -28
  2164. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  2165. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  2166. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -42
  2167. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts +0 -23
  2168. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
  2169. package/esm/deps/jsr.io/@std/path/1.0.8/join.js +0 -29
  2170. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  2171. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  2172. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -34
  2173. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  2174. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  2175. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
  2176. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  2177. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  2178. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -33
  2179. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  2180. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  2181. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -35
  2182. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  2183. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  2184. package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +0 -39
  2185. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
  2186. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +0 -8
  2187. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +0 -40
  2188. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
  2189. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +0 -49
  2190. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  2191. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  2192. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -14
  2193. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  2194. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  2195. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -62
  2196. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +0 -37
  2197. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
  2198. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +0 -89
  2199. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  2200. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  2201. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -28
  2202. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  2203. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -21
  2204. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  2205. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  2206. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -82
  2207. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +0 -1
  2208. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +0 -23
  2209. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +0 -33
  2210. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
  2211. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +0 -42
  2212. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  2213. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  2214. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -40
  2215. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +0 -40
  2216. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
  2217. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +0 -57
  2218. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  2219. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  2220. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -32
  2221. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  2222. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  2223. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -115
  2224. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  2225. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  2226. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -106
  2227. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  2228. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  2229. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -59
  2230. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +0 -1
  2231. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +0 -27
  2232. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  2233. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  2234. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -20
  2235. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  2236. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  2237. package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +0 -30
  2238. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  2239. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  2240. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -30
  2241. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +0 -1
  2242. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +0 -28
  2243. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  2244. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  2245. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -29
  2246. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  2247. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  2248. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
  2249. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
  2250. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +0 -15
  2251. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +0 -23
  2252. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
  2253. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +0 -44
  2254. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  2255. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  2256. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -14
  2257. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  2258. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  2259. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -112
  2260. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +0 -20
  2261. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
  2262. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +0 -81
  2263. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  2264. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  2265. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -28
  2266. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  2267. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -30
  2268. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  2269. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  2270. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -82
  2271. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +0 -1
  2272. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +0 -38
  2273. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
  2274. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
  2275. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +0 -74
  2276. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  2277. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  2278. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -41
  2279. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +0 -22
  2280. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
  2281. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +0 -134
  2282. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  2283. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  2284. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -32
  2285. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  2286. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  2287. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -176
  2288. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  2289. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  2290. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -131
  2291. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  2292. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  2293. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -154
  2294. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +0 -1
  2295. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +0 -34
  2296. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  2297. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  2298. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -49
  2299. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +0 -2
  2300. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts.map +0 -1
  2301. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +0 -1
  2302. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts +0 -2
  2303. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts.map +0 -1
  2304. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +0 -10
  2305. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -28
  2306. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts.map +0 -1
  2307. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +0 -135
  2308. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +0 -24
  2309. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts.map +0 -1
  2310. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +0 -172
  2311. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts +0 -3
  2312. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts.map +0 -1
  2313. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.js +0 -2
  2314. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts +0 -2
  2315. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts.map +0 -1
  2316. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +0 -19
  2317. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts +0 -3
  2318. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts.map +0 -1
  2319. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +0 -25
  2320. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts +0 -79
  2321. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts.map +0 -1
  2322. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +0 -1941
  2323. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts +0 -13
  2324. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts.map +0 -1
  2325. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.js +0 -85
  2326. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts +0 -2
  2327. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts.map +0 -1
  2328. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +0 -321
  2329. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts +0 -48
  2330. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts.map +0 -1
  2331. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +0 -1660
  2332. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts +0 -2
  2333. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts.map +0 -1
  2334. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +0 -355
  2335. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts +0 -13
  2336. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts.map +0 -1
  2337. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.js +0 -11
  2338. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts +0 -31
  2339. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts.map +0 -1
  2340. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.js +0 -42
  2341. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts +0 -6
  2342. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts.map +0 -1
  2343. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +0 -1107
  2344. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts +0 -15
  2345. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts.map +0 -1
  2346. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.js +0 -86
  2347. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts +0 -45
  2348. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts.map +0 -1
  2349. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.js +0 -253
  2350. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts +0 -3
  2351. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts.map +0 -1
  2352. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.js +0 -1
  2353. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts +0 -3
  2354. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts.map +0 -1
  2355. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +0 -13
  2356. package/esm/tl/0_api.d.ts +0 -15839
  2357. package/esm/tl/0_api.d.ts.map +0 -1
  2358. package/esm/tl/0_api.js +0 -24746
  2359. package/esm/tl/0_tl_raw_reader.d.ts +0 -36
  2360. package/esm/tl/0_tl_raw_reader.d.ts.map +0 -1
  2361. package/esm/tl/0_tl_raw_reader.js +0 -87
  2362. package/esm/tl/0_tl_raw_writer.d.ts +0 -34
  2363. package/esm/tl/0_tl_raw_writer.d.ts.map +0 -1
  2364. package/esm/tl/0_tl_raw_writer.js +0 -86
  2365. package/esm/tl/2_deserialize.d.ts +0 -23
  2366. package/esm/tl/2_deserialize.d.ts.map +0 -1
  2367. package/esm/tl/2_deserialize.js +0 -95
  2368. package/esm/tl/2_serialize.d.ts +0 -22
  2369. package/esm/tl/2_serialize.d.ts.map +0 -1
  2370. package/esm/tl/2_serialize.js +0 -160
  2371. package/esm/tl/3_tl_reader.d.ts +0 -26
  2372. package/esm/tl/3_tl_reader.d.ts.map +0 -1
  2373. package/esm/tl/3_tl_reader.js +0 -49
  2374. package/esm/tl/3_utilities.d.ts +0 -34
  2375. package/esm/tl/3_utilities.d.ts.map +0 -1
  2376. package/esm/tl/3_utilities.js +0 -89
  2377. package/esm/tl/4_rpc_result.d.ts +0 -27
  2378. package/esm/tl/4_rpc_result.d.ts.map +0 -1
  2379. package/esm/tl/4_rpc_result.js +0 -28
  2380. package/esm/tl/4_tl_writer.d.ts +0 -25
  2381. package/esm/tl/4_tl_writer.d.ts.map +0 -1
  2382. package/esm/tl/4_tl_writer.js +0 -45
  2383. package/esm/tl/5_message.d.ts +0 -39
  2384. package/esm/tl/5_message.d.ts.map +0 -1
  2385. package/esm/tl/5_message.js +0 -98
  2386. package/esm/transport/2_transport_provider.d.ts +0 -35
  2387. package/esm/transport/2_transport_provider.d.ts.map +0 -1
  2388. package/esm/transport/2_transport_provider.js +0 -81
  2389. package/esm/transport/3_transport_provider_tcp.d.ts +0 -14
  2390. package/esm/transport/3_transport_provider_tcp.d.ts.map +0 -1
  2391. package/esm/transport/3_transport_provider_tcp.js +0 -15
  2392. package/esm/transport/3_transport_provider_web_socket.d.ts +0 -24
  2393. package/esm/transport/3_transport_provider_web_socket.d.ts.map +0 -1
  2394. package/esm/transport/3_transport_provider_web_socket.js +0 -43
  2395. package/esm/types/0_link_preview.d.ts +0 -35
  2396. package/esm/types/0_link_preview.d.ts.map +0 -1
  2397. package/esm/types/0_link_preview.js +0 -28
  2398. package/esm/types/0_message_entity.d.ts +0 -139
  2399. package/esm/types/0_message_entity.d.ts.map +0 -1
  2400. package/esm/types/0_message_entity.js +0 -183
  2401. package/esm/types/0_mini_app_info.d.ts +0 -26
  2402. package/esm/types/0_mini_app_info.d.ts.map +0 -1
  2403. package/esm/types/0_mini_app_info.js +0 -22
  2404. package/esm/types/0_opening_hours.d.ts +0 -26
  2405. package/esm/types/0_opening_hours.d.ts.map +0 -1
  2406. package/esm/types/0_opening_hours.js +0 -25
  2407. package/esm/types/1_input_media.d.ts +0 -122
  2408. package/esm/types/1_input_media.d.ts.map +0 -1
  2409. package/esm/types/1_input_media.js +0 -20
  2410. package/esm/types/1_message_content.d.ts +0 -119
  2411. package/esm/types/1_message_content.d.ts.map +0 -1
  2412. package/esm/types/1_message_content.js +0 -20
  2413. package/esm/types/1_poll_option.d.ts +0 -32
  2414. package/esm/types/1_poll_option.d.ts.map +0 -1
  2415. package/esm/types/1_poll_option.js +0 -27
  2416. package/esm/types/1_reply_quote.d.ts +0 -32
  2417. package/esm/types/1_reply_quote.d.ts.map +0 -1
  2418. package/esm/types/1_reply_quote.js +0 -30
  2419. package/esm/types/1_story_privacy.d.ts +0 -46
  2420. package/esm/types/1_story_privacy.d.ts.map +0 -1
  2421. package/esm/types/1_story_privacy.js +0 -76
  2422. package/esm/types/1_user.d.ts +0 -56
  2423. package/esm/types/1_user.d.ts.map +0 -1
  2424. package/esm/types/1_user.js +0 -47
  2425. package/esm/types/2_business_connection.d.ts +0 -37
  2426. package/esm/types/2_business_connection.d.ts.map +0 -1
  2427. package/esm/types/2_business_connection.js +0 -30
  2428. package/esm/types/2_chosen_inline_result.d.ts +0 -38
  2429. package/esm/types/2_chosen_inline_result.d.ts.map +0 -1
  2430. package/esm/types/2_chosen_inline_result.js +0 -37
  2431. package/esm/types/2_forward_header.d.ts +0 -40
  2432. package/esm/types/2_forward_header.d.ts.map +0 -1
  2433. package/esm/types/2_forward_header.js +0 -55
  2434. package/esm/types/2_game.d.ts +0 -40
  2435. package/esm/types/2_game.d.ts.map +0 -1
  2436. package/esm/types/2_game.js +0 -44
  2437. package/esm/types/2_inline_keyboard_button.d.ts +0 -138
  2438. package/esm/types/2_inline_keyboard_button.d.ts.map +0 -1
  2439. package/esm/types/2_inline_keyboard_button.js +0 -117
  2440. package/esm/types/2_inline_query.d.ts +0 -40
  2441. package/esm/types/2_inline_query.d.ts.map +0 -1
  2442. package/esm/types/2_inline_query.js +0 -60
  2443. package/esm/types/2_invite_link.d.ts +0 -47
  2444. package/esm/types/2_invite_link.d.ts.map +0 -1
  2445. package/esm/types/2_invite_link.js +0 -48
  2446. package/esm/types/2_message_reactions.d.ts +0 -43
  2447. package/esm/types/2_message_reactions.d.ts.map +0 -1
  2448. package/esm/types/2_message_reactions.js +0 -56
  2449. package/esm/types/2_poll.d.ts +0 -55
  2450. package/esm/types/2_poll.d.ts.map +0 -1
  2451. package/esm/types/2_poll.js +0 -43
  2452. package/esm/types/2_pre_checkout_query.d.ts +0 -34
  2453. package/esm/types/2_pre_checkout_query.d.ts.map +0 -1
  2454. package/esm/types/2_pre_checkout_query.js +0 -39
  2455. package/esm/types/2_reply_to.d.ts +0 -35
  2456. package/esm/types/2_reply_to.d.ts.map +0 -1
  2457. package/esm/types/2_reply_to.js +0 -20
  2458. package/esm/types/3_chat_member_updated.d.ts +0 -44
  2459. package/esm/types/3_chat_member_updated.d.ts.map +0 -1
  2460. package/esm/types/3_chat_member_updated.js +0 -53
  2461. package/esm/types/3_join_request.d.ts +0 -39
  2462. package/esm/types/3_join_request.d.ts.map +0 -1
  2463. package/esm/types/3_join_request.js +0 -45
  2464. package/esm/types/3_reply_markup.d.ts +0 -71
  2465. package/esm/types/3_reply_markup.d.ts.map +0 -1
  2466. package/esm/types/3_reply_markup.js +0 -127
  2467. package/esm/types/4_inline_query_result.d.ts +0 -251
  2468. package/esm/types/4_inline_query_result.d.ts.map +0 -1
  2469. package/esm/types/4_inline_query_result.js +0 -380
  2470. package/esm/types/4_message.d.ts +0 -615
  2471. package/esm/types/4_message.d.ts.map +0 -1
  2472. package/esm/types/4_message.js +0 -533
  2473. package/esm/types/5_callback_query.d.ts +0 -43
  2474. package/esm/types/5_callback_query.d.ts.map +0 -1
  2475. package/esm/types/5_callback_query.js +0 -60
  2476. package/esm/types/5_chat_list_item.d.ts +0 -36
  2477. package/esm/types/5_chat_list_item.d.ts.map +0 -1
  2478. package/esm/types/5_chat_list_item.js +0 -86
  2479. package/esm/types/5_inline_query_answer.d.ts +0 -32
  2480. package/esm/types/5_inline_query_answer.d.ts.map +0 -1
  2481. package/esm/types/5_inline_query_answer.js +0 -28
  2482. package/esm/types/6_update.d.ts +0 -388
  2483. package/esm/types/6_update.d.ts.map +0 -1
  2484. package/esm/types/6_update.js +0 -20
  2485. package/esm/utilities/0_bigint.d.ts +0 -29
  2486. package/esm/utilities/0_bigint.d.ts.map +0 -1
  2487. package/esm/utilities/0_bigint.js +0 -90
  2488. package/esm/utilities/0_buffer.d.ts +0 -21
  2489. package/esm/utilities/0_buffer.d.ts.map +0 -1
  2490. package/esm/utilities/0_buffer.js +0 -51
  2491. package/esm/utilities/0_cache_map.d.ts +0 -26
  2492. package/esm/utilities/0_cache_map.d.ts.map +0 -1
  2493. package/esm/utilities/0_cache_map.js +0 -52
  2494. package/esm/utilities/0_crypto.d.ts +0 -27
  2495. package/esm/utilities/0_crypto.d.ts.map +0 -1
  2496. package/esm/utilities/0_crypto.js +0 -48
  2497. package/esm/utilities/1_misc.d.ts +0 -29
  2498. package/esm/utilities/1_misc.d.ts.map +0 -1
  2499. package/esm/utilities/1_misc.js +0 -72
  2500. package/script/client/0_filters.d.ts +0 -58
  2501. package/script/client/0_filters.d.ts.map +0 -1
  2502. package/script/client/0_filters.js +0 -52
  2503. package/script/client/0_message.d.ts +0 -29
  2504. package/script/client/0_message.d.ts.map +0 -1
  2505. package/script/client/0_message.js +0 -90
  2506. package/script/client/1_client_encrypted.d.ts +0 -52
  2507. package/script/client/1_client_encrypted.d.ts.map +0 -1
  2508. package/script/client/1_client_encrypted.js +0 -343
  2509. package/script/client/1_composer.d.ts +0 -51
  2510. package/script/client/1_composer.d.ts.map +0 -1
  2511. package/script/client/1_composer.js +0 -175
  2512. package/script/client/5_client.d.ts +0 -1372
  2513. package/script/client/5_client.d.ts.map +0 -1
  2514. package/script/client/5_client.js +0 -2863
  2515. package/script/deps/deno.land/std@0.224.0/io/types.d.ts +0 -95
  2516. package/script/deps/deno.land/std@0.224.0/io/types.d.ts.map +0 -1
  2517. package/script/deps/deno.land/std@0.224.0/io/types.js +0 -4
  2518. package/script/deps/deno.land/std@0.224.0/io/write_all.d.ts +0 -39
  2519. package/script/deps/deno.land/std@0.224.0/io/write_all.d.ts.map +0 -1
  2520. package/script/deps/deno.land/std@0.224.0/io/write_all.js +0 -53
  2521. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -84
  2522. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts.map +0 -1
  2523. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -207
  2524. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -51
  2525. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts.map +0 -1
  2526. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -301
  2527. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -48
  2528. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts.map +0 -1
  2529. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -55
  2530. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -67
  2531. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts.map +0 -1
  2532. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -222
  2533. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -169
  2534. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts.map +0 -1
  2535. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -404
  2536. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -160
  2537. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts.map +0 -1
  2538. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -438
  2539. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -182
  2540. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts.map +0 -1
  2541. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1052
  2542. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -43
  2543. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts.map +0 -1
  2544. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -88
  2545. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -12
  2546. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts.map +0 -1
  2547. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -128
  2548. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -2
  2549. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts.map +0 -1
  2550. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -30
  2551. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -47
  2552. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts.map +0 -1
  2553. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -129
  2554. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -32
  2555. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts.map +0 -1
  2556. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -32
  2557. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2129
  2558. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts.map +0 -1
  2559. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2129
  2560. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -110
  2561. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts.map +0 -1
  2562. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -110
  2563. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -9
  2564. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts.map +0 -1
  2565. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -3
  2566. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -91
  2567. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts.map +0 -1
  2568. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -114
  2569. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -51
  2570. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts.map +0 -1
  2571. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -134
  2572. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -47
  2573. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts.map +0 -1
  2574. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -117
  2575. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -43
  2576. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts.map +0 -1
  2577. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -128
  2578. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -7
  2579. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts.map +0 -1
  2580. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -22
  2581. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -55
  2582. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts.map +0 -1
  2583. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -118
  2584. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -41
  2585. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts.map +0 -1
  2586. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -85
  2587. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -59
  2588. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts.map +0 -1
  2589. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -111
  2590. package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts +0 -55
  2591. package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts.map +0 -1
  2592. package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.js +0 -182
  2593. package/script/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts +0 -3
  2594. package/script/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts.map +0 -1
  2595. package/script/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.js +0 -310
  2596. package/script/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts +0 -29
  2597. package/script/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts.map +0 -1
  2598. package/script/deps/jsr.io/@std/assert/1.0.7/almost_equals.js +0 -49
  2599. package/script/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts +0 -24
  2600. package/script/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts.map +0 -1
  2601. package/script/deps/jsr.io/@std/assert/1.0.7/array_includes.js +0 -49
  2602. package/script/deps/jsr.io/@std/assert/1.0.7/assert.d.ts +0 -16
  2603. package/script/deps/jsr.io/@std/assert/1.0.7/assert.d.ts.map +0 -1
  2604. package/script/deps/jsr.io/@std/assert/1.0.7/assert.js +0 -25
  2605. package/script/deps/jsr.io/@std/assert/1.0.7/assertion_error.d.ts.map +0 -1
  2606. package/script/deps/jsr.io/@std/assert/1.0.7/assertion_error.js +0 -34
  2607. package/script/deps/jsr.io/@std/assert/1.0.7/equal.d.ts +0 -17
  2608. package/script/deps/jsr.io/@std/assert/1.0.7/equal.d.ts.map +0 -1
  2609. package/script/deps/jsr.io/@std/assert/1.0.7/equal.js +0 -139
  2610. package/script/deps/jsr.io/@std/assert/1.0.7/equals.d.ts +0 -22
  2611. package/script/deps/jsr.io/@std/assert/1.0.7/equals.d.ts.map +0 -1
  2612. package/script/deps/jsr.io/@std/assert/1.0.7/equals.js +0 -48
  2613. package/script/deps/jsr.io/@std/assert/1.0.7/exists.d.ts +0 -18
  2614. package/script/deps/jsr.io/@std/assert/1.0.7/exists.d.ts.map +0 -1
  2615. package/script/deps/jsr.io/@std/assert/1.0.7/exists.js +0 -30
  2616. package/script/deps/jsr.io/@std/assert/1.0.7/fail.d.ts +0 -15
  2617. package/script/deps/jsr.io/@std/assert/1.0.7/fail.d.ts.map +0 -1
  2618. package/script/deps/jsr.io/@std/assert/1.0.7/fail.js +0 -23
  2619. package/script/deps/jsr.io/@std/assert/1.0.7/false.d.ts +0 -18
  2620. package/script/deps/jsr.io/@std/assert/1.0.7/false.d.ts.map +0 -1
  2621. package/script/deps/jsr.io/@std/assert/1.0.7/false.js +0 -25
  2622. package/script/deps/jsr.io/@std/assert/1.0.7/greater.d.ts +0 -20
  2623. package/script/deps/jsr.io/@std/assert/1.0.7/greater.d.ts.map +0 -1
  2624. package/script/deps/jsr.io/@std/assert/1.0.7/greater.js +0 -32
  2625. package/script/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts +0 -20
  2626. package/script/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts.map +0 -1
  2627. package/script/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.js +0 -32
  2628. package/script/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts +0 -23
  2629. package/script/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts.map +0 -1
  2630. package/script/deps/jsr.io/@std/assert/1.0.7/instance_of.js +0 -55
  2631. package/script/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts +0 -25
  2632. package/script/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts.map +0 -1
  2633. package/script/deps/jsr.io/@std/assert/1.0.7/is_error.js +0 -56
  2634. package/script/deps/jsr.io/@std/assert/1.0.7/less.d.ts +0 -19
  2635. package/script/deps/jsr.io/@std/assert/1.0.7/less.d.ts.map +0 -1
  2636. package/script/deps/jsr.io/@std/assert/1.0.7/less.js +0 -31
  2637. package/script/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts +0 -20
  2638. package/script/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts.map +0 -1
  2639. package/script/deps/jsr.io/@std/assert/1.0.7/less_or_equal.js +0 -32
  2640. package/script/deps/jsr.io/@std/assert/1.0.7/match.d.ts +0 -18
  2641. package/script/deps/jsr.io/@std/assert/1.0.7/match.d.ts.map +0 -1
  2642. package/script/deps/jsr.io/@std/assert/1.0.7/match.js +0 -29
  2643. package/script/deps/jsr.io/@std/assert/1.0.7/mod.d.ts +0 -44
  2644. package/script/deps/jsr.io/@std/assert/1.0.7/mod.d.ts.map +0 -1
  2645. package/script/deps/jsr.io/@std/assert/1.0.7/mod.js +0 -61
  2646. package/script/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts +0 -21
  2647. package/script/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts.map +0 -1
  2648. package/script/deps/jsr.io/@std/assert/1.0.7/not_equals.js +0 -35
  2649. package/script/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts +0 -20
  2650. package/script/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts.map +0 -1
  2651. package/script/deps/jsr.io/@std/assert/1.0.7/not_instance_of.js +0 -32
  2652. package/script/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts +0 -18
  2653. package/script/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts.map +0 -1
  2654. package/script/deps/jsr.io/@std/assert/1.0.7/not_match.js +0 -29
  2655. package/script/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts +0 -23
  2656. package/script/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts.map +0 -1
  2657. package/script/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.js +0 -35
  2658. package/script/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts +0 -28
  2659. package/script/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts.map +0 -1
  2660. package/script/deps/jsr.io/@std/assert/1.0.7/object_match.js +0 -162
  2661. package/script/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts +0 -42
  2662. package/script/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts.map +0 -1
  2663. package/script/deps/jsr.io/@std/assert/1.0.7/rejects.js +0 -56
  2664. package/script/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts +0 -24
  2665. package/script/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts.map +0 -1
  2666. package/script/deps/jsr.io/@std/assert/1.0.7/strict_equals.js +0 -60
  2667. package/script/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts +0 -18
  2668. package/script/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts.map +0 -1
  2669. package/script/deps/jsr.io/@std/assert/1.0.7/string_includes.js +0 -29
  2670. package/script/deps/jsr.io/@std/assert/1.0.7/throws.d.ts +0 -45
  2671. package/script/deps/jsr.io/@std/assert/1.0.7/throws.d.ts.map +0 -1
  2672. package/script/deps/jsr.io/@std/assert/1.0.7/throws.js +0 -47
  2673. package/script/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts +0 -15
  2674. package/script/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts.map +0 -1
  2675. package/script/deps/jsr.io/@std/assert/1.0.7/unimplemented.js +0 -23
  2676. package/script/deps/jsr.io/@std/assert/1.0.7/unreachable.d.ts.map +0 -1
  2677. package/script/deps/jsr.io/@std/assert/1.0.7/unreachable.js +0 -23
  2678. package/script/deps/jsr.io/@std/bytes/1.0.3/concat.d.ts +0 -19
  2679. package/script/deps/jsr.io/@std/bytes/1.0.3/concat.d.ts.map +0 -1
  2680. package/script/deps/jsr.io/@std/bytes/1.0.3/concat.js +0 -35
  2681. package/script/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts +0 -2
  2682. package/script/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts.map +0 -1
  2683. package/script/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.js +0 -29
  2684. package/script/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts +0 -38
  2685. package/script/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts.map +0 -1
  2686. package/script/deps/jsr.io/@std/encoding/1.0.5/base64.js +0 -167
  2687. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
  2688. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
  2689. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -115
  2690. package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
  2691. package/script/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -283
  2692. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
  2693. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -185
  2694. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
  2695. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
  2696. package/script/deps/jsr.io/@std/internal/1.0.5/format.js +0 -63
  2697. package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
  2698. package/script/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -242
  2699. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
  2700. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
  2701. package/script/deps/jsr.io/@std/internal/1.0.5/types.js +0 -3
  2702. package/script/deps/jsr.io/@std/io/0.225.0/_constants.d.ts.map +0 -1
  2703. package/script/deps/jsr.io/@std/io/0.225.0/_constants.js +0 -7
  2704. package/script/deps/jsr.io/@std/io/0.225.0/iterate_reader.d.ts.map +0 -1
  2705. package/script/deps/jsr.io/@std/io/0.225.0/iterate_reader.js +0 -100
  2706. package/script/deps/jsr.io/@std/io/0.225.0/types.d.ts.map +0 -1
  2707. package/script/deps/jsr.io/@std/io/0.225.0/types.js +0 -18
  2708. package/script/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts +0 -8
  2709. package/script/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts.map +0 -1
  2710. package/script/deps/jsr.io/@std/media-types/1.0.3/_util.d.ts.map +0 -1
  2711. package/script/deps/jsr.io/@std/media-types/1.0.3/all_extensions.d.ts.map +0 -1
  2712. package/script/deps/jsr.io/@std/media-types/1.0.3/content_type.d.ts.map +0 -1
  2713. package/script/deps/jsr.io/@std/media-types/1.0.3/extension.d.ts.map +0 -1
  2714. package/script/deps/jsr.io/@std/media-types/1.0.3/format_media_type.d.ts.map +0 -1
  2715. package/script/deps/jsr.io/@std/media-types/1.0.3/get_charset.d.ts.map +0 -1
  2716. package/script/deps/jsr.io/@std/media-types/1.0.3/parse_media_type.d.ts.map +0 -1
  2717. package/script/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.d.ts.map +0 -1
  2718. package/script/deps/jsr.io/@std/media-types/1.0.3/vendor/db.d.ts +0 -8796
  2719. package/script/deps/jsr.io/@std/media-types/1.0.3/vendor/db.d.ts.map +0 -1
  2720. package/script/deps/jsr.io/@std/media-types/1.0.3/vendor/db.js +0 -8833
  2721. package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
  2722. package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +0 -10
  2723. package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +0 -1
  2724. package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.js +0 -45
  2725. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  2726. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  2727. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -26
  2728. package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
  2729. package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.js +0 -49
  2730. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  2731. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  2732. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -11
  2733. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  2734. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  2735. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -23
  2736. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  2737. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -12
  2738. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  2739. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  2740. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -237
  2741. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
  2742. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +0 -11
  2743. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
  2744. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +0 -80
  2745. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  2746. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  2747. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -12
  2748. package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +0 -1
  2749. package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +0 -22
  2750. package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +0 -1
  2751. package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +0 -18
  2752. package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
  2753. package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
  2754. package/script/deps/jsr.io/@std/path/1.0.8/_os.js +0 -35
  2755. package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts +0 -28
  2756. package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
  2757. package/script/deps/jsr.io/@std/path/1.0.8/basename.js +0 -39
  2758. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  2759. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  2760. package/script/deps/jsr.io/@std/path/1.0.8/common.js +0 -36
  2761. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  2762. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  2763. package/script/deps/jsr.io/@std/path/1.0.8/constants.js +0 -20
  2764. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  2765. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  2766. package/script/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -32
  2767. package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts +0 -23
  2768. package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
  2769. package/script/deps/jsr.io/@std/path/1.0.8/extname.js +0 -32
  2770. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  2771. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  2772. package/script/deps/jsr.io/@std/path/1.0.8/format.js +0 -30
  2773. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
  2774. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  2775. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -31
  2776. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  2777. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  2778. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -86
  2779. package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +0 -1
  2780. package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.js +0 -31
  2781. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  2782. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  2783. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -45
  2784. package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts +0 -23
  2785. package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
  2786. package/script/deps/jsr.io/@std/path/1.0.8/join.js +0 -32
  2787. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  2788. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  2789. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -37
  2790. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  2791. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  2792. package/script/deps/jsr.io/@std/path/1.0.8/mod.js +0 -73
  2793. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  2794. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  2795. package/script/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -36
  2796. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  2797. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  2798. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -38
  2799. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  2800. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  2801. package/script/deps/jsr.io/@std/path/1.0.8/parse.js +0 -42
  2802. package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
  2803. package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.js +0 -11
  2804. package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +0 -40
  2805. package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
  2806. package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.js +0 -52
  2807. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  2808. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  2809. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -17
  2810. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  2811. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  2812. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -65
  2813. package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +0 -37
  2814. package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
  2815. package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.js +0 -92
  2816. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  2817. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  2818. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -31
  2819. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  2820. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -24
  2821. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  2822. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  2823. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -85
  2824. package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +0 -1
  2825. package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +0 -26
  2826. package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +0 -33
  2827. package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
  2828. package/script/deps/jsr.io/@std/path/1.0.8/posix/join.js +0 -45
  2829. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  2830. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  2831. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -43
  2832. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +0 -40
  2833. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
  2834. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +0 -60
  2835. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  2836. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  2837. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -35
  2838. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  2839. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  2840. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -118
  2841. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  2842. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  2843. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -109
  2844. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  2845. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  2846. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -85
  2847. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +0 -1
  2848. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +0 -30
  2849. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  2850. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  2851. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -23
  2852. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  2853. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  2854. package/script/deps/jsr.io/@std/path/1.0.8/relative.js +0 -33
  2855. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  2856. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  2857. package/script/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -33
  2858. package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +0 -1
  2859. package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.js +0 -31
  2860. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  2861. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  2862. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -32
  2863. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  2864. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  2865. package/script/deps/jsr.io/@std/path/1.0.8/types.js +0 -4
  2866. package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
  2867. package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.js +0 -20
  2868. package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +0 -23
  2869. package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
  2870. package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.js +0 -47
  2871. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  2872. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  2873. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -17
  2874. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  2875. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  2876. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -115
  2877. package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +0 -20
  2878. package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
  2879. package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.js +0 -84
  2880. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  2881. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  2882. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -31
  2883. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  2884. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -33
  2885. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  2886. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  2887. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -85
  2888. package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +0 -1
  2889. package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +0 -41
  2890. package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
  2891. package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
  2892. package/script/deps/jsr.io/@std/path/1.0.8/windows/join.js +0 -77
  2893. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  2894. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  2895. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -44
  2896. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +0 -22
  2897. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
  2898. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +0 -137
  2899. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  2900. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  2901. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -35
  2902. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  2903. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  2904. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -179
  2905. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  2906. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  2907. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -134
  2908. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  2909. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  2910. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -180
  2911. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +0 -1
  2912. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +0 -37
  2913. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  2914. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  2915. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -52
  2916. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +0 -2
  2917. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts.map +0 -1
  2918. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +0 -6
  2919. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts +0 -2
  2920. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts.map +0 -1
  2921. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +0 -13
  2922. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -28
  2923. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts.map +0 -1
  2924. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +0 -166
  2925. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +0 -24
  2926. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts.map +0 -1
  2927. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +0 -202
  2928. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts +0 -3
  2929. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts.map +0 -1
  2930. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.js +0 -18
  2931. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts +0 -2
  2932. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts.map +0 -1
  2933. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +0 -22
  2934. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts +0 -3
  2935. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts.map +0 -1
  2936. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +0 -29
  2937. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts +0 -79
  2938. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts.map +0 -1
  2939. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +0 -1976
  2940. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts +0 -13
  2941. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts.map +0 -1
  2942. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.js +0 -88
  2943. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts +0 -2
  2944. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts.map +0 -1
  2945. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +0 -324
  2946. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts +0 -48
  2947. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts.map +0 -1
  2948. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +0 -1676
  2949. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts +0 -2
  2950. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts.map +0 -1
  2951. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +0 -358
  2952. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts +0 -13
  2953. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts.map +0 -1
  2954. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.js +0 -14
  2955. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts +0 -31
  2956. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts.map +0 -1
  2957. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.js +0 -44
  2958. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts +0 -6
  2959. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts.map +0 -1
  2960. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +0 -1114
  2961. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts +0 -15
  2962. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts.map +0 -1
  2963. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.js +0 -89
  2964. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts +0 -45
  2965. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts.map +0 -1
  2966. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.js +0 -280
  2967. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts +0 -3
  2968. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts.map +0 -1
  2969. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.js +0 -5
  2970. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts +0 -3
  2971. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts.map +0 -1
  2972. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +0 -39
  2973. package/script/tl/0_api.d.ts +0 -15839
  2974. package/script/tl/0_api.d.ts.map +0 -1
  2975. package/script/tl/0_api.js +0 -24772
  2976. package/script/tl/0_tl_raw_reader.d.ts +0 -36
  2977. package/script/tl/0_tl_raw_reader.d.ts.map +0 -1
  2978. package/script/tl/0_tl_raw_reader.js +0 -92
  2979. package/script/tl/0_tl_raw_writer.d.ts +0 -34
  2980. package/script/tl/0_tl_raw_writer.d.ts.map +0 -1
  2981. package/script/tl/0_tl_raw_writer.js +0 -90
  2982. package/script/tl/2_deserialize.d.ts +0 -23
  2983. package/script/tl/2_deserialize.d.ts.map +0 -1
  2984. package/script/tl/2_deserialize.js +0 -98
  2985. package/script/tl/2_serialize.d.ts +0 -22
  2986. package/script/tl/2_serialize.d.ts.map +0 -1
  2987. package/script/tl/2_serialize.js +0 -163
  2988. package/script/tl/3_tl_reader.d.ts +0 -26
  2989. package/script/tl/3_tl_reader.d.ts.map +0 -1
  2990. package/script/tl/3_tl_reader.js +0 -53
  2991. package/script/tl/3_utilities.d.ts +0 -34
  2992. package/script/tl/3_utilities.d.ts.map +0 -1
  2993. package/script/tl/3_utilities.js +0 -97
  2994. package/script/tl/4_rpc_result.d.ts +0 -27
  2995. package/script/tl/4_rpc_result.d.ts.map +0 -1
  2996. package/script/tl/4_rpc_result.js +0 -32
  2997. package/script/tl/4_tl_writer.d.ts +0 -25
  2998. package/script/tl/4_tl_writer.d.ts.map +0 -1
  2999. package/script/tl/4_tl_writer.js +0 -49
  3000. package/script/tl/5_message.d.ts +0 -39
  3001. package/script/tl/5_message.d.ts.map +0 -1
  3002. package/script/tl/5_message.js +0 -106
  3003. package/script/transport/2_transport_provider.d.ts +0 -35
  3004. package/script/transport/2_transport_provider.d.ts.map +0 -1
  3005. package/script/transport/2_transport_provider.js +0 -86
  3006. package/script/transport/3_transport_provider_tcp.d.ts +0 -14
  3007. package/script/transport/3_transport_provider_tcp.d.ts.map +0 -1
  3008. package/script/transport/3_transport_provider_tcp.js +0 -18
  3009. package/script/transport/3_transport_provider_web_socket.d.ts +0 -24
  3010. package/script/transport/3_transport_provider_web_socket.d.ts.map +0 -1
  3011. package/script/transport/3_transport_provider_web_socket.js +0 -47
  3012. package/script/types/0_link_preview.d.ts +0 -35
  3013. package/script/types/0_link_preview.d.ts.map +0 -1
  3014. package/script/types/0_link_preview.js +0 -31
  3015. package/script/types/0_message_entity.d.ts +0 -139
  3016. package/script/types/0_message_entity.d.ts.map +0 -1
  3017. package/script/types/0_message_entity.js +0 -188
  3018. package/script/types/0_mini_app_info.d.ts +0 -26
  3019. package/script/types/0_mini_app_info.d.ts.map +0 -1
  3020. package/script/types/0_mini_app_info.js +0 -25
  3021. package/script/types/0_opening_hours.d.ts +0 -26
  3022. package/script/types/0_opening_hours.d.ts.map +0 -1
  3023. package/script/types/0_opening_hours.js +0 -28
  3024. package/script/types/1_input_media.d.ts +0 -122
  3025. package/script/types/1_input_media.d.ts.map +0 -1
  3026. package/script/types/1_input_media.js +0 -21
  3027. package/script/types/1_message_content.d.ts +0 -119
  3028. package/script/types/1_message_content.d.ts.map +0 -1
  3029. package/script/types/1_message_content.js +0 -21
  3030. package/script/types/1_poll_option.d.ts +0 -32
  3031. package/script/types/1_poll_option.d.ts.map +0 -1
  3032. package/script/types/1_poll_option.js +0 -30
  3033. package/script/types/1_reply_quote.d.ts +0 -32
  3034. package/script/types/1_reply_quote.d.ts.map +0 -1
  3035. package/script/types/1_reply_quote.js +0 -33
  3036. package/script/types/1_story_privacy.d.ts +0 -46
  3037. package/script/types/1_story_privacy.d.ts.map +0 -1
  3038. package/script/types/1_story_privacy.js +0 -80
  3039. package/script/types/1_user.d.ts +0 -56
  3040. package/script/types/1_user.d.ts.map +0 -1
  3041. package/script/types/1_user.js +0 -50
  3042. package/script/types/2_business_connection.d.ts +0 -37
  3043. package/script/types/2_business_connection.d.ts.map +0 -1
  3044. package/script/types/2_business_connection.js +0 -33
  3045. package/script/types/2_chosen_inline_result.d.ts +0 -38
  3046. package/script/types/2_chosen_inline_result.d.ts.map +0 -1
  3047. package/script/types/2_chosen_inline_result.js +0 -40
  3048. package/script/types/2_forward_header.d.ts +0 -40
  3049. package/script/types/2_forward_header.d.ts.map +0 -1
  3050. package/script/types/2_forward_header.js +0 -58
  3051. package/script/types/2_game.d.ts +0 -40
  3052. package/script/types/2_game.d.ts.map +0 -1
  3053. package/script/types/2_game.js +0 -47
  3054. package/script/types/2_inline_keyboard_button.d.ts +0 -138
  3055. package/script/types/2_inline_keyboard_button.d.ts.map +0 -1
  3056. package/script/types/2_inline_keyboard_button.js +0 -121
  3057. package/script/types/2_inline_query.d.ts +0 -40
  3058. package/script/types/2_inline_query.d.ts.map +0 -1
  3059. package/script/types/2_inline_query.js +0 -63
  3060. package/script/types/2_invite_link.d.ts +0 -47
  3061. package/script/types/2_invite_link.d.ts.map +0 -1
  3062. package/script/types/2_invite_link.js +0 -51
  3063. package/script/types/2_message_reactions.d.ts +0 -43
  3064. package/script/types/2_message_reactions.d.ts.map +0 -1
  3065. package/script/types/2_message_reactions.js +0 -59
  3066. package/script/types/2_poll.d.ts +0 -55
  3067. package/script/types/2_poll.d.ts.map +0 -1
  3068. package/script/types/2_poll.js +0 -46
  3069. package/script/types/2_pre_checkout_query.d.ts +0 -34
  3070. package/script/types/2_pre_checkout_query.d.ts.map +0 -1
  3071. package/script/types/2_pre_checkout_query.js +0 -42
  3072. package/script/types/2_reply_to.d.ts +0 -35
  3073. package/script/types/2_reply_to.d.ts.map +0 -1
  3074. package/script/types/2_reply_to.js +0 -21
  3075. package/script/types/3_chat_member_updated.d.ts +0 -44
  3076. package/script/types/3_chat_member_updated.d.ts.map +0 -1
  3077. package/script/types/3_chat_member_updated.js +0 -56
  3078. package/script/types/3_join_request.d.ts +0 -39
  3079. package/script/types/3_join_request.d.ts.map +0 -1
  3080. package/script/types/3_join_request.js +0 -48
  3081. package/script/types/3_reply_markup.d.ts +0 -71
  3082. package/script/types/3_reply_markup.d.ts.map +0 -1
  3083. package/script/types/3_reply_markup.js +0 -131
  3084. package/script/types/4_inline_query_result.d.ts +0 -251
  3085. package/script/types/4_inline_query_result.d.ts.map +0 -1
  3086. package/script/types/4_inline_query_result.js +0 -384
  3087. package/script/types/4_message.d.ts +0 -615
  3088. package/script/types/4_message.d.ts.map +0 -1
  3089. package/script/types/4_message.js +0 -537
  3090. package/script/types/5_callback_query.d.ts +0 -43
  3091. package/script/types/5_callback_query.d.ts.map +0 -1
  3092. package/script/types/5_callback_query.js +0 -64
  3093. package/script/types/5_chat_list_item.d.ts +0 -36
  3094. package/script/types/5_chat_list_item.d.ts.map +0 -1
  3095. package/script/types/5_chat_list_item.js +0 -93
  3096. package/script/types/5_inline_query_answer.d.ts +0 -32
  3097. package/script/types/5_inline_query_answer.d.ts.map +0 -1
  3098. package/script/types/5_inline_query_answer.js +0 -31
  3099. package/script/types/6_update.d.ts +0 -388
  3100. package/script/types/6_update.d.ts.map +0 -1
  3101. package/script/types/6_update.js +0 -21
  3102. package/script/utilities/0_bigint.d.ts +0 -29
  3103. package/script/utilities/0_bigint.d.ts.map +0 -1
  3104. package/script/utilities/0_bigint.js +0 -98
  3105. package/script/utilities/0_buffer.d.ts +0 -21
  3106. package/script/utilities/0_buffer.d.ts.map +0 -1
  3107. package/script/utilities/0_buffer.js +0 -54
  3108. package/script/utilities/0_cache_map.d.ts +0 -26
  3109. package/script/utilities/0_cache_map.d.ts.map +0 -1
  3110. package/script/utilities/0_cache_map.js +0 -56
  3111. package/script/utilities/0_crypto.d.ts +0 -27
  3112. package/script/utilities/0_crypto.d.ts.map +0 -1
  3113. package/script/utilities/0_crypto.js +0 -52
  3114. package/script/utilities/1_misc.d.ts +0 -29
  3115. package/script/utilities/1_misc.d.ts.map +0 -1
  3116. package/script/utilities/1_misc.js +0 -82
  3117. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.19}/assertion_error.d.ts +0 -0
  3118. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.19}/unreachable.d.ts +0 -0
  3119. /package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/diff.d.ts +0 -0
  3120. /package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/diff_str.d.ts +0 -0
  3121. /package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/styles.d.ts +0 -0
  3122. /package/esm/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/_constants.d.ts +0 -0
  3123. /package/esm/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/iterate_reader.d.ts +0 -0
  3124. /package/esm/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/types.d.ts +0 -0
  3125. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.js +0 -0
  3126. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts +0 -0
  3127. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.js +0 -0
  3128. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts +0 -0
  3129. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.js +0 -0
  3130. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts +0 -0
  3131. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.js +0 -0
  3132. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts +0 -0
  3133. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.js +0 -0
  3134. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts +0 -0
  3135. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.js +0 -0
  3136. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts +0 -0
  3137. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.js +0 -0
  3138. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts +0 -0
  3139. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.js +0 -0
  3140. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.d.ts +0 -0
  3141. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.js +0 -0
  3142. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/assert_path.d.ts +0 -0
  3143. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/basename.d.ts +0 -0
  3144. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/constants.d.ts +0 -0
  3145. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/from_file_url.d.ts +0 -0
  3146. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/normalize.d.ts +0 -0
  3147. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/normalize_string.d.ts +0 -0
  3148. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/strip_trailing_separators.d.ts +0 -0
  3149. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/to_file_url.d.ts +0 -0
  3150. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/is_absolute.d.ts +0 -0
  3151. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/_util.d.ts +0 -0
  3152. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/from_file_url.d.ts +0 -0
  3153. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/is_absolute.d.ts +0 -0
  3154. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/to_file_url.d.ts +0 -0
  3155. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/to_file_url.d.ts +0 -0
  3156. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/_util.d.ts +0 -0
  3157. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/from_file_url.d.ts +0 -0
  3158. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/is_absolute.d.ts +0 -0
  3159. /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/to_file_url.d.ts +0 -0
  3160. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.19}/assertion_error.d.ts +0 -0
  3161. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.19}/unreachable.d.ts +0 -0
  3162. /package/script/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/diff.d.ts +0 -0
  3163. /package/script/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/diff_str.d.ts +0 -0
  3164. /package/script/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/styles.d.ts +0 -0
  3165. /package/script/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/_constants.d.ts +0 -0
  3166. /package/script/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/iterate_reader.d.ts +0 -0
  3167. /package/script/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/types.d.ts +0 -0
  3168. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.js +0 -0
  3169. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts +0 -0
  3170. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.js +0 -0
  3171. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts +0 -0
  3172. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.js +0 -0
  3173. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts +0 -0
  3174. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.js +0 -0
  3175. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts +0 -0
  3176. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.js +0 -0
  3177. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts +0 -0
  3178. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.js +0 -0
  3179. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts +0 -0
  3180. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.js +0 -0
  3181. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts +0 -0
  3182. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.js +0 -0
  3183. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.d.ts +0 -0
  3184. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.js +0 -0
  3185. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/assert_path.d.ts +0 -0
  3186. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/basename.d.ts +0 -0
  3187. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/constants.d.ts +0 -0
  3188. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/from_file_url.d.ts +0 -0
  3189. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/normalize.d.ts +0 -0
  3190. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/normalize_string.d.ts +0 -0
  3191. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/strip_trailing_separators.d.ts +0 -0
  3192. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/to_file_url.d.ts +0 -0
  3193. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/is_absolute.d.ts +0 -0
  3194. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/_util.d.ts +0 -0
  3195. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/from_file_url.d.ts +0 -0
  3196. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/is_absolute.d.ts +0 -0
  3197. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/to_file_url.d.ts +0 -0
  3198. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/to_file_url.d.ts +0 -0
  3199. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/_util.d.ts +0 -0
  3200. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/from_file_url.d.ts +0 -0
  3201. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/is_absolute.d.ts +0 -0
  3202. /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/to_file_url.d.ts +0 -0
@@ -0,0 +1,3439 @@
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
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
21
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
22
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
23
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
24
+ };
25
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
26
+ if (kind === "m") throw new TypeError("Private method is not writable");
27
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
28
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
29
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
30
+ };
31
+ var _Client_instances, _Client_clients, _Client_downloadPools, _Client_uploadPools, _Client_guaranteeUpdateDelivery, _Client_accountManager, _Client_botInfoManager, _Client_businessConnectionManager, _Client_fileManager, _Client_networkStatisticsManager, _Client_paymentManager, _Client_reactionManager, _Client_translationsManager, _Client_updateManager, _Client_messageManager, _Client_videoChatManager, _Client_callbackQueryManager, _Client_chatListManager, _Client_chatManager, _Client_checklistManager, _Client_forumManager, _Client_giftManager, _Client_inlineQueryManager, _Client_linkPreviewManager, _Client_pollManager, _Client_storyManager, _Client_managers, _Client_storage_, _Client_messageStorage_, _Client_parseMode, _Client_apiId, _Client_apiHash, _Client_transportProvider, _Client_publicKeys, _Client_outgoingMessages, _Client_persistCache, _Client_disableUpdates, _Client_authString, _Client_initialDc, _Client_L, _Client_LsignIn, _Client_LupdateGapRecoveryLoop, _Client_LstorageWriteLoop, _Client_LhandleMigrationError, _Client_Lmin, _Client_setMainClient, _Client_newClient, _Client_disconnectAllClients, _Client_client_get, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_getIsPremium, _Client_lastUpdates, _Client_updateGapRecoveryLoop, _Client_clientDisconnectionLoop, _Client_storageWriteLoop, _Client_checkAuthorization, _Client_getClient, _Client_getMainClientMutex, _Client_getMainClient, _Client_getDownloadClient, _Client_getUploadPoolSize, _Client_getUploadClient, _Client_setupClient, _Client_importAuthorization, _Client_invoke, _Client_handleInvokeError, _Client_authStringImported, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerChatId, _Client_getInputPeerInner, _Client_getMinInputPeer, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe, _Client_getMeInner, _Client_previouslyConnected, _Client_lastConnectionState, _Client_onConnectionStateChange;
32
+ import { delay, MINUTE, SECOND, unreachable } from "../0_deps.js";
33
+ import { AccessError, ConnectionError, InputError } from "../0_errors.js";
34
+ import { drop, getLogger, Mutex, ZERO_CHANNEL_ID } from "../1_utilities.js";
35
+ import { StorageMemory } from "../2_storage.js";
36
+ import { Api, Mtproto } from "../2_tl.js";
37
+ import { getDcId } from "../3_transport.js";
38
+ import { constructChatP, constructUser2 } from "../3_types.js";
39
+ import { APP_VERSION, DEVICE_MODEL, INITIAL_DC, LANG_CODE, LANG_PACK, MAX_CHANNEL_ID, MAX_CHAT_ID, SYSTEM_LANG_CODE, SYSTEM_VERSION, USERNAME_TTL } from "../4_constants.js";
40
+ import { AuthKeyUnregistered, FloodWait, Migrate, SessionRevoked } from "../4_errors.js";
41
+ import { peerToChatId } from "../tl/2_telegram.js";
42
+ import { AbortableLoop } from "./0_abortable_loop.js";
43
+ import { StorageOperations } from "./0_storage_operations.js";
44
+ import { canBeInputChannel, canBeInputUser, DOWNLOAD_POOL_SIZE, getUsername, toInputChannel, toInputUser } from "./0_utilities.js";
45
+ import { skipInvoke } from "./1_invoke_middleware.js";
46
+ import { AccountManager } from "./2_account_manager.js";
47
+ import { BotInfoManager } from "./2_bot_info_manager.js";
48
+ import { BusinessConnectionManager } from "./2_business_connection_manager.js";
49
+ import { ClientEncrypted } from "./2_client_encrypted.js";
50
+ import { FileManager } from "./2_file_manager.js";
51
+ import { NetworkStatisticsManager } from "./2_network_statistics_manager.js";
52
+ import { PaymentManager } from "./2_payment_manager.js";
53
+ import { ReactionManager } from "./2_reaction_manager.js";
54
+ import { signIn } from "./2_sign_in.js";
55
+ import { TranslationsManager } from "./2_translations_manager.js";
56
+ import { UpdateManager } from "./2_update_manager.js";
57
+ import { ClientEncryptedPool } from "./3_client_encrypted_pool.js";
58
+ import { MessageManager } from "./3_message_manager.js";
59
+ import { VideoChatManager } from "./3_video_chat_manager.js";
60
+ import { CallbackQueryManager } from "./4_callback_query_manager.js";
61
+ import { ChatListManager } from "./4_chat_list_manager.js";
62
+ import { ChatManager } from "./4_chat_manager.js";
63
+ import { ChecklistManager } from "./4_checklist_manager.js";
64
+ import { ForumManager } from "./4_forum_manager.js";
65
+ import { GiftManager } from "./4_gift_manager.js";
66
+ import { InlineQueryManager } from "./4_inline_query_manager.js";
67
+ import { LinkPreviewManager } from "./4_link_preview_manager.js";
68
+ import { PollManager } from "./4_poll_manager.js";
69
+ import { StoryManager } from "./4_story_manager.js";
70
+ import { Composer } from "./5_composer.js";
71
+ export { restartAuth } from "./2_sign_in.js";
72
+ export const handleMigrationError = Symbol("handleMigrationError");
73
+ // global Client ID counter for logs
74
+ let id = 0;
75
+ const getPeer = Symbol();
76
+ const mustGetPeer = Symbol();
77
+ /**
78
+ * An MTKruto client.
79
+ */
80
+ export class Client extends Composer {
81
+ // deno-lint-ignore no-explicit-any
82
+ get managers() {
83
+ return __classPrivateFieldGet(this, _Client_managers, "f") ?? (__classPrivateFieldSet(this, _Client_managers, __classPrivateFieldGet(this, _Client_managers, "f") ?? {
84
+ // 2_
85
+ accountManager: __classPrivateFieldGet(this, _Client_accountManager, "f"),
86
+ botInfoManager: __classPrivateFieldGet(this, _Client_botInfoManager, "f"),
87
+ businessConnectionManager: __classPrivateFieldGet(this, _Client_businessConnectionManager, "f"),
88
+ fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"),
89
+ networkStatisticsManager: __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f"),
90
+ paymentManager: __classPrivateFieldGet(this, _Client_paymentManager, "f"),
91
+ reactionManager: __classPrivateFieldGet(this, _Client_reactionManager, "f"),
92
+ translationsManager: __classPrivateFieldGet(this, _Client_translationsManager, "f"),
93
+ updateManager: __classPrivateFieldGet(this, _Client_updateManager, "f"),
94
+ // 3_
95
+ messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f"),
96
+ videoChatManager: __classPrivateFieldGet(this, _Client_videoChatManager, "f"),
97
+ // 4_
98
+ callbackQueryManager: __classPrivateFieldGet(this, _Client_callbackQueryManager, "f"),
99
+ chatListManager: __classPrivateFieldGet(this, _Client_chatListManager, "f"),
100
+ chatManager: __classPrivateFieldGet(this, _Client_chatManager, "f"),
101
+ checklistManager: __classPrivateFieldGet(this, _Client_checklistManager, "f"),
102
+ forumManager: __classPrivateFieldGet(this, _Client_forumManager, "f"),
103
+ giftManager: __classPrivateFieldGet(this, _Client_giftManager, "f"),
104
+ inlineQueryManager: __classPrivateFieldGet(this, _Client_inlineQueryManager, "f"),
105
+ linkPreviewManager: __classPrivateFieldGet(this, _Client_linkPreviewManager, "f"),
106
+ pollManager: __classPrivateFieldGet(this, _Client_pollManager, "f"),
107
+ storyManager: __classPrivateFieldGet(this, _Client_storyManager, "f"),
108
+ }, "f"));
109
+ }
110
+ /**
111
+ * Constructs the client.
112
+ */
113
+ constructor(params) {
114
+ super();
115
+ _Client_instances.add(this);
116
+ _Client_clients.set(this, new Array());
117
+ _Client_downloadPools.set(this, {});
118
+ _Client_uploadPools.set(this, {});
119
+ _Client_guaranteeUpdateDelivery.set(this, void 0);
120
+ // 2_
121
+ _Client_accountManager.set(this, void 0);
122
+ _Client_botInfoManager.set(this, void 0);
123
+ _Client_businessConnectionManager.set(this, void 0);
124
+ _Client_fileManager.set(this, void 0);
125
+ _Client_networkStatisticsManager.set(this, void 0);
126
+ _Client_paymentManager.set(this, void 0);
127
+ _Client_reactionManager.set(this, void 0);
128
+ _Client_translationsManager.set(this, void 0);
129
+ _Client_updateManager.set(this, void 0);
130
+ // 3_
131
+ _Client_messageManager.set(this, void 0);
132
+ _Client_videoChatManager.set(this, void 0);
133
+ // 4_
134
+ _Client_callbackQueryManager.set(this, void 0);
135
+ _Client_chatListManager.set(this, void 0);
136
+ _Client_chatManager.set(this, void 0);
137
+ _Client_checklistManager.set(this, void 0);
138
+ _Client_forumManager.set(this, void 0);
139
+ _Client_giftManager.set(this, void 0);
140
+ _Client_inlineQueryManager.set(this, void 0);
141
+ _Client_linkPreviewManager.set(this, void 0);
142
+ _Client_pollManager.set(this, void 0);
143
+ _Client_storyManager.set(this, void 0);
144
+ // deno-lint-ignore no-explicit-any
145
+ _Client_managers.set(this, void 0);
146
+ _Client_storage_.set(this, void 0);
147
+ _Client_messageStorage_.set(this, void 0);
148
+ Object.defineProperty(this, "storage", {
149
+ enumerable: true,
150
+ configurable: true,
151
+ writable: true,
152
+ value: void 0
153
+ });
154
+ Object.defineProperty(this, "messageStorage", {
155
+ enumerable: true,
156
+ configurable: true,
157
+ writable: true,
158
+ value: void 0
159
+ });
160
+ _Client_parseMode.set(this, void 0);
161
+ _Client_apiId.set(this, void 0);
162
+ _Client_apiHash.set(this, void 0);
163
+ _Client_transportProvider.set(this, void 0);
164
+ Object.defineProperty(this, "appVersion", {
165
+ enumerable: true,
166
+ configurable: true,
167
+ writable: true,
168
+ value: void 0
169
+ });
170
+ Object.defineProperty(this, "deviceModel", {
171
+ enumerable: true,
172
+ configurable: true,
173
+ writable: true,
174
+ value: void 0
175
+ });
176
+ Object.defineProperty(this, "language", {
177
+ enumerable: true,
178
+ configurable: true,
179
+ writable: true,
180
+ value: void 0
181
+ });
182
+ Object.defineProperty(this, "platform", {
183
+ enumerable: true,
184
+ configurable: true,
185
+ writable: true,
186
+ value: void 0
187
+ });
188
+ Object.defineProperty(this, "systemLangCode", {
189
+ enumerable: true,
190
+ configurable: true,
191
+ writable: true,
192
+ value: void 0
193
+ });
194
+ Object.defineProperty(this, "systemVersion", {
195
+ enumerable: true,
196
+ configurable: true,
197
+ writable: true,
198
+ value: void 0
199
+ });
200
+ _Client_publicKeys.set(this, void 0);
201
+ _Client_outgoingMessages.set(this, void 0);
202
+ _Client_persistCache.set(this, void 0);
203
+ _Client_disableUpdates.set(this, void 0);
204
+ _Client_authString.set(this, void 0);
205
+ _Client_initialDc.set(this, void 0);
206
+ _Client_L.set(this, void 0);
207
+ _Client_LsignIn.set(this, void 0);
208
+ _Client_LupdateGapRecoveryLoop.set(this, void 0);
209
+ _Client_LstorageWriteLoop.set(this, void 0);
210
+ _Client_LhandleMigrationError.set(this, void 0);
211
+ _Client_Lmin.set(this, void 0);
212
+ _Client_lastPropagatedConnectionState.set(this, null);
213
+ _Client_stateChangeHandler.set(this, ((isConnected) => {
214
+ const connectionState = isConnected ? "ready" : "notConnected";
215
+ if (__classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") !== connectionState) {
216
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).call(this, connectionState);
217
+ }
218
+ }).bind(this));
219
+ _Client_storageInited.set(this, false);
220
+ _Client_connectMutex.set(this, new Mutex());
221
+ _Client_lastPropagatedAuthorizationState.set(this, null);
222
+ _Client_lastUpdates.set(this, new Date());
223
+ _Client_updateGapRecoveryLoop.set(this, new AbortableLoop(async (loop, signal) => {
224
+ await delay(60 * SECOND, { signal });
225
+ if (!this.isConnected) {
226
+ loop.abort();
227
+ return;
228
+ }
229
+ if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 * MINUTE) {
230
+ drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("lastUpdates").then(() => {
231
+ __classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
232
+ }));
233
+ }
234
+ }, (loop, err) => {
235
+ if (!this.isConnected) {
236
+ loop.abort();
237
+ }
238
+ else {
239
+ __classPrivateFieldGet(this, _Client_LupdateGapRecoveryLoop, "f").error(err);
240
+ }
241
+ }));
242
+ _Client_clientDisconnectionLoop.set(this, new AbortableLoop(async (loop, signal) => {
243
+ await delay(60 * SECOND, { signal });
244
+ if (!this.isConnected) {
245
+ loop.abort();
246
+ return;
247
+ }
248
+ const now = Date.now();
249
+ const disconnectAfter = 5 * MINUTE;
250
+ for (const [i, client] of __classPrivateFieldGet(this, _Client_clients, "f").entries()) {
251
+ if (i > 0 && !client.isDisconnected && client.lastRequest && now - client.lastRequest.getTime() >= disconnectAfter) {
252
+ client?.disconnect();
253
+ }
254
+ }
255
+ }, (loop) => {
256
+ if (!this.isConnected) {
257
+ loop.abort();
258
+ }
259
+ }));
260
+ _Client_storageWriteLoop.set(this, new AbortableLoop(async (_loop, signal) => {
261
+ await delay(5 * SECOND, { signal });
262
+ await this.messageStorage.commit();
263
+ await this.storage.commit();
264
+ }, (err) => {
265
+ __classPrivateFieldGet(this, _Client_LstorageWriteLoop, "f").error(err);
266
+ }));
267
+ _Client_getMainClientMutex.set(this, new Mutex());
268
+ _Client_handleInvokeError.set(this, skipInvoke());
269
+ /**
270
+ * Invokes a function waiting and returning its reply.
271
+ * Requires the client to be connected.
272
+ *
273
+ * @param function_ The function to invoke.
274
+ */
275
+ Object.defineProperty(this, "invoke", {
276
+ enumerable: true,
277
+ configurable: true,
278
+ writable: true,
279
+ value: Object.assign(__classPrivateFieldGet(this, _Client_instances, "m", _Client_invoke), {
280
+ use: (handler) => {
281
+ const handle = __classPrivateFieldGet(this, _Client_handleInvokeError, "f");
282
+ __classPrivateFieldSet(this, _Client_handleInvokeError, async (ctx, next) => {
283
+ let result = null;
284
+ return await handle(ctx, async () => {
285
+ if (result !== null)
286
+ return result;
287
+ result = await handler(ctx, next);
288
+ return result;
289
+ });
290
+ }, "f");
291
+ },
292
+ })
293
+ });
294
+ _Client_authStringImported.set(this, false);
295
+ _Client_lastGetMe.set(this, null);
296
+ _Client_previouslyConnected.set(this, false);
297
+ _Client_lastConnectionState.set(this, false);
298
+ __classPrivateFieldSet(this, _Client_apiId, params?.apiId ?? 0, "f");
299
+ __classPrivateFieldSet(this, _Client_apiHash, params?.apiHash ?? "", "f");
300
+ __classPrivateFieldSet(this, _Client_transportProvider, params?.transportProvider, "f");
301
+ __classPrivateFieldSet(this, _Client_initialDc, params?.initialDc ?? INITIAL_DC, "f");
302
+ __classPrivateFieldSet(this, _Client_storage_, params?.storage || new StorageMemory(), "f");
303
+ __classPrivateFieldSet(this, _Client_persistCache, params?.persistCache ?? false, "f");
304
+ if (!__classPrivateFieldGet(this, _Client_persistCache, "f")) {
305
+ __classPrivateFieldSet(this, _Client_messageStorage_, new StorageMemory(), "f");
306
+ }
307
+ else {
308
+ __classPrivateFieldSet(this, _Client_messageStorage_, __classPrivateFieldGet(this, _Client_storage_, "f"), "f");
309
+ }
310
+ this.storage = new StorageOperations(__classPrivateFieldGet(this, _Client_storage_, "f"));
311
+ this.messageStorage = new StorageOperations(__classPrivateFieldGet(this, _Client_messageStorage_, "f"));
312
+ __classPrivateFieldSet(this, _Client_parseMode, params?.parseMode ?? null, "f");
313
+ __classPrivateFieldSet(this, _Client_disableUpdates, params?.disableUpdates ?? false, "f");
314
+ __classPrivateFieldSet(this, _Client_authString, params?.authString, "f");
315
+ this.appVersion = params?.appVersion ?? APP_VERSION;
316
+ this.deviceModel = params?.deviceModel ?? DEVICE_MODEL;
317
+ this.language = params?.language ?? LANG_CODE;
318
+ this.platform = params?.platform ?? LANG_PACK;
319
+ this.systemLangCode = params?.systemLangCode ?? SYSTEM_LANG_CODE;
320
+ this.systemVersion = params?.systemVersion ?? SYSTEM_VERSION;
321
+ __classPrivateFieldSet(this, _Client_publicKeys, params?.publicKeys, "f");
322
+ __classPrivateFieldSet(this, _Client_outgoingMessages, params?.outgoingMessages ?? false, "f");
323
+ __classPrivateFieldSet(this, _Client_guaranteeUpdateDelivery, params?.guaranteeUpdateDelivery ?? false, "f");
324
+ const L = __classPrivateFieldSet(this, _Client_L, getLogger("Client").client(id++), "f");
325
+ __classPrivateFieldSet(this, _Client_LsignIn, L.branch("signIn"), "f");
326
+ __classPrivateFieldSet(this, _Client_LupdateGapRecoveryLoop, L.branch("updateGapRecoveryLoop"), "f");
327
+ __classPrivateFieldSet(this, _Client_LstorageWriteLoop, L.branch("storageWriteLoop"), "f");
328
+ __classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
329
+ __classPrivateFieldSet(this, _Client_Lmin, L.branch("min"), "f");
330
+ const c = {
331
+ id,
332
+ getUploadPoolSize: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUploadPoolSize).bind(this),
333
+ invoke: async (function_, params) => {
334
+ if (params?.businessConnectionId) {
335
+ if (Mtproto.is("ping", function_)) {
336
+ unreachable();
337
+ }
338
+ return await this.invoke({ _: "invokeWithBusinessConnection", connection_id: params.businessConnectionId, query: function_ }, params);
339
+ }
340
+ else {
341
+ return await this.invoke(function_, params);
342
+ }
343
+ },
344
+ storage: this.storage,
345
+ messageStorage: this.messageStorage,
346
+ guaranteeUpdateDelivery: __classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f"),
347
+ setConnectionState: __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).bind(this),
348
+ resetConnectionState: () => __classPrivateFieldGet(this, _Client_stateChangeHandler, "f").call(this, this.isConnected),
349
+ getSelfId: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).bind(this),
350
+ getIsPremium: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getIsPremium).bind(this),
351
+ getInputPeer: this.getInputPeer.bind(this),
352
+ getInputChannel: this.getInputChannel.bind(this),
353
+ getInputUser: this.getInputUser.bind(this),
354
+ getInputPeerChatId: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerChatId).bind(this),
355
+ getPeer: this[mustGetPeer].bind(this),
356
+ handleUpdate: __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).bind(this),
357
+ parseMode: __classPrivateFieldGet(this, _Client_parseMode, "f"),
358
+ outgoingMessages: __classPrivateFieldGet(this, _Client_outgoingMessages, "f"),
359
+ dropPendingUpdates: params?.dropPendingUpdates,
360
+ isDisconnected: () => this.isDisconnected,
361
+ langPack: this.platform,
362
+ langCode: this.language,
363
+ };
364
+ // 2_
365
+ __classPrivateFieldSet(this, _Client_accountManager, new AccountManager(c), "f");
366
+ __classPrivateFieldSet(this, _Client_botInfoManager, new BotInfoManager(c), "f");
367
+ __classPrivateFieldSet(this, _Client_businessConnectionManager, new BusinessConnectionManager(c), "f");
368
+ const fileManager = __classPrivateFieldSet(this, _Client_fileManager, new FileManager(c), "f");
369
+ __classPrivateFieldSet(this, _Client_networkStatisticsManager, new NetworkStatisticsManager(c), "f");
370
+ __classPrivateFieldSet(this, _Client_paymentManager, new PaymentManager(c), "f");
371
+ __classPrivateFieldSet(this, _Client_reactionManager, new ReactionManager(c), "f");
372
+ __classPrivateFieldSet(this, _Client_translationsManager, new TranslationsManager(c), "f");
373
+ __classPrivateFieldSet(this, _Client_updateManager, new UpdateManager(c), "f");
374
+ // 3_
375
+ const messageManager = __classPrivateFieldSet(this, _Client_messageManager, new MessageManager({ ...c, fileManager }), "f");
376
+ __classPrivateFieldSet(this, _Client_videoChatManager, new VideoChatManager({ ...c, fileManager }), "f");
377
+ // 4_
378
+ __classPrivateFieldSet(this, _Client_callbackQueryManager, new CallbackQueryManager({ ...c, messageManager }), "f");
379
+ __classPrivateFieldSet(this, _Client_chatListManager, new ChatListManager({ ...c, fileManager, messageManager }), "f");
380
+ __classPrivateFieldSet(this, _Client_chatManager, new ChatManager({ ...c, fileManager, messageManager }), "f");
381
+ __classPrivateFieldSet(this, _Client_checklistManager, new ChecklistManager({ ...c, messageManager }), "f");
382
+ __classPrivateFieldSet(this, _Client_forumManager, new ForumManager({ ...c, messageManager }), "f");
383
+ __classPrivateFieldSet(this, _Client_giftManager, new GiftManager({ ...c, messageManager }), "f");
384
+ __classPrivateFieldSet(this, _Client_inlineQueryManager, new InlineQueryManager({ ...c, messageManager }), "f");
385
+ __classPrivateFieldSet(this, _Client_linkPreviewManager, new LinkPreviewManager({ ...c, messageManager }), "f");
386
+ __classPrivateFieldSet(this, _Client_pollManager, new PollManager({ ...c, messageManager }), "f");
387
+ __classPrivateFieldSet(this, _Client_storyManager, new StoryManager({ ...c, fileManager, messageManager }), "f");
388
+ __classPrivateFieldGet(this, _Client_updateManager, "f").setUpdateHandler(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).bind(this));
389
+ if (params?.defaultHandlers ?? true) {
390
+ this.invoke.use(async ({ error }, next) => {
391
+ if (error instanceof FloodWait && error.seconds <= 10) {
392
+ L.warning("sleeping for", error.seconds, "because of:", error);
393
+ await delay(error.seconds * SECOND);
394
+ return true;
395
+ }
396
+ else {
397
+ return next();
398
+ }
399
+ });
400
+ }
401
+ }
402
+ // direct ClientEncrypted property proxies
403
+ get isConnected() {
404
+ return __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.isConnected ?? false;
405
+ }
406
+ get isDisconnected() {
407
+ return __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.isDisconnected ?? true;
408
+ }
409
+ /**
410
+ * Loads the session if `setDc` was not called, initializes and connnects
411
+ * a `ClientPlain` to generate auth key if there was none, and connects the client.
412
+ * Before establishing the connection, the session is saved.
413
+ */
414
+ async connect() {
415
+ const unlock = await __classPrivateFieldGet(this, _Client_connectMutex, "f").lock();
416
+ try {
417
+ if (this.isConnected) {
418
+ return;
419
+ }
420
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
421
+ if (__classPrivateFieldGet(this, _Client_authString, "f") && !__classPrivateFieldGet(this, _Client_authStringImported, "f")) {
422
+ await this.importAuthString(__classPrivateFieldGet(this, _Client_authString, "f"));
423
+ }
424
+ const auth = this.storage.auth.mustGet();
425
+ if (auth.authKey !== null && auth.dc !== null) {
426
+ if (!__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get) || __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc !== auth.dc) {
427
+ __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.disconnect();
428
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_setMainClient).call(this, __classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, auth.dc, true, false));
429
+ }
430
+ await __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).setAuthKey(auth.authKey);
431
+ if (__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).serverSalt === 0n) {
432
+ __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).serverSalt = await this.storage.getServerSalt() ?? 0n;
433
+ }
434
+ }
435
+ else {
436
+ const dc = auth.dc ?? __classPrivateFieldGet(this, _Client_initialDc, "f");
437
+ if (!__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get) || __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc !== dc) {
438
+ __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.disconnect();
439
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_setMainClient).call(this, __classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, dc, true, false));
440
+ }
441
+ }
442
+ await __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).connect();
443
+ await this.storage.auth.update((v) => {
444
+ v.authKey = __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).authKey;
445
+ v.dc = __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc;
446
+ });
447
+ await this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).serverSalt);
448
+ __classPrivateFieldGet(this, _Client_updateGapRecoveryLoop, "f").start();
449
+ __classPrivateFieldGet(this, _Client_clientDisconnectionLoop, "f").start();
450
+ if (!__classPrivateFieldGet(this, _Client_messageStorage_, "f").isMemory) {
451
+ __classPrivateFieldGet(this, _Client_storageWriteLoop, "f").start();
452
+ }
453
+ else {
454
+ __classPrivateFieldGet(this, _Client_L, "f").debug("not starting storageWriteLoop");
455
+ }
456
+ await this.storage.commit(true);
457
+ }
458
+ finally {
459
+ unlock();
460
+ }
461
+ }
462
+ async [(_Client_clients = new WeakMap(), _Client_downloadPools = new WeakMap(), _Client_uploadPools = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_businessConnectionManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_paymentManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_translationsManager = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_videoChatManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_chatManager = new WeakMap(), _Client_checklistManager = new WeakMap(), _Client_forumManager = new WeakMap(), _Client_giftManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_linkPreviewManager = new WeakMap(), _Client_pollManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_managers = new WeakMap(), _Client_storage_ = new WeakMap(), _Client_messageStorage_ = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_apiId = new WeakMap(), _Client_apiHash = new WeakMap(), _Client_transportProvider = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_outgoingMessages = new WeakMap(), _Client_persistCache = new WeakMap(), _Client_disableUpdates = new WeakMap(), _Client_authString = new WeakMap(), _Client_initialDc = new WeakMap(), _Client_L = new WeakMap(), _Client_LsignIn = new WeakMap(), _Client_LupdateGapRecoveryLoop = new WeakMap(), _Client_LstorageWriteLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_Lmin = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_updateGapRecoveryLoop = new WeakMap(), _Client_clientDisconnectionLoop = new WeakMap(), _Client_storageWriteLoop = new WeakMap(), _Client_getMainClientMutex = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_authStringImported = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_previouslyConnected = new WeakMap(), _Client_lastConnectionState = new WeakMap(), _Client_instances = new WeakSet(), _Client_setMainClient = function _Client_setMainClient(client) {
463
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_disconnectAllClients).call(this);
464
+ __classPrivateFieldSet(this, _Client_clients, [client], "f");
465
+ client.handlers.onUpdate = (updates) => {
466
+ __classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(updates, true, null);
467
+ __classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
468
+ };
469
+ client.handlers.onDeserializationError = async () => {
470
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("deserialization error");
471
+ };
472
+ client.handlers.onNewServerSalt = async (serverSalt) => {
473
+ await this.storage.setServerSalt(serverSalt);
474
+ };
475
+ client.onConnectionStateChange = __classPrivateFieldGet(this, _Client_instances, "m", _Client_onConnectionStateChange).bind(this);
476
+ }, _Client_newClient = function _Client_newClient(dc, main, isCdn) {
477
+ const client = new ClientEncrypted(dc, __classPrivateFieldGet(this, _Client_apiId, "f"), {
478
+ appVersion: this.appVersion,
479
+ deviceModel: this.deviceModel,
480
+ langCode: this.language,
481
+ langPack: this.platform,
482
+ systemLangCode: this.systemLangCode,
483
+ systemVersion: this.systemVersion,
484
+ transportProvider: __classPrivateFieldGet(this, _Client_transportProvider, "f"),
485
+ isCdn: isCdn,
486
+ disableUpdates: !main || isCdn,
487
+ publicKeys: __classPrivateFieldGet(this, _Client_publicKeys, "f"),
488
+ });
489
+ client.connectionCallback = __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f").getTransportReadWriteCallback(isCdn);
490
+ return client;
491
+ }, _Client_disconnectAllClients = function _Client_disconnectAllClients() {
492
+ for (const client of __classPrivateFieldGet(this, _Client_clients, "f")) {
493
+ client.disconnect();
494
+ }
495
+ for (const pool of Object.values(__classPrivateFieldGet(this, _Client_downloadPools, "f"))) {
496
+ pool.disconnect();
497
+ }
498
+ for (const pool of Object.values(__classPrivateFieldGet(this, _Client_uploadPools, "f"))) {
499
+ pool.disconnect();
500
+ }
501
+ }, _Client_client_get = function _Client_client_get() {
502
+ return __classPrivateFieldGet(this, _Client_clients, "f")[0];
503
+ }, _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
504
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
505
+ __classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
506
+ }, _Client_initStorage = async function _Client_initStorage() {
507
+ if (!__classPrivateFieldGet(this, _Client_storageInited, "f")) {
508
+ await this.storage.initialize();
509
+ if (!__classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f")) {
510
+ await this.storage.deleteUpdates();
511
+ await this.storage.commit(true);
512
+ }
513
+ __classPrivateFieldSet(this, _Client_storageInited, true, "f");
514
+ }
515
+ }, handleMigrationError)](err) {
516
+ let newDc = String(err.dc);
517
+ if (Math.abs(getDcId(__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc, __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).isCdn)) >= 10_000) {
518
+ newDc += "-test";
519
+ }
520
+ this.disconnect();
521
+ await this.storage.auth.update((v) => {
522
+ v.authKey = null;
523
+ v.dc = newDc;
524
+ });
525
+ await this.connect();
526
+ __classPrivateFieldGet(this, _Client_LhandleMigrationError, "f").debug(`migrated to DC${newDc}`);
527
+ }
528
+ async disconnect() {
529
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_disconnectAllClients).call(this);
530
+ __classPrivateFieldGet(this, _Client_clientDisconnectionLoop, "f").abort();
531
+ __classPrivateFieldGet(this, _Client_updateGapRecoveryLoop, "f").abort();
532
+ __classPrivateFieldGet(this, _Client_storageWriteLoop, "f").abort();
533
+ __classPrivateFieldGet(this, _Client_updateManager, "f").closeAllChats();
534
+ await this.storage.commit(true);
535
+ await this.messageStorage.commit(true);
536
+ }
537
+ /**
538
+ * Send a user verification code.
539
+ *
540
+ * @param phoneNumber The phone number to send the code to.
541
+ * @method ac
542
+ */
543
+ async sendCode(phoneNumber) {
544
+ const me = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkAuthorization).call(this);
545
+ if (me) {
546
+ return;
547
+ }
548
+ try {
549
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").sendCode(phoneNumber, __classPrivateFieldGet(this, _Client_apiId, "f"), __classPrivateFieldGet(this, _Client_apiHash, "f"));
550
+ }
551
+ catch (err) {
552
+ if (err instanceof Migrate) {
553
+ await this[handleMigrationError](err);
554
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").sendCode(phoneNumber, __classPrivateFieldGet(this, _Client_apiId, "f"), __classPrivateFieldGet(this, _Client_apiHash, "f"));
555
+ }
556
+ else {
557
+ throw err;
558
+ }
559
+ }
560
+ }
561
+ /**
562
+ * Check if a code entered by the user was the same as the verification code.
563
+ *
564
+ * @param code A code entered by the user.
565
+ * @method ac
566
+ */
567
+ async checkCode(code) {
568
+ const result = await __classPrivateFieldGet(this, _Client_accountManager, "f").checkCode(code);
569
+ if (result.type === "signedIn") {
570
+ await this.storage.auth.update((v) => {
571
+ v.userId = result.userId;
572
+ v.isBot = false;
573
+ });
574
+ __classPrivateFieldGet(this, _Client_LsignIn, "f").debug("signed in as user");
575
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
576
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("checkCode");
577
+ }
578
+ return result;
579
+ }
580
+ /**
581
+ * Get the user account password's hint.
582
+ *
583
+ * @method ac
584
+ */
585
+ async getPasswordHint() {
586
+ return await __classPrivateFieldGet(this, _Client_accountManager, "f").getPasswordHint();
587
+ }
588
+ /**
589
+ * Check whether a password entered by the user is the same as the account's one.
590
+ *
591
+ * @param password The password to check
592
+ * @returns The result of the check.
593
+ * @method ac
594
+ */
595
+ async checkPassword(password) {
596
+ const result = await __classPrivateFieldGet(this, _Client_accountManager, "f").checkPassword(password);
597
+ if (result.type === "signedIn") {
598
+ await this.storage.auth.update((v) => {
599
+ v.userId = result.userId;
600
+ v.isBot = false;
601
+ });
602
+ await this.storage.commit(true);
603
+ __classPrivateFieldGet(this, _Client_LsignIn, "f").debug("signed in as user");
604
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
605
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("checkPassword");
606
+ }
607
+ return result;
608
+ }
609
+ /**
610
+ * Check whether a bot token is valid.
611
+ *
612
+ * @param password The password to check
613
+ * @returns The result of the check.
614
+ * @method ac
615
+ */
616
+ async checkBotToken(botToken) {
617
+ const me = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkAuthorization).call(this);
618
+ if (me) {
619
+ return {
620
+ type: "signedIn",
621
+ userId: me.id,
622
+ };
623
+ }
624
+ while (true) {
625
+ try {
626
+ const result = await __classPrivateFieldGet(this, _Client_accountManager, "f").checkBotToken(botToken, __classPrivateFieldGet(this, _Client_apiId, "f"), __classPrivateFieldGet(this, _Client_apiHash, "f"));
627
+ if (result.type === "signedIn") {
628
+ await this.storage.auth.update((v) => {
629
+ v.userId = result.userId;
630
+ v.isBot = true;
631
+ });
632
+ await this.storage.commit(true);
633
+ __classPrivateFieldGet(this, _Client_LsignIn, "f").debug("signed in as bot");
634
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
635
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("checkBotToken");
636
+ }
637
+ return result;
638
+ }
639
+ catch (err) {
640
+ if (err instanceof Migrate) {
641
+ await this[handleMigrationError](err);
642
+ continue;
643
+ }
644
+ else {
645
+ throw err;
646
+ }
647
+ }
648
+ }
649
+ }
650
+ /**
651
+ * Signs in using the provided parameters if not already signed in.
652
+ * If no parameters are provided, the credentials will be prompted in runtime.
653
+ *
654
+ * Notes:
655
+ * 1. Requires the `apiId` and `apiHash` paramters to be passed when constructing the client.
656
+ * 3. Reconnects the client to the appropriate DC in case of MIGRATE_X errors.
657
+ */
658
+ async signIn(params) {
659
+ await signIn(this, __classPrivateFieldGet(this, _Client_LsignIn, "f"), params);
660
+ }
661
+ async signOut() {
662
+ try {
663
+ await Promise.all([
664
+ this.storage.reset(),
665
+ this.invoke({ _: "auth.logOut" }).then(() => {
666
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, false);
667
+ }),
668
+ ]);
669
+ }
670
+ finally {
671
+ __classPrivateFieldSet(this, _Client_lastGetMe, null, "f");
672
+ this.disconnect();
673
+ await this.connect();
674
+ }
675
+ }
676
+ /**
677
+ * Same as calling `.connect()` followed by `.signIn(params)`.
678
+ */
679
+ async start(params) {
680
+ await this.connect();
681
+ await this.signIn(params);
682
+ }
683
+ exportAuthString() {
684
+ return this.storage.exportAuthString(__classPrivateFieldGet(this, _Client_apiId, "f"));
685
+ }
686
+ async importAuthString(authString) {
687
+ if (this.isConnected) {
688
+ throw new Error("Cannot import auth string while the client is connected");
689
+ }
690
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
691
+ await this.storage.importAuthString(authString);
692
+ __classPrivateFieldSet(this, _Client_authStringImported, true, "f");
693
+ if (!__classPrivateFieldGet(this, _Client_apiId, "f")) {
694
+ __classPrivateFieldSet(this, _Client_apiId, this.storage.auth.mustGet().apiId, "f");
695
+ }
696
+ }
697
+ /**
698
+ * Get a chat's inputPeer. Useful when calling API functions directly.
699
+ *
700
+ * @param id The identifier of a chat.
701
+ */
702
+ async getInputPeer(id) {
703
+ if (id === "me" || id === await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) {
704
+ return { _: "inputPeerSelf" };
705
+ }
706
+ const inputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerInner).call(this, id);
707
+ if (((Api.is("inputPeerUser", inputPeer) || Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash === 0n) && this.storage.isBot) {
708
+ if ("channel_id" in inputPeer) {
709
+ inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChannelAccessHash).call(this, inputPeer.channel_id);
710
+ }
711
+ else {
712
+ inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUserAccessHash).call(this, inputPeer.user_id);
713
+ }
714
+ }
715
+ if ((Api.is("inputPeerUser", inputPeer) || Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash === 0n) {
716
+ throw new AccessError(`The chat ${id} cannot be accessed.`);
717
+ }
718
+ return inputPeer;
719
+ }
720
+ /**
721
+ * Get a channel or a supergroup's inputChannel. Useful when calling API functions directly.
722
+ *
723
+ * @param id The identifier of the channel or the supergroup.
724
+ */
725
+ async getInputChannel(id) {
726
+ const inputPeer = await this.getInputPeer(id);
727
+ if (!canBeInputChannel(inputPeer)) {
728
+ throw new TypeError(`The chat ${id} is not a channel neither a supergroup.`);
729
+ }
730
+ return toInputChannel(inputPeer);
731
+ }
732
+ /**
733
+ * Get a user's inputUser. Useful when calling API functions directly.
734
+ *
735
+ * @param id The identifier of the user.
736
+ */
737
+ async getInputUser(id) {
738
+ const inputPeer = await this.getInputPeer(id);
739
+ if (!canBeInputUser(inputPeer)) {
740
+ throw new TypeError(`The chat ${id} is not a private chat.`);
741
+ }
742
+ return toInputUser(inputPeer);
743
+ }
744
+ async [(_Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
745
+ if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") !== authorized) {
746
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, { authorizationState: { isAuthorized: authorized } });
747
+ __classPrivateFieldSet(this, _Client_lastPropagatedAuthorizationState, authorized, "f");
748
+ }
749
+ }, _Client_getSelfId = async function _Client_getSelfId() {
750
+ const id = await this.storage.getAccountId();
751
+ if (id === null) {
752
+ throw new Error("Unauthorized");
753
+ }
754
+ return id;
755
+ }, _Client_getIsPremium = async function _Client_getIsPremium() {
756
+ const maybeIsPremium = await this.storage.getIsPremium();
757
+ if (maybeIsPremium !== null) {
758
+ return maybeIsPremium;
759
+ }
760
+ return __classPrivateFieldGet(this, _Client_lastGetMe, "f")?.isPremium ?? false;
761
+ }, _Client_checkAuthorization = async function _Client_checkAuthorization() {
762
+ if (__classPrivateFieldGet(this, _Client_lastGetMe, "f")) {
763
+ return __classPrivateFieldGet(this, _Client_lastGetMe, "f");
764
+ }
765
+ try {
766
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("#checkAuthorization");
767
+ const me = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMe).call(this);
768
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
769
+ drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("#checkAuthorization"));
770
+ return me;
771
+ }
772
+ catch (err) {
773
+ if (!(err instanceof AuthKeyUnregistered) && !(err instanceof SessionRevoked)) {
774
+ throw err;
775
+ }
776
+ }
777
+ }, _Client_getClient = async function _Client_getClient(params) {
778
+ let client;
779
+ switch (params.type) {
780
+ case undefined:
781
+ client = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMainClient).call(this, params.dc);
782
+ break;
783
+ case "download":
784
+ client = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getDownloadClient).call(this, params.dc);
785
+ break;
786
+ case "upload":
787
+ client = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUploadClient).call(this);
788
+ break;
789
+ }
790
+ if (client !== __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get) && !this.isDisconnected && client.isDisconnected) {
791
+ await client.connect();
792
+ }
793
+ return client;
794
+ }, _Client_getMainClient = async function _Client_getMainClient(dc) {
795
+ if (dc === undefined || dc === __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.dc) {
796
+ return __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get);
797
+ }
798
+ let client = __classPrivateFieldGet(this, _Client_clients, "f").find((v) => v.dc === dc);
799
+ if (client) {
800
+ return client;
801
+ }
802
+ const unlock = await __classPrivateFieldGet(this, _Client_getMainClientMutex, "f").lock();
803
+ client = __classPrivateFieldGet(this, _Client_clients, "f").find((v) => v.dc === dc);
804
+ if (client) {
805
+ return client;
806
+ }
807
+ try {
808
+ client = __classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, dc, false, false);
809
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setupClient).call(this, client);
810
+ __classPrivateFieldGet(this, _Client_clients, "f").push(client);
811
+ return client;
812
+ }
813
+ finally {
814
+ unlock();
815
+ }
816
+ }, _Client_getDownloadClient = async function _Client_getDownloadClient(dc) {
817
+ dc ??= __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc;
818
+ const pool = __classPrivateFieldGet(this, _Client_downloadPools, "f")[dc] ??= new ClientEncryptedPool();
819
+ if (!pool.size) {
820
+ if (!pool.size) {
821
+ for (let i = 0; i < DOWNLOAD_POOL_SIZE; ++i) {
822
+ pool.add(__classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, dc, false, true));
823
+ }
824
+ }
825
+ }
826
+ const client = pool.nextClient();
827
+ if (client.authKey.length) {
828
+ return client;
829
+ }
830
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setupClient).call(this, client);
831
+ return client;
832
+ }, _Client_getUploadPoolSize = async function _Client_getUploadPoolSize() {
833
+ const dc = __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc;
834
+ return (dc !== "2" && dc !== "4") || await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getIsPremium).call(this) ? 8 : 4;
835
+ }, _Client_getUploadClient = async function _Client_getUploadClient() {
836
+ const dc = __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc;
837
+ const poolSize = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUploadPoolSize).call(this);
838
+ const pool = __classPrivateFieldGet(this, _Client_uploadPools, "f")[dc] ??= new ClientEncryptedPool();
839
+ if (!pool.size) {
840
+ for (let i = 0; i < poolSize; ++i) {
841
+ pool.add(await __classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, dc, false, true));
842
+ }
843
+ }
844
+ const client = pool.nextClient();
845
+ if (client.authKey.length) {
846
+ return client;
847
+ }
848
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setupClient).call(this, client);
849
+ return client;
850
+ }, _Client_setupClient = async function _Client_setupClient(client) {
851
+ const storage = client.dc === __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc ? this.storage : new StorageOperations(this.storage.provider.branch(client.dc + (client.isCdn ? "_cdn" : "")));
852
+ await storage.initialize();
853
+ const auth = storage.auth.mustGet();
854
+ const serverSalt = await storage.getServerSalt();
855
+ if (auth.authKey !== null) {
856
+ await client.setAuthKey(auth.authKey);
857
+ if (serverSalt) {
858
+ client.serverSalt = serverSalt;
859
+ }
860
+ }
861
+ await client.connect();
862
+ if (auth.authKey === null) {
863
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_importAuthorization).call(this, client);
864
+ }
865
+ await storage.auth.update((v) => v.authKey = client.authKey);
866
+ if (client.dc !== __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc) {
867
+ await storage.setServerSalt(client.serverSalt);
868
+ client.handlers.onNewServerSalt = async (serverSalt) => {
869
+ await storage.setServerSalt(serverSalt);
870
+ };
871
+ }
872
+ }, _Client_importAuthorization = async function _Client_importAuthorization(client) {
873
+ if (__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc === client.dc && __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).isCdn === client.isCdn) {
874
+ const auth = this.storage.auth.mustGet();
875
+ const serverSalt = await this.storage.getServerSalt();
876
+ if (auth.authKey !== null) {
877
+ await client.setAuthKey(auth.authKey);
878
+ if (serverSalt) {
879
+ client.serverSalt = serverSalt;
880
+ }
881
+ }
882
+ return;
883
+ }
884
+ const exportedAuthorization = await __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).invoke({ _: "auth.exportAuthorization", dc_id: getDcId(client.dc, client.isCdn) });
885
+ await client.invoke({ ...exportedAuthorization, _: "auth.importAuthorization" });
886
+ }, _Client_invoke = async function _Client_invoke(function_, params) {
887
+ if (!__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)) {
888
+ throw new ConnectionError("The connection is not open.");
889
+ }
890
+ let n = 1;
891
+ let client;
892
+ while (true) {
893
+ client = params ? await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getClient).call(this, params) : __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get);
894
+ const main = client === __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get);
895
+ try {
896
+ const result = await client.invoke(function_);
897
+ if (main) {
898
+ try {
899
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").processResult(result);
900
+ }
901
+ catch (err) {
902
+ __classPrivateFieldGet(this, _Client_L, "f").error("failed to process result:", err);
903
+ }
904
+ if (Api.isOfEnum("Update", result) || Api.isOfEnum("Updates", result)) {
905
+ return new Promise((resolve) => {
906
+ __classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(result, true, Mtproto.is("ping", function_) ? null : function_, () => resolve(result));
907
+ });
908
+ }
909
+ }
910
+ return result;
911
+ }
912
+ catch (err) {
913
+ if (err instanceof AuthKeyUnregistered && !main) {
914
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_importAuthorization).call(this, client);
915
+ continue;
916
+ }
917
+ else if (err instanceof ConnectionError && !main && !this.isDisconnected) {
918
+ continue;
919
+ }
920
+ else if (await __classPrivateFieldGet(this, _Client_handleInvokeError, "f").call(this, Object.freeze({ client: this, error: err, function: function_, n: n++ }), () => Promise.resolve(false))) {
921
+ continue;
922
+ }
923
+ else {
924
+ throw err;
925
+ }
926
+ }
927
+ }
928
+ }, _Client_getUserAccessHash = async function _Client_getUserAccessHash(userId) {
929
+ const users = await this.invoke({ _: "users.getUsers", id: [{ _: "inputUser", user_id: userId, access_hash: 0n }] });
930
+ const user = Api.is("user", users[0]) ? users[0] : undefined;
931
+ return user?.access_hash ?? 0n;
932
+ }, _Client_getChannelAccessHash = async function _Client_getChannelAccessHash(channelId) {
933
+ const channels = await this.invoke({ _: "channels.getChannels", id: [{ _: "inputChannel", channel_id: channelId, access_hash: 0n }] });
934
+ const channel = Api.is("channel", channels.chats[0]) ? channels.chats[0] : undefined;
935
+ return channel?.access_hash ?? 0n;
936
+ }, _Client_getInputPeerChatId = async function _Client_getInputPeerChatId(inputPeer) {
937
+ if (Api.isOneOf(["inputPeerSelf", "inputUserSelf"], inputPeer)) {
938
+ return await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this);
939
+ }
940
+ else if (Api.isOneOf(["inputPeerEmpty", "inputUserEmpty", "inputChannelEmpty"], inputPeer)) {
941
+ unreachable();
942
+ }
943
+ else {
944
+ return Api.peerToChatId(inputPeer);
945
+ }
946
+ }, _Client_getInputPeerInner = async function _Client_getInputPeerInner(id) {
947
+ const idn = Number(id);
948
+ if (!isNaN(idn)) {
949
+ id = idn;
950
+ }
951
+ let peer;
952
+ if (typeof id === "string") {
953
+ id = getUsername(id);
954
+ let resolvedId = 0;
955
+ const maybeUsername = await this.messageStorage.usernames.get([id]);
956
+ if (maybeUsername !== null && Date.now() - maybeUsername[1].getTime() < USERNAME_TTL) {
957
+ const [id] = maybeUsername;
958
+ resolvedId = id;
959
+ }
960
+ else {
961
+ const resolved = await this.invoke({ _: "contacts.resolveUsername", username: id });
962
+ __classPrivateFieldGet(this, _Client_updateManager, "f").processChats(resolved.chats, resolved);
963
+ __classPrivateFieldGet(this, _Client_updateManager, "f").processUsers(resolved.users, resolved);
964
+ if (Api.is("peerUser", resolved.peer)) {
965
+ resolvedId = Api.peerToChatId(resolved.peer);
966
+ }
967
+ else if (Api.is("peerChannel", resolved.peer)) {
968
+ resolvedId = Api.peerToChatId(resolved.peer);
969
+ }
970
+ else {
971
+ unreachable();
972
+ }
973
+ }
974
+ const resolvedIdType = Api.getChatIdPeerType(resolvedId);
975
+ if (resolvedIdType === "user") {
976
+ const accessHash = await this.messageStorage.getUserAccessHash(resolvedId);
977
+ peer = { _: "inputPeerUser", user_id: Api.chatIdToPeerId(resolvedId), access_hash: accessHash ?? 0n };
978
+ }
979
+ else if (resolvedIdType === "channel") {
980
+ const accessHash = await this.messageStorage.getChannelAccessHash(resolvedId);
981
+ peer = { _: "inputPeerChannel", channel_id: Api.chatIdToPeerId(resolvedId), access_hash: accessHash ?? 0n };
982
+ }
983
+ else {
984
+ unreachable();
985
+ }
986
+ }
987
+ else if (id > 0) {
988
+ const accessHash = await this.messageStorage.getUserAccessHash(id);
989
+ peer = { _: "inputPeerUser", user_id: Api.chatIdToPeerId(id), access_hash: accessHash ?? 0n };
990
+ }
991
+ else if (-MAX_CHAT_ID <= id) {
992
+ peer = { _: "inputPeerChat", chat_id: BigInt(Math.abs(id)) };
993
+ }
994
+ else if (ZERO_CHANNEL_ID - MAX_CHANNEL_ID <= id && id !== ZERO_CHANNEL_ID) {
995
+ const accessHash = await this.messageStorage.getChannelAccessHash(id);
996
+ peer = { _: "inputPeerChannel", channel_id: Api.chatIdToPeerId(id), access_hash: accessHash ?? 0n };
997
+ }
998
+ else {
999
+ throw new InputError("The ID is of an format unknown.");
1000
+ }
1001
+ if (!Api.is("inputPeerChat", peer) && !peer.access_hash) {
1002
+ // TODO
1003
+ // const chatId = Api.peerToChatId(peer);
1004
+ // const minPeerReference = await this.messageStorage.getLastMinPeerReference(chatId);
1005
+ // if (minPeerReference) {
1006
+ // const minInputPeer = await this.#getMinInputPeer(canBeInputChannel(peer) ? "channel" : "user", { ...minPeerReference, senderId: chatId });
1007
+ // if (minInputPeer) {
1008
+ // this.#Lmin.debug("resolved input min peer", minInputPeer);
1009
+ // peer = minInputPeer;
1010
+ // }
1011
+ // }
1012
+ }
1013
+ return peer;
1014
+ }, _Client_getMinInputPeer = async function _Client_getMinInputPeer(type, reference) {
1015
+ const peer_ = await this.messageStorage.peers.get([reference.chatId]);
1016
+ if (peer_ !== null && (peer_[0].type === "channel" || peer_[0].type === "supergroup")) {
1017
+ const peer = { _: "inputPeerChannel", channel_id: BigInt(peer_[0].id), access_hash: peer_[1] };
1018
+ if (type === "user") {
1019
+ return { _: "inputPeerUserFromMessage", peer, msg_id: reference.messageId, user_id: Api.chatIdToPeerId(reference.senderId) };
1020
+ }
1021
+ else {
1022
+ return { _: "inputPeerChannelFromMessage", peer, msg_id: reference.messageId, channel_id: Api.chatIdToPeerId(reference.senderId) };
1023
+ }
1024
+ }
1025
+ else {
1026
+ return null;
1027
+ }
1028
+ }, getPeer)](peer) {
1029
+ const id = Api.peerToChatId(peer);
1030
+ const entity = await this.messageStorage.peers.get([id]);
1031
+ if (entity === null) {
1032
+ if (entity === null && this.storage.isBot && Api.is("peerUser", peer) || Api.is("peerChannel", peer)) {
1033
+ await this.getInputPeer(id);
1034
+ }
1035
+ else {
1036
+ return entity;
1037
+ }
1038
+ }
1039
+ return await this.messageStorage.peers.get([id]);
1040
+ }
1041
+ [mustGetPeer](peer) {
1042
+ return this.messageStorage.peers.mustGet([peerToChatId(peer)]);
1043
+ }
1044
+ //
1045
+ // ========================= ACCOUNT ========================= //
1046
+ //
1047
+ /**
1048
+ * Get information on the currently authorized user.
1049
+ *
1050
+ * @method ac
1051
+ * @returns Information on the currently authorized user.
1052
+ */
1053
+ async getMe() {
1054
+ if (__classPrivateFieldGet(this, _Client_lastGetMe, "f") === null) {
1055
+ const me = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkAuthorization).call(this);
1056
+ if (!me) {
1057
+ throw new InputError("Not signed in.");
1058
+ }
1059
+ else {
1060
+ return me;
1061
+ }
1062
+ }
1063
+ return await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMeInner).call(this);
1064
+ }
1065
+ /**
1066
+ * Show a username in the current account, a bot account, a supergroup, or a channel's profile. User-only.
1067
+ *
1068
+ * @method ac
1069
+ * @param id `"me"`, a bot ID, a supergroup ID, or a channel ID.
1070
+ * @param username The username to show.
1071
+ */
1072
+ async showUsername(id, username) {
1073
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").showUsername(id, username);
1074
+ }
1075
+ /**
1076
+ * Hide a username from the current account, a bot account, a supergroup, or a channel's profile. User-only.
1077
+ *
1078
+ * @method ac
1079
+ * @param id `"me"`, a bot ID, a supergroup ID, or a channel ID.
1080
+ * @param username The username to hide.
1081
+ */
1082
+ async hideUsername(id, username) {
1083
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").hideUsername(id, username);
1084
+ }
1085
+ /**
1086
+ * Check the availability of a username. User-only.
1087
+ *
1088
+ * @method ac
1089
+ * @param username The username to check.
1090
+ * @returns Whether the username is available.
1091
+ */
1092
+ async checkUsername(username, params) {
1093
+ return await __classPrivateFieldGet(this, _Client_accountManager, "f").checkUsername(username, params);
1094
+ }
1095
+ /**
1096
+ * Set the username of the current account. User-only.
1097
+ *
1098
+ * @method ac
1099
+ * @param username The username to set.
1100
+ */
1101
+ async setUsername(username) {
1102
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setUsername(username);
1103
+ }
1104
+ /**
1105
+ * Remove the current account's username. User-only.
1106
+ *
1107
+ * @method ac
1108
+ */
1109
+ async removeUsername() {
1110
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").removeUsername();
1111
+ }
1112
+ /**
1113
+ * Reorder the usernames of the current account, a bot account, a supergroup, or a channel's profile. User-only.
1114
+ *
1115
+ * @method ac
1116
+ * @param id `"me"`, a bot ID, a supergroup ID, or a channel ID.
1117
+ * @param order The new order to use.
1118
+ * @returns Whether the order was changed.
1119
+ */
1120
+ async reorderUsernames(id, order) {
1121
+ return await __classPrivateFieldGet(this, _Client_accountManager, "f").reorderUsernames(id, order);
1122
+ }
1123
+ /**
1124
+ * Hide all usernames from a supergroup or a channel's profile. User-only.
1125
+ *
1126
+ * @method ac
1127
+ * @param id A supergroup ID or a channel ID.
1128
+ * @returns Whether any username was hidden.
1129
+ */
1130
+ async hideUsernames(id) {
1131
+ return await __classPrivateFieldGet(this, _Client_accountManager, "f").hideUsernames(id);
1132
+ }
1133
+ /**
1134
+ * Get a business connection. Bot-only.
1135
+ *
1136
+ * @method ac
1137
+ * @param id The identifier of the business connection.
1138
+ * @cache
1139
+ */
1140
+ async getBusinessConnection(id) {
1141
+ return await __classPrivateFieldGet(this, _Client_businessConnectionManager, "f").getBusinessConnection(id);
1142
+ }
1143
+ /**
1144
+ * Set the current account's online status. User-only.
1145
+ *
1146
+ * @method ac
1147
+ * @param isOnline The new online status.
1148
+ */
1149
+ async setIsOnline(isOnline) {
1150
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setIsOnline(isOnline);
1151
+ }
1152
+ /**
1153
+ * Set the current account's emoji status. User-only.
1154
+ *
1155
+ * @method ac
1156
+ * @param emojiStatus The emoji or gift to set as the new emoji status.
1157
+ */
1158
+ async setEmojiStatus(emojiStatus, params) {
1159
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setEmojiStatus(emojiStatus, params);
1160
+ }
1161
+ /**
1162
+ * Remove the current account's emoji status. User-only.
1163
+ *
1164
+ * @method ac
1165
+ */
1166
+ async removeEmojiStatus() {
1167
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").removeEmojiStatus();
1168
+ }
1169
+ /**
1170
+ * Set the emoji status of a channel. User-only.
1171
+ *
1172
+ * @method ac
1173
+ * @param chatId The identifier of a channel.
1174
+ * @param emojiStatus The emoji or gift to set as the new emoji status.
1175
+ */
1176
+ async setChannelEmojiStatus(chatId, emojiStatus, params) {
1177
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setChannelEmojiStatus(chatId, emojiStatus, params);
1178
+ }
1179
+ /**
1180
+ * Remove the emoji status of a channel. User-only.
1181
+ *
1182
+ * @method ac
1183
+ * @param chatId The identifier of a channel.
1184
+ */
1185
+ async removeChannelEmojiStatus(chatId) {
1186
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").removeChannelEmojiStatus(chatId);
1187
+ }
1188
+ /**
1189
+ * Set the emoji status of a bot's user. Bot-only.
1190
+ *
1191
+ * @method ac
1192
+ * @param userId The identifier of a user of the bot.
1193
+ * @param emojiStatus The emoji or gift to set as the new emoji status.
1194
+ */
1195
+ async setUserEmojiStatus(userId, emojiStatus, params) {
1196
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setUserEmojiStatus(userId, emojiStatus, params);
1197
+ }
1198
+ /**
1199
+ * Remove the emoji status of a bot's user. Bot-only.
1200
+ *
1201
+ * @method ac
1202
+ * @param userId The identifier of a user of the bot.
1203
+ */
1204
+ async removeUserEmojiStatus(userId) {
1205
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").removeUserEmojiStatus(userId);
1206
+ }
1207
+ /**
1208
+ * Update the profile of the current user. At least one parameter must be specified. User-only.
1209
+ *
1210
+ * @method ac
1211
+ */
1212
+ async updateProfile(params) {
1213
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").updateProfile(params);
1214
+ }
1215
+ /**
1216
+ * Set the birthday of the current user. User-only.
1217
+ *
1218
+ * @method ac
1219
+ */
1220
+ async setBirthday(params) {
1221
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setBirthday(params);
1222
+ }
1223
+ /**
1224
+ * Set the personal channel of the current user. User-only.
1225
+ *
1226
+ * @method ac
1227
+ */
1228
+ async setPersonalChannel(params) {
1229
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setPersonalChannel(params);
1230
+ }
1231
+ /**
1232
+ * Set the name color of the current user. User-only.
1233
+ *
1234
+ * @method ac
1235
+ * @param color The identifier of the color to set.
1236
+ */
1237
+ async setNameColor(color, params) {
1238
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setNameColor(color, params);
1239
+ }
1240
+ /**
1241
+ * Set the profile color of the current user. User-only.
1242
+ *
1243
+ * @method ac
1244
+ * @param color The identifier of the color to set.
1245
+ */
1246
+ async setProfileColor(color, params) {
1247
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setProfileColor(color, params);
1248
+ }
1249
+ /**
1250
+ * Set the location of the current user. User-only.
1251
+ *
1252
+ * @method ac
1253
+ */
1254
+ async setLocation(params) {
1255
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setLocation(params);
1256
+ }
1257
+ /**
1258
+ * Set the working hours of the current user. User-only.
1259
+ *
1260
+ * @method ac
1261
+ */
1262
+ async setWorkingHours(params) {
1263
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").setWorkingHours(params);
1264
+ }
1265
+ /**
1266
+ * Enable sponsored messages on the current user. User-only.
1267
+ *
1268
+ * @method ac
1269
+ */
1270
+ async enableSponsoredMessages() {
1271
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").enableSponsoredMessages();
1272
+ }
1273
+ /**
1274
+ * Disable sponsored messages on the current user. User-only.
1275
+ *
1276
+ * @method ac
1277
+ */
1278
+ async disableSponsoredMessages() {
1279
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").disableSponsoredMessages();
1280
+ }
1281
+ /**
1282
+ * Pause the business bot in a chat. User-only.
1283
+ *
1284
+ * @method ac
1285
+ */
1286
+ async pauseBusinessBotConnection(chatId) {
1287
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").pauseBusinessBotConnection(chatId);
1288
+ }
1289
+ /**
1290
+ * Resume the business bot in a chat. User-only.
1291
+ *
1292
+ * @method ac
1293
+ */
1294
+ async resumeBusinessBotConnection(chatId) {
1295
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").resumeBusinessBotConnection(chatId);
1296
+ }
1297
+ //
1298
+ // ========================= MESSAGES ========================= //
1299
+ //
1300
+ /**
1301
+ * Send a text message.
1302
+ *
1303
+ * @method ms
1304
+ * @param chatId The identifier of a chat to send the message to.
1305
+ * @param text The message's text.
1306
+ * @returns The sent text message.
1307
+ */
1308
+ async sendMessage(chatId, text, params) {
1309
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendMessage(chatId, text, params);
1310
+ }
1311
+ /**
1312
+ * Stream a drafted text message. Bot-only.
1313
+ *
1314
+ * @method ms
1315
+ * @param chatId The identifier of a chat to send the message to.
1316
+ * @param draftId The identifier of the draft.
1317
+ * @param text The message's text.
1318
+ */
1319
+ async sendMessageDraft(chatId, draftId, text, params) {
1320
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").sendMessageDraft(chatId, draftId, text, params);
1321
+ }
1322
+ /**
1323
+ * Send a photo.
1324
+ *
1325
+ * @method ms
1326
+ * @param chatId The identifier of a chat to send the photo to.
1327
+ * @param photo The photo to send.
1328
+ * @returns The sent photo.
1329
+ */
1330
+ async sendPhoto(chatId, photo, params) {
1331
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendPhoto(chatId, photo, params);
1332
+ }
1333
+ /**
1334
+ * Send a document.
1335
+ *
1336
+ * @method ms
1337
+ * @param chatId The identifier of a chat to send the document to.
1338
+ * @param document The document to send.
1339
+ * @returns The sent document.
1340
+ */
1341
+ async sendDocument(chatId, document, params) {
1342
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendDocument(chatId, document, params);
1343
+ }
1344
+ /**
1345
+ * Send a sticker.
1346
+ *
1347
+ * @method ms
1348
+ * @param chatId The identifier of a chat to send the sticker to.
1349
+ * @param document The sticker to send.
1350
+ * @returns The sent sticker.
1351
+ */
1352
+ async sendSticker(chatId, sticker, params) {
1353
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendSticker(chatId, sticker, params);
1354
+ }
1355
+ /**
1356
+ * Send a video.
1357
+ *
1358
+ * @method ms
1359
+ * @param chatId The identifier of a chat to send the video to.
1360
+ * @param video The video to send.
1361
+ * @returns The sent video.
1362
+ */
1363
+ async sendVideo(chatId, video, params) {
1364
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVideo(chatId, video, params);
1365
+ }
1366
+ /**
1367
+ * Send an animation.
1368
+ *
1369
+ * @method ms
1370
+ * @param chatId The identifier of a chat to send the animation to.
1371
+ * @param animation The animation to send.
1372
+ * @returns The sent animation.
1373
+ */
1374
+ async sendAnimation(chatId, animation, params) {
1375
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendAnimation(chatId, animation, params);
1376
+ }
1377
+ /**
1378
+ * Send a voice message.
1379
+ *
1380
+ * @method ms
1381
+ * @param chatId The identifier of a chat to send the voice message to.
1382
+ * @param voice The voice to send.
1383
+ * @returns The sent voice message.
1384
+ */
1385
+ async sendVoice(chatId, voice, params) {
1386
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVoice(chatId, voice, params);
1387
+ }
1388
+ /**
1389
+ * Send an audio file.
1390
+ *
1391
+ * @method ms
1392
+ * @param chatId The identifier of a chat to send the audio file to.
1393
+ * @param audio The audio to send.
1394
+ * @returns The sent audio filr.
1395
+ */
1396
+ async sendAudio(chatId, audio, params) {
1397
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendAudio(chatId, audio, params);
1398
+ }
1399
+ /**
1400
+ * Send a media group.
1401
+ *
1402
+ * @method ms
1403
+ * @param chatId The identifier of a chat to send the media group to.
1404
+ * @param media The media to include in the media group. Animations are not allowed. All of them must be of the same media type, but an exception is that photos and videos can be mixed.
1405
+ * @returns The sent messages.
1406
+ */
1407
+ async sendMediaGroup(chatId, media, params) {
1408
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendMediaGroup(chatId, media, params);
1409
+ }
1410
+ /**
1411
+ * Send a video note.
1412
+ *
1413
+ * @method ms
1414
+ * @param chatId The identifier of a chat to send the video note to.
1415
+ * @param videoNote The video note to send.
1416
+ * @returns The sent video note.
1417
+ */
1418
+ async sendVideoNote(chatId, videoNote, params) {
1419
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVideoNote(chatId, videoNote, params);
1420
+ }
1421
+ /**
1422
+ * Send a location.
1423
+ *
1424
+ * @method ms
1425
+ * @param chatId The identifier of a chat to send the location to.
1426
+ * @param latitude The location's latitude.
1427
+ * @param longitude The location's longitude.
1428
+ * @returns The sent location.
1429
+ */
1430
+ async sendLocation(chatId, latitude, longitude, params) {
1431
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendLocation(chatId, latitude, longitude, params);
1432
+ }
1433
+ /**
1434
+ * Send a contact.
1435
+ *
1436
+ * @method ms
1437
+ * @param chatId The identifier of a chat to send the contact to.
1438
+ * @param firstName The contact's first name.
1439
+ * @param number The contact's phone number.
1440
+ * @returns The sent contact.
1441
+ */
1442
+ async sendContact(chatId, firstName, number, params) {
1443
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendContact(chatId, firstName, number, params);
1444
+ }
1445
+ /**
1446
+ * Send a dice.
1447
+ *
1448
+ * @method ms
1449
+ * @param chatId The identifier of a chat to send the dice to.
1450
+ * @returns The sent dice.
1451
+ */
1452
+ async sendDice(chatId, params) {
1453
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendDice(chatId, params);
1454
+ }
1455
+ /**
1456
+ * Send a venue.
1457
+ *
1458
+ * @method ms
1459
+ * @param chatId The identifier of a chat to send the venue to.
1460
+ * @param latitude The latitude of the venue.
1461
+ * @param longitude The longitude of the venue.
1462
+ * @param title The title of the venue.
1463
+ * @param address The written address of the venue.
1464
+ * @returns The sent venue.
1465
+ */
1466
+ async sendVenue(chatId, latitude, longitude, title, address, params) {
1467
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVenue(chatId, latitude, longitude, title, address, params);
1468
+ }
1469
+ /**
1470
+ * Send a poll.
1471
+ *
1472
+ * @method ms
1473
+ * @param chatId The identifier of a chat to send the poll to.
1474
+ * @param question The poll's question.
1475
+ * @param options The poll's options.
1476
+ * @returns The sent poll.
1477
+ */
1478
+ async sendPoll(chatId, question, options, params) {
1479
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendPoll(chatId, question, options, params);
1480
+ }
1481
+ /**
1482
+ * Send a checklist. User-only.
1483
+ *
1484
+ * @method ms
1485
+ * @param chatId The identifier of a chat to send the checklist to.
1486
+ * @param title The checklist's title.
1487
+ * @param items The checklist's items.
1488
+ * @returns The sent checklist.
1489
+ */
1490
+ async sendChecklist(chatId, title, items, params) {
1491
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendChecklist(chatId, title, items, params);
1492
+ }
1493
+ /**
1494
+ * Send an invoice. Bot-only.
1495
+ *
1496
+ * @method ms
1497
+ * @param chatId The identifier of a chat to send the invoice to.
1498
+ * @param title The invoice's title.
1499
+ * @param description The invoice's description.
1500
+ * @param payload The invoice's payload.
1501
+ * @param currency The invoice's currency.
1502
+ * @param prices The invoice's price tags.
1503
+ * @returns The sent invoice.
1504
+ */
1505
+ async sendInvoice(chatId, title, description, payload, currency, prices, params) {
1506
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendInvoice(chatId, title, description, payload, currency, prices, params);
1507
+ }
1508
+ /**
1509
+ * Edit a message's text.
1510
+ *
1511
+ * @method ms
1512
+ * @param chatId The identifier of the chat which the message belongs to.
1513
+ * @param messageId The identifier of the message.
1514
+ * @param text The new text of the message.
1515
+ * @returns The edited text message.
1516
+ */
1517
+ async editMessageText(chatId, messageId, text, params) {
1518
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
1519
+ }
1520
+ /**
1521
+ * Edit a message's caption.
1522
+ *
1523
+ * @method ms
1524
+ * @param chatId The identifier of the chat which the message belongs to.
1525
+ * @param messageId The identifier of the message.
1526
+ * @param text The new caption of the message.
1527
+ * @returns The edited message.
1528
+ */
1529
+ async editMessageCaption(chatId, messageId, params) {
1530
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageCaption(chatId, messageId, params);
1531
+ }
1532
+ /**
1533
+ * Edit a message's media.
1534
+ *
1535
+ * @method ms
1536
+ * @param chatId The identifier of the chat which the message belongs to.
1537
+ * @param messageId The identifier of the message.
1538
+ * @param media The new media of the message.
1539
+ * @returns The edited message.
1540
+ */
1541
+ async editMessageMedia(chatId, messageId, media, params) {
1542
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageMedia(chatId, messageId, media, params);
1543
+ }
1544
+ /**
1545
+ * Edit an inline message's media.
1546
+ *
1547
+ * @method ms
1548
+ * @param inlineMessageId The identifier of the inline message.
1549
+ * @param media The new media of the message.
1550
+ */
1551
+ async editInlineMessageMedia(inlineMessageId, media, params) {
1552
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageMedia(inlineMessageId, media, params);
1553
+ }
1554
+ /**
1555
+ * Edit an inline message's text. Bot-only.
1556
+ *
1557
+ * @method ms
1558
+ * @param inlineMessageId The identifier of the inline message.
1559
+ * @param text The new text of the message.
1560
+ */
1561
+ async editInlineMessageText(inlineMessageId, text, params) {
1562
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageText(inlineMessageId, text, params);
1563
+ }
1564
+ /**
1565
+ * Edit an inline message's caption. Bot-only.
1566
+ *
1567
+ * @method ms
1568
+ * @param inlineMessageId The identifier of the inline message.
1569
+ */
1570
+ async editInlineMessageCaption(inlineMessageId, params) {
1571
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageCaption(inlineMessageId, params);
1572
+ }
1573
+ /**
1574
+ * Edit a message's reply markup.
1575
+ *
1576
+ * @method ms
1577
+ * @param chatId The identifier of the chat which the message belongs to.
1578
+ * @param messageId The identifier of the message.
1579
+ * @returns The edited message.
1580
+ */
1581
+ async editMessageReplyMarkup(chatId, messageId, params) {
1582
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageReplyMarkup(chatId, messageId, params);
1583
+ }
1584
+ /**
1585
+ * Edit an inline message's reply markup. Bot-only.
1586
+ *
1587
+ * @method ms
1588
+ * @param inlineMessageId The identifier of the inline message.
1589
+ */
1590
+ async editInlineMessageReplyMarkup(inlineMessageId, params) {
1591
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageReplyMarkup(inlineMessageId, params);
1592
+ }
1593
+ /**
1594
+ * Edit a message's live location.
1595
+ *
1596
+ * @method ms
1597
+ * @param chatId The identifier of the chat which the message belongs to.
1598
+ * @param messageId The identifier of the message.
1599
+ * @param latitude The new latitude.
1600
+ * @param longitude The new longitude.
1601
+ * @returns The edited location message.
1602
+ */
1603
+ async editMessageLiveLocation(chatId, messageId, latitude, longitude, params) {
1604
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
1605
+ }
1606
+ /**
1607
+ * Edit an inline message's live location. Bot-only.
1608
+ *
1609
+ * @method ms
1610
+ * @param inlineMessageId The identifier of the inline message.
1611
+ * @param latitude The new latitude.
1612
+ * @param longitude The new longitude.
1613
+ * @returns The edited location message.
1614
+ */
1615
+ async editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params) {
1616
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
1617
+ }
1618
+ /**
1619
+ * Retrieve multiple messages.
1620
+ *
1621
+ * @method ms
1622
+ * @param chatId The identifier of a chat to retrieve the messages from.
1623
+ * @param messageIds The identifiers of the messages to retrieve.
1624
+ * @example ```ts
1625
+ * const message = await client.getMessages("@MTKruto", [210, 212]);
1626
+ * ```
1627
+ * @returns The retrieved messages.
1628
+ * @cache
1629
+ */
1630
+ async getMessages(chatId, messageIds) {
1631
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getMessages(chatId, messageIds);
1632
+ }
1633
+ /**
1634
+ * Retrieve a single message.
1635
+ *
1636
+ * @method ms
1637
+ * @param chatId The identifier of a chat.
1638
+ * @param messageId The identifier of the message to retrieve.
1639
+ * @example ```ts
1640
+ * const message = await client.getMessage("@MTKruto", 212);
1641
+ * ```
1642
+ * @returns The retrieved message.
1643
+ * @cache
1644
+ */
1645
+ async getMessage(chatId, messageId) {
1646
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getMessage(chatId, messageId);
1647
+ }
1648
+ /**
1649
+ * Retrieve a message using its link.
1650
+ *
1651
+ * @method ms
1652
+ * @param link A message link.
1653
+ * @example ```ts
1654
+ * const message = await client.resolveMessageLink("https://t.me/MTKruto/212");
1655
+ * ```
1656
+ * @returns The message that was linked to.
1657
+ */
1658
+ async resolveMessageLink(link) {
1659
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").resolveMessageLink(link);
1660
+ }
1661
+ /**
1662
+ * Delete multiple messages.
1663
+ *
1664
+ * @method ms
1665
+ * @param chatId The identifier of the chat which the message belongs to.
1666
+ * @param messageIds The identifiers of the messages to delete.
1667
+ */
1668
+ async deleteMessages(chatId, messageIds, params) {
1669
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteMessages(chatId, messageIds, params);
1670
+ }
1671
+ /**
1672
+ * Delete a single message.
1673
+ *
1674
+ * @method ms
1675
+ * @param chatId The identifier of the chat which the message belongs to.
1676
+ * @param messageId The identifier of the message to delete.
1677
+ */
1678
+ async deleteMessage(chatId, messageId, params) {
1679
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteMessages(chatId, [messageId], params);
1680
+ }
1681
+ /**
1682
+ * Delete all messages sent by a specific member of a chat. User-only.
1683
+ *
1684
+ * @method ms
1685
+ * @param chatId The identifier of a chat. Must be a supergroup.
1686
+ * @param memberId The identifier of the member.
1687
+ */
1688
+ async deleteChatMemberMessages(chatId, memberId) {
1689
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatMemberMessages(chatId, memberId);
1690
+ }
1691
+ /**
1692
+ * Delete multiple scheduled messages.
1693
+ *
1694
+ * @method ms
1695
+ * @param chatId The identifier of a chat.
1696
+ * @param messageIds The identifiers of the scheduled messages to delete.
1697
+ */
1698
+ async deleteScheduledMessages(chatId, messageIds) {
1699
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteScheduledMessages(chatId, messageIds);
1700
+ }
1701
+ /**
1702
+ * Delete a scheduled message.
1703
+ *
1704
+ * @method ms
1705
+ * @param chatId The identifier of a chat.
1706
+ * @param messageId The identifier of the scheduled message to delete.
1707
+ */
1708
+ async deleteScheduledMessage(chatId, messageId) {
1709
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteScheduledMessage(chatId, messageId);
1710
+ }
1711
+ /**
1712
+ * Send multiple scheduled messages before their schedule.
1713
+ *
1714
+ * @method ms
1715
+ * @param chatId The identifier of a chat.
1716
+ * @param messageIds The identifiers of the scheduled messages to send.
1717
+ */
1718
+ async sendScheduledMessages(chatId, messageIds) {
1719
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendScheduledMessages(chatId, messageIds);
1720
+ }
1721
+ /**
1722
+ * Send a scheduled message before its schedule.
1723
+ *
1724
+ * @method ms
1725
+ * @param chatId The identifier of a chat.
1726
+ * @param messageId The identifier of the scheduled message to send.
1727
+ */
1728
+ async sendScheduledMessage(chatId, messageId) {
1729
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendScheduledMessage(chatId, messageId);
1730
+ }
1731
+ /**
1732
+ * Pin a message in a chat.
1733
+ *
1734
+ * @method ms
1735
+ * @param chatId The identifier of a chat.
1736
+ * @param messageId The identifier of the message.
1737
+ */
1738
+ async pinMessage(chatId, messageId, params) {
1739
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").pinMessage(chatId, messageId, params);
1740
+ }
1741
+ /**
1742
+ * Unpin a pinned message.
1743
+ *
1744
+ * @method ms
1745
+ * @param chatId The identifier of a chat.
1746
+ * @param messageId The identifier of the message.
1747
+ */
1748
+ async unpinMessage(chatId, messageId, params) {
1749
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").unpinMessage(chatId, messageId, params);
1750
+ }
1751
+ /**
1752
+ * Unpin all pinned messages.
1753
+ *
1754
+ * @method ms
1755
+ * @param chatId The identifier of a chat.
1756
+ */
1757
+ async unpinMessages(chatId, params) {
1758
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").unpinMessages(chatId, params);
1759
+ }
1760
+ /**
1761
+ * Forward multiple messages.
1762
+ *
1763
+ * @method ms
1764
+ * @param from The identifier of a chat to forward the messages from.
1765
+ * @param to The identifier of a chat to forward the messages to.
1766
+ * @param messageIds The identifiers of the messages to forward.
1767
+ * @returns The forwarded messages.
1768
+ */
1769
+ async forwardMessages(from, to, messageIds, params) {
1770
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").forwardMessages(from, to, messageIds, params);
1771
+ }
1772
+ /**
1773
+ * Forward a single message.
1774
+ *
1775
+ * @method ms
1776
+ * @param from The identifier of a chat to forward the message from.
1777
+ * @param to The identifier of a chat to forward the message to.
1778
+ * @param messageId The identifier of the message to forward.
1779
+ * @returns The forwarded message.
1780
+ */
1781
+ async forwardMessage(from, to, messageId, params) {
1782
+ return (await this.forwardMessages(from, to, [messageId], params))[0];
1783
+ }
1784
+ /**
1785
+ * Stop a poll.
1786
+ *
1787
+ * @method ms
1788
+ * @param chatId The chat that includes the poll.
1789
+ * @param messageId The idenfifier of the poll's message.
1790
+ * @returns The new state of the poll.
1791
+ */
1792
+ async stopPoll(chatId, messageId, params) {
1793
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").stopPoll(chatId, messageId, params);
1794
+ }
1795
+ /**
1796
+ * Send a chat action.
1797
+ *
1798
+ * @method ms
1799
+ * @param chatId The identifier of a chat to send the chat action to.
1800
+ * @param action The chat action.
1801
+ * @param messageThreadId The thread to send the chat action to.
1802
+ */
1803
+ async sendChatAction(chatId, action, params) {
1804
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").sendChatAction(chatId, action, params);
1805
+ }
1806
+ /**
1807
+ * Search for messages. User-only.
1808
+ *
1809
+ * @method ms
1810
+ */
1811
+ async searchMessages(params) {
1812
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").searchMessages(params);
1813
+ }
1814
+ /**
1815
+ * Mark messages as read. User-only.
1816
+ *
1817
+ * @method ms
1818
+ * @param chatId The identifier of the chat which the messages belong to.
1819
+ * @param untilMessageId The identifier of the message that will be marked as read, along with any other unread messages before it.
1820
+ */
1821
+ async readMessages(chatId, untilMessageId) {
1822
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").readMessages(chatId, untilMessageId);
1823
+ }
1824
+ /**
1825
+ * Start a bot. User-only.
1826
+ *
1827
+ * @method ms
1828
+ * @param botId The identifier of the bot to start.
1829
+ * @returns The start message.
1830
+ */
1831
+ async startBot(botId, params) {
1832
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").startBot(botId, params);
1833
+ }
1834
+ /**
1835
+ * Transcribe a voice message. User-only.
1836
+ *
1837
+ * @method ms
1838
+ * @param chatId The identifier of the chat which the message belongs to.
1839
+ * @param messageId The identifier of the message.
1840
+ * @cache
1841
+ */
1842
+ async transcribeVoice(chatId, messageId) {
1843
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").transcribeVoice(chatId, messageId);
1844
+ }
1845
+ /**
1846
+ * Get a sticker set.
1847
+ *
1848
+ * @method ms
1849
+ * @param name The name of the sticker set or its link.
1850
+ */
1851
+ async getStickerSet(name) {
1852
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getStickerSet(name);
1853
+ }
1854
+ /*
1855
+ * Get the link preview for a message that is about to be sent. User-only.
1856
+ *
1857
+ * @method ms
1858
+ * @param text The message's text.
1859
+ */
1860
+ async getLinkPreview(text, params) {
1861
+ return await __classPrivateFieldGet(this, _Client_linkPreviewManager, "f").getLinkPreview(text, params);
1862
+ }
1863
+ /**
1864
+ * Open a mini app. User-only.
1865
+ *
1866
+ * @method ms
1867
+ * @param botId The identifier of a bot with the mini app.
1868
+ * @param chatId The identifier of the chat from which the mini app is opened.
1869
+ * @cache
1870
+ */
1871
+ async openMiniApp(botId, chatId, params) {
1872
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").openMiniApp(botId, chatId, params);
1873
+ }
1874
+ /**
1875
+ * Get a progress ID that can be passed to relevant send* methods to receive upload progress updates for them.
1876
+ *
1877
+ * @method ms
1878
+ * @cache
1879
+ */
1880
+ async getProgressId() {
1881
+ return await __classPrivateFieldGet(this, _Client_fileManager, "f").getProgressId();
1882
+ }
1883
+ /**
1884
+ * Get messages saved from a specific chat.
1885
+ *
1886
+ * @method ms
1887
+ * @param chatId The identifier of a chat.
1888
+ */
1889
+ async getSavedMessages(chatId, params) {
1890
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getSavedMessages(chatId, params);
1891
+ }
1892
+ /**
1893
+ * Get a list of saved chats.
1894
+ *
1895
+ * @method ms
1896
+ */
1897
+ async getSavedChats(params) {
1898
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getSavedChats(params);
1899
+ }
1900
+ /**
1901
+ * Get a list of reactions made to a message. User-only.
1902
+ *
1903
+ * @param chatId The identifier of a chat.
1904
+ * @param messageId The identifier of the message.
1905
+ * @method ms
1906
+ */
1907
+ async getMessageReactions(chatId, messageId, params) {
1908
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getMessageReactions(chatId, messageId, params);
1909
+ }
1910
+ //
1911
+ // ========================= POLLS ========================= //
1912
+ //
1913
+ /**
1914
+ * Cast a vote. User-only.
1915
+ *
1916
+ * @method pl
1917
+ * @param chatId The identifier of the chat that includes the poll.
1918
+ * @param messageId The identifier of the message that includes the poll.
1919
+ * @param optionIndexes The indexes of the options to cast for.
1920
+ */
1921
+ async vote(chatId, messageId, optionIndexes) {
1922
+ await __classPrivateFieldGet(this, _Client_pollManager, "f").vote(chatId, messageId, optionIndexes);
1923
+ }
1924
+ /**
1925
+ * Retract a vote. User-only.
1926
+ *
1927
+ * @method pl
1928
+ * @param chatId The identifier of the chat that includes the poll.
1929
+ * @param messageId The identifier of the message that includes the poll.
1930
+ */
1931
+ async retractVote(chatId, messageId) {
1932
+ await __classPrivateFieldGet(this, _Client_pollManager, "f").retractVote(chatId, messageId);
1933
+ }
1934
+ //
1935
+ // ========================= CHECKLISTS ========================= //
1936
+ //
1937
+ /**
1938
+ * Add items to a checklist. User-only.
1939
+ *
1940
+ * @param chatId The identifier of a chat.
1941
+ * @param messageId The identifier of the checklist message.
1942
+ * @param items The items to add.
1943
+ * @method cl
1944
+ */
1945
+ async addToChecklist(chatId, messageId, items) {
1946
+ await __classPrivateFieldGet(this, _Client_checklistManager, "f").addToChecklist(chatId, messageId, items);
1947
+ }
1948
+ /**
1949
+ * Update a checklist. User-only.
1950
+ *
1951
+ * @param chatId The identifier of a chat.
1952
+ * @param messageId The identifier of the checklist message.
1953
+ * @method cl
1954
+ */
1955
+ async updateChecklist(chatId, messageId, params) {
1956
+ await __classPrivateFieldGet(this, _Client_checklistManager, "f").updateChecklist(chatId, messageId, params);
1957
+ }
1958
+ /**
1959
+ * Check multiple items of a checklist. User-only.
1960
+ *
1961
+ * @param chatId The identifier of a chat.
1962
+ * @param messageId The identifier of the checklist message.
1963
+ * @param items The identifiers of the items to check.
1964
+ * @method cl
1965
+ */
1966
+ async checkChecklistItems(chatId, messageId, items) {
1967
+ await __classPrivateFieldGet(this, _Client_checklistManager, "f").checkChecklistItems(chatId, messageId, items);
1968
+ }
1969
+ /**
1970
+ * Uncheck multiple items of a checklist. User-only.
1971
+ *
1972
+ * @param chatId The identifier of a chat.
1973
+ * @param messageId The identifier of the checklist message.
1974
+ * @param items The identifiers of the items to uncheck.
1975
+ * @method cl
1976
+ */
1977
+ async uncheckChecklistItems(chatId, messageId, items) {
1978
+ await __classPrivateFieldGet(this, _Client_checklistManager, "f").uncheckChecklistItems(chatId, messageId, items);
1979
+ }
1980
+ /**
1981
+ * Check a single item of a checklist. User-only.
1982
+ *
1983
+ * @param chatId The identifier of a chat.
1984
+ * @param messageId The identifier of the checklist message.
1985
+ * @param item The identifier of the item to check.
1986
+ * @method cl
1987
+ */
1988
+ async checkChecklistItem(chatId, messageId, item) {
1989
+ await __classPrivateFieldGet(this, _Client_checklistManager, "f").checkChecklistItem(chatId, messageId, item);
1990
+ }
1991
+ /**
1992
+ * Uncheck a single item of a checklist. User-only.
1993
+ *
1994
+ * @param chatId The identifier of a chat.
1995
+ * @param messageId The identifier of the checklist message.
1996
+ * @param item The identifier of the item to uncheck.
1997
+ * @method cl
1998
+ */
1999
+ async uncheckChecklistItem(chatId, messageId, item) {
2000
+ await __classPrivateFieldGet(this, _Client_checklistManager, "f").uncheckChecklistItem(chatId, messageId, item);
2001
+ }
2002
+ //
2003
+ // ========================= FILES ========================= //
2004
+ //
2005
+ /**
2006
+ * Download a chunk of a file.
2007
+ *
2008
+ * @method fs
2009
+ * @param fileId The identifier of a file.
2010
+ * @example ```ts
2011
+ * const chunk = await client.downloadChunk(fileId, { chunkSize: 256 * 1024 });
2012
+ * ```
2013
+ * @returns The downloaded chunk.
2014
+ * @cache file
2015
+ */
2016
+ async downloadChunk(fileId, params) {
2017
+ const controller = new AbortController();
2018
+ for await (const chunk of __classPrivateFieldGet(this, _Client_fileManager, "f").download(fileId, { ...params, signal: controller.signal })) {
2019
+ controller.abort();
2020
+ return chunk;
2021
+ }
2022
+ unreachable();
2023
+ }
2024
+ /**
2025
+ * Download a file.
2026
+ *
2027
+ * @method fs
2028
+ * @param fileId The identifier of the file to download.
2029
+ * @example ```ts
2030
+ * for await (const chunk of client.download(fileId, { chunkSize: 256 * 1024 })) {
2031
+ * await outFile.write(chunk);
2032
+ * }
2033
+ * ```
2034
+ * @returns A generator yielding the contents of the file.
2035
+ * @cache file
2036
+ */
2037
+ async *download(fileId, params) {
2038
+ for await (const chunk of __classPrivateFieldGet(this, _Client_fileManager, "f").download(fileId, params)) {
2039
+ yield chunk;
2040
+ }
2041
+ }
2042
+ /**
2043
+ * Get custom emoji documents for download.
2044
+ *
2045
+ * @method fs
2046
+ * @param id Identifier of one or more of custom emojis.
2047
+ * @returns The custom emoji documents.
2048
+ * @cache
2049
+ */
2050
+ async getCustomEmojiStickers(id) {
2051
+ return await __classPrivateFieldGet(this, _Client_fileManager, "f").getCustomEmojiStickers(id);
2052
+ }
2053
+ //
2054
+ // ========================= CHATS ========================= //
2055
+ //
2056
+ /**
2057
+ * Get chats from a chat list. User-only.
2058
+ *
2059
+ * @method ch
2060
+ */
2061
+ async getChats(params) {
2062
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChats(params?.from, params?.after, params?.limit);
2063
+ }
2064
+ /**
2065
+ * Get pinned chats from a chat list. User-only.
2066
+ *
2067
+ * @method ch
2068
+ * @param from The chat list to get the pinned chats from. Defaults to main.
2069
+ */
2070
+ async getPinnedChats(from) {
2071
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getPinnedChats(from);
2072
+ }
2073
+ /**
2074
+ * Get a chat.
2075
+ *
2076
+ * @method ch
2077
+ * @cache
2078
+ */
2079
+ async getChat(chatId) {
2080
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChat(chatId);
2081
+ }
2082
+ /**
2083
+ * Get chat history. User-only.
2084
+ *
2085
+ * @method ch
2086
+ * @param chatId The identifier of a chat.
2087
+ */
2088
+ async getHistory(chatId, params) {
2089
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getHistory(chatId, params);
2090
+ }
2091
+ /**
2092
+ * Set a chat's available reactions. User-only.
2093
+ *
2094
+ * @method ch
2095
+ * @param chatId The identifier of a chat.
2096
+ * @param availableReactions The new available reactions.
2097
+ */
2098
+ async setAvailableReactions(chatId, availableReactions) {
2099
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setAvailableReactions(chatId, availableReactions);
2100
+ }
2101
+ /**
2102
+ * Set a chat's photo.
2103
+ *
2104
+ * @method ch
2105
+ * @param chatId The identifier of a chat.
2106
+ * @param photo A photo to set as the chat's photo.
2107
+ */
2108
+ async setChatPhoto(chatId, photo, params) {
2109
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatPhoto(chatId, photo, params);
2110
+ }
2111
+ /**
2112
+ * Delete a chat's photo.
2113
+ *
2114
+ * @method ch
2115
+ * @param chatId The identifier of a chat.
2116
+ */
2117
+ async deleteChatPhoto(chatId) {
2118
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").deleteChatPhoto(chatId);
2119
+ }
2120
+ /**
2121
+ * Ban a member from a chat.
2122
+ *
2123
+ * @method ch
2124
+ * @param chatId The identifier of a chat.
2125
+ * @param memberId The identifier of the member.
2126
+ */
2127
+ async banChatMember(chatId, memberId, params) {
2128
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").banChatMember(chatId, memberId, params);
2129
+ }
2130
+ /**
2131
+ * Unban a member from a chat.
2132
+ *
2133
+ * @method ch
2134
+ * @param chatId The identifier of a chat. Must be a supergroup.
2135
+ * @param memberId The identifier of the member.
2136
+ */
2137
+ async unbanChatMember(chatId, memberId) {
2138
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").unbanChatMember(chatId, memberId);
2139
+ }
2140
+ /**
2141
+ * Kick a member from a chat. Same as a banChatMember call followed by unbanChatMember.
2142
+ *
2143
+ * @method ch
2144
+ * @param chatId The identifier of a chat. Must be a supergroup.
2145
+ * @param memberId The identifier of the member.
2146
+ */
2147
+ async kickChatMember(chatId, memberId) {
2148
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").banChatMember(chatId, memberId);
2149
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").unbanChatMember(chatId, memberId);
2150
+ }
2151
+ /**
2152
+ * Set the rights of a chat member.
2153
+ *
2154
+ * @method ch
2155
+ * @param chatId The identifier of a chat. Must be a supergroup.
2156
+ * @param memberId The identifier of the member.
2157
+ */
2158
+ async setChatMemberRights(chatId, memberId, params) {
2159
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatMemberRights(chatId, memberId, params);
2160
+ }
2161
+ /**
2162
+ * Get the administrators of a chat.
2163
+ *
2164
+ * @method ch
2165
+ * @param chatId The identifier of a chat.
2166
+ * @returns The chat's administrators.
2167
+ */
2168
+ async getChatAdministrators(chatId) {
2169
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatAdministrators(chatId);
2170
+ }
2171
+ /**
2172
+ * Enable join requests in a chat. User-only.
2173
+ *
2174
+ * @method ch
2175
+ * @param chatId The identifier of a chat. Must be a channel or a supergroup.
2176
+ */
2177
+ async enableJoinRequests(chatId) {
2178
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").enableJoinRequests(chatId);
2179
+ }
2180
+ /**
2181
+ * Disable join requests in a chat. User-only.
2182
+ *
2183
+ * @method ch
2184
+ * @param chatId The identifier of a chat. Must be a channel or a supergroup.
2185
+ */
2186
+ async disableJoinRequests(chatId) {
2187
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").disableJoinRequests(chatId);
2188
+ }
2189
+ /**
2190
+ * Get inactive chats. User-only.
2191
+ *
2192
+ * @method ch
2193
+ * @retuns A list of inactive chats the current user is member of.
2194
+ */
2195
+ async getInactiveChats() {
2196
+ return await __classPrivateFieldGet(this, _Client_accountManager, "f").getInactiveChats();
2197
+ }
2198
+ /**
2199
+ * Get the invite links created for a chat. User-only.
2200
+ *
2201
+ * @method ch
2202
+ * @param chatId The identifier of a chat.
2203
+ * @returns The invite links created for the chat. This might be a subset of the results if they were less than `limit`. The parameters `afterDate` and `afterInviteLink` can be used for pagination.
2204
+ */
2205
+ async getCreatedInviteLinks(chatId, params) {
2206
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").getCreatedInviteLinks(chatId, params);
2207
+ }
2208
+ /**
2209
+ * Join a chat. User-only.
2210
+ *
2211
+ * @method ch
2212
+ * @param chatId The identifier of a chat.
2213
+ */
2214
+ async joinChat(chatId) {
2215
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").joinChat(chatId);
2216
+ }
2217
+ /**
2218
+ * Leave a chat.
2219
+ *
2220
+ * @method ch
2221
+ * @param chatId The identifier of a chat.
2222
+ */
2223
+ async leaveChat(chatId) {
2224
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").leaveChat(chatId);
2225
+ }
2226
+ /**
2227
+ * Get information on a user's chat membership.
2228
+ *
2229
+ * @method ch
2230
+ * @param chatId The identifier of a chat.
2231
+ * @param userId The identifier of the user.
2232
+ */
2233
+ async getChatMember(chatId, userId) {
2234
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatMember(chatId, userId);
2235
+ }
2236
+ /**
2237
+ * Get the members of a chat.
2238
+ *
2239
+ * @method ch
2240
+ * @param chatId The identifier of a chat.
2241
+ */
2242
+ async getChatMembers(chatId, params) {
2243
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatMembers(chatId, params);
2244
+ }
2245
+ /**
2246
+ * Set a chat's sticker set.
2247
+ *
2248
+ * @method ch
2249
+ * @param chatId The identifier of a chat. Must be a supergroup.
2250
+ * @param setName The name of the set.
2251
+ */
2252
+ async setChatStickerSet(chatId, setName) {
2253
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatStickerSet(chatId, setName);
2254
+ }
2255
+ /**
2256
+ * Delete a chat's sticker set.
2257
+ *
2258
+ * @method ch
2259
+ * @param chatId The identifier of a chat. Must be a supergroup.
2260
+ */
2261
+ async deleteChatStickerSet(chatId) {
2262
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatStickerSet(chatId);
2263
+ }
2264
+ /**
2265
+ * Set the number of boosts required to circument a chat's default restrictions. User-only.
2266
+ *
2267
+ * @method ch
2268
+ * @param chatId The identifier of a chat.
2269
+ * @param boosts The number of boosts required to circumvent its restrictions.
2270
+ */
2271
+ async setBoostsRequiredToCircumventRestrictions(chatId, boosts) {
2272
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setBoostsRequiredToCircumventRestrictions(chatId, boosts);
2273
+ }
2274
+ /**
2275
+ * Create an invite link.
2276
+ *
2277
+ * @method ch
2278
+ * @param chatId The identifier of a chat to create the invite link for.
2279
+ * @returns The newly created invite link.
2280
+ */
2281
+ async createInviteLink(chatId, params) {
2282
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").createInviteLink(chatId, params);
2283
+ }
2284
+ /**
2285
+ * Approve a join request.
2286
+ *
2287
+ * @method ch
2288
+ * @param chatId The identifier of a chat with the join request.
2289
+ * @param userId The user who made the join request.
2290
+ */
2291
+ async approveJoinRequest(chatId, userId) {
2292
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").approveJoinRequest(chatId, userId);
2293
+ }
2294
+ /**
2295
+ * Decline a join request.
2296
+ *
2297
+ * @method ch
2298
+ * @param chatId The identifier of a chat with the join request.
2299
+ * @param userId The user who made the join request.
2300
+ */
2301
+ async declineJoinRequest(chatId, userId) {
2302
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").declineJoinRequest(chatId, userId);
2303
+ }
2304
+ /**
2305
+ * Approve all join requests. User-only.
2306
+ *
2307
+ * @method ch
2308
+ * @param chatId The identifier of a chat with the join requests.
2309
+ */
2310
+ async approveJoinRequests(chatId, params) {
2311
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").approveJoinRequests(chatId, params);
2312
+ }
2313
+ /**
2314
+ * Decline all join requests. User-only.
2315
+ *
2316
+ * @method ch
2317
+ * @param chatId The identifier of a chat with the join requests.
2318
+ */
2319
+ async declineJoinRequests(chatId, params) {
2320
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").declineJoinRequests(chatId, params);
2321
+ }
2322
+ /**
2323
+ * Get pending join requests in a chat. User-only.
2324
+ *
2325
+ * @method ch
2326
+ * @param chatId The identifier of a chat with the join requests.
2327
+ */
2328
+ async getJoinRequests(chatId, params) {
2329
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").getJoinRequests(chatId, params);
2330
+ }
2331
+ /**
2332
+ * Add a single user to a chat.
2333
+ *
2334
+ * @method ch
2335
+ * @param chatId The identifier of a chat to add the user to.
2336
+ * @param userId The identifier of the user to add to the chat.
2337
+ * @returns An array of FailedInvitation that has at most a length of 1. If empty, it means that the user was added.
2338
+ */
2339
+ async addChatMember(chatId, userId, params) {
2340
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").addChatMember(chatId, userId, params);
2341
+ }
2342
+ /**
2343
+ * Add multiple users at once to a channel or a supergroup.
2344
+ *
2345
+ * @method ch
2346
+ * @param chatId The identifier of the channel or supergroup to add the users to.
2347
+ * @param userId The identifiers of the users to add to the channel or supergroup.
2348
+ * @returns An array of FailedInvitation that has at most a length that is the same as that of the parameter userIds. If empty, it means that all the provided users were added.
2349
+ */
2350
+ async addChatMembers(chatId, userIds) {
2351
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").addChatMembers(chatId, userIds);
2352
+ }
2353
+ /**
2354
+ * Open a chat.
2355
+ *
2356
+ * @method ch
2357
+ * @param chatId The identifier of a chat to open.
2358
+ */
2359
+ async openChat(chatId, params) {
2360
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").openChat(chatId, params);
2361
+ }
2362
+ /**
2363
+ * Close a chat previously opened by openChat.
2364
+ *
2365
+ * @method ch
2366
+ * @param chatId The identifier of a chat to close.
2367
+ */
2368
+ async closeChat(chatId) {
2369
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").closeChat(chatId);
2370
+ }
2371
+ /**
2372
+ * Create a group. User-only.
2373
+ *
2374
+ * @method ch
2375
+ * @param title The title of the group.
2376
+ * @returns The created group.
2377
+ */
2378
+ async createGroup(title, params) {
2379
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").createGroup(title, params);
2380
+ }
2381
+ /**
2382
+ * Create a supergroup. User-only.
2383
+ *
2384
+ * @method ch
2385
+ * @param title The title of the supergroup.
2386
+ * @returns The created supergroup.
2387
+ */
2388
+ async createSupergroup(title, params) {
2389
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").createSupergroup(title, params);
2390
+ }
2391
+ /**
2392
+ * Create a channel. User-only.
2393
+ *
2394
+ * @method ch
2395
+ * @param title The title of the channel.
2396
+ * @returns The created channel.
2397
+ */
2398
+ async createChannel(title, params) {
2399
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").createChannel(title, params);
2400
+ }
2401
+ /**
2402
+ * Set the time to live of the messages of a chat. User-only.
2403
+ *
2404
+ * @method ch
2405
+ * @param chatId The identifier of a chat.
2406
+ * @param messageTtl The time to live of the messages in seconds.
2407
+ */
2408
+ async setMessageTtl(chatId, messageTtl) {
2409
+ await __classPrivateFieldGet(this, _Client_chatListManager, "f").setMessageTtl(chatId, messageTtl);
2410
+ }
2411
+ /**
2412
+ * Archive multiple chats. User-only.
2413
+ *
2414
+ * @method ch
2415
+ * @param chatIds The identifiers of the chats to archive.
2416
+ */
2417
+ async archiveChats(chatIds) {
2418
+ await __classPrivateFieldGet(this, _Client_chatListManager, "f").archiveChats(chatIds);
2419
+ }
2420
+ /**
2421
+ * Archive a single chat. User-only.
2422
+ *
2423
+ * @method ch
2424
+ * @param chatId The identifier of a chat.
2425
+ */
2426
+ async archiveChat(chatId) {
2427
+ await __classPrivateFieldGet(this, _Client_chatListManager, "f").archiveChat(chatId);
2428
+ }
2429
+ /**
2430
+ * Unarchive multiple chats. User-only.
2431
+ *
2432
+ * @method ch
2433
+ * @param chatIds The identifiers of the chats to unarchive.
2434
+ */
2435
+ async unarchiveChats(chatIds) {
2436
+ await __classPrivateFieldGet(this, _Client_chatListManager, "f").unarchiveChats(chatIds);
2437
+ }
2438
+ /**
2439
+ * Unarchive a single chat. User-only.
2440
+ *
2441
+ * @method ch
2442
+ * @param chatId The identifier of a chat.
2443
+ */
2444
+ async unarchiveChat(chatId) {
2445
+ await __classPrivateFieldGet(this, _Client_chatListManager, "f").unarchiveChat(chatId);
2446
+ }
2447
+ /**
2448
+ * Get common chats between a user and the current one. User-only.
2449
+ *
2450
+ * @method ch
2451
+ * @param userId The identifier of the user to get the common chats with them.
2452
+ */
2453
+ async getCommonChats(userId, params) {
2454
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getCommonChats(userId, params);
2455
+ }
2456
+ /**
2457
+ * Get the settings of a chat. User-only.
2458
+ *
2459
+ * @method ch
2460
+ * @param chatId The identifier of a chat.
2461
+ */
2462
+ async getChatSettings(chatId) {
2463
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatSettings(chatId);
2464
+ }
2465
+ /**
2466
+ * Disable business bots in a private chat. User-only.
2467
+ *
2468
+ * @method ch
2469
+ * @param chatId The identifier of the private chat to disable business bots in.
2470
+ */
2471
+ async disableBusinessBots(chatId) {
2472
+ await __classPrivateFieldGet(this, _Client_chatListManager, "f").disableBusinessBots(chatId);
2473
+ }
2474
+ /**
2475
+ * Enable business bots in a private chat. User-only.
2476
+ *
2477
+ * @method ch
2478
+ * @param chatId The identifier of the private chat to enable business bots in.
2479
+ */
2480
+ async enableBusinessBots(chatId) {
2481
+ await __classPrivateFieldGet(this, _Client_chatListManager, "f").enableBusinessBots(chatId);
2482
+ }
2483
+ /**
2484
+ * Disable slow mode in a group. User-only.
2485
+ *
2486
+ * @method ch
2487
+ * @param chatId The identifier of the group to disable slow mode in.
2488
+ */
2489
+ async disableSlowMode(chatId) {
2490
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").disableSlowMode(chatId);
2491
+ }
2492
+ /**
2493
+ * Change slow mode in a group. User-only.
2494
+ *
2495
+ * @method ch
2496
+ * @param chatId The identifier of the group to change slow mode in.
2497
+ * @param duration New slow mode duration.
2498
+ */
2499
+ async setSlowMode(chatId, duration) {
2500
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setSlowMode(chatId, duration);
2501
+ }
2502
+ /**
2503
+ * Change the title of a chat.
2504
+ *
2505
+ * @method ch
2506
+ * @param chatId The identifier of a chat.
2507
+ * @param title The new title.
2508
+ */
2509
+ async setChatTitle(chatId, title) {
2510
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatTitle(chatId, title);
2511
+ }
2512
+ /**
2513
+ * Change the description of a chat.
2514
+ *
2515
+ * @method ch
2516
+ * @param chatId The identifier of a chat.
2517
+ * @param description The new description.
2518
+ */
2519
+ async setChatDescription(chatId, description) {
2520
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatDescription(chatId, description);
2521
+ }
2522
+ /**
2523
+ * Hide the member list of a group to non-admins. User-only.
2524
+ *
2525
+ * @method ch
2526
+ * @param chatId The identifier of the group.
2527
+ */
2528
+ async hideMemberList(chatId) {
2529
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").hideMemberList(chatId);
2530
+ }
2531
+ /**
2532
+ * Show the member list of a group to non-admins. User-only.
2533
+ *
2534
+ * @method ch
2535
+ * @param chatId The identifier of the group.
2536
+ */
2537
+ async showMemberList(chatId) {
2538
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").showMemberList(chatId);
2539
+ }
2540
+ /**
2541
+ * Enable topics in a group. User-only.
2542
+ *
2543
+ * @method ch
2544
+ * @param chatId The identifier of the group.
2545
+ * @param isShownAsTabs Whether topics should be displayed as tabs.
2546
+ */
2547
+ async enableTopics(chatId, isShownAsTabs) {
2548
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").enableTopics(chatId, isShownAsTabs);
2549
+ }
2550
+ /**
2551
+ * Disable topics in a group. User-only.
2552
+ *
2553
+ * @method ch
2554
+ * @param chatId The identifier of the group.
2555
+ */
2556
+ async disableTopics(chatId) {
2557
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").disableTopics(chatId);
2558
+ }
2559
+ /**
2560
+ * Enable automatic anti-spam in a group. User-only.
2561
+ *
2562
+ * @method ch
2563
+ * @param chatId The identifier of the group.
2564
+ */
2565
+ async enableAntispam(chatId) {
2566
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").enableAntispam(chatId);
2567
+ }
2568
+ /**
2569
+ * Disable automatic anti-spam in a group. User-only.
2570
+ *
2571
+ * @method ch
2572
+ * @param chatId The identifier of the group.
2573
+ */
2574
+ async disableAntispam(chatId) {
2575
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").disableAntispam(chatId);
2576
+ }
2577
+ /**
2578
+ * Enable post signatures in a channel. User-only.
2579
+ *
2580
+ * @method ch
2581
+ * @param chatId The identifier of the channel.
2582
+ */
2583
+ async enableSignatures(chatId, params) {
2584
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").enableSignatures(chatId, params);
2585
+ }
2586
+ /**
2587
+ * Disable post signatures in a channel. User-only.
2588
+ *
2589
+ * @method ch
2590
+ * @param chatId The identifier of the channel.
2591
+ */
2592
+ async disableSignatures(chatId) {
2593
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").disableSignatures(chatId);
2594
+ }
2595
+ /**
2596
+ * Delete a chat. User-only.
2597
+ *
2598
+ * @method ch
2599
+ * @param chatId The identifier of a chat.
2600
+ */
2601
+ async deleteChat(chatId) {
2602
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").deleteChat(chatId);
2603
+ }
2604
+ /**
2605
+ * Get discussion chat suggestions. User-only.
2606
+ *
2607
+ * @method ch
2608
+ */
2609
+ async getDiscussionChatSuggestions() {
2610
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").getDiscussionChatSuggestions();
2611
+ }
2612
+ /**
2613
+ * Set a channel's discussion chat. User-only.
2614
+ *
2615
+ * @method ch
2616
+ * @param chatId The identifier of a channel.
2617
+ * @param discussionChatId The identifier of a chat to use as discussion for the channel.
2618
+ */
2619
+ async setDiscussionChat(chatId, discussionChatId) {
2620
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setDiscussionChat(chatId, discussionChatId);
2621
+ }
2622
+ /**
2623
+ * Transfer the ownership of a chat. User-only.
2624
+ *
2625
+ * @method ch
2626
+ * @param chatId The identifier of a chat.
2627
+ * @param userId The identifier of the new owner.
2628
+ * @param password The password of the current account.
2629
+ */
2630
+ async transferChatOwnership(chatId, userId, password) {
2631
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").transferChatOwnership(chatId, userId, password);
2632
+ }
2633
+ /**
2634
+ * Create a forum topic.
2635
+ *
2636
+ * @method ch
2637
+ * @param chatId The identifier of a chat.
2638
+ * @param title The title of the topic.
2639
+ * @returns The created topic.
2640
+ */
2641
+ async createTopic(chatId, title, params) {
2642
+ return await __classPrivateFieldGet(this, _Client_forumManager, "f").createTopic(chatId, title, params);
2643
+ }
2644
+ /**
2645
+ * Edit a forum topic.
2646
+ *
2647
+ * @method ch
2648
+ * @param chatId The identifier of a chat.
2649
+ * @param topicId The identifier of the topic.
2650
+ * @param title The new title of the topic.
2651
+ * @returns The new topic.
2652
+ */
2653
+ async editTopic(chatId, topicId, title, params) {
2654
+ return await __classPrivateFieldGet(this, _Client_forumManager, "f").editTopic(chatId, topicId, title, params);
2655
+ }
2656
+ /**
2657
+ * Hide the general forum topic.
2658
+ *
2659
+ * @method ch
2660
+ * @param chatId The identifier of a chat.
2661
+ */
2662
+ async hideGeneralTopic(chatId) {
2663
+ await __classPrivateFieldGet(this, _Client_forumManager, "f").hideGeneralTopic(chatId);
2664
+ }
2665
+ /**
2666
+ * Show the general forum topic.
2667
+ *
2668
+ * @method ch
2669
+ * @param chatId The identifier of a chat.
2670
+ */
2671
+ async showGeneralTopic(chatId) {
2672
+ await __classPrivateFieldGet(this, _Client_forumManager, "f").showGeneralTopic(chatId);
2673
+ }
2674
+ /**
2675
+ * Close a forum topic.
2676
+ *
2677
+ * @method ch
2678
+ * @param chatId The identifier of a chat.
2679
+ * @param topicId The identifier of the topic.
2680
+ */
2681
+ async closeTopic(chatId, topicId) {
2682
+ await __classPrivateFieldGet(this, _Client_forumManager, "f").closeTopic(chatId, topicId);
2683
+ }
2684
+ /**
2685
+ * Reopen a forum topic.
2686
+ *
2687
+ * @method ch
2688
+ * @param chatId The identifier of a chat.
2689
+ * @param topicId The identifier of the topic.
2690
+ */
2691
+ async reopenTopic(chatId, topicId) {
2692
+ await __classPrivateFieldGet(this, _Client_forumManager, "f").reopenTopic(chatId, topicId);
2693
+ }
2694
+ /**
2695
+ * Pin a forum topic.
2696
+ *
2697
+ * @method ch
2698
+ * @param chatId The identifier of a chat.
2699
+ * @param topicId The identifier of the topic.
2700
+ */
2701
+ async pinTopic(chatId, topicId) {
2702
+ await __classPrivateFieldGet(this, _Client_forumManager, "f").pinTopic(chatId, topicId);
2703
+ }
2704
+ /**
2705
+ * Unpin a forum topic.
2706
+ *
2707
+ * @method ch
2708
+ * @param chatId The identifier of a chat.
2709
+ * @param topicId The identifier of the topic.
2710
+ */
2711
+ async unpinTopic(chatId, topicId) {
2712
+ await __classPrivateFieldGet(this, _Client_forumManager, "f").unpinTopic(chatId, topicId);
2713
+ }
2714
+ /**
2715
+ * Promote a chat member.
2716
+ *
2717
+ * @method ch
2718
+ * @param chatId The identifier of a chat.
2719
+ * @param userId The identifier of the user to promote.
2720
+ */
2721
+ async promoteChatMember(chatId, userId, params) {
2722
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").promoteChatMember(chatId, userId, params);
2723
+ }
2724
+ /**
2725
+ * Change the tag of a chat member.
2726
+ *
2727
+ * @method ch
2728
+ * @param chatId The identifier of a chat.
2729
+ * @param userId The identifier of the user that is a member of the chat.
2730
+ */
2731
+ async setChatMemberTag(chatId, userId, params) {
2732
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatMemberTag(chatId, userId, params);
2733
+ }
2734
+ /**
2735
+ * Enable sharing in a chat. User-only.
2736
+ *
2737
+ * @method ch
2738
+ * @param chatId The identifier of a chat.
2739
+ */
2740
+ async enableSharing(chatId) {
2741
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").enableSharing(chatId);
2742
+ }
2743
+ /**
2744
+ * Disable sharing in a chat. User-only.
2745
+ *
2746
+ * @method ch
2747
+ * @param chatId The identifier of a chat.
2748
+ */
2749
+ async disableSharing(chatId) {
2750
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").disableSharing(chatId);
2751
+ }
2752
+ /**
2753
+ * Get recommended channels. User-only.
2754
+ *
2755
+ * @method ch
2756
+ * @returns A list of recommended channels.
2757
+ */
2758
+ async getRecommendedChannels() {
2759
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").getRecommendedChannels();
2760
+ }
2761
+ /**
2762
+ * Get similar channels. User-only.
2763
+ *
2764
+ * @method ch
2765
+ * @param chatId The identifier of a channel to get similar channels for.
2766
+ * @returns A list of similar channels.
2767
+ */
2768
+ async getSimilarChannels(chatId) {
2769
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").getSimilarChannels(chatId);
2770
+ }
2771
+ /**
2772
+ * Get similar bots. User-only.
2773
+ *
2774
+ * @method ch
2775
+ * @param chatId The identifier of a bot to get similar bots for.
2776
+ * @returns A list of similar bots.
2777
+ */
2778
+ async getSimilarBots(chatId) {
2779
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").getSimilarBots(chatId);
2780
+ }
2781
+ //
2782
+ // ========================= CALLBACK QUERIES ========================= //
2783
+ //
2784
+ /**
2785
+ * Send a callback query. User-only.
2786
+ *
2787
+ * @method cq
2788
+ * @param botId The identifier of the bot to send the callback query to.
2789
+ * @param messageId The identifier of the message that includes at a button responsible for the callback query question.
2790
+ * @param question The callback query's question.
2791
+ * @returns The bot's answer to the callback query.
2792
+ * @cache
2793
+ */
2794
+ async sendCallbackQuery(botId, messageId, question) {
2795
+ return await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").sendCallbackQuery(botId, messageId, question);
2796
+ }
2797
+ /**
2798
+ * Answer a callback query. Bot-only.
2799
+ *
2800
+ * @method cq
2801
+ * @param id ID of the callback query to answer.
2802
+ */
2803
+ async answerCallbackQuery(id, params) {
2804
+ await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").answerCallbackQuery(id, params);
2805
+ }
2806
+ //
2807
+ // ========================= INLINE QUERIES ========================= //
2808
+ //
2809
+ /**
2810
+ * Send an inline query. User-only.
2811
+ *
2812
+ * @method iq
2813
+ * @param botId The identifier of a bot to send the inline query to.
2814
+ * @param chatId The identifier of the chat from which the inline query is sent.
2815
+ * @returns The bot's answer to the inline query.
2816
+ * @cache
2817
+ */
2818
+ async sendInlineQuery(botId, chatId, params) {
2819
+ return await __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").sendInlineQuery(botId, chatId, params);
2820
+ }
2821
+ /**
2822
+ * Answer an inline query. Bot-only.
2823
+ *
2824
+ * @method iq
2825
+ * @param id The identifier of the inline query to answer.
2826
+ * @param results The results to answer with.
2827
+ */
2828
+ async answerInlineQuery(id, results, params) {
2829
+ await __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").answerInlineQuery(id, results, params);
2830
+ }
2831
+ //
2832
+ // ========================= BOTS ========================= //
2833
+ //
2834
+ /**
2835
+ * Set the bot's description in the given language. Bot-only.
2836
+ *
2837
+ * @method bs
2838
+ */
2839
+ async setMyDescription(params) {
2840
+ await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyDescription(params);
2841
+ }
2842
+ /**
2843
+ * Set the bot's name in the given language. Bot-only.
2844
+ *
2845
+ * @method bs
2846
+ */
2847
+ async setMyName(params) {
2848
+ await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyName(params);
2849
+ }
2850
+ /**
2851
+ * Set the bot's short description in the given language. Bot-only.
2852
+ *
2853
+ * @method bs
2854
+ */
2855
+ async setMyShortDescription(params) {
2856
+ await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyShortDescription(params);
2857
+ }
2858
+ /**
2859
+ * Get the bot's description in the given language. Bot-only.
2860
+ *
2861
+ * @method bs
2862
+ * @returns The current bot's description in the specified language.
2863
+ */
2864
+ async getMyDescription(params) {
2865
+ return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyDescription(params);
2866
+ }
2867
+ /**
2868
+ * Get the bot's name in the given language. Bot-only.
2869
+ *
2870
+ * @method bs
2871
+ * @returns The current bot's name in the specified language.
2872
+ */
2873
+ async getMyName(params) {
2874
+ return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyName(params);
2875
+ }
2876
+ /**
2877
+ * Get the bot's short description in the given language. Bot-only.
2878
+ *
2879
+ * @method bs
2880
+ * @returns The current bot's short description in the specified language.
2881
+ */
2882
+ async getMyShortDescription(params) {
2883
+ return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyShortDescription(params);
2884
+ }
2885
+ /**
2886
+ * Set the bot's commands in the given scope and/or language. Bot-only.
2887
+ *
2888
+ * @method bs
2889
+ * @param commands The commands to set.
2890
+ */
2891
+ async setMyCommands(commands, params) {
2892
+ await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyCommands(commands, params);
2893
+ }
2894
+ /**
2895
+ * Get the bot's commands in the given scope and/or language. Bot-only.
2896
+ *
2897
+ * @method bs
2898
+ * @returns The current bot's commands in the specified language.
2899
+ */
2900
+ async getMyCommands(params) {
2901
+ return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyCommands(params);
2902
+ }
2903
+ //
2904
+ // ========================= REACTIONS ========================= //
2905
+ //
2906
+ /**
2907
+ * Change reactions made to a message.
2908
+ *
2909
+ * @method re
2910
+ * @param chatId The identifier of the chat which the message belongs to.
2911
+ * @param messageId The identifier of the message to add the reaction to.
2912
+ * @param reactions The new reactions.
2913
+ */
2914
+ async setReactions(chatId, messageId, reactions, params) {
2915
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").setReactions(chatId, messageId, reactions, params);
2916
+ }
2917
+ /**
2918
+ * Make a reaction to a message.
2919
+ *
2920
+ * @method re
2921
+ * @param chatId The identifier of the chat which the message belongs to.
2922
+ * @param messageId The identifier of the message to add the reaction to.
2923
+ * @param reaction The reaction to add.
2924
+ */
2925
+ async addReaction(chatId, messageId, reaction, params) {
2926
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").addReaction(chatId, messageId, reaction, params);
2927
+ }
2928
+ /**
2929
+ * Undo a reaction made to a message.
2930
+ *
2931
+ * @method re
2932
+ * @param chatId The identifier of the chat which the message belongs to.
2933
+ * @param messageId The identifier of the message which the reaction was made to.
2934
+ * @param reaction The reaction to remove.
2935
+ */
2936
+ async removeReaction(chatId, messageId, reaction) {
2937
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").removeReaction(chatId, messageId, reaction);
2938
+ }
2939
+ //
2940
+ // ========================= STORIES ========================= //
2941
+ //
2942
+ /**
2943
+ * Create a story. User-only.
2944
+ *
2945
+ * @method st
2946
+ * @param content The content of the story.
2947
+ * @returns The created story.
2948
+ */
2949
+ async createStory(chatId, content, params) {
2950
+ return await __classPrivateFieldGet(this, _Client_storyManager, "f").createStory(chatId, content, params);
2951
+ }
2952
+ /**
2953
+ * Retrieve multiple stories. User-only.
2954
+ *
2955
+ * @method st
2956
+ * @param chatId The identifier of a chat.
2957
+ * @param storyIds The identifiers of the stories to retrieve.
2958
+ * @returns The retrieved stories.
2959
+ */
2960
+ async getStories(chatId, storyIds) {
2961
+ if (!storyIds.length) {
2962
+ return [];
2963
+ }
2964
+ return await __classPrivateFieldGet(this, _Client_storyManager, "f").getStories(chatId, storyIds);
2965
+ }
2966
+ /**
2967
+ * Retrieve a single story. User-only.
2968
+ *
2969
+ * @method st
2970
+ * @param chatId The identifier of a chat.
2971
+ * @param storyId The identifier of the story to retrieve.
2972
+ * @returns The retrieved story.
2973
+ */
2974
+ async getStory(chatId, storyId) {
2975
+ return await __classPrivateFieldGet(this, _Client_storyManager, "f").getStory(chatId, storyId);
2976
+ }
2977
+ /**
2978
+ * Delete multiple stories. User-only.
2979
+ *
2980
+ * @method st
2981
+ * @param chatId The identifier of a chat.
2982
+ * @param storyIds The identifiers of the stories to delete.
2983
+ */
2984
+ async deleteStories(chatId, storyIds) {
2985
+ await __classPrivateFieldGet(this, _Client_storyManager, "f").deleteStories(chatId, storyIds);
2986
+ }
2987
+ /**
2988
+ * Delete a single story. User-only.
2989
+ *
2990
+ * @method st
2991
+ * @param chatId The identifier of a chat.
2992
+ * @param storyId The identifier of the story to delete.
2993
+ */
2994
+ async deleteStory(chatId, storyId) {
2995
+ await __classPrivateFieldGet(this, _Client_storyManager, "f").deleteStory(chatId, storyId);
2996
+ }
2997
+ /**
2998
+ * Add multiple stories to highlights. User-only.
2999
+ *
3000
+ * @method st
3001
+ * @param chatId The identifier of a chat.
3002
+ * @param storyIds The identifiers of the stories to add to highlights.
3003
+ */
3004
+ async addStoriesToHighlights(chatId, storyIds) {
3005
+ await __classPrivateFieldGet(this, _Client_storyManager, "f").addStoriesToHighlights(chatId, storyIds);
3006
+ }
3007
+ /**
3008
+ * Add a single story to highlights. User-only.
3009
+ *
3010
+ * @method st
3011
+ * @param chatId The identifier of a chat.
3012
+ * @param storyId The identifier of the story to add to highlights.
3013
+ */
3014
+ async addStoryToHighlights(chatId, storyId) {
3015
+ await __classPrivateFieldGet(this, _Client_storyManager, "f").addStoryToHighlights(chatId, storyId);
3016
+ }
3017
+ /**
3018
+ * Remove multiple stories from highlights. User-only.
3019
+ *
3020
+ * @method st
3021
+ * @param chatId The identifier of a chat.
3022
+ * @param storyIds The identifiers of the stories to remove from highlights.
3023
+ */
3024
+ async removeStoriesFromHighlights(chatId, storyIds) {
3025
+ await __classPrivateFieldGet(this, _Client_storyManager, "f").removeStoriesFromHighlights(chatId, storyIds);
3026
+ }
3027
+ /**
3028
+ * Remove a single story from highlights. User-only.
3029
+ *
3030
+ * @method st
3031
+ * @param chatId The identifier of a chat.
3032
+ * @param storyId The identifier of the story to remove from highlights.
3033
+ */
3034
+ async removeStoryFromHighlights(chatId, storyId) {
3035
+ await __classPrivateFieldGet(this, _Client_storyManager, "f").removeStoryFromHighlights(chatId, storyId);
3036
+ }
3037
+ //
3038
+ // ========================= MISC ========================= //
3039
+ //
3040
+ /**
3041
+ * Get network statistics. This might not always be available.
3042
+ *
3043
+ * @method mc
3044
+ */
3045
+ async getNetworkStatistics() {
3046
+ return await __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f").getNetworkStatistics();
3047
+ }
3048
+ /**
3049
+ * Block a user. User-only.
3050
+ *
3051
+ * @method mc
3052
+ * @param userId The identifier of the user to block.
3053
+ */
3054
+ async blockUser(userId) {
3055
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").blockUser(userId);
3056
+ }
3057
+ /**
3058
+ * Unblock a user. User-only.
3059
+ *
3060
+ * @method mc
3061
+ * @param userId The identifier of the user to unblock.
3062
+ */
3063
+ async unblockUser(userId) {
3064
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").unblockUser(userId);
3065
+ }
3066
+ //
3067
+ // ========================= VIDEO CHATS ========================= //
3068
+ //
3069
+ /**
3070
+ * Start a video chat. User-only.
3071
+ *
3072
+ * @method vc
3073
+ * @param chatId The identifier of a chat to start the video chat in.
3074
+ * @returns The started video chat.
3075
+ */
3076
+ async startVideoChat(chatId, params) {
3077
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").startVideoChat(chatId, params);
3078
+ }
3079
+ /**
3080
+ * Schedule a video chat. User-only.
3081
+ *
3082
+ * @method vc
3083
+ * @param chatId The identifier of a chat to schedule the video chat in.
3084
+ * @param startAt A point in time within the future in which the video chat will be started.
3085
+ * @returns The scheduled video chat.
3086
+ */
3087
+ async scheduleVideoChat(chatId, startAt, params) {
3088
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").scheduleVideoChat(chatId, startAt, params);
3089
+ }
3090
+ /**
3091
+ * Join a video chat. User-only.
3092
+ *
3093
+ * @method vc
3094
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
3095
+ * @param params_ WebRTC connection parameters.
3096
+ * @returns Parameters to be passed to the used WebRTC library.
3097
+ */
3098
+ async joinVideoChat(id, params_, params) {
3099
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").joinVideoChat(id, params_, params);
3100
+ }
3101
+ /**
3102
+ * Leave a video chat. User-only.
3103
+ *
3104
+ * @method vc
3105
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
3106
+ */
3107
+ async leaveVideoChat(id) {
3108
+ await __classPrivateFieldGet(this, _Client_videoChatManager, "f").leaveVideoChat(id);
3109
+ }
3110
+ /**
3111
+ * Join a live stream. User-only.
3112
+ *
3113
+ * @method vc
3114
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
3115
+ */
3116
+ async joinLiveStream(id) {
3117
+ await __classPrivateFieldGet(this, _Client_videoChatManager, "f").joinLiveStream(id);
3118
+ }
3119
+ /**
3120
+ * Get a video chat. User-only.
3121
+ *
3122
+ * @method vc
3123
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
3124
+ * @cache
3125
+ */
3126
+ async getVideoChat(id) {
3127
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").getVideoChat(id);
3128
+ }
3129
+ /**
3130
+ * Get live stream channels. User-only.
3131
+ *
3132
+ * @method vc
3133
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
3134
+ */
3135
+ async getLiveStreamChannels(id) {
3136
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").getLiveStreamChannels(id);
3137
+ }
3138
+ /**
3139
+ * Download a live stream segment. User-only.
3140
+ *
3141
+ * @method vc
3142
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
3143
+ * @param channelId Stream channel ID.
3144
+ * @param scale Stream channel scale.
3145
+ * @param timestamp Millisecond timestamp of the chunk to download.
3146
+ */
3147
+ async downloadLiveStreamSegment(id, channelId, scale, timestamp, params) {
3148
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").downloadLiveStreamSegment(id, channelId, scale, timestamp, params);
3149
+ }
3150
+ //
3151
+ // ========================= PAYMENTS ========================= //
3152
+ //
3153
+ /**
3154
+ * Answer a pre-checkout query. Bot-only.
3155
+ *
3156
+ * @method pa
3157
+ * @param preCheckoutQueryId The identifier of the pre-checkout query.
3158
+ * @param ok Whether the checkout is going to be processed.
3159
+ */
3160
+ async answerPreCheckoutQuery(preCheckoutQueryId, ok, params) {
3161
+ await __classPrivateFieldGet(this, _Client_paymentManager, "f").answerPreCheckoutQuery(preCheckoutQueryId, ok, params);
3162
+ }
3163
+ /**
3164
+ * Refund a star payment. Bot-only.
3165
+ *
3166
+ * @method pa
3167
+ * @param userId The identifier of the user that was charged.
3168
+ * @param telegramPaymentChargeId The identifier of the charge.
3169
+ */
3170
+ async refundStarPayment(userId, telegramPaymentChargeId) {
3171
+ await __classPrivateFieldGet(this, _Client_paymentManager, "f").refundStarPayment(userId, telegramPaymentChargeId);
3172
+ }
3173
+ //
3174
+ // ========================= CONTACTS ========================= //
3175
+ //
3176
+ /**
3177
+ * Get contacts. User-only.
3178
+ *
3179
+ * @method co
3180
+ */
3181
+ async getContacts() {
3182
+ return await __classPrivateFieldGet(this, _Client_accountManager, "f").getContacts();
3183
+ }
3184
+ /**
3185
+ * Delete multiple contacts. User-only.
3186
+ *
3187
+ * @method co
3188
+ * @param userIds The identifiers of contacts to delete.
3189
+ */
3190
+ async deleteContacts(userIds) {
3191
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").deleteContacts(userIds);
3192
+ }
3193
+ /**
3194
+ * Delete a single contact. User-only.
3195
+ *
3196
+ * @method co
3197
+ * @param userId The identifier of the contact to delete.
3198
+ */
3199
+ async deleteContact(userId) {
3200
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").deleteContact(userId);
3201
+ }
3202
+ /**
3203
+ * Add a contact. User-only.
3204
+ *
3205
+ * @method co
3206
+ * @param userId The identifier of the user to add as contact.
3207
+ */
3208
+ async addContact(userId, params) {
3209
+ await __classPrivateFieldGet(this, _Client_accountManager, "f").addContact(userId, params);
3210
+ }
3211
+ //
3212
+ // ========================= TRANSLATIONS ========================= //
3213
+ //
3214
+ /**
3215
+ * Get translations. User-only.
3216
+ *
3217
+ * @method ta
3218
+ * @cache
3219
+ */
3220
+ async getTranslations(params) {
3221
+ return await __classPrivateFieldGet(this, _Client_translationsManager, "f").getTranslations(params);
3222
+ }
3223
+ //
3224
+ // ========================= GIFTS ========================= //
3225
+ //
3226
+ /**
3227
+ * Get available gifts.
3228
+ *
3229
+ * @method gf
3230
+ */
3231
+ async getGifts() {
3232
+ return await __classPrivateFieldGet(this, _Client_giftManager, "f").getGifts();
3233
+ }
3234
+ /**
3235
+ * Get gifts claimed by a user or a channel. User-only.
3236
+ *
3237
+ * @method gf
3238
+ * @param chatId The identifier of a user or a channel to get gifts for.
3239
+ */
3240
+ async getClaimedGifts(chatId, params) {
3241
+ return await __classPrivateFieldGet(this, _Client_giftManager, "f").getClaimedGifts(chatId, params);
3242
+ }
3243
+ /**
3244
+ * Send a gift.
3245
+ *
3246
+ * @method gf
3247
+ * @param chatId The identifier of a user or a channel to send the gift to.
3248
+ * @param giftId The identifier of the gift to send.
3249
+ */
3250
+ async sendGift(chatId, giftId, params) {
3251
+ await __classPrivateFieldGet(this, _Client_giftManager, "f").sendGift(chatId, giftId, params);
3252
+ }
3253
+ /**
3254
+ * Sell a gift.
3255
+ *
3256
+ * @method gf
3257
+ * @param gift The gift to sell.
3258
+ */
3259
+ async sellGift(gift) {
3260
+ await __classPrivateFieldGet(this, _Client_giftManager, "f").sellGift(gift);
3261
+ }
3262
+ /**
3263
+ * Craft gifts.
3264
+ *
3265
+ * @method gf
3266
+ * @param gift The gifts to craft.
3267
+ */
3268
+ async craftGifts(gifts) {
3269
+ await __classPrivateFieldGet(this, _Client_giftManager, "f").craftGifts(gifts);
3270
+ }
3271
+ /**
3272
+ * Get a gift using its slug.
3273
+ *
3274
+ * @method gf
3275
+ * @param slug The slug of a gift.
3276
+ */
3277
+ async getGift(slug) {
3278
+ return await __classPrivateFieldGet(this, _Client_giftManager, "f").getGift(slug);
3279
+ }
3280
+ /**
3281
+ * Transfer a gift. User-only.
3282
+ *
3283
+ * @method gf
3284
+ * @param chatId The identifier of a chat to transfer the gift to.
3285
+ * @param gift The gift to transfer.
3286
+ */
3287
+ async transferGift(chatId, gift) {
3288
+ return await __classPrivateFieldGet(this, _Client_giftManager, "f").transferGift(chatId, gift);
3289
+ }
3290
+ }
3291
+ _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
3292
+ if (__classPrivateFieldGet(this, _Client_disableUpdates, "f") && !("authorizationState" in update) && !("connectionState" in update)) {
3293
+ return;
3294
+ }
3295
+ try {
3296
+ await this.handleUpdate(this, update);
3297
+ }
3298
+ catch (err) {
3299
+ __classPrivateFieldGet(this, _Client_L, "f").error("Failed to handle update:", err);
3300
+ throw err;
3301
+ }
3302
+ }, _Client_queueHandleCtxUpdate = function _Client_queueHandleCtxUpdate(update) {
3303
+ __classPrivateFieldGet(this, _Client_updateManager, "f").getHandleUpdateQueue(UpdateManager.MAIN_BOX_ID).add(async () => {
3304
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, update);
3305
+ });
3306
+ }, _Client_handleUpdate = async function _Client_handleUpdate(update) {
3307
+ const maybePromises = new Array();
3308
+ if (Api.is("updateUserName", update)) {
3309
+ const value = [Number(update.user_id), new Date()];
3310
+ for (const username_ of update.usernames) {
3311
+ const username = username_.username.toLowerCase();
3312
+ this.messageStorage.usernames.set([username], value);
3313
+ }
3314
+ const peer = { ...update, _: "peerUser" };
3315
+ const peer_ = await this[getPeer](peer);
3316
+ if (peer_ !== null) {
3317
+ const username = update.usernames[0];
3318
+ if (username !== undefined) {
3319
+ peer_[0].username = username.username;
3320
+ const also = update.usernames.filter((v) => v !== username);
3321
+ if (also.length) {
3322
+ peer_[0].also = also.map((v) => v.username);
3323
+ }
3324
+ else {
3325
+ delete peer_[0].also;
3326
+ }
3327
+ }
3328
+ else {
3329
+ delete peer_[0].username;
3330
+ }
3331
+ this.messageStorage.setPeer2(peer_[0], peer_[1]);
3332
+ }
3333
+ }
3334
+ if (__classPrivateFieldGet(this, _Client_messageManager, "f").canHandleUpdate(update)) {
3335
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_messageManager, "f").handleUpdate(update));
3336
+ }
3337
+ if (__classPrivateFieldGet(this, _Client_chatManager, "f").canHandleUpdate(update)) {
3338
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_chatManager, "f").handleUpdate(update));
3339
+ }
3340
+ if (__classPrivateFieldGet(this, _Client_pollManager, "f").canHandleUpdate(update)) {
3341
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_pollManager, "f").handleUpdate(update));
3342
+ }
3343
+ if (__classPrivateFieldGet(this, _Client_videoChatManager, "f").canHandleUpdate(update)) {
3344
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_videoChatManager, "f").handleUpdate(update));
3345
+ }
3346
+ if (__classPrivateFieldGet(this, _Client_callbackQueryManager, "f").canHandleUpdate(update)) {
3347
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").handleUpdate(update));
3348
+ }
3349
+ if (__classPrivateFieldGet(this, _Client_inlineQueryManager, "f").canHandleUpdate(update)) {
3350
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").handleUpdate(update));
3351
+ }
3352
+ if (__classPrivateFieldGet(this, _Client_linkPreviewManager, "f").canHandleUpdate(update)) {
3353
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_linkPreviewManager, "f").handleUpdate(update));
3354
+ }
3355
+ if (__classPrivateFieldGet(this, _Client_reactionManager, "f").canHandleUpdate(update)) {
3356
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_reactionManager, "f").handleUpdate(update));
3357
+ }
3358
+ if (__classPrivateFieldGet(this, _Client_chatListManager, "f").canHandleUpdate(update)) {
3359
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_chatListManager, "f").handleUpdate(update));
3360
+ }
3361
+ if (__classPrivateFieldGet(this, _Client_storyManager, "f").canHandleUpdate(update)) {
3362
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_storyManager, "f").handleUpdate(update));
3363
+ }
3364
+ if (__classPrivateFieldGet(this, _Client_businessConnectionManager, "f").canHandleUpdate(update)) {
3365
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_businessConnectionManager, "f").handleUpdate(update));
3366
+ }
3367
+ if (__classPrivateFieldGet(this, _Client_storyManager, "f").canHandleUpdate(update)) {
3368
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_storyManager, "f").handleUpdate(update));
3369
+ }
3370
+ if (__classPrivateFieldGet(this, _Client_paymentManager, "f").canHandleUpdate(update)) {
3371
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_paymentManager, "f").handleUpdate(update));
3372
+ }
3373
+ if (__classPrivateFieldGet(this, _Client_translationsManager, "f").canHandleUpdate(update)) {
3374
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_translationsManager, "f").handleUpdate(update));
3375
+ }
3376
+ if (__classPrivateFieldGet(this, _Client_botInfoManager, "f").canHandleUpdate(update)) {
3377
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_botInfoManager, "f").handleUpdate(update));
3378
+ }
3379
+ if (__classPrivateFieldGet(this, _Client_accountManager, "f").canHandleUpdate(update)) {
3380
+ maybePromises.push(() => __classPrivateFieldGet(this, _Client_accountManager, "f").handleUpdate(update));
3381
+ }
3382
+ return () => Promise.resolve().then(async () => {
3383
+ const updates = [{ update }];
3384
+ for (const maybePromise of maybePromises) {
3385
+ try {
3386
+ const value = maybePromise();
3387
+ const update = value instanceof Promise ? await value : value;
3388
+ if (update) {
3389
+ updates.push(update);
3390
+ }
3391
+ }
3392
+ catch (err) {
3393
+ __classPrivateFieldGet(this, _Client_L, "f").error("failed to construct update:", err);
3394
+ }
3395
+ }
3396
+ for (const update of updates) {
3397
+ try {
3398
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, update);
3399
+ }
3400
+ finally {
3401
+ if ("deletedMessages" in update) {
3402
+ for (const { chatId, messageId } of update.deletedMessages) {
3403
+ await this.messageStorage.setMessage(chatId, messageId, null);
3404
+ }
3405
+ }
3406
+ }
3407
+ }
3408
+ });
3409
+ }, _Client_getMe = async function _Client_getMe() {
3410
+ if (__classPrivateFieldGet(this, _Client_lastGetMe, "f") !== null) {
3411
+ return __classPrivateFieldGet(this, _Client_lastGetMe, "f");
3412
+ }
3413
+ else {
3414
+ const user = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMeInner).call(this);
3415
+ __classPrivateFieldSet(this, _Client_lastGetMe, user, "f");
3416
+ return user;
3417
+ }
3418
+ }, _Client_getMeInner = async function _Client_getMeInner() {
3419
+ let chatP = (await this[getPeer]({ _: "peerUser", user_id: BigInt(await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) }))?.[0] ?? null;
3420
+ if (chatP === null) {
3421
+ const users = await this.invoke({ _: "users.getUsers", id: [{ _: "inputUserSelf" }] });
3422
+ chatP = constructChatP(Api.as("user", users[0]));
3423
+ await this.storage.setIsPremium(chatP.isPremium);
3424
+ }
3425
+ const user = constructUser2(chatP);
3426
+ __classPrivateFieldSet(this, _Client_lastGetMe, user, "f");
3427
+ return user;
3428
+ }, _Client_onConnectionStateChange = function _Client_onConnectionStateChange(isConnected) {
3429
+ if (__classPrivateFieldGet(this, _Client_lastConnectionState, "f") !== isConnected) {
3430
+ if (isConnected) {
3431
+ if (__classPrivateFieldGet(this, _Client_previouslyConnected, "f")) {
3432
+ drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("reconnect"));
3433
+ }
3434
+ __classPrivateFieldSet(this, _Client_previouslyConnected, true, "f");
3435
+ }
3436
+ const connectionState = isConnected ? "ready" : "notConnected";
3437
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
3438
+ }
3439
+ };