@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
@@ -1,2858 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 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, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_videoChatManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_paymentManager, _Client_managers, _Client_storage_, _Client_messageStorage_, _Client_parseMode, _Client_apiId, _Client_apiHash, _Client_publicKeys, _Client_outgoingMessages, _Client_persistCache, _Client_disableUpdates, _Client_authString, _Client_cdn, _Client_L, _Client_LsignIn, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_Lmin, _Client_reconnecting, _Client_reconnect, _Client_getApiId, _Client_getCdnConnectionPool, _Client_getCdnConnection, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_lastConnect, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_connectionInsuranceLoopStarted, _Client_connectionInsuranceLoopAbortController, _Client_startConnectionInsuranceLoop, _Client_connectionInsuranceLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_authStringImported, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_getMinInputPeer, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
32
- import { unreachable } from "../0_deps.js";
33
- import { AccessError, ConnectionError, InputError } from "../0_errors.js";
34
- import { cleanObject, drop, getLogger, getRandomId, minute, mustPrompt, mustPromptOneOf, Mutex, second, ZERO_CHANNEL_ID } from "../1_utilities.js";
35
- import { StorageMemory } from "../2_storage.js";
36
- import { as, chatIdToPeerId, getChatIdPeerType, is, isOneOf, peerToChatId } from "../2_tl.js";
37
- import { getDc } from "../3_transport.js";
38
- import { constructUser } from "../3_types.js";
39
- import { APP_VERSION, DEVICE_MODEL, LANG_CODE, LANG_PACK, LAYER, MAX_CHANNEL_ID, MAX_CHAT_ID, SYSTEM_LANG_CODE, SYSTEM_VERSION, USERNAME_TTL } from "../4_constants.js";
40
- import { AuthKeyUnregistered, ConnectionNotInited, FloodWait, Migrate, PasswordHashInvalid, PhoneNumberInvalid, SessionPasswordNeeded, SessionRevoked } from "../4_errors.js";
41
- import { PhoneCodeInvalid } from "../4_errors.js";
42
- import { checkPassword } from "./0_password.js";
43
- import { StorageOperations } from "./0_storage_operations.js";
44
- import { canBeInputChannel, canBeInputUser, getUsername, isCdnFunction, isMtprotoFunction, resolve, toInputChannel, toInputUser } from "./0_utilities.js";
45
- import { ClientEncrypted } from "./1_client_encrypted.js";
46
- import { ClientPlain } from "./1_client_plain.js";
47
- import { Composer as Composer_ } from "./1_composer.js";
48
- import { AccountManager } from "./2_account_manager.js";
49
- import { BotInfoManager } from "./2_bot_info_manager.js";
50
- import { BusinessConnectionManager } from "./2_business_connection_manager.js";
51
- import { FileManager } from "./2_file_manager.js";
52
- import { NetworkStatisticsManager } from "./2_network_statistics_manager.js";
53
- import { PaymentManager } from "./2_payment_manager.js";
54
- import { ReactionManager } from "./2_reaction_manager.js";
55
- import { UpdateManager } from "./2_update_manager.js";
56
- import { MessageManager } from "./3_message_manager.js";
57
- import { VideoChatManager } from "./3_video_chat_manager.js";
58
- import { CallbackQueryManager } from "./4_callback_query_manager.js";
59
- import { ChatListManager } from "./4_chat_list_manager.js";
60
- import { InlineQueryManager } from "./4_inline_query_manager.js";
61
- import { StoryManager } from "./4_story_manager.js";
62
- export class Composer extends Composer_ {
63
- }
64
- function skipInvoke() {
65
- return (_ctx, next) => next();
66
- }
67
- export const restartAuth = Symbol("restartAuth");
68
- export const handleMigrationError = Symbol("handleMigrationError");
69
- // global Client ID counter for logs
70
- let id = 0;
71
- const getEntity = Symbol();
72
- /**
73
- * An MTKruto client.
74
- */
75
- export class Client extends Composer {
76
- // deno-lint-ignore no-explicit-any
77
- get managers() {
78
- return __classPrivateFieldGet(this, _Client_managers, "f") ?? (__classPrivateFieldSet(this, _Client_managers, __classPrivateFieldGet(this, _Client_managers, "f") ?? {
79
- updateManager: __classPrivateFieldGet(this, _Client_updateManager, "f"),
80
- networkStatisticsManager: __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f"),
81
- botInfoManager: __classPrivateFieldGet(this, _Client_botInfoManager, "f"),
82
- fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"),
83
- reactionManager: __classPrivateFieldGet(this, _Client_reactionManager, "f"),
84
- videoChatManager: __classPrivateFieldGet(this, _Client_videoChatManager, "f"),
85
- businessConnectionManager: __classPrivateFieldGet(this, _Client_businessConnectionManager, "f"),
86
- messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f"),
87
- storyManager: __classPrivateFieldGet(this, _Client_storyManager, "f"),
88
- callbackQueryManager: __classPrivateFieldGet(this, _Client_callbackQueryManager, "f"),
89
- inlineQueryManager: __classPrivateFieldGet(this, _Client_inlineQueryManager, "f"),
90
- chatListManager: __classPrivateFieldGet(this, _Client_chatListManager, "f"),
91
- accountManager: __classPrivateFieldGet(this, _Client_accountManager, "f"),
92
- paymentManager: __classPrivateFieldGet(this, _Client_paymentManager, "f"),
93
- }, "f"));
94
- }
95
- /**
96
- * Constructs the client.
97
- */
98
- constructor(params) {
99
- super();
100
- _Client_instances.add(this);
101
- _Client_client.set(this, void 0);
102
- _Client_guaranteeUpdateDelivery.set(this, void 0);
103
- _Client_updateManager.set(this, void 0);
104
- _Client_networkStatisticsManager.set(this, void 0);
105
- _Client_botInfoManager.set(this, void 0);
106
- _Client_fileManager.set(this, void 0);
107
- _Client_reactionManager.set(this, void 0);
108
- _Client_videoChatManager.set(this, void 0);
109
- _Client_businessConnectionManager.set(this, void 0);
110
- _Client_messageManager.set(this, void 0);
111
- _Client_storyManager.set(this, void 0);
112
- _Client_callbackQueryManager.set(this, void 0);
113
- _Client_inlineQueryManager.set(this, void 0);
114
- _Client_chatListManager.set(this, void 0);
115
- _Client_accountManager.set(this, void 0);
116
- _Client_paymentManager.set(this, void 0);
117
- // deno-lint-ignore no-explicit-any
118
- _Client_managers.set(this, void 0);
119
- _Client_storage_.set(this, void 0);
120
- _Client_messageStorage_.set(this, void 0);
121
- Object.defineProperty(this, "storage", {
122
- enumerable: true,
123
- configurable: true,
124
- writable: true,
125
- value: void 0
126
- });
127
- Object.defineProperty(this, "messageStorage", {
128
- enumerable: true,
129
- configurable: true,
130
- writable: true,
131
- value: void 0
132
- });
133
- _Client_parseMode.set(this, void 0);
134
- _Client_apiId.set(this, void 0);
135
- _Client_apiHash.set(this, void 0);
136
- Object.defineProperty(this, "appVersion", {
137
- enumerable: true,
138
- configurable: true,
139
- writable: true,
140
- value: void 0
141
- });
142
- Object.defineProperty(this, "deviceModel", {
143
- enumerable: true,
144
- configurable: true,
145
- writable: true,
146
- value: void 0
147
- });
148
- Object.defineProperty(this, "langCode", {
149
- enumerable: true,
150
- configurable: true,
151
- writable: true,
152
- value: void 0
153
- });
154
- Object.defineProperty(this, "langPack", {
155
- enumerable: true,
156
- configurable: true,
157
- writable: true,
158
- value: void 0
159
- });
160
- Object.defineProperty(this, "systemLangCode", {
161
- enumerable: true,
162
- configurable: true,
163
- writable: true,
164
- value: void 0
165
- });
166
- Object.defineProperty(this, "systemVersion", {
167
- enumerable: true,
168
- configurable: true,
169
- writable: true,
170
- value: void 0
171
- });
172
- _Client_publicKeys.set(this, void 0);
173
- _Client_outgoingMessages.set(this, void 0);
174
- _Client_persistCache.set(this, void 0);
175
- _Client_disableUpdates.set(this, void 0);
176
- _Client_authString.set(this, void 0);
177
- _Client_cdn.set(this, void 0);
178
- _Client_L.set(this, void 0);
179
- _Client_LsignIn.set(this, void 0);
180
- _Client_LpingLoop.set(this, void 0);
181
- _Client_LhandleMigrationError.set(this, void 0);
182
- _Client_L$initConncetion.set(this, void 0);
183
- _Client_Lmin.set(this, void 0);
184
- _Client_reconnecting.set(this, false);
185
- _Client_constructContext.set(this, async (update) => {
186
- const msg = "message" in update ? update.message : "editedMessage" in update ? update.editedMessage : "scheduledMessage" in update ? update.scheduledMessage : "callbackQuery" in update ? update.callbackQuery.message : undefined;
187
- const reactions = "messageInteractions" in update ? update.messageInteractions : undefined;
188
- const mustGetMsg = () => {
189
- if (msg !== undefined) {
190
- return { chatId: msg.chat.id, messageId: msg.id, businessConnectionId: msg.businessConnectionId, senderId: (msg.from ?? msg.senderChat)?.id, userId: msg.from?.id };
191
- }
192
- else if (reactions !== undefined) {
193
- return { chatId: reactions.chatId, messageId: reactions.messageId };
194
- }
195
- else {
196
- unreachable();
197
- }
198
- };
199
- const mustGetUserId = () => {
200
- if (msg?.from) {
201
- return msg.from.id;
202
- }
203
- else if ("callbackQuery" in update) {
204
- return update.callbackQuery.from.id;
205
- }
206
- else if ("chosenInlineResult" in update) {
207
- return update.chosenInlineResult.from.id;
208
- }
209
- else {
210
- unreachable();
211
- }
212
- };
213
- const mustGetInlineMsgId = () => {
214
- if ("chosenInlineResult" in update) {
215
- if (update.chosenInlineResult.inlineMessageId) {
216
- return update.chosenInlineResult.inlineMessageId;
217
- }
218
- }
219
- else if ("callbackQuery" in update) {
220
- if (update.callbackQuery.inlineMessageId) {
221
- return update.callbackQuery.inlineMessageId;
222
- }
223
- }
224
- unreachable();
225
- };
226
- const chat_ = "messageReactions" in update ? update.messageReactions.chat : "messageReactionCount" in update ? update.messageReactionCount.chat : "chatMember" in update ? update.chatMember.chat : "joinRequest" in update ? update.joinRequest.chat : "story" in update ? update.story.chat : undefined;
227
- const chat = chat_ ?? msg?.chat;
228
- const from = msg?.from ? msg.from : "callbackQuery" in update ? update.callbackQuery.from : "inlineQuery" in update ? update.inlineQuery.from : "chatMember" in update ? update.chatMember.from : "messageReactions" in update ? update.messageReactions.user : "preCheckoutQuery" in update ? update.preCheckoutQuery.from : "joinRequest" in update ? update.joinRequest.user : "businessConnection" in update ? update.businessConnection.user : undefined;
229
- const senderChat = msg?.senderChat;
230
- const getReplyTo = (quote, chatId, messageId) => {
231
- if ("story" in update) {
232
- return { chatId: update.story.chat.id, storyId: update.story.id };
233
- }
234
- const isPrivate = chatId > 0;
235
- const shouldQuote = quote === undefined ? !isPrivate : quote;
236
- return shouldQuote ? { messageId } : undefined;
237
- };
238
- const me = "connectionState" in update ? __classPrivateFieldGet(this, _Client_lastGetMe, "f") : ("authorizationState" in update && !update.authorizationState.authorized) ? __classPrivateFieldGet(this, _Client_lastGetMe, "f") : await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMe).call(this);
239
- const context = {
240
- ...update,
241
- client: this,
242
- me: (me == null ? undefined : me),
243
- msg: msg,
244
- chat: chat,
245
- from: from,
246
- senderChat: senderChat,
247
- get toJSON() {
248
- return () => update;
249
- },
250
- reply: (text, params) => {
251
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
252
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
253
- return this.sendMessage(chatId, text, { ...params, replyTo, businessConnectionId });
254
- },
255
- replyPoll: (question, options, params) => {
256
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
257
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
258
- return this.sendPoll(chatId, question, options, { ...params, replyTo, businessConnectionId });
259
- },
260
- replyPhoto: (photo, params) => {
261
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
262
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
263
- return this.sendPhoto(chatId, photo, { ...params, replyTo, businessConnectionId });
264
- },
265
- replyMediaGroup: (media, params) => {
266
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
267
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
268
- return this.sendMediaGroup(chatId, media, { ...params, replyTo, businessConnectionId });
269
- },
270
- replyInvoice: (title, description, payload, currency, prices, params) => {
271
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
272
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
273
- return this.sendInvoice(chatId, title, description, payload, currency, prices, { ...params, replyTo, businessConnectionId });
274
- },
275
- replyDocument: (document, params) => {
276
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
277
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
278
- return this.sendDocument(chatId, document, { ...params, replyTo, businessConnectionId });
279
- },
280
- replySticker: (sticker, params) => {
281
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
282
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
283
- return this.sendSticker(chatId, sticker, { ...params, replyTo, businessConnectionId });
284
- },
285
- replyContact: (firstName, number, params) => {
286
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
287
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
288
- return this.sendContact(chatId, firstName, number, { ...params, replyTo, businessConnectionId });
289
- },
290
- replyLocation: (latitude, longitude, params) => {
291
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
292
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
293
- return this.sendLocation(chatId, latitude, longitude, { ...params, replyTo, businessConnectionId });
294
- },
295
- replyDice: (params) => {
296
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
297
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
298
- return this.sendDice(chatId, { ...params, replyTo, businessConnectionId });
299
- },
300
- replyVenue: (latitude, longitude, title, address, params) => {
301
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
302
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
303
- return this.sendVenue(chatId, latitude, longitude, title, address, { ...params, replyTo, businessConnectionId });
304
- },
305
- replyVideo: (video, params) => {
306
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
307
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
308
- return this.sendVideo(chatId, video, { ...params, replyTo, businessConnectionId });
309
- },
310
- replyAnimation: (document, params) => {
311
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
312
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
313
- return this.sendAnimation(chatId, document, { ...params, replyTo, businessConnectionId });
314
- },
315
- replyVoice: (document, params) => {
316
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
317
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
318
- return this.sendVoice(chatId, document, { ...params, replyTo, businessConnectionId });
319
- },
320
- replyAudio: (document, params) => {
321
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
322
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
323
- return this.sendAudio(chatId, document, { ...params, replyTo, businessConnectionId });
324
- },
325
- replyVideoNote: (videoNote, params) => {
326
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
327
- const replyTo = getReplyTo(params?.quote, chatId, messageId);
328
- return this.sendVideoNote(chatId, videoNote, { ...params, replyTo, businessConnectionId });
329
- },
330
- delete: () => {
331
- const { chatId, messageId } = mustGetMsg();
332
- return this.deleteMessage(chatId, messageId);
333
- },
334
- forward: (to, params) => {
335
- const { chatId, messageId } = mustGetMsg();
336
- return this.forwardMessage(chatId, to, messageId, params);
337
- },
338
- pin: (params) => {
339
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
340
- return this.pinMessage(chatId, messageId, { ...params, businessConnectionId });
341
- },
342
- unpin: () => {
343
- const { chatId, messageId, businessConnectionId } = mustGetMsg();
344
- return this.unpinMessage(chatId, messageId, { businessConnectionId });
345
- },
346
- banSender: (params) => {
347
- const { chatId, senderId } = mustGetMsg();
348
- if (!senderId) {
349
- unreachable();
350
- }
351
- return this.banChatMember(chatId, senderId, params);
352
- },
353
- kickSender: () => {
354
- const { chatId, senderId } = mustGetMsg();
355
- if (!senderId) {
356
- unreachable();
357
- }
358
- return this.kickChatMember(chatId, senderId);
359
- },
360
- setSenderRights: (params) => {
361
- const { chatId, senderId } = mustGetMsg();
362
- if (!senderId) {
363
- unreachable();
364
- }
365
- return this.setChatMemberRights(chatId, senderId, params);
366
- },
367
- getChatAdministrators: () => {
368
- const { chatId } = mustGetMsg();
369
- return this.getChatAdministrators(chatId);
370
- },
371
- react: (reactions, params) => {
372
- const { chatId, messageId } = mustGetMsg();
373
- return this.setReactions(chatId, messageId, reactions, params);
374
- },
375
- answerCallbackQuery: (params) => {
376
- if (!("callbackQuery" in update)) {
377
- unreachable();
378
- }
379
- return this.answerCallbackQuery(update.callbackQuery.id, params);
380
- },
381
- answerInlineQuery: (results, params) => {
382
- if (!("inlineQuery" in update)) {
383
- unreachable();
384
- }
385
- return this.answerInlineQuery(update.inlineQuery.id, results, params);
386
- },
387
- sendChatAction: (chatAction, params) => {
388
- const { chatId } = mustGetMsg();
389
- return this.sendChatAction(chatId, chatAction, params);
390
- },
391
- editInlineMessageText: (text, params) => {
392
- const inlineMessageId = mustGetInlineMsgId();
393
- return this.editInlineMessageText(inlineMessageId, text, params);
394
- },
395
- editInlineMessageLiveLocation: (latitude, longitude, params) => {
396
- const inlineMessageId = mustGetInlineMsgId();
397
- return this.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
398
- },
399
- editInlineMessageReplyMarkup: (params) => {
400
- const inlineMessageId = mustGetInlineMsgId();
401
- return this.editInlineMessageReplyMarkup(inlineMessageId, params);
402
- },
403
- editMessageText: (messageId, text, params) => {
404
- const { chatId } = mustGetMsg();
405
- return this.editMessageText(chatId, messageId, text, params);
406
- },
407
- editMessageLiveLocation: (messageId, latitude, longitude, params) => {
408
- const { chatId } = mustGetMsg();
409
- return this.editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
410
- },
411
- editMessageReplyMarkup: (messageId, params) => {
412
- const { chatId } = mustGetMsg();
413
- return this.editMessageReplyMarkup(chatId, messageId, params);
414
- },
415
- getMessage: (messageId) => {
416
- const { chatId } = mustGetMsg();
417
- return this.getMessage(chatId, messageId);
418
- },
419
- getMessages: (messageIds) => {
420
- const { chatId } = mustGetMsg();
421
- return this.getMessages(chatId, messageIds);
422
- },
423
- forwardMessage: (to, messageId, params) => {
424
- const { chatId } = mustGetMsg();
425
- return this.forwardMessage(chatId, to, messageId, params);
426
- },
427
- forwardMessages: (to, messageIds, params) => {
428
- const { chatId } = mustGetMsg();
429
- return this.forwardMessages(chatId, to, messageIds, params);
430
- },
431
- deleteMessage: (messageId, params) => {
432
- const { chatId } = mustGetMsg();
433
- return this.deleteMessage(chatId, messageId, params);
434
- },
435
- deleteMessages: (messageIds, params) => {
436
- const { chatId } = mustGetMsg();
437
- return this.deleteMessages(chatId, messageIds, params);
438
- },
439
- pinMessage: (messageId, params) => {
440
- const { chatId } = mustGetMsg();
441
- return this.pinMessage(chatId, messageId, params);
442
- },
443
- unpinMessage: (messageId) => {
444
- const { chatId } = mustGetMsg();
445
- return this.unpinMessage(chatId, messageId);
446
- },
447
- unpinMessages: () => {
448
- const { chatId } = mustGetMsg();
449
- return this.unpinMessages(chatId);
450
- },
451
- setAvailableReactions: (availableReactions) => {
452
- const { chatId } = mustGetMsg();
453
- return this.setAvailableReactions(chatId, availableReactions);
454
- },
455
- addReaction: (messageId, reaction, params) => {
456
- const { chatId } = mustGetMsg();
457
- return this.addReaction(chatId, messageId, reaction, params);
458
- },
459
- removeReaction: (messageId, reaction) => {
460
- const { chatId } = mustGetMsg();
461
- return this.removeReaction(chatId, messageId, reaction);
462
- },
463
- setReactions: (messageId, reactions, params) => {
464
- const { chatId } = mustGetMsg();
465
- return this.setReactions(chatId, messageId, reactions, params);
466
- },
467
- read: () => {
468
- const { chatId, messageId } = mustGetMsg();
469
- return this.readMessages(chatId, messageId);
470
- },
471
- setChatPhoto: (photo, params) => {
472
- const { chatId } = mustGetMsg();
473
- return this.setChatPhoto(chatId, photo, params);
474
- },
475
- deleteChatPhoto: () => {
476
- const { chatId } = mustGetMsg();
477
- return this.deleteChatPhoto(chatId);
478
- },
479
- banChatMember: (memberId, params) => {
480
- const { chatId } = mustGetMsg();
481
- return this.banChatMember(chatId, memberId, params);
482
- },
483
- unbanChatMember: (memberId) => {
484
- const { chatId } = mustGetMsg();
485
- return this.unbanChatMember(chatId, memberId);
486
- },
487
- kickChatMember: (memberId) => {
488
- const { chatId } = mustGetMsg();
489
- return this.kickChatMember(chatId, memberId);
490
- },
491
- setChatMemberRights: (memberId, params) => {
492
- const { chatId } = mustGetMsg();
493
- return this.setChatMemberRights(chatId, memberId, params);
494
- },
495
- deleteChatMemberMessages: (userId) => {
496
- const { chatId } = mustGetMsg();
497
- return this.deleteChatMemberMessages(chatId, userId);
498
- },
499
- searchMessages: (query, params) => {
500
- const { chatId } = mustGetMsg();
501
- return this.searchMessages(chatId, query, params);
502
- },
503
- setBoostsRequiredToCircumventRestrictions: (boosts) => {
504
- const { chatId } = mustGetMsg();
505
- return this.setBoostsRequiredToCircumventRestrictions(chatId, boosts);
506
- },
507
- createInviteLink: (params) => {
508
- const { chatId } = mustGetMsg();
509
- return this.createInviteLink(chatId, params);
510
- },
511
- getCreatedInviteLinks: (params) => {
512
- const { chatId } = mustGetMsg();
513
- return this.getCreatedInviteLinks(chatId, params);
514
- },
515
- leave: () => {
516
- const { chatId } = mustGetMsg();
517
- return this.leaveChat(chatId);
518
- },
519
- block: () => {
520
- return this.blockUser(mustGetUserId());
521
- },
522
- unblock: () => {
523
- return this.unblockUser(mustGetUserId());
524
- },
525
- getChatMember: (userId) => {
526
- const { chatId } = mustGetMsg();
527
- return this.getChatMember(chatId, userId);
528
- },
529
- getChatMembers: (params) => {
530
- const { chatId } = mustGetMsg();
531
- return this.getChatMembers(chatId, params);
532
- },
533
- setChatStickerSet: (setName) => {
534
- const { chatId } = mustGetMsg();
535
- return this.setChatStickerSet(chatId, setName);
536
- },
537
- deleteChatStickerSet: () => {
538
- const { chatId } = mustGetMsg();
539
- return this.deleteChatStickerSet(chatId);
540
- },
541
- getBusinessConnection: () => {
542
- const { businessConnectionId } = mustGetMsg();
543
- if (!businessConnectionId) {
544
- unreachable();
545
- }
546
- return this.getBusinessConnection(businessConnectionId);
547
- },
548
- answerPreCheckoutQuery: (ok, params) => {
549
- if (!("preCheckoutQuery" in update)) {
550
- unreachable();
551
- }
552
- return this.answerPreCheckoutQuery(update.preCheckoutQuery.id, ok, params);
553
- },
554
- approveJoinRequest: () => {
555
- const { chatId, userId } = mustGetMsg();
556
- if (!userId) {
557
- unreachable();
558
- }
559
- return this.approveJoinRequest(chatId, userId);
560
- },
561
- declineJoinRequest: () => {
562
- const { chatId, userId } = mustGetMsg();
563
- if (!userId) {
564
- unreachable();
565
- }
566
- return this.declineJoinRequest(chatId, userId);
567
- },
568
- };
569
- return cleanObject(context);
570
- });
571
- _Client_lastPropagatedConnectionState.set(this, null);
572
- _Client_stateChangeHandler.set(this, ((connected) => {
573
- drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_reconnect).call(this));
574
- const connectionState = connected ? "ready" : "notConnected";
575
- if (__classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") != connectionState) {
576
- __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).call(this, connectionState);
577
- }
578
- }).bind(this));
579
- _Client_storageInited.set(this, false);
580
- _Client_connectMutex.set(this, new Mutex());
581
- _Client_lastConnect.set(this, null);
582
- _Client_connectionInited.set(this, false);
583
- _Client_lastPropagatedAuthorizationState.set(this, null);
584
- _Client_connectionInsuranceLoopStarted.set(this, false);
585
- _Client_connectionInsuranceLoopAbortController.set(this, null);
586
- _Client_pingLoopAbortController.set(this, null);
587
- _Client_pingInterval.set(this, 56 * second);
588
- _Client_lastUpdates.set(this, new Date());
589
- _Client_handleInvokeError.set(this, skipInvoke());
590
- /**
591
- * Invokes a function waiting and returning its reply if the second parameter is not `true`. Requires the client
592
- * to be connected.
593
- *
594
- * @param function_ The function to invoke.
595
- */
596
- Object.defineProperty(this, "invoke", {
597
- enumerable: true,
598
- configurable: true,
599
- writable: true,
600
- value: Object.assign(__classPrivateFieldGet(this, _Client_instances, "m", _Client_invoke), {
601
- use: (handler) => {
602
- const handle = __classPrivateFieldGet(this, _Client_handleInvokeError, "f");
603
- __classPrivateFieldSet(this, _Client_handleInvokeError, async (ctx, next) => {
604
- let result = null;
605
- return await handle(ctx, async () => {
606
- if (result != null)
607
- return result;
608
- result = await handler(ctx, next);
609
- return result;
610
- });
611
- }, "f");
612
- },
613
- })
614
- });
615
- _Client_authStringImported.set(this, false);
616
- _Client_lastGetMe.set(this, null);
617
- __classPrivateFieldSet(this, _Client_client, new ClientEncrypted(params), "f");
618
- __classPrivateFieldGet(this, _Client_client, "f").stateChangeHandler = __classPrivateFieldGet(this, _Client_stateChangeHandler, "f").bind(this);
619
- __classPrivateFieldGet(this, _Client_client, "f").handlers = {
620
- serverSaltReassigned: async (newServerSalt) => {
621
- await this.storage.setServerSalt(newServerSalt);
622
- },
623
- updates: (updates, call, callback) => {
624
- __classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(updates, true, call, callback);
625
- __classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
626
- },
627
- result: async (result, callback) => {
628
- await __classPrivateFieldGet(this, _Client_updateManager, "f").processResult(result);
629
- callback();
630
- },
631
- error: async (_err, source) => {
632
- switch (source) {
633
- case "deserialization":
634
- await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap(source);
635
- break;
636
- case "decryption":
637
- await this.reconnect();
638
- await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap(source);
639
- break;
640
- }
641
- },
642
- };
643
- __classPrivateFieldSet(this, _Client_apiId, params?.apiId ?? 0, "f");
644
- __classPrivateFieldSet(this, _Client_apiHash, params?.apiHash ?? "", "f");
645
- __classPrivateFieldSet(this, _Client_storage_, params?.storage || new StorageMemory(), "f");
646
- __classPrivateFieldSet(this, _Client_persistCache, params?.persistCache ?? false, "f");
647
- if (!__classPrivateFieldGet(this, _Client_persistCache, "f")) {
648
- __classPrivateFieldSet(this, _Client_messageStorage_, new StorageMemory(), "f");
649
- }
650
- else {
651
- __classPrivateFieldSet(this, _Client_messageStorage_, __classPrivateFieldGet(this, _Client_storage_, "f"), "f");
652
- }
653
- this.storage = new StorageOperations(__classPrivateFieldGet(this, _Client_storage_, "f"));
654
- this.messageStorage = new StorageOperations(__classPrivateFieldGet(this, _Client_messageStorage_, "f"));
655
- __classPrivateFieldSet(this, _Client_parseMode, params?.parseMode ?? null, "f");
656
- __classPrivateFieldSet(this, _Client_disableUpdates, params?.disableUpdates ?? false, "f");
657
- __classPrivateFieldSet(this, _Client_authString, params?.authString, "f");
658
- this.appVersion = params?.appVersion ?? APP_VERSION;
659
- this.deviceModel = params?.deviceModel ?? DEVICE_MODEL;
660
- this.langCode = params?.langCode ?? LANG_CODE;
661
- this.langPack = params?.langPack ?? LANG_PACK;
662
- this.systemLangCode = params?.systemLangCode ?? SYSTEM_LANG_CODE;
663
- this.systemVersion = params?.systemVersion ?? SYSTEM_VERSION;
664
- __classPrivateFieldSet(this, _Client_publicKeys, params?.publicKeys, "f");
665
- __classPrivateFieldSet(this, _Client_outgoingMessages, params?.outgoingMessages ?? null, "f");
666
- if (params?.prefixes) {
667
- this.prefixes = params?.prefixes;
668
- }
669
- __classPrivateFieldSet(this, _Client_guaranteeUpdateDelivery, params?.guaranteeUpdateDelivery ?? false, "f");
670
- const L = __classPrivateFieldSet(this, _Client_L, getLogger("Client").client(id++), "f");
671
- __classPrivateFieldSet(this, _Client_LsignIn, L.branch("signIn"), "f");
672
- __classPrivateFieldSet(this, _Client_LpingLoop, L.branch("pingLoop"), "f");
673
- __classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
674
- __classPrivateFieldSet(this, _Client_L$initConncetion, L.branch("#initConnection"), "f");
675
- __classPrivateFieldSet(this, _Client_Lmin, L.branch("min"), "f");
676
- __classPrivateFieldSet(this, _Client_cdn, params?.cdn ?? false, "f");
677
- const c = {
678
- id,
679
- invoke: async (function_, businessConnectionId) => {
680
- if (businessConnectionId) {
681
- return await this.invoke({ _: "invokeWithBusinessConnection", connection_id: businessConnectionId, query: function_ });
682
- }
683
- else {
684
- return await this.invoke(function_);
685
- }
686
- },
687
- storage: this.storage,
688
- messageStorage: this.messageStorage,
689
- guaranteeUpdateDelivery: __classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f"),
690
- setConnectionState: __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).bind(this),
691
- resetConnectionState: () => __classPrivateFieldGet(this, _Client_stateChangeHandler, "f").call(this, this.connected),
692
- getSelfId: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).bind(this),
693
- getInputPeer: this.getInputPeer.bind(this),
694
- getInputChannel: this.getInputChannel.bind(this),
695
- getInputUser: this.getInputUser.bind(this),
696
- getEntity: this[getEntity].bind(this),
697
- handleUpdate: __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).bind(this),
698
- parseMode: __classPrivateFieldGet(this, _Client_parseMode, "f"),
699
- getCdnConnection: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getCdnConnection).bind(this),
700
- getCdnConnectionPool: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getCdnConnectionPool).bind(this),
701
- cdn: __classPrivateFieldGet(this, _Client_cdn, "f"),
702
- outgoingMessages: __classPrivateFieldGet(this, _Client_outgoingMessages, "f"),
703
- dropPendingUpdates: params?.dropPendingUpdates,
704
- disconnected: () => this.disconnected,
705
- };
706
- __classPrivateFieldSet(this, _Client_updateManager, new UpdateManager(c), "f");
707
- __classPrivateFieldSet(this, _Client_networkStatisticsManager, new NetworkStatisticsManager(c), "f");
708
- __classPrivateFieldSet(this, _Client_botInfoManager, new BotInfoManager(c), "f");
709
- __classPrivateFieldSet(this, _Client_fileManager, new FileManager(c), "f");
710
- __classPrivateFieldSet(this, _Client_reactionManager, new ReactionManager(c), "f");
711
- __classPrivateFieldSet(this, _Client_businessConnectionManager, new BusinessConnectionManager(c), "f");
712
- __classPrivateFieldSet(this, _Client_videoChatManager, new VideoChatManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f") }), "f");
713
- __classPrivateFieldSet(this, _Client_messageManager, new MessageManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f") }), "f");
714
- __classPrivateFieldSet(this, _Client_callbackQueryManager, new CallbackQueryManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
715
- __classPrivateFieldSet(this, _Client_storyManager, new StoryManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
716
- __classPrivateFieldSet(this, _Client_inlineQueryManager, new InlineQueryManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
717
- __classPrivateFieldSet(this, _Client_chatListManager, new ChatListManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
718
- __classPrivateFieldSet(this, _Client_accountManager, new AccountManager(c), "f");
719
- __classPrivateFieldSet(this, _Client_paymentManager, new PaymentManager(c), "f");
720
- __classPrivateFieldGet(this, _Client_updateManager, "f").setUpdateHandler(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).bind(this));
721
- const transportProvider = __classPrivateFieldGet(this, _Client_client, "f").transportProvider;
722
- __classPrivateFieldGet(this, _Client_client, "f").transportProvider = (params) => {
723
- const transport = transportProvider(params);
724
- transport.connection.callback = __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f").getTransportReadWriteCallback();
725
- return transport;
726
- };
727
- this.invoke.use(async ({ error }, next) => {
728
- if (error instanceof ConnectionError) {
729
- while (!this.connected) {
730
- if (this.disconnected) {
731
- return next();
732
- }
733
- try {
734
- await this.connect();
735
- }
736
- catch {
737
- //
738
- }
739
- }
740
- return true;
741
- }
742
- else if (is("bad_msg_notification", error)) {
743
- return true;
744
- }
745
- else {
746
- return next();
747
- }
748
- });
749
- if (params?.defaultHandlers ?? true) {
750
- this.invoke.use(async ({ error }, next) => {
751
- if (error instanceof FloodWait && error.seconds <= 10) {
752
- L.warning("sleeping for", error.seconds, "because of:", error);
753
- await new Promise((r) => setTimeout(r, 1000 * error.seconds));
754
- return true;
755
- }
756
- else {
757
- return next();
758
- }
759
- });
760
- }
761
- }
762
- // direct ClientEncrypted property proxies
763
- get connected() {
764
- return __classPrivateFieldGet(this, _Client_client, "f").connected;
765
- }
766
- get disconnected() {
767
- return __classPrivateFieldGet(this, _Client_client, "f").disconnected;
768
- }
769
- /**
770
- * Sets the DC and resets the auth key stored in the session provider
771
- * if the stored DC was not the same as the `dc` parameter.
772
- *
773
- * @param dc The DC to change to.
774
- */
775
- async setDc(dc) {
776
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
777
- if (await this.storage.getDc() != dc) {
778
- await this.storage.setDc(dc);
779
- await this.storage.setAuthKey(null);
780
- await this.storage.getAuthKey();
781
- }
782
- __classPrivateFieldGet(this, _Client_client, "f").setDc(dc);
783
- }
784
- /**
785
- * Loads the session if `setDc` was not called, initializes and connnects
786
- * a `ClientPlain` to generate auth key if there was none, and connects the client.
787
- * Before establishing the connection, the session is saved.
788
- */
789
- async connect() {
790
- const unlock = await __classPrivateFieldGet(this, _Client_connectMutex, "f").lock();
791
- try {
792
- if (this.connected) {
793
- return;
794
- }
795
- if (__classPrivateFieldGet(this, _Client_lastConnect, "f") != null && Date.now() - __classPrivateFieldGet(this, _Client_lastConnect, "f").getTime() <= 10 * second) {
796
- await new Promise((r) => setTimeout(r, 3 * second));
797
- }
798
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
799
- if (__classPrivateFieldGet(this, _Client_authString, "f") && !__classPrivateFieldGet(this, _Client_authStringImported, "f")) {
800
- await this.importAuthString(__classPrivateFieldGet(this, _Client_authString, "f"));
801
- }
802
- const [authKey, dc] = await Promise.all([this.storage.getAuthKey(), this.storage.getDc()]);
803
- if (authKey != null && dc != null) {
804
- await __classPrivateFieldGet(this, _Client_client, "f").setAuthKey(authKey);
805
- __classPrivateFieldGet(this, _Client_client, "f").setDc(dc);
806
- if (__classPrivateFieldGet(this, _Client_client, "f").serverSalt == 0n) {
807
- __classPrivateFieldGet(this, _Client_client, "f").serverSalt = await this.storage.getServerSalt() ?? 0n;
808
- }
809
- }
810
- else {
811
- const plain = new ClientPlain({ initialDc: __classPrivateFieldGet(this, _Client_client, "f").initialDc, transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider, cdn: __classPrivateFieldGet(this, _Client_client, "f").cdn, publicKeys: __classPrivateFieldGet(this, _Client_publicKeys, "f") });
812
- const dc = await this.storage.getDc();
813
- if (dc != null) {
814
- plain.setDc(dc);
815
- __classPrivateFieldGet(this, _Client_client, "f").setDc(dc);
816
- }
817
- await plain.connect();
818
- const [authKey, serverSalt] = await plain.createAuthKey();
819
- drop(plain.disconnect());
820
- await __classPrivateFieldGet(this, _Client_client, "f").setAuthKey(authKey);
821
- __classPrivateFieldGet(this, _Client_client, "f").serverSalt = serverSalt;
822
- }
823
- await __classPrivateFieldGet(this, _Client_client, "f").connect();
824
- __classPrivateFieldSet(this, _Client_lastConnect, new Date(), "f");
825
- await Promise.all([this.storage.setAuthKey(__classPrivateFieldGet(this, _Client_client, "f").authKey), this.storage.setDc(__classPrivateFieldGet(this, _Client_client, "f").dc), this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_client, "f").serverSalt)]);
826
- __classPrivateFieldGet(this, _Client_instances, "m", _Client_startConnectionInsuranceLoop).call(this);
827
- __classPrivateFieldGet(this, _Client_instances, "m", _Client_startPingLoop).call(this);
828
- }
829
- finally {
830
- unlock();
831
- }
832
- }
833
- async reconnect(dc) {
834
- if (dc) {
835
- await this.setDc(dc);
836
- }
837
- await __classPrivateFieldGet(this, _Client_client, "f").reconnect();
838
- }
839
- async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_videoChatManager = new WeakMap(), _Client_businessConnectionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_paymentManager = 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_publicKeys = new WeakMap(), _Client_outgoingMessages = new WeakMap(), _Client_persistCache = new WeakMap(), _Client_disableUpdates = new WeakMap(), _Client_authString = new WeakMap(), _Client_cdn = new WeakMap(), _Client_L = new WeakMap(), _Client_LsignIn = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_Lmin = new WeakMap(), _Client_reconnecting = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_lastConnect = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_connectionInsuranceLoopStarted = new WeakMap(), _Client_connectionInsuranceLoopAbortController = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_authStringImported = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_reconnect = async function _Client_reconnect() {
840
- if (this.connected) {
841
- return;
842
- }
843
- if (this.disconnected) {
844
- __classPrivateFieldGet(this, _Client_L, "f").debug("not reconnecting");
845
- return;
846
- }
847
- if (__classPrivateFieldGet(this, _Client_reconnecting, "f")) {
848
- return;
849
- }
850
- __classPrivateFieldSet(this, _Client_reconnecting, true, "f");
851
- try {
852
- let delay = 5;
853
- while (!this.connected) {
854
- __classPrivateFieldGet(this, _Client_L, "f").debug("reconnecting");
855
- __classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.abort();
856
- try {
857
- await this.connect();
858
- __classPrivateFieldGet(this, _Client_L, "f").debug("reconnected");
859
- drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("reconnect"));
860
- break;
861
- }
862
- catch (err) {
863
- if (delay < 15) {
864
- delay += 5;
865
- }
866
- __classPrivateFieldGet(this, _Client_L, "f").debug(`failed to reconnect, retrying in ${delay}:`, err);
867
- }
868
- await new Promise((r) => setTimeout(r, delay * second));
869
- }
870
- }
871
- finally {
872
- __classPrivateFieldSet(this, _Client_reconnecting, false, "f");
873
- }
874
- }, _Client_getApiId = async function _Client_getApiId() {
875
- const apiId = __classPrivateFieldGet(this, _Client_apiId, "f") || await this.storage.getApiId();
876
- if (!apiId) {
877
- throw new InputError("apiId not set");
878
- }
879
- return apiId;
880
- }, _Client_getCdnConnectionPool = function _Client_getCdnConnectionPool(connectionCount, dcId) {
881
- const connections = new Array();
882
- for (let i = 0; i < connectionCount; ++i) {
883
- connections.push(__classPrivateFieldGet(this, _Client_instances, "m", _Client_getCdnConnection).call(this, dcId));
884
- }
885
- let prev = 0;
886
- return {
887
- size: connectionCount,
888
- invoke: () => {
889
- if (prev + 1 > connections.length)
890
- prev = 0;
891
- const connection = connections[prev++];
892
- return connection.invoke;
893
- },
894
- connect: async () => {
895
- for await (const connection of connections) {
896
- await connection.connect();
897
- }
898
- },
899
- disconnect: async () => {
900
- for await (const connection of connections) {
901
- await connection.disconnect();
902
- }
903
- },
904
- };
905
- }, _Client_getCdnConnection = function _Client_getCdnConnection(dcId) {
906
- const provider = this.storage.provider;
907
- const client = new _a({
908
- storage: (!dcId || dcId == __classPrivateFieldGet(this, _Client_client, "f").dcId) ? provider : provider.branch(`download_client_${dcId}`),
909
- apiId: __classPrivateFieldGet(this, _Client_apiId, "f"),
910
- apiHash: __classPrivateFieldGet(this, _Client_apiHash, "f"),
911
- transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider,
912
- appVersion: this.appVersion,
913
- deviceModel: this.deviceModel,
914
- langCode: this.langCode,
915
- langPack: this.langPack,
916
- systemLangCode: this.systemLangCode,
917
- systemVersion: this.systemVersion,
918
- cdn: true,
919
- initialDc: getDc(dcId || __classPrivateFieldGet(this, _Client_client, "f").dcId),
920
- });
921
- __classPrivateFieldGet(client, _Client_client, "f").serverSalt = __classPrivateFieldGet(this, _Client_client, "f").serverSalt;
922
- client.invoke.use(async (ctx, next) => {
923
- if (ctx.error instanceof AuthKeyUnregistered && dcId) {
924
- try {
925
- const exportedAuth = await this.invoke({ _: "auth.exportAuthorization", dc_id: dcId });
926
- await client.invoke({ ...exportedAuth, _: "auth.importAuthorization" });
927
- return true;
928
- }
929
- catch (err) {
930
- throw err;
931
- }
932
- }
933
- else {
934
- return await next();
935
- }
936
- });
937
- return {
938
- invoke: client.invoke.bind(client),
939
- connect: async () => {
940
- await client.connect();
941
- if (dcId && dcId != __classPrivateFieldGet(this, _Client_client, "f").dcId) {
942
- let dc = String(dcId);
943
- if (__classPrivateFieldGet(this, _Client_client, "f").dcId < 0) {
944
- dc += "-test";
945
- }
946
- await client.setDc(dc);
947
- }
948
- },
949
- disconnect: client.disconnect.bind(client),
950
- };
951
- }, _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
952
- __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
953
- __classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
954
- }, _Client_initStorage = async function _Client_initStorage() {
955
- if (!__classPrivateFieldGet(this, _Client_storageInited, "f")) {
956
- await this.storage.initialize();
957
- if (!__classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f")) {
958
- await this.storage.deleteUpdates();
959
- }
960
- __classPrivateFieldSet(this, _Client_storageInited, true, "f");
961
- }
962
- }, handleMigrationError)](err) {
963
- let newDc = String(err.dc);
964
- if (Math.abs(__classPrivateFieldGet(this, _Client_client, "f").dcId) >= 10_000) {
965
- newDc += "-test";
966
- }
967
- await this.reconnect(newDc);
968
- __classPrivateFieldGet(this, _Client_LhandleMigrationError, "f").debug(`migrated to DC${newDc}`);
969
- }
970
- async disconnect() {
971
- __classPrivateFieldSet(this, _Client_connectionInited, false, "f");
972
- await __classPrivateFieldGet(this, _Client_client, "f").disconnect();
973
- __classPrivateFieldGet(this, _Client_updateManager, "f").closeAllChats();
974
- __classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.abort();
975
- __classPrivateFieldGet(this, _Client_connectionInsuranceLoopAbortController, "f")?.abort();
976
- }
977
- /**
978
- * Signs in using the provided parameters if not already signed in.
979
- * If no parameters are provided, the credentials will be prompted in runtime.
980
- *
981
- * Notes:
982
- * 1. Requires the `apiId` and `apiHash` paramters to be passed when constructing the client.
983
- * 3. Reconnects the client to the appropriate DC in case of MIGRATE_X errors.
984
- */
985
- async signIn(params) {
986
- try {
987
- await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("signIn");
988
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
989
- drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("signIn"));
990
- __classPrivateFieldGet(this, _Client_LsignIn, "f").debug("already signed in");
991
- return;
992
- }
993
- catch (err) {
994
- if (!(err instanceof AuthKeyUnregistered) && !(err instanceof SessionRevoked)) {
995
- throw err;
996
- }
997
- }
998
- const apiId = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this);
999
- if (!__classPrivateFieldGet(this, _Client_apiHash, "f")) {
1000
- throw new InputError("apiHash not set");
1001
- }
1002
- if (typeof params === "undefined") {
1003
- const loginType = mustPromptOneOf("Do you want to login as bot [b] or user [u]?", ["b", "u"]);
1004
- if (loginType == "b") {
1005
- params = { botToken: mustPrompt("Bot token:") };
1006
- }
1007
- else {
1008
- params = { phone: () => mustPrompt("Phone number:"), code: () => mustPrompt("Verification code:"), password: () => mustPrompt("Password:") };
1009
- }
1010
- }
1011
- __classPrivateFieldGet(this, _Client_LsignIn, "f").debug("authorizing with", typeof params === "string" ? "bot token" : is("auth.exportedAuthorization", params) ? "exported authorization" : "AuthorizeUserParams");
1012
- if (params && "botToken" in params) {
1013
- while (true) {
1014
- try {
1015
- const auth = await this.invoke({ _: "auth.importBotAuthorization", api_id: apiId, api_hash: __classPrivateFieldGet(this, _Client_apiHash, "f"), bot_auth_token: params.botToken, flags: 0 });
1016
- await this.storage.setAccountId(Number(as("auth.authorization", auth).user.id));
1017
- await this.storage.setAccountType("bot");
1018
- break;
1019
- }
1020
- catch (err) {
1021
- if (err instanceof Migrate) {
1022
- await this[handleMigrationError](err);
1023
- continue;
1024
- }
1025
- else {
1026
- throw err;
1027
- }
1028
- }
1029
- }
1030
- __classPrivateFieldGet(this, _Client_LsignIn, "f").debug("authorized as bot");
1031
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
1032
- await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
1033
- return;
1034
- }
1035
- auth: while (true) {
1036
- try {
1037
- let phone;
1038
- let sentCode;
1039
- while (true) {
1040
- try {
1041
- phone = typeof params.phone === "string" ? params.phone : await params.phone();
1042
- const sendCode = () => this.invoke({
1043
- _: "auth.sendCode",
1044
- phone_number: phone,
1045
- api_id: __classPrivateFieldGet(this, _Client_apiId, "f"),
1046
- api_hash: __classPrivateFieldGet(this, _Client_apiHash, "f"),
1047
- settings: { _: "codeSettings" },
1048
- }).then((v) => as("auth.sentCode", v));
1049
- try {
1050
- sentCode = await sendCode();
1051
- }
1052
- catch (err) {
1053
- if (err instanceof Migrate) {
1054
- await this[handleMigrationError](err);
1055
- sentCode = await sendCode();
1056
- }
1057
- else {
1058
- throw err;
1059
- }
1060
- }
1061
- break;
1062
- }
1063
- catch (err) {
1064
- if (err instanceof PhoneNumberInvalid) {
1065
- continue;
1066
- }
1067
- else {
1068
- throw err;
1069
- }
1070
- }
1071
- }
1072
- __classPrivateFieldGet(this, _Client_LsignIn, "f").debug("verification code sent");
1073
- let err;
1074
- code: while (true) {
1075
- const code = typeof params.code === "string" ? params.code : await params.code();
1076
- try {
1077
- const auth = await this.invoke({
1078
- _: "auth.signIn",
1079
- phone_number: phone,
1080
- phone_code: code,
1081
- phone_code_hash: sentCode.phone_code_hash,
1082
- });
1083
- await this.storage.setAccountId(Number(as("auth.authorization", auth).user.id));
1084
- await this.storage.setAccountType("user");
1085
- __classPrivateFieldGet(this, _Client_LsignIn, "f").debug("signed in as user");
1086
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
1087
- await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("signIn");
1088
- return;
1089
- }
1090
- catch (err_) {
1091
- if (err_ instanceof PhoneCodeInvalid) {
1092
- continue code;
1093
- }
1094
- else {
1095
- err = err_;
1096
- break code;
1097
- }
1098
- }
1099
- }
1100
- if (!(err instanceof SessionPasswordNeeded)) {
1101
- throw err;
1102
- }
1103
- password: while (true) {
1104
- const ap = await this.invoke({ _: "account.getPassword" });
1105
- if (!(is("passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow", ap.current_algo))) {
1106
- throw new Error(`Handling ${ap.current_algo?._} not implemented`);
1107
- }
1108
- try {
1109
- const password = typeof params.password === "string" ? params.password : await params.password(ap.hint ?? null);
1110
- const input = await checkPassword(password, ap);
1111
- const auth = await this.invoke({ _: "auth.checkPassword", password: input });
1112
- await this.storage.setAccountId(Number(as("auth.authorization", auth).user.id));
1113
- await this.storage.setAccountType("user");
1114
- __classPrivateFieldGet(this, _Client_LsignIn, "f").debug("signed in as user");
1115
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
1116
- await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("signIn");
1117
- return;
1118
- }
1119
- catch (err) {
1120
- if (err instanceof PasswordHashInvalid) {
1121
- continue password;
1122
- }
1123
- else {
1124
- throw err;
1125
- }
1126
- }
1127
- }
1128
- }
1129
- catch (err) {
1130
- if (err == restartAuth) {
1131
- continue auth;
1132
- }
1133
- else {
1134
- throw err;
1135
- }
1136
- }
1137
- }
1138
- }
1139
- async signOut() {
1140
- try {
1141
- await Promise.all([
1142
- this.storage.reset(),
1143
- this.invoke({ _: "auth.logOut" }).then(() => {
1144
- __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, false);
1145
- }),
1146
- ]);
1147
- }
1148
- finally {
1149
- __classPrivateFieldSet(this, _Client_lastGetMe, null, "f");
1150
- await this.reconnect();
1151
- }
1152
- }
1153
- /**
1154
- * Same as calling `.connect()` followed by `.signIn(params)`.
1155
- */
1156
- async start(params) {
1157
- await this.connect();
1158
- await this.signIn(params);
1159
- }
1160
- /**
1161
- * Alias for `invoke` with its second parameter being `true`.
1162
- */
1163
- send(function_) {
1164
- return this.invoke(function_, true);
1165
- }
1166
- exportAuthString() {
1167
- return this.storage.exportAuthString(__classPrivateFieldGet(this, _Client_apiId, "f"));
1168
- }
1169
- async importAuthString(authString) {
1170
- if (this.connected) {
1171
- throw new Error("Cannot import auth string while the client is connected");
1172
- }
1173
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
1174
- await this.storage.importAuthString(authString);
1175
- __classPrivateFieldSet(this, _Client_authStringImported, true, "f");
1176
- }
1177
- /**
1178
- * Get a chat's inputPeer. Useful when calling API functions directly.
1179
- *
1180
- * @param id The identifier of the chat.
1181
- */
1182
- async getInputPeer(id) {
1183
- if (id === "me" || id == await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) {
1184
- return { _: "inputPeerSelf" };
1185
- }
1186
- const inputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerInner).call(this, id);
1187
- if (((is("inputPeerUser", inputPeer) || is("inputPeerChannel", inputPeer)) && inputPeer.access_hash == 0n) && await this.storage.getAccountType() == "bot") {
1188
- if ("channel_id" in inputPeer) {
1189
- inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChannelAccessHash).call(this, inputPeer.channel_id);
1190
- }
1191
- else {
1192
- inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUserAccessHash).call(this, inputPeer.user_id);
1193
- }
1194
- }
1195
- if ((is("inputPeerUser", inputPeer) || is("inputPeerChannel", inputPeer)) && inputPeer.access_hash == 0n && await this.storage.getAccountType() == "user") {
1196
- throw new AccessError(`Cannot access the chat ${id} because there is no access hash for it.`);
1197
- }
1198
- return inputPeer;
1199
- }
1200
- /**
1201
- * Get a channel or a supergroup's inputChannel. Useful when calling API functions directly.
1202
- *
1203
- * @param id The identifier of the channel or the supergroup.
1204
- */
1205
- async getInputChannel(id) {
1206
- const inputPeer = await this.getInputPeer(id);
1207
- if (!canBeInputChannel(inputPeer)) {
1208
- throw new TypeError(`The chat ${id} is not a channel neither a supergroup.`);
1209
- }
1210
- return toInputChannel(inputPeer);
1211
- }
1212
- /**
1213
- * Get a user's inputUser. Useful when calling API functions directly.
1214
- *
1215
- * @param id The identifier of the user.
1216
- */
1217
- async getInputUser(id) {
1218
- const inputPeer = await this.getInputPeer(id);
1219
- if (!canBeInputUser(inputPeer)) {
1220
- throw new TypeError(`The chat ${id} is not a private chat.`);
1221
- }
1222
- return toInputUser(inputPeer);
1223
- }
1224
- async [(_Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
1225
- if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") != authorized) {
1226
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, { authorizationState: { authorized } });
1227
- __classPrivateFieldSet(this, _Client_lastPropagatedAuthorizationState, authorized, "f");
1228
- }
1229
- }, _Client_getSelfId = async function _Client_getSelfId() {
1230
- const id = await this.storage.getAccountId();
1231
- if (id == null) {
1232
- throw new Error("Unauthorized");
1233
- }
1234
- return id;
1235
- }, _Client_startConnectionInsuranceLoop = function _Client_startConnectionInsuranceLoop() {
1236
- drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_connectionInsuranceLoop).call(this));
1237
- }, _Client_connectionInsuranceLoop = async function _Client_connectionInsuranceLoop() {
1238
- if (__classPrivateFieldGet(this, _Client_connectionInsuranceLoopStarted, "f")) {
1239
- return;
1240
- }
1241
- __classPrivateFieldSet(this, _Client_connectionInsuranceLoopAbortController, new AbortController(), "f");
1242
- __classPrivateFieldSet(this, _Client_connectionInsuranceLoopStarted, true, "f");
1243
- while (!this.disconnected) {
1244
- try {
1245
- await new Promise((resolve, reject) => {
1246
- const timeout = setTimeout(resolve, 10 * second);
1247
- __classPrivateFieldGet(this, _Client_connectionInsuranceLoopAbortController, "f").signal.onabort = () => {
1248
- reject(__classPrivateFieldGet(this, _Client_connectionInsuranceLoopAbortController, "f")?.signal.reason);
1249
- clearTimeout(timeout);
1250
- };
1251
- });
1252
- }
1253
- catch {
1254
- break;
1255
- }
1256
- if (!this.connected) {
1257
- drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_reconnect).call(this));
1258
- }
1259
- }
1260
- __classPrivateFieldSet(this, _Client_connectionInsuranceLoopStarted, false, "f");
1261
- }, _Client_startPingLoop = function _Client_startPingLoop() {
1262
- drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
1263
- }, _Client_pingLoop = async function _Client_pingLoop() {
1264
- if (__classPrivateFieldGet(this, _Client_cdn, "f")) {
1265
- return;
1266
- }
1267
- __classPrivateFieldSet(this, _Client_pingLoopAbortController, new AbortController(), "f");
1268
- let timeElapsed = 0;
1269
- while (this.connected) {
1270
- const then = Date.now();
1271
- try {
1272
- await new Promise((resolve, reject) => {
1273
- const timeout = setTimeout(resolve, __classPrivateFieldGet(this, _Client_pingInterval, "f") - timeElapsed);
1274
- __classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.onabort = () => {
1275
- reject(__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.signal.reason);
1276
- clearTimeout(timeout);
1277
- };
1278
- });
1279
- if (!this.connected) {
1280
- continue;
1281
- }
1282
- __classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
1283
- await this.invoke({ _: "ping_delay_disconnect", ping_id: getRandomId(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") / second + 15 });
1284
- __classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
1285
- if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 * minute) {
1286
- drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("lastUpdates").then(() => {
1287
- __classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
1288
- }));
1289
- }
1290
- }
1291
- catch (err) {
1292
- if (err instanceof DOMException && err.name == "AbortError") {
1293
- __classPrivateFieldSet(this, _Client_pingLoopAbortController, new AbortController(), "f");
1294
- }
1295
- if (!this.connected) {
1296
- continue;
1297
- }
1298
- __classPrivateFieldGet(this, _Client_LpingLoop, "f").error(err);
1299
- }
1300
- finally {
1301
- timeElapsed = Date.now() - then;
1302
- }
1303
- }
1304
- }, _Client_invoke = async function _Client_invoke(function_, noWait) {
1305
- let n = 1;
1306
- while (true) {
1307
- try {
1308
- if (__classPrivateFieldGet(this, _Client_disableUpdates, "f") && !isMtprotoFunction(function_) && !isCdnFunction(function_)) {
1309
- function_ = { _: "invokeWithoutUpdates", query: function_ };
1310
- }
1311
- if (!__classPrivateFieldGet(this, _Client_connectionInited, "f") && !isMtprotoFunction(function_)) {
1312
- __classPrivateFieldSet(this, _Client_connectionInited, true, "f");
1313
- __classPrivateFieldGet(this, _Client_L, "f").debug("init");
1314
- const result = await __classPrivateFieldGet(this, _Client_client, "f").invoke({
1315
- _: "initConnection",
1316
- api_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this),
1317
- app_version: this.appVersion,
1318
- device_model: this.deviceModel,
1319
- lang_code: this.langCode,
1320
- lang_pack: this.langPack,
1321
- query: {
1322
- _: "invokeWithLayer",
1323
- layer: LAYER,
1324
- query: function_,
1325
- },
1326
- system_lang_code: this.systemLangCode,
1327
- system_version: this.systemVersion,
1328
- }, noWait);
1329
- __classPrivateFieldGet(this, _Client_L$initConncetion, "f").debug("connection inited");
1330
- return result;
1331
- }
1332
- else {
1333
- return await __classPrivateFieldGet(this, _Client_client, "f").invoke(function_, noWait);
1334
- }
1335
- }
1336
- catch (err) {
1337
- if (err instanceof ConnectionNotInited) {
1338
- __classPrivateFieldSet(this, _Client_connectionInited, false, "f");
1339
- continue;
1340
- }
1341
- else if (await __classPrivateFieldGet(this, _Client_handleInvokeError, "f").call(this, Object.freeze({ client: this, error: err, function: function_, n: n++ }), () => Promise.resolve(false))) {
1342
- continue;
1343
- }
1344
- else {
1345
- throw err;
1346
- }
1347
- }
1348
- }
1349
- }, _Client_getUserAccessHash = async function _Client_getUserAccessHash(userId) {
1350
- const users = await this.invoke({ _: "users.getUsers", id: [{ _: "inputUser", user_id: userId, access_hash: 0n }] });
1351
- const user = as("user", users[0]);
1352
- if (user) {
1353
- await this.messageStorage.setEntity(user);
1354
- }
1355
- return user?.access_hash ?? 0n;
1356
- }, _Client_getChannelAccessHash = async function _Client_getChannelAccessHash(channelId) {
1357
- const channels = await this.invoke({ _: "channels.getChannels", id: [{ _: "inputChannel", channel_id: channelId, access_hash: 0n }] });
1358
- const channel = as("channel", channels.chats[0]);
1359
- if (channel) {
1360
- await this.messageStorage.setEntity(channel);
1361
- }
1362
- return channel?.access_hash ?? 0n;
1363
- }, _Client_getInputPeerInner = async function _Client_getInputPeerInner(id) {
1364
- const idn = Number(id);
1365
- if (!isNaN(idn)) {
1366
- id = idn;
1367
- }
1368
- __classPrivateFieldGet(this, _Client_Lmin, "f").debug("gipi A", id);
1369
- let peer;
1370
- if (typeof id === "string") {
1371
- id = getUsername(id);
1372
- let resolvedId = 0;
1373
- const maybeUsername = await this.messageStorage.getUsername(id);
1374
- if (maybeUsername != null && Date.now() - maybeUsername[1].getTime() < USERNAME_TTL) {
1375
- const [id] = maybeUsername;
1376
- resolvedId = id;
1377
- }
1378
- else {
1379
- const resolved = await this.invoke({ _: "contacts.resolveUsername", username: id });
1380
- await __classPrivateFieldGet(this, _Client_updateManager, "f").processChats(resolved.chats, resolved);
1381
- await __classPrivateFieldGet(this, _Client_updateManager, "f").processUsers(resolved.users, resolved);
1382
- if (is("peerUser", resolved.peer)) {
1383
- resolvedId = peerToChatId(resolved.peer);
1384
- }
1385
- else if (is("peerChannel", resolved.peer)) {
1386
- resolvedId = peerToChatId(resolved.peer);
1387
- }
1388
- else {
1389
- unreachable();
1390
- }
1391
- }
1392
- const resolvedIdType = getChatIdPeerType(resolvedId);
1393
- __classPrivateFieldGet(this, _Client_Lmin, "f").debug({ resolvedId });
1394
- if (resolvedIdType == "user") {
1395
- const accessHash = await this.messageStorage.getUserAccessHash(resolvedId);
1396
- peer = { _: "inputPeerUser", user_id: chatIdToPeerId(resolvedId), access_hash: accessHash ?? 0n };
1397
- }
1398
- else if (resolvedIdType == "channel") {
1399
- const accessHash = await this.messageStorage.getChannelAccessHash(resolvedId);
1400
- peer = { _: "inputPeerChannel", channel_id: chatIdToPeerId(resolvedId), access_hash: accessHash ?? 0n };
1401
- }
1402
- else {
1403
- unreachable();
1404
- }
1405
- }
1406
- else if (id > 0) {
1407
- const accessHash = await this.messageStorage.getUserAccessHash(id);
1408
- peer = { _: "inputPeerUser", user_id: chatIdToPeerId(id), access_hash: accessHash ?? 0n };
1409
- }
1410
- else if (-MAX_CHAT_ID <= id) {
1411
- peer = { _: "inputPeerChat", chat_id: BigInt(Math.abs(id)) };
1412
- }
1413
- else if (ZERO_CHANNEL_ID - MAX_CHANNEL_ID <= id && id != ZERO_CHANNEL_ID) {
1414
- const accessHash = await this.messageStorage.getChannelAccessHash(id);
1415
- peer = { _: "inputPeerChannel", channel_id: chatIdToPeerId(id), access_hash: accessHash ?? 0n };
1416
- }
1417
- else {
1418
- throw new InputError("The ID is of an format unknown.");
1419
- }
1420
- if (!is("inputPeerChat", peer) && !peer.access_hash) {
1421
- const chatId = peerToChatId(peer);
1422
- const minPeerReference = await this.messageStorage.getLastMinPeerReference(chatId);
1423
- if (minPeerReference) {
1424
- const minInputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMinInputPeer).call(this, canBeInputChannel(peer) ? "channel" : "user", { ...minPeerReference, senderId: chatId });
1425
- if (minInputPeer) {
1426
- __classPrivateFieldGet(this, _Client_Lmin, "f").debug("resolved input min peer", minInputPeer);
1427
- peer = minInputPeer;
1428
- }
1429
- }
1430
- }
1431
- return peer;
1432
- }, _Client_getMinInputPeer = async function _Client_getMinInputPeer(type, reference) {
1433
- const entity = await this.messageStorage.getEntity(reference.chatId);
1434
- if (isOneOf(["channel", "channelForbidden"], entity) && entity.access_hash) {
1435
- const peer = { _: "inputPeerChannel", channel_id: entity.id, access_hash: entity.access_hash };
1436
- if (type == "user") {
1437
- return { _: "inputPeerUserFromMessage", peer, msg_id: reference.messageId, user_id: chatIdToPeerId(reference.senderId) };
1438
- }
1439
- else {
1440
- return { _: "inputPeerChannelFromMessage", peer, msg_id: reference.messageId, channel_id: chatIdToPeerId(reference.senderId) };
1441
- }
1442
- }
1443
- else {
1444
- return null;
1445
- }
1446
- }, getEntity)](peer) {
1447
- const id = peerToChatId(peer);
1448
- const entity = await this.messageStorage.getEntity(id);
1449
- if (entity == null && await this.storage.getAccountType() == "bot" && is("peerUser", peer) || is("peerChannel", peer)) {
1450
- await this.getInputPeer(id);
1451
- }
1452
- else {
1453
- return entity;
1454
- }
1455
- return await this.messageStorage.getEntity(id);
1456
- }
1457
- //
1458
- // ========================= ACCOUNT ========================= //
1459
- //
1460
- /**
1461
- * Get information on the currently authorized user.
1462
- *
1463
- * @method ac
1464
- */
1465
- async getMe() {
1466
- let user_ = await this[getEntity]({ _: "peerUser", user_id: BigInt(await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) });
1467
- if (user_ == null) {
1468
- const users = await this.invoke({ _: "users.getUsers", id: [{ _: "inputUserSelf" }] });
1469
- user_ = as("user", users[0]);
1470
- await this.messageStorage.setEntity(user_);
1471
- }
1472
- const user = constructUser(user_);
1473
- __classPrivateFieldSet(this, _Client_lastGetMe, user, "f");
1474
- return user;
1475
- }
1476
- /**
1477
- * Show a username in the current account, a bot account, a supergroup, or a channel's profile. User-only.
1478
- *
1479
- * @method ac
1480
- * @param id `"me"`, a bot ID, a supergroup ID, or a channel ID.
1481
- * @param username The username to show.
1482
- */
1483
- async showUsername(id, username) {
1484
- await __classPrivateFieldGet(this, _Client_accountManager, "f").showUsername(id, username);
1485
- }
1486
- /**
1487
- * Hide a username from the current account, a bot account, a supergroup, or a channel's profile. User-only.
1488
- *
1489
- * @method ac
1490
- * @param id `"me"`, a bot ID, a supergroup ID, or a channel ID.
1491
- * @param username The username to hide.
1492
- */
1493
- async hideUsername(id, username) {
1494
- await __classPrivateFieldGet(this, _Client_accountManager, "f").hideUsername(id, username);
1495
- }
1496
- /**
1497
- * Reorder the usernames of the current account, a bot account, a supergroup, or a channel's profile. User-only.
1498
- *
1499
- * @method ac
1500
- * @param id `"me"`, a bot ID, a supergroup ID, or a channel ID.
1501
- * @param order The new order to use.
1502
- * @returns Whether the order was changed.
1503
- */
1504
- async reorderUsernames(id, order) {
1505
- return await __classPrivateFieldGet(this, _Client_accountManager, "f").reorderUsernames(id, order);
1506
- }
1507
- /**
1508
- * Hide all usernames from the a supergroup or a channel's profile. User-only.
1509
- *
1510
- * @method ac
1511
- * @param id A supergroup ID or a channel ID.
1512
- */
1513
- async hideUsernames(id) {
1514
- return await __classPrivateFieldGet(this, _Client_accountManager, "f").hideUsernames(id);
1515
- }
1516
- /**
1517
- * Get a business connection. Bot-only.
1518
- *
1519
- * @method ac
1520
- * @param id The identifier of the business connection.
1521
- */
1522
- async getBusinessConnection(id) {
1523
- return await __classPrivateFieldGet(this, _Client_businessConnectionManager, "f").getBusinessConnection(id);
1524
- }
1525
- /**
1526
- * Set the current account's online status. User-only.
1527
- *
1528
- * @method ac
1529
- * @param online The new online status.
1530
- */
1531
- async setOnline(online) {
1532
- await __classPrivateFieldGet(this, _Client_accountManager, "f").setOnline(online);
1533
- }
1534
- //
1535
- // ========================= MESSAGES ========================= //
1536
- //
1537
- /**
1538
- * Send a text message.
1539
- *
1540
- * @method ms
1541
- * @param chatId The chat to send the message to.
1542
- * @param text The message's text.
1543
- * @returns The sent text message.
1544
- */
1545
- async sendMessage(chatId, text, params) {
1546
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendMessage(chatId, text, params);
1547
- }
1548
- /**
1549
- * Send a photo.
1550
- *
1551
- * @method ms
1552
- * @param chatId The chat to send the photo to.
1553
- * @param photo The photo to send.
1554
- * @returns The sent photo.
1555
- */
1556
- async sendPhoto(chatId, photo, params) {
1557
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendPhoto(chatId, photo, params);
1558
- }
1559
- /**
1560
- * Send a document.
1561
- *
1562
- * @method ms
1563
- * @param chatId The chat to send the document to.
1564
- * @param document The document to send.
1565
- * @returns The sent document.
1566
- */
1567
- async sendDocument(chatId, document, params) {
1568
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendDocument(chatId, document, params);
1569
- }
1570
- /**
1571
- * Send a sticker.
1572
- *
1573
- * @method ms
1574
- * @param chatId The chat to send the sticker to.
1575
- * @param document The sticker to send.
1576
- * @returns The sent sticker.
1577
- */
1578
- async sendSticker(chatId, sticker, params) {
1579
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendSticker(chatId, sticker, params);
1580
- }
1581
- /**
1582
- * Send a video.
1583
- *
1584
- * @method ms
1585
- * @param chatId The chat to send the video to.
1586
- * @param video The video to send.
1587
- * @returns The sent video.
1588
- */
1589
- async sendVideo(chatId, video, params) {
1590
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVideo(chatId, video, params);
1591
- }
1592
- /**
1593
- * Send an animation.
1594
- *
1595
- * @method ms
1596
- * @param chatId The chat to send the animation to.
1597
- * @param animation The animation to send.
1598
- * @returns The sent animation.
1599
- */
1600
- async sendAnimation(chatId, animation, params) {
1601
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendAnimation(chatId, animation, params);
1602
- }
1603
- /**
1604
- * Send a voice message.
1605
- *
1606
- * @method ms
1607
- * @param chatId The chat to send the voice message to.
1608
- * @param voice The voice to send.
1609
- * @returns The sent voice message.
1610
- */
1611
- async sendVoice(chatId, voice, params) {
1612
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVoice(chatId, voice, params);
1613
- }
1614
- /**
1615
- * Send an audio file.
1616
- *
1617
- * @method ms
1618
- * @param chatId The chat to send the audio file to.
1619
- * @param audio The audio to send.
1620
- * @returns The sent audio filr.
1621
- */
1622
- async sendAudio(chatId, audio, params) {
1623
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendAudio(chatId, audio, params);
1624
- }
1625
- /**
1626
- * Send a media group.
1627
- *
1628
- * @method ms
1629
- * @param chatId The chat to send the media group to.
1630
- * @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.
1631
- * @returns The sent messages.
1632
- */
1633
- async sendMediaGroup(chatId, media, params) {
1634
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendMediaGroup(chatId, media, params);
1635
- }
1636
- /**
1637
- * Send a video note.
1638
- *
1639
- * @method ms
1640
- * @param chatId The chat to send the video note to.
1641
- * @param videoNote The video note to send.
1642
- * @returns The sent video note.
1643
- */
1644
- async sendVideoNote(chatId, videoNote, params) {
1645
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVideoNote(chatId, videoNote, params);
1646
- }
1647
- /**
1648
- * Send a location.
1649
- *
1650
- * @method ms
1651
- * @param chatId The chat to send the location to.
1652
- * @param latitude The location's latitude.
1653
- * @param longitude The location's longitude.
1654
- * @returns The sent location.
1655
- */
1656
- async sendLocation(chatId, latitude, longitude, params) {
1657
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendLocation(chatId, latitude, longitude, params);
1658
- }
1659
- /**
1660
- * Send a contact.
1661
- *
1662
- * @method ms
1663
- * @param chatId The chat to send the contact to.
1664
- * @param firstName The contact's first name.
1665
- * @param number The contact's phone number.
1666
- * @returns The sent contact.
1667
- */
1668
- async sendContact(chatId, firstName, number, params) {
1669
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendContact(chatId, firstName, number, params);
1670
- }
1671
- /**
1672
- * Send a dice.
1673
- *
1674
- * @method ms
1675
- * @param chatId The chat to send the dice to.
1676
- * @returns The sent dice.
1677
- */
1678
- async sendDice(chatId, params) {
1679
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendDice(chatId, params);
1680
- }
1681
- /**
1682
- * Send a venue.
1683
- *
1684
- * @method ms
1685
- * @param chatId The chat to send the venue to.
1686
- * @param latitude The latitude of the venue.
1687
- * @param longitude The longitude of the venue.
1688
- * @param title The title of the venue.
1689
- * @param address The written address of the venue.
1690
- * @returns The sent venue.
1691
- */
1692
- async sendVenue(chatId, latitude, longitude, title, address, params) {
1693
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVenue(chatId, latitude, longitude, title, address, params);
1694
- }
1695
- /**
1696
- * Send a poll.
1697
- *
1698
- * @method ms
1699
- * @param chatId The chat to send the poll to.
1700
- * @param question The poll's question.
1701
- * @param options The poll's options.
1702
- * @returns The sent poll.
1703
- */
1704
- async sendPoll(chatId, question, options, params) {
1705
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendPoll(chatId, question, options, params);
1706
- }
1707
- /**
1708
- * Send an invoice. Bot-only.
1709
- *
1710
- * @method ms
1711
- * @param chatId The chat to send the invoice to.
1712
- * @param title The invoice's title.
1713
- * @param description The invoice's description.
1714
- * @param payload The invoice's payload.
1715
- * @param currency The invoice's currency.
1716
- * @param prices The invoice's price tags.
1717
- * @returns The sent invoice.
1718
- */
1719
- async sendInvoice(chatId, title, description, payload, currency, prices, params) {
1720
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendInvoice(chatId, title, description, payload, currency, prices, params);
1721
- }
1722
- /**
1723
- * Edit a message's text.
1724
- *
1725
- * @method ms
1726
- * @param chatId The identifier of the chat that contains the message.
1727
- * @param messageId The message's identifier.
1728
- * @param text The new text of the message.
1729
- * @returns The edited text message.
1730
- */
1731
- async editMessageText(chatId, messageId, text, params) {
1732
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
1733
- }
1734
- /**
1735
- * Edit a message's media.
1736
- *
1737
- * @method ms
1738
- * @param chatId The identifier of the chat that contains the message.
1739
- * @param messageId The message's identifier.
1740
- * @param media The new media of the message.
1741
- * @returns The edited message.
1742
- */
1743
- async editMessageMedia(chatId, messageId, media, params) {
1744
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageMedia(chatId, messageId, media, params);
1745
- }
1746
- /**
1747
- * Edit an inline message's media.
1748
- *
1749
- * @method ms
1750
- * @param inlineMessageId The inline message's identifier.
1751
- * @param media The new media of the message.
1752
- */
1753
- async editInlineMessageMedia(inlineMessageId, media, params) {
1754
- await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageMedia(inlineMessageId, media, params);
1755
- }
1756
- /**
1757
- * Edit an inline message's text. Bot-only.
1758
- *
1759
- * @method ms
1760
- * @param inlineMessageId The inline message's identifier.
1761
- * @param text The new text of the message.
1762
- */
1763
- async editInlineMessageText(inlineMessageId, text, params) {
1764
- await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageText(inlineMessageId, text, params);
1765
- }
1766
- /**
1767
- * Edit a message's reply markup.
1768
- *
1769
- * @method ms
1770
- * @param chatId The identifier of the chat that contains the message.
1771
- * @param messageId The message's identifier.
1772
- * @returns The edited message.
1773
- */
1774
- async editMessageReplyMarkup(chatId, messageId, params) {
1775
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageReplyMarkup(chatId, messageId, params);
1776
- }
1777
- /**
1778
- * Edit an inline message's reply markup. Bot-only.
1779
- *
1780
- * @method ms
1781
- * @param inlineMessageId The inline message's identifier.
1782
- */
1783
- async editInlineMessageReplyMarkup(inlineMessageId, params) {
1784
- await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageReplyMarkup(inlineMessageId, params);
1785
- }
1786
- /**
1787
- * Edit a message's live location.
1788
- *
1789
- * @method ms
1790
- * @param chatId The identifier of the chat that contains the messages.
1791
- * @param messageId The message's identifier.
1792
- * @param latitude The new latitude.
1793
- * @param longitude The new longitude.
1794
- * @returns The edited location message.
1795
- */
1796
- async editMessageLiveLocation(chatId, messageId, latitude, longitude, params) {
1797
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
1798
- }
1799
- /**
1800
- * Edit an inline message's live location. Bot-only.
1801
- *
1802
- * @method ms
1803
- * @param inlineMessageId The inline message's identifier.
1804
- * @param latitude The new latitude.
1805
- * @param longitude The new longitude.
1806
- * @returns The edited location message.
1807
- */
1808
- async editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params) {
1809
- await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
1810
- }
1811
- /**
1812
- * Retrieve multiple messages.
1813
- *
1814
- * @method ms
1815
- * @param chatId The identifier of the chat to retrieve the messages from.
1816
- * @param messageIds The identifiers of the messages to retrieve.
1817
- * @example ```ts
1818
- * const message = await client.getMessages("@MTKruto", [210, 212]);
1819
- * ```
1820
- * @returns The retrieved messages.
1821
- */
1822
- async getMessages(chatId, messageIds) {
1823
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").getMessages(chatId, messageIds);
1824
- }
1825
- /**
1826
- * Retrieve a single message.
1827
- *
1828
- * @method ms
1829
- * @param chatId The identifier of the chat to retrieve the message from.
1830
- * @param messageId The identifier of the message to retrieve.
1831
- * @example ```ts
1832
- * const message = await client.getMessage("@MTKruto", 212);
1833
- * ```
1834
- * @returns The retrieved message.
1835
- */
1836
- async getMessage(chatId, messageId) {
1837
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").getMessage(chatId, messageId);
1838
- }
1839
- /**
1840
- * Delete multiple messages.
1841
- *
1842
- * @method ms
1843
- * @param chatId The identifier of the chat that contains the messages.
1844
- * @param messageIds The identifiers of the messages to delete.
1845
- */
1846
- async deleteMessages(chatId, messageIds, params) {
1847
- await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteMessages(chatId, messageIds, params);
1848
- }
1849
- /**
1850
- * Delete a single message.
1851
- *
1852
- * @method ms
1853
- * @param chatId The identifier of the chat that contains the message.
1854
- * @param messageId The identifier of the message to delete.
1855
- */
1856
- async deleteMessage(chatId, messageId, params) {
1857
- await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteMessages(chatId, [messageId], params);
1858
- }
1859
- /**
1860
- * Delete all messages sent by a specific member of a chat. User-only.
1861
- *
1862
- * @method ms
1863
- * @param chatId The identifier of the chat. Must be a supergroup.
1864
- * @param memberId The identifier of the member.
1865
- */
1866
- async deleteChatMemberMessages(chatId, memberId) {
1867
- await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatMemberMessages(chatId, memberId);
1868
- }
1869
- /**
1870
- * Delete multiple scheduled messages.
1871
- *
1872
- * @method ms
1873
- * @param chatId The identifier of the chat that contains the scheduled messages.
1874
- * @param messageIds The identifiers of the scheduled messages to delete.
1875
- */
1876
- async deleteScheduledMessages(chatId, messageIds) {
1877
- await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteScheduledMessages(chatId, messageIds);
1878
- }
1879
- /**
1880
- * Delete a scheduled message.
1881
- *
1882
- * @method ms
1883
- * @param chatId The identifier of the chat that contains the scheduled message.
1884
- * @param messageId The identifier of the scheduled message to delete.
1885
- */
1886
- async deleteScheduledMessage(chatId, messageId) {
1887
- await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteScheduledMessage(chatId, messageId);
1888
- }
1889
- /**
1890
- * Send multiple scheduled messages before their schedule.
1891
- *
1892
- * @method ms
1893
- * @param chatId The identifier of the chat that contains the scheduled messages.
1894
- * @param messageIds The identifiers of the scheduled messages to send.
1895
- */
1896
- async sendScheduledMessages(chatId, messageIds) {
1897
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendScheduledMessages(chatId, messageIds);
1898
- }
1899
- /**
1900
- * Send a scheduled message before its schedule.
1901
- *
1902
- * @method ms
1903
- * @param chatId The identifier of the chat that contains the scheduled message.
1904
- * @param messageId The identifier of the scheduled message to send.
1905
- */
1906
- async sendScheduledMessage(chatId, messageId) {
1907
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendScheduledMessage(chatId, messageId);
1908
- }
1909
- /**
1910
- * Pin a message in a chat.
1911
- *
1912
- * @method ms
1913
- * @param chatId The identifier of the chat that contains the message.
1914
- * @param messageId The message's identifier.
1915
- */
1916
- async pinMessage(chatId, messageId, params) {
1917
- await __classPrivateFieldGet(this, _Client_messageManager, "f").pinMessage(chatId, messageId, params);
1918
- }
1919
- /**
1920
- * Unpin a pinned message.
1921
- *
1922
- * @method ms
1923
- * @param chatId The identifier of the chat that contains the message.
1924
- * @param messageId The message's identifier.
1925
- */
1926
- async unpinMessage(chatId, messageId, params) {
1927
- await __classPrivateFieldGet(this, _Client_messageManager, "f").unpinMessage(chatId, messageId, params);
1928
- }
1929
- /**
1930
- * Unpin all pinned messages.
1931
- *
1932
- * @method ms
1933
- * @param chatId The identifier of the chat.
1934
- */
1935
- async unpinMessages(chatId) {
1936
- await __classPrivateFieldGet(this, _Client_messageManager, "f").unpinMessages(chatId);
1937
- }
1938
- /**
1939
- * Forward multiple messages.
1940
- *
1941
- * @method ms
1942
- * @param from The identifier of the chat to forward the messages from.
1943
- * @param to The identifier of the chat to forward the messages to.
1944
- * @param messageIds The identifiers of the messages to forward.
1945
- * @returns The forwarded messages.
1946
- */
1947
- async forwardMessages(from, to, messageIds, params) {
1948
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").forwardMessages(from, to, messageIds, params);
1949
- }
1950
- /**
1951
- * Forward a single message.
1952
- *
1953
- * @method ms
1954
- * @param from The identifier of the chat to forward the message from.
1955
- * @param to The identifier of the chat to forward the message to.
1956
- * @param messageId The identifier of the message to forward.
1957
- * @returns The forwarded message.
1958
- */
1959
- async forwardMessage(from, to, messageId, params) {
1960
- return (await this.forwardMessages(from, to, [messageId], params))[0];
1961
- }
1962
- /**
1963
- * Stop a poll.
1964
- *
1965
- * @method ms
1966
- * @param chatId The chat that includes the poll.
1967
- * @param messageId The idenfifier of the poll's message.
1968
- * @returns The new state of the poll.
1969
- */
1970
- async stopPoll(chatId, messageId, params) {
1971
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").stopPoll(chatId, messageId, params);
1972
- }
1973
- /**
1974
- * Send a chat action.
1975
- *
1976
- * @method ms
1977
- * @param chatId The chat to send the chat action to.
1978
- * @param action The chat action.
1979
- * @param messageThreadId The thread to send the chat action to.
1980
- */
1981
- async sendChatAction(chatId, action, params) {
1982
- await __classPrivateFieldGet(this, _Client_messageManager, "f").sendChatAction(chatId, action, params);
1983
- }
1984
- /**
1985
- * Search the messages of a chat. User-only.
1986
- *
1987
- * @method ms
1988
- * @param chatId The identifier of the chat to search the messages in.
1989
- * @param query The message search query.
1990
- */
1991
- async searchMessages(chatId, query, params) {
1992
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").searchMessages(chatId, query, params);
1993
- }
1994
- /**
1995
- * Mark messages as read. User-only.
1996
- *
1997
- * @method ms
1998
- * @param chatId The identifier of the chat that includes the messages.
1999
- * @param untilMessageId The identifier of a message that will be marked as read, along with any other unread messages before it.
2000
- */
2001
- async readMessages(chatId, untilMessageId) {
2002
- await __classPrivateFieldGet(this, _Client_messageManager, "f").readMessages(chatId, untilMessageId);
2003
- }
2004
- /**
2005
- * Start a bot. User-only.
2006
- *
2007
- * @method ms
2008
- * @param botId The identifier of the bot to start.
2009
- * @returns The start message.
2010
- */
2011
- async startBot(botId, params) {
2012
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").startBot(botId, params);
2013
- }
2014
- //
2015
- // ========================= FILES ========================= //
2016
- //
2017
- /**
2018
- * Download a file.
2019
- *
2020
- * @method fs
2021
- * @param fileId The identifier of the file to download.
2022
- * @example ```ts
2023
- * for await (const chunk of client.download(fileId, { chunkSize: 256 * 1024 })) {
2024
- * await outFile.write(chunk);
2025
- * }
2026
- * ```
2027
- * @returns A generator yielding the contents of the file.
2028
- */
2029
- async *download(fileId, params) {
2030
- for await (const chunk of __classPrivateFieldGet(this, _Client_fileManager, "f").download(fileId, params)) {
2031
- yield chunk;
2032
- }
2033
- }
2034
- /**
2035
- * Get custom emoji documents for download.
2036
- *
2037
- * @method fs
2038
- * @param id Identifier of one or more of custom emojis.
2039
- * @returns The custom emoji documents.
2040
- */
2041
- async getCustomEmojiStickers(id) {
2042
- return await __classPrivateFieldGet(this, _Client_fileManager, "f").getCustomEmojiStickers(id);
2043
- }
2044
- //
2045
- // ========================= CHATS ========================= //
2046
- //
2047
- /**
2048
- * Get chats from a chat list. User-only.
2049
- *
2050
- * @method ch
2051
- */
2052
- async getChats(params) {
2053
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChats(params?.from, params?.after, params?.limit);
2054
- }
2055
- /**
2056
- * Get a chat.
2057
- *
2058
- * @method ch
2059
- */
2060
- async getChat(chatId) {
2061
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChat(chatId);
2062
- }
2063
- /**
2064
- * Get chat history. User-only.
2065
- *
2066
- * @method ch
2067
- * @param chatId The identifier of the chat to get its history.
2068
- */
2069
- async getHistory(chatId, params) {
2070
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").getHistory(chatId, params);
2071
- }
2072
- /**
2073
- * Set a chat's available reactions. User-only.
2074
- *
2075
- * @method ch
2076
- * @param chatId The identifier of the chat.
2077
- * @param availableReactions The new available reactions.
2078
- */
2079
- async setAvailableReactions(chatId, availableReactions) {
2080
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setAvailableReactions(chatId, availableReactions);
2081
- }
2082
- /**
2083
- * Set a chat's photo.
2084
- *
2085
- * @method ch
2086
- * @param chatId The identifier of the chat.
2087
- * @param photo A photo to set as the chat's photo.
2088
- */
2089
- async setChatPhoto(chatId, photo, params) {
2090
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatPhoto(chatId, photo, params);
2091
- }
2092
- /**
2093
- * Delete a chat's photo.
2094
- *
2095
- * @method ch
2096
- * @param chatId The identifier of the chat.
2097
- */
2098
- async deleteChatPhoto(chatId) {
2099
- await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatPhoto(chatId);
2100
- }
2101
- /**
2102
- * Ban a member from a chat.
2103
- *
2104
- * @method ch
2105
- * @param chatId The identifier of the chat.
2106
- * @param memberId The identifier of the member.
2107
- */
2108
- async banChatMember(chatId, memberId, params) {
2109
- await __classPrivateFieldGet(this, _Client_messageManager, "f").banChatMember(chatId, memberId, params);
2110
- }
2111
- /**
2112
- * Unban a member from a chat.
2113
- *
2114
- * @method ch
2115
- * @param chatId The identifier of the chat. Must be a supergroup.
2116
- * @param memberId The identifier of the member.
2117
- */
2118
- async unbanChatMember(chatId, memberId) {
2119
- await __classPrivateFieldGet(this, _Client_messageManager, "f").unbanChatMember(chatId, memberId);
2120
- }
2121
- /**
2122
- * Kick a member from a chat. Same as a banChatMember call followed by unbanChatMember.
2123
- *
2124
- * @method ch
2125
- * @param chatId The identifier of the chat. Must be a supergroup.
2126
- * @param memberId The identifier of the member.
2127
- */
2128
- async kickChatMember(chatId, memberId) {
2129
- await __classPrivateFieldGet(this, _Client_messageManager, "f").banChatMember(chatId, memberId);
2130
- await __classPrivateFieldGet(this, _Client_messageManager, "f").unbanChatMember(chatId, memberId);
2131
- }
2132
- /**
2133
- * Set the rights of a chat member.
2134
- *
2135
- * @method ch
2136
- * @param chatId The identifier of the chat. Must be a supergroup.
2137
- * @param memberId The identifier of a member.
2138
- */
2139
- async setChatMemberRights(chatId, memberId, params) {
2140
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatMemberRights(chatId, memberId, params);
2141
- }
2142
- /**
2143
- * Get the administrators of a chat.
2144
- *
2145
- * @method ch
2146
- * @param chatId The identifier of the chat.
2147
- * @returns The chat's administrators.
2148
- */
2149
- async getChatAdministrators(chatId) {
2150
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatAdministrators(chatId);
2151
- }
2152
- /**
2153
- * Enable join requests in a chat. User-only.
2154
- *
2155
- * @method ch
2156
- * @param chatId The identifier of the chat. Must be a channel or a supergroup.
2157
- */
2158
- async enableJoinRequests(chatId) {
2159
- await __classPrivateFieldGet(this, _Client_messageManager, "f").enableJoinRequests(chatId);
2160
- }
2161
- /**
2162
- * Disable join requests in a chat. User-only.
2163
- *
2164
- * @method ch
2165
- * @param chatId The identifier of the chat. Must be a channel or a supergroup.
2166
- */
2167
- async disableJoinRequests(chatId) {
2168
- await __classPrivateFieldGet(this, _Client_messageManager, "f").disableJoinRequests(chatId);
2169
- }
2170
- /**
2171
- * Get inactive chats. User-only.
2172
- *
2173
- * @method ch
2174
- * @retuns A list of inactive chats the current user is member of.
2175
- */
2176
- async getInactiveChats() {
2177
- return await __classPrivateFieldGet(this, _Client_accountManager, "f").getInactiveChats();
2178
- }
2179
- /**
2180
- * Get the invite links created for a chat. User-only.
2181
- *
2182
- * @method ch
2183
- * @param chatId The identifier of the chat.
2184
- * @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.
2185
- */
2186
- async getCreatedInviteLinks(chatId, params) {
2187
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").getCreatedInviteLinks(chatId, params);
2188
- }
2189
- /**
2190
- * Join a chat. User-only.
2191
- *
2192
- * @method ch
2193
- * @param chatId The identifier of the chat to join.
2194
- */
2195
- async joinChat(chatId) {
2196
- await __classPrivateFieldGet(this, _Client_messageManager, "f").joinChat(chatId);
2197
- }
2198
- /**
2199
- * Leave a chat.
2200
- *
2201
- * @method ch
2202
- * @param chatId The identifier of the chat to leave.
2203
- */
2204
- async leaveChat(chatId) {
2205
- await __classPrivateFieldGet(this, _Client_messageManager, "f").leaveChat(chatId);
2206
- }
2207
- /**
2208
- * Get information on a user's chat membership.
2209
- *
2210
- * @method ch
2211
- * @param chatId The identifier of a chat that includes the user.
2212
- * @param userId The identifier of the user.
2213
- */
2214
- async getChatMember(chatId, userId) {
2215
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatMember(chatId, userId);
2216
- }
2217
- /**
2218
- * Get the members of a chat.
2219
- *
2220
- * @method ch
2221
- * @param chatId The chat to get its members.
2222
- */
2223
- async getChatMembers(chatId, params) {
2224
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatMembers(chatId, params);
2225
- }
2226
- /**
2227
- * Set a chat's sticker set.
2228
- *
2229
- * @method ch
2230
- * @param chatId The identifier of the chat. Must be a supergroup.
2231
- * @param setName The name of the set.
2232
- */
2233
- async setChatStickerSet(chatId, setName) {
2234
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatStickerSet(chatId, setName);
2235
- }
2236
- /**
2237
- * Delete a chat's sticker set.
2238
- *
2239
- * @method ch
2240
- * @param chatId The identifier of the chat. Must be a supergroup.
2241
- */
2242
- async deleteChatStickerSet(chatId) {
2243
- await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatStickerSet(chatId);
2244
- }
2245
- /**
2246
- * Set the number of boosts required to circument a chat's default restrictions. User-only.
2247
- *
2248
- * @method ch
2249
- * @param chatId The identifier of the chat.
2250
- * @param boosts The number of boosts required to circumvent its restrictions.
2251
- */
2252
- async setBoostsRequiredToCircumventRestrictions(chatId, boosts) {
2253
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setBoostsRequiredToCircumventRestrictions(chatId, boosts);
2254
- }
2255
- /**
2256
- * Create an invite link.
2257
- *
2258
- * @method ch
2259
- * @param chatId The identifier of the chat to create the invite link for.
2260
- * @returns The newly created invite link.
2261
- */
2262
- async createInviteLink(chatId, params) {
2263
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").createInviteLink(chatId, params);
2264
- }
2265
- /**
2266
- * Approve a join request.
2267
- *
2268
- * @method ch
2269
- * @param chatId The identifier of the chat that contains the join request.
2270
- * @param userId The user who made the join request.
2271
- */
2272
- async approveJoinRequest(chatId, userId) {
2273
- await __classPrivateFieldGet(this, _Client_messageManager, "f").approveJoinRequest(chatId, userId);
2274
- }
2275
- /**
2276
- * Decline a join request.
2277
- *
2278
- * @method ch
2279
- * @param chatId The identifier of the chat that contains the join request.
2280
- * @param userId The user who made the join request.
2281
- */
2282
- async declineJoinRequest(chatId, userId) {
2283
- await __classPrivateFieldGet(this, _Client_messageManager, "f").declineJoinRequest(chatId, userId);
2284
- }
2285
- /**
2286
- * Approve all join requests. User-only.
2287
- *
2288
- * @method ch
2289
- * @param chatId The identifier of the chat that contains the join requests.
2290
- */
2291
- async approveJoinRequests(chatId, params) {
2292
- await __classPrivateFieldGet(this, _Client_messageManager, "f").approveJoinRequests(chatId, params);
2293
- }
2294
- /**
2295
- * Decline all join requests. User-only.
2296
- *
2297
- * @method ch
2298
- * @param chatId The identifier of the chat that contains the join requests.
2299
- */
2300
- async declineJoinRequests(chatId, params) {
2301
- await __classPrivateFieldGet(this, _Client_messageManager, "f").declineJoinRequests(chatId, params);
2302
- }
2303
- /**
2304
- * Add a single user to a chat.
2305
- *
2306
- * @method ch
2307
- * @param chatId The identifier of the chat to add the user to.
2308
- * @param userId The identifier of the user to add to the chat.
2309
- * @returns An array of FailedInvitation that has at most a length of 1. If empty, it means that the user was added.
2310
- */
2311
- async addChatMember(chatId, userId, params) {
2312
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").addChatMember(chatId, userId, params);
2313
- }
2314
- /**
2315
- * Add multiple users at once to a channel or a supergroup.
2316
- *
2317
- * @method ch
2318
- * @param chatId The identifier of the channel or supergroup to add the users to.
2319
- * @param userId The identifiers of the users to add to the channel or supergroup.
2320
- */
2321
- async addChatMembers(chatId, userIds) {
2322
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").addChatMembers(chatId, userIds);
2323
- }
2324
- /**
2325
- * Open a chat. User-only.
2326
- *
2327
- * @method ch
2328
- * @param chatId The chat to open.
2329
- */
2330
- async openChat(chatId) {
2331
- await __classPrivateFieldGet(this, _Client_updateManager, "f").openChat(chatId);
2332
- }
2333
- /**
2334
- * Close a chat previously opened by openChat. User-only.
2335
- *
2336
- * @method ch
2337
- * @param chatId The chat to close.
2338
- */
2339
- async closeChat(chatId) {
2340
- await __classPrivateFieldGet(this, _Client_updateManager, "f").closeChat(chatId);
2341
- }
2342
- /**
2343
- * Create a group. User-only.
2344
- *
2345
- * @method ch
2346
- * @param title The title of the group.
2347
- * @returns The created group.
2348
- */
2349
- async createGroup(title, params) {
2350
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").createGroup(title, params);
2351
- }
2352
- /**
2353
- * Create a supergroup. User-only.
2354
- *
2355
- * @method ch
2356
- * @param title The title of the supergroup.
2357
- * @returns The created supergroup.
2358
- */
2359
- async createSupergroup(title, params) {
2360
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").createSupergroup(title, params);
2361
- }
2362
- /**
2363
- * Create a channel. User-only.
2364
- *
2365
- * @method ch
2366
- * @param title The title of the channel.
2367
- * @returns The created channel.
2368
- */
2369
- async createChannel(title, params) {
2370
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").createChannel(title, params);
2371
- }
2372
- /**
2373
- * Set the time to live of the messages of a chat. User-only.
2374
- *
2375
- * @method ch
2376
- * @param chatId The identifier of the chat.
2377
- * @param messageTtl The time to live of the messages.
2378
- */
2379
- async setMessageTtl(chatId, messageTtl) {
2380
- await __classPrivateFieldGet(this, _Client_chatListManager, "f").setMessageTtl(chatId, messageTtl);
2381
- }
2382
- //
2383
- // ========================= CALLBACK QUERIES ========================= //
2384
- //
2385
- /**
2386
- * Send a callback query. User-only.
2387
- *
2388
- * @method cq
2389
- * @param chatId The chat that includes the messsage.
2390
- * @param messageId The message that includes at a button responsible for the callback query question.
2391
- * @param question The callback query's question.
2392
- * @returns The bot's answer to the callback query.
2393
- */
2394
- async sendCallbackQuery(chatId, messageId, question) {
2395
- return await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").sendCallbackQuery(chatId, messageId, question);
2396
- }
2397
- /**
2398
- * Answer a callback query. Bot-only.
2399
- *
2400
- * @method cq
2401
- * @param id ID of the callback query to answer.
2402
- */
2403
- async answerCallbackQuery(id, params) {
2404
- await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").answerCallbackQuery(id, params);
2405
- }
2406
- //
2407
- // ========================= INLINE QUERIES ========================= //
2408
- //
2409
- /**
2410
- * Send an inline query. User-only.
2411
- *
2412
- * @method iq
2413
- * @param userId The ID of the bot to send the inline query to.
2414
- * @param chatId The ID of the chat from which the inline query is sent.
2415
- * @returns The bot's answer to the inline query.
2416
- */
2417
- async sendInlineQuery(userId, chatId, params) {
2418
- return await __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").sendInlineQuery(userId, chatId, params);
2419
- }
2420
- /**
2421
- * Answer an inline query. Bot-only.
2422
- *
2423
- * @method iq
2424
- * @param id The ID of the inline query to answer.
2425
- * @param results The results to answer with.
2426
- */
2427
- async answerInlineQuery(id, results, params) {
2428
- await __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").answerInlineQuery(id, results, params);
2429
- }
2430
- //
2431
- // ========================= BOTS ========================= //
2432
- //
2433
- /**
2434
- * Set the bot's description in the given language. Bot-only.
2435
- *
2436
- * @method bs
2437
- */
2438
- async setMyDescription(params) {
2439
- await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyDescription(params);
2440
- }
2441
- /**
2442
- * Set the bot's name in the given language. Bot-only.
2443
- *
2444
- * @method bs
2445
- */
2446
- async setMyName(params) {
2447
- await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyName(params);
2448
- }
2449
- /**
2450
- * Set the bot's short description in the given language. Bot-only.
2451
- *
2452
- * @method bs
2453
- */
2454
- async setMyShortDescription(params) {
2455
- await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyShortDescription(params);
2456
- }
2457
- /**
2458
- * Get the bot's description in the given language. Bot-only.
2459
- *
2460
- * @method bs
2461
- * @returns The current bot's description in the specified language.
2462
- */
2463
- async getMyDescription(params) {
2464
- return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyDescription(params);
2465
- }
2466
- /**
2467
- * Get the bot's name in the given language. Bot-only.
2468
- *
2469
- * @method bs
2470
- * @returns The current bot's name in the specified language.
2471
- */
2472
- async getMyName(params) {
2473
- return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyName(params);
2474
- }
2475
- /**
2476
- * Get the bot's short description in the given language. Bot-only.
2477
- *
2478
- * @method bs
2479
- * @returns The current bot's short description in the specified language.
2480
- */
2481
- async getMyShortDescription(params) {
2482
- return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyShortDescription(params);
2483
- }
2484
- /**
2485
- * Set the bot's commands in the given scope and/or language. Bot-only.
2486
- *
2487
- * @method bs
2488
- * @param commands The commands to set.
2489
- */
2490
- async setMyCommands(commands, params) {
2491
- await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyCommands(commands, params);
2492
- }
2493
- /**
2494
- * Get the bot's commands in the given scope and/or language. Bot-only.
2495
- *
2496
- * @method bs
2497
- * @returns The current bot's commands in the specified language.
2498
- */
2499
- async getMyCommands(params) {
2500
- return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyCommands(params);
2501
- }
2502
- //
2503
- // ========================= REACTIONS ========================= //
2504
- //
2505
- /**
2506
- * Change reactions made to a message.
2507
- *
2508
- * @method re
2509
- * @param chatId The identifier of the chat which the message belongs to.
2510
- * @param messageId The identifier of the message to add the reaction to.
2511
- * @param reactions The new reactions.
2512
- */
2513
- async setReactions(chatId, messageId, reactions, params) {
2514
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setReactions(chatId, messageId, reactions, params);
2515
- }
2516
- /**
2517
- * Make a reaction to a message.
2518
- *
2519
- * @method re
2520
- * @param chatId The identifier of the chat which the message belongs to.
2521
- * @param messageId The identifier of the message to add the reaction to.
2522
- * @param reaction The reaction to add.
2523
- */
2524
- async addReaction(chatId, messageId, reaction, params) {
2525
- await __classPrivateFieldGet(this, _Client_messageManager, "f").addReaction(chatId, messageId, reaction, params);
2526
- }
2527
- /**
2528
- * Undo a reaction made to a message.
2529
- *
2530
- * @method re
2531
- * @param chatId The identifier of the chat which the message belongs to.
2532
- * @param messageId The identifier of the message which the reaction was made to.
2533
- * @param reaction The reaction to remove.
2534
- */
2535
- async removeReaction(chatId, messageId, reaction) {
2536
- await __classPrivateFieldGet(this, _Client_messageManager, "f").removeReaction(chatId, messageId, reaction);
2537
- }
2538
- //
2539
- // ========================= STORIES ========================= //
2540
- //
2541
- /**
2542
- * Create a story. User-only.
2543
- *
2544
- * @method st
2545
- * @param content The content of the story.
2546
- * @returns The created story.
2547
- */
2548
- async createStory(chatId, content, params) {
2549
- return await __classPrivateFieldGet(this, _Client_storyManager, "f").createStory(chatId, content, params);
2550
- }
2551
- /**
2552
- * Retrieve multiple stories. User-only.
2553
- *
2554
- * @method st
2555
- * @param chatId The identifier of the chat to retrieve the stories from.
2556
- * @param storyIds The identifiers of the stories to retrieve.
2557
- */
2558
- async getStories(chatId, storyIds) {
2559
- if (!storyIds.length) {
2560
- return [];
2561
- }
2562
- return await __classPrivateFieldGet(this, _Client_storyManager, "f").getStories(chatId, storyIds);
2563
- }
2564
- /**
2565
- * Retrieve a single story. User-only.
2566
- *
2567
- * @method st
2568
- * @param chatId The identifier of the chat to retrieve the story from.
2569
- * @param storyId The identifier of the story to retrieve.
2570
- * @returns The retrieved story.
2571
- */
2572
- async getStory(chatId, storyId) {
2573
- return await __classPrivateFieldGet(this, _Client_storyManager, "f").getStory(chatId, storyId);
2574
- }
2575
- /**
2576
- * Delete multiple stories. User-only.
2577
- *
2578
- * @method st
2579
- * @param chatId The identifier of the chat to delete the stories from.
2580
- * @param storyIds The identifiers of the stories to delete.
2581
- */
2582
- async deleteStories(chatId, storyIds) {
2583
- await __classPrivateFieldGet(this, _Client_storyManager, "f").deleteStories(chatId, storyIds);
2584
- }
2585
- /**
2586
- * Delete a single story. User-only.
2587
- *
2588
- * @method st
2589
- * @param chatId The identifier of the chat to delete the story from.
2590
- * @param storyId The identifier of the story to delete.
2591
- */
2592
- async deleteStory(chatId, storyId) {
2593
- await __classPrivateFieldGet(this, _Client_storyManager, "f").deleteStory(chatId, storyId);
2594
- }
2595
- /**
2596
- * Add multiple stories to highlights. User-only.
2597
- *
2598
- * @method st
2599
- * @param chatId The identifier of the chat that has the stories.
2600
- * @param storyIds The identifiers of the stories to add to highlights.
2601
- */
2602
- async addStoriesToHighlights(chatId, storyIds) {
2603
- await __classPrivateFieldGet(this, _Client_storyManager, "f").addStoriesToHighlights(chatId, storyIds);
2604
- }
2605
- /**
2606
- * Add a single story to highlights. User-only.
2607
- *
2608
- * @method st
2609
- * @param chatId The identifier of the chat that has the story.
2610
- * @param storyId The identifier of the story to add to highlights.
2611
- */
2612
- async addStoryToHighlights(chatId, storyId) {
2613
- await __classPrivateFieldGet(this, _Client_storyManager, "f").addStoryToHighlights(chatId, storyId);
2614
- }
2615
- /**
2616
- * Remove multiple stories from highlights. User-only.
2617
- *
2618
- * @method st
2619
- * @param chatId The identifier of the chat that has the stories.
2620
- * @param storyIds The identifiers of the stories to remove from highlights.
2621
- */
2622
- async removeStoriesFromHighlights(chatId, storyIds) {
2623
- await __classPrivateFieldGet(this, _Client_storyManager, "f").removeStoriesFromHighlights(chatId, storyIds);
2624
- }
2625
- /**
2626
- * Remove a single story from highlights. User-only.
2627
- *
2628
- * @method st
2629
- * @param chatId The identifier of the chat that has the story.
2630
- * @param storyId The identifier of the story to remove from highlights.
2631
- */
2632
- async removeStoryFromHighlights(chatId, storyId) {
2633
- await __classPrivateFieldGet(this, _Client_storyManager, "f").removeStoryFromHighlights(chatId, storyId);
2634
- }
2635
- //
2636
- // ========================= MISC ========================= //
2637
- //
2638
- /**
2639
- * Get network statistics. This might not always be available.
2640
- *
2641
- * @method mc
2642
- */
2643
- async getNetworkStatistics() {
2644
- return await __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f").getNetworkStatistics();
2645
- }
2646
- /**
2647
- * Block a user. User-only.
2648
- *
2649
- * @method mc
2650
- * @param userId The identifier of the user to block.
2651
- */
2652
- async blockUser(userId) {
2653
- await __classPrivateFieldGet(this, _Client_messageManager, "f").blockUser(userId);
2654
- }
2655
- /**
2656
- * Unblock a user. User-only.
2657
- *
2658
- * @method mc
2659
- * @param userId The identifier of the user to unblock.
2660
- */
2661
- async unblockUser(userId) {
2662
- await __classPrivateFieldGet(this, _Client_messageManager, "f").unblockUser(userId);
2663
- }
2664
- //
2665
- // ========================= VIDEO CHATS ========================= //
2666
- //
2667
- /**
2668
- * Start a video chat. User-only.
2669
- *
2670
- * @method vc
2671
- * @param chatId The chat to start the video chat in.
2672
- * @returns The started video chat.
2673
- */
2674
- async startVideoChat(chatId, params) {
2675
- return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").startVideoChat(chatId, params);
2676
- }
2677
- /**
2678
- * Schedule a video chat. User-only.
2679
- *
2680
- * @method vc
2681
- * @param chatId The chat to schedule the video chat in.
2682
- * @param startAt A point in time within the future in which the video chat will be started.
2683
- * @returns The scheduled video chat.
2684
- */
2685
- async scheduleVideoChat(chatId, startAt, params) {
2686
- return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").scheduleVideoChat(chatId, startAt, params);
2687
- }
2688
- /**
2689
- * Join a video chat. User-only.
2690
- *
2691
- * @method vc
2692
- * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2693
- * @param params_ WebRTC connection parameters.
2694
- * @returns Parameters to be passed to the used WebRTC library.
2695
- */
2696
- async joinVideoChat(id, params_, params) {
2697
- return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").joinVideoChat(id, params_, params);
2698
- }
2699
- /**
2700
- * Leave a video chat. User-only.
2701
- *
2702
- * @method vc
2703
- * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2704
- */
2705
- async leaveVideoChat(id) {
2706
- await __classPrivateFieldGet(this, _Client_videoChatManager, "f").leaveVideoChat(id);
2707
- }
2708
- /**
2709
- * Join a live stream. User-only.
2710
- *
2711
- * @method vc
2712
- * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2713
- */
2714
- async joinLiveStream(id) {
2715
- await __classPrivateFieldGet(this, _Client_videoChatManager, "f").joinLiveStream(id);
2716
- }
2717
- /**
2718
- * Get a video chat. User-only.
2719
- *
2720
- * @method vc
2721
- * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2722
- */
2723
- async getVideoChat(id) {
2724
- return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").getVideoChat(id);
2725
- }
2726
- /**
2727
- * Get live stream channels. User-only.
2728
- *
2729
- * @method vc
2730
- * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2731
- */
2732
- async getLiveStreamChannels(id) {
2733
- return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").getLiveStreamChannels(id);
2734
- }
2735
- /**
2736
- * Download a live stream chunk. User-only.
2737
- *
2738
- * @method vc
2739
- * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2740
- * @param channelId Stream channel ID.
2741
- * @param scale Stream channel scale.
2742
- * @param timestamp Millisecond timestamp of the chunk to download.
2743
- */
2744
- async *downloadLiveStreamChunk(id, channelId, scale, timestamp, params) {
2745
- yield* __classPrivateFieldGet(this, _Client_videoChatManager, "f").downloadLiveStreamChunk(id, channelId, scale, timestamp, params);
2746
- }
2747
- //
2748
- // ========================= PAYMENTS ========================= //
2749
- //
2750
- /**
2751
- * Answer a pre-checkout query. Bot-only.
2752
- *
2753
- * @method pa
2754
- * @param preCheckoutQueryId The identifier of the pre-checkout query.
2755
- * @param ok Whether the checkout is going to be processed.
2756
- */
2757
- async answerPreCheckoutQuery(preCheckoutQueryId, ok, params) {
2758
- await __classPrivateFieldGet(this, _Client_paymentManager, "f").answerPreCheckoutQuery(preCheckoutQueryId, ok, params);
2759
- }
2760
- /**
2761
- * Refund a star payment. Bot-only.
2762
- *
2763
- * @method pa
2764
- * @param userId The identifier of the user that was charged.
2765
- * @param telegramPaymentChargeId The identifier of the charge.
2766
- */
2767
- async refundStarPayment(userId, telegramPaymentChargeId) {
2768
- await __classPrivateFieldGet(this, _Client_paymentManager, "f").refundStarPayment(userId, telegramPaymentChargeId);
2769
- }
2770
- }
2771
- _a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
2772
- if (__classPrivateFieldGet(this, _Client_disableUpdates, "f") && !("authorizationState" in update) && !("connectionState" in update)) {
2773
- return;
2774
- }
2775
- try {
2776
- await this.middleware()(await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, update), resolve);
2777
- }
2778
- catch (err) {
2779
- __classPrivateFieldGet(this, _Client_L, "f").error("Failed to handle update:", err);
2780
- }
2781
- }, _Client_queueHandleCtxUpdate = function _Client_queueHandleCtxUpdate(update) {
2782
- __classPrivateFieldGet(this, _Client_updateManager, "f").getHandleUpdateQueue(UpdateManager.MAIN_BOX_ID).add(async () => {
2783
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, update);
2784
- });
2785
- }, _Client_handleUpdate = async function _Client_handleUpdate(update) {
2786
- const promises = new Array();
2787
- if (is("updateUserName", update)) {
2788
- await this.messageStorage.updateUsernames(Number(update.user_id), update.usernames.map((v) => v.username));
2789
- const peer = { ...update, _: "peerUser" };
2790
- const entity = await this[getEntity](peer);
2791
- if (entity != null) {
2792
- entity.usernames = update.usernames;
2793
- entity.first_name = update.first_name;
2794
- entity.last_name = update.last_name;
2795
- await this.messageStorage.setEntity(entity);
2796
- }
2797
- }
2798
- if (MessageManager.canHandleUpdate(update)) {
2799
- promises.push(async () => {
2800
- const update_ = await __classPrivateFieldGet(this, _Client_messageManager, "f").handleUpdate(update);
2801
- if (!update_) {
2802
- return;
2803
- }
2804
- try {
2805
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, update_);
2806
- }
2807
- finally {
2808
- if ("deletedMessages" in update_) {
2809
- for (const { chatId, messageId } of update_.deletedMessages) {
2810
- await this.messageStorage.setMessage(chatId, messageId, null);
2811
- await __classPrivateFieldGet(this, _Client_chatListManager, "f").reassignChatLastMessage(chatId);
2812
- }
2813
- }
2814
- }
2815
- });
2816
- }
2817
- if (VideoChatManager.canHandleUpdate(update)) {
2818
- promises.push(async () => __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_videoChatManager, "f").handleUpdate(update)));
2819
- }
2820
- if (CallbackQueryManager.canHandleUpdate(update)) {
2821
- promises.push(async () => __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").handleUpdate(update)));
2822
- }
2823
- if (InlineQueryManager.canHandleUpdate(update)) {
2824
- promises.push(async () => __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").handleUpdate(update)));
2825
- }
2826
- if (ReactionManager.canHandleUpdate(update)) {
2827
- promises.push(async () => {
2828
- const upd = await __classPrivateFieldGet(this, _Client_reactionManager, "f").handleUpdate(update);
2829
- if (upd) {
2830
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, upd);
2831
- }
2832
- });
2833
- }
2834
- if (ChatListManager.canHandleUpdate(update)) {
2835
- promises.push(() => __classPrivateFieldGet(this, _Client_chatListManager, "f").handleUpdate(update));
2836
- }
2837
- if (StoryManager.canHandleUpdate(update)) {
2838
- promises.push(async () => {
2839
- const upd = await __classPrivateFieldGet(this, _Client_storyManager, "f").handleUpdate(update);
2840
- if (upd) {
2841
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, upd);
2842
- }
2843
- });
2844
- }
2845
- if (BusinessConnectionManager.canHandleUpdate(update)) {
2846
- promises.push(async () => __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_businessConnectionManager, "f").handleUpdate(update)));
2847
- }
2848
- return () => Promise.all(promises.map((v) => v()));
2849
- }, _Client_getMe = async function _Client_getMe() {
2850
- if (__classPrivateFieldGet(this, _Client_lastGetMe, "f") != null) {
2851
- return __classPrivateFieldGet(this, _Client_lastGetMe, "f");
2852
- }
2853
- else {
2854
- const user = await this.getMe();
2855
- __classPrivateFieldSet(this, _Client_lastGetMe, user, "f");
2856
- return user;
2857
- }
2858
- };