@mtkruto/browser 0.6.1 → 0.119.1

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