@mtkruto/node 0.1.162 → 0.1.183

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 (567) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +5 -5
  3. package/esm/4_constants.d.ts +1 -2
  4. package/esm/4_constants.js +2 -3
  5. package/esm/5_client.d.ts +2 -2
  6. package/esm/5_client.js +2 -2
  7. package/esm/client/0_client_abstract.d.ts +6 -4
  8. package/esm/client/0_client_abstract.js +11 -5
  9. package/esm/client/0_message.d.ts +1 -1
  10. package/esm/client/0_message.js +3 -6
  11. package/esm/client/1_client_encrypted.d.ts +34 -0
  12. package/esm/client/1_client_encrypted.js +237 -0
  13. package/esm/client/{2_client_plain.d.ts → 1_client_plain.d.ts} +3 -0
  14. package/esm/client/{2_client_plain.js → 1_client_plain.js} +4 -1
  15. package/esm/client/1_composer.d.ts +2 -3
  16. package/esm/client/1_file_manager.d.ts +4 -2
  17. package/esm/client/1_file_manager.js +35 -11
  18. package/esm/client/2_message_manager.d.ts +4 -2
  19. package/esm/client/2_message_manager.js +31 -16
  20. package/esm/client/3_chat_list_manager.d.ts +2 -0
  21. package/esm/client/3_chat_list_manager.js +1 -1
  22. package/esm/client/4_client.d.ts +131 -94
  23. package/esm/client/4_client.js +197 -382
  24. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_diff.js +6 -3
  25. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/mod.d.ts +7 -0
  26. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/mod.js +7 -0
  27. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/base64.js +2 -1
  28. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/common.js +8 -8
  29. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize_string.js +2 -2
  30. package/esm/deps/deno.land/std@0.220.1/path/posix/basename.d.ts +17 -0
  31. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/basename.js +9 -0
  32. package/esm/deps/deno.land/std@0.220.1/path/posix/dirname.d.ts +14 -0
  33. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/dirname.js +9 -0
  34. package/esm/deps/deno.land/std@0.220.1/path/posix/extname.d.ts +15 -0
  35. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/extname.js +9 -0
  36. package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join.js +1 -1
  37. package/esm/storage/0_storage.d.ts +7 -1
  38. package/esm/storage/0_storage.js +22 -2
  39. package/esm/tl/6_message.d.ts +3 -2
  40. package/esm/tl/6_message.js +1 -1
  41. package/esm/tl/7_message_container.d.ts +6 -4
  42. package/esm/tl/7_message_container.js +22 -7
  43. package/esm/types/0_thumbnail.js +7 -13
  44. package/esm/types/1_sticker.d.ts +1 -1
  45. package/esm/types/1_sticker.js +6 -6
  46. package/esm/types/4_inline_query_result.d.ts +1 -1
  47. package/esm/types/4_inline_query_result.js +4 -0
  48. package/esm/utilities/0_bigint.d.ts +1 -0
  49. package/esm/utilities/0_bigint.js +1 -0
  50. package/package.json +1 -1
  51. package/script/0_deps.d.ts +4 -4
  52. package/script/0_deps.js +5 -5
  53. package/script/4_constants.d.ts +1 -2
  54. package/script/4_constants.js +3 -4
  55. package/script/5_client.d.ts +2 -2
  56. package/script/5_client.js +2 -2
  57. package/script/client/0_client_abstract.d.ts +6 -4
  58. package/script/client/0_client_abstract.js +11 -5
  59. package/script/client/0_message.d.ts +1 -1
  60. package/script/client/0_message.js +3 -6
  61. package/script/client/1_client_encrypted.d.ts +34 -0
  62. package/script/client/1_client_encrypted.js +241 -0
  63. package/script/client/{2_client_plain.d.ts → 1_client_plain.d.ts} +3 -0
  64. package/script/client/{2_client_plain.js → 1_client_plain.js} +4 -1
  65. package/script/client/1_composer.d.ts +2 -3
  66. package/script/client/1_file_manager.d.ts +4 -2
  67. package/script/client/1_file_manager.js +34 -10
  68. package/script/client/2_message_manager.d.ts +4 -2
  69. package/script/client/2_message_manager.js +31 -16
  70. package/script/client/3_chat_list_manager.d.ts +2 -0
  71. package/script/client/3_chat_list_manager.js +1 -1
  72. package/script/client/4_client.d.ts +131 -94
  73. package/script/client/4_client.js +193 -378
  74. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_diff.js +6 -3
  75. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/mod.d.ts +7 -0
  76. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/mod.js +7 -0
  77. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/base64.js +2 -1
  78. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/common.js +8 -8
  79. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize_string.js +2 -2
  80. package/script/deps/deno.land/std@0.220.1/path/posix/basename.d.ts +17 -0
  81. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/basename.js +9 -0
  82. package/script/deps/deno.land/std@0.220.1/path/posix/dirname.d.ts +14 -0
  83. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/dirname.js +9 -0
  84. package/script/deps/deno.land/std@0.220.1/path/posix/extname.d.ts +15 -0
  85. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/extname.js +9 -0
  86. package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join.js +1 -1
  87. package/script/storage/0_storage.d.ts +7 -1
  88. package/script/storage/0_storage.js +22 -2
  89. package/script/tl/6_message.d.ts +3 -2
  90. package/script/tl/6_message.js +1 -1
  91. package/script/tl/7_message_container.d.ts +6 -4
  92. package/script/tl/7_message_container.js +20 -5
  93. package/script/types/0_thumbnail.js +7 -13
  94. package/script/types/1_sticker.d.ts +1 -1
  95. package/script/types/1_sticker.js +6 -6
  96. package/script/types/4_inline_query_result.d.ts +1 -1
  97. package/script/types/4_inline_query_result.js +4 -0
  98. package/script/utilities/0_bigint.d.ts +1 -0
  99. package/script/utilities/0_bigint.js +1 -0
  100. package/esm/client/5_composer.d.ts +0 -4
  101. package/esm/client/5_composer.js +0 -3
  102. package/script/client/5_composer.d.ts +0 -4
  103. package/script/client/5_composer.js +0 -7
  104. package/script/deps/deno.land/std@0.218.0/path/posix/basename.d.ts +0 -8
  105. package/script/deps/deno.land/std@0.218.0/path/posix/dirname.d.ts +0 -5
  106. package/script/deps/deno.land/std@0.218.0/path/posix/extname.d.ts +0 -6
  107. package/script/deps/deno.land/std@0.218.0/path/windows/basename.d.ts +0 -8
  108. package/script/deps/deno.land/std@0.218.0/path/windows/dirname.d.ts +0 -5
  109. package/script/deps/deno.land/std@0.218.0/path/windows/extname.d.ts +0 -6
  110. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_constants.d.ts +0 -0
  111. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_constants.js +0 -0
  112. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_diff.d.ts +0 -0
  113. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_format.d.ts +0 -0
  114. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_format.js +0 -0
  115. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert.d.ts +0 -0
  116. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert.js +0 -0
  117. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_almost_equals.d.ts +0 -0
  118. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_almost_equals.js +0 -0
  119. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_array_includes.d.ts +0 -0
  120. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_array_includes.js +0 -0
  121. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_equals.d.ts +0 -0
  122. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_equals.js +0 -0
  123. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_exists.d.ts +0 -0
  124. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_exists.js +0 -0
  125. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_false.d.ts +0 -0
  126. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_false.js +0 -0
  127. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater.d.ts +0 -0
  128. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater.js +0 -0
  129. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater_or_equal.d.ts +0 -0
  130. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater_or_equal.js +0 -0
  131. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_instance_of.d.ts +0 -0
  132. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_instance_of.js +0 -0
  133. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_is_error.d.ts +0 -0
  134. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_is_error.js +0 -0
  135. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less.d.ts +0 -0
  136. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less.js +0 -0
  137. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less_or_equal.d.ts +0 -0
  138. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less_or_equal.js +0 -0
  139. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_match.d.ts +0 -0
  140. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_match.js +0 -0
  141. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_equals.d.ts +0 -0
  142. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_equals.js +0 -0
  143. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_instance_of.d.ts +0 -0
  144. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_instance_of.js +0 -0
  145. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_match.d.ts +0 -0
  146. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_match.js +0 -0
  147. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_strict_equals.d.ts +0 -0
  148. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_strict_equals.js +0 -0
  149. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_object_match.d.ts +0 -0
  150. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_object_match.js +0 -0
  151. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_rejects.d.ts +0 -0
  152. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_rejects.js +0 -0
  153. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_strict_equals.d.ts +0 -0
  154. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_strict_equals.js +0 -0
  155. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_string_includes.d.ts +0 -0
  156. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_string_includes.js +0 -0
  157. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_throws.d.ts +0 -0
  158. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_throws.js +0 -0
  159. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assertion_error.d.ts +0 -0
  160. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assertion_error.js +0 -0
  161. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/equal.d.ts +0 -0
  162. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/equal.js +0 -0
  163. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/fail.d.ts +0 -0
  164. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/fail.js +0 -0
  165. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unimplemented.d.ts +0 -0
  166. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unimplemented.js +0 -0
  167. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unreachable.d.ts +0 -0
  168. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unreachable.js +0 -0
  169. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/_util.d.ts +0 -0
  170. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/_util.js +0 -0
  171. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/base64.d.ts +0 -0
  172. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/fmt/colors.d.ts +0 -0
  173. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/fmt/colors.js +0 -0
  174. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_db.d.ts +0 -0
  175. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_db.js +0 -0
  176. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_util.d.ts +0 -0
  177. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_util.js +0 -0
  178. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/content_type.d.ts +0 -0
  179. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/content_type.js +0 -0
  180. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extension.d.ts +0 -0
  181. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extension.js +0 -0
  182. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extensions_by_type.d.ts +0 -0
  183. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extensions_by_type.js +0 -0
  184. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/format_media_type.d.ts +0 -0
  185. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/format_media_type.js +0 -0
  186. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/get_charset.d.ts +0 -0
  187. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/get_charset.js +0 -0
  188. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/parse_media_type.d.ts +0 -0
  189. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/parse_media_type.js +0 -0
  190. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/type_by_extension.d.ts +0 -0
  191. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/type_by_extension.js +0 -0
  192. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  193. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  194. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/assert_path.d.ts +0 -0
  195. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/assert_path.js +0 -0
  196. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/basename.d.ts +0 -0
  197. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/basename.js +0 -0
  198. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/common.d.ts +0 -0
  199. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/constants.d.ts +0 -0
  200. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/constants.js +0 -0
  201. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/dirname.d.ts +0 -0
  202. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/dirname.js +0 -0
  203. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/format.d.ts +0 -0
  204. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/format.js +0 -0
  205. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/from_file_url.d.ts +0 -0
  206. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/from_file_url.js +0 -0
  207. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
  208. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/glob_to_reg_exp.js +0 -0
  209. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize.d.ts +0 -0
  210. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize.js +0 -0
  211. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize_string.d.ts +0 -0
  212. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/relative.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/relative.js +0 -0
  214. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/strip_trailing_separators.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/strip_trailing_separators.js +0 -0
  216. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/to_file_url.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/to_file_url.js +0 -0
  218. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_interface.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_interface.js +0 -0
  220. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_os.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_os.js +0 -0
  222. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/basename.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/basename.js +0 -0
  224. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/common.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/common.js +0 -0
  226. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/constants.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/constants.js +0 -0
  228. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/dirname.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/dirname.js +0 -0
  230. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/extname.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/extname.js +0 -0
  232. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/format.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/format.js +0 -0
  234. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/from_file_url.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/from_file_url.js +0 -0
  236. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/glob_to_regexp.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/glob_to_regexp.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_absolute.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_absolute.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_glob.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_glob.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join.js +0 -0
  244. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join_globs.d.ts +0 -0
  245. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join_globs.js +0 -0
  246. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/mod.d.ts +0 -0
  247. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/mod.js +0 -0
  248. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize.d.ts +0 -0
  249. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize.js +0 -0
  250. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize_glob.d.ts +0 -0
  251. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize_glob.js +0 -0
  252. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/parse.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/parse.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/_util.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/_util.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/common.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/common.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/constants.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/constants.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/format.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/format.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/from_file_url.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/from_file_url.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/glob_to_regexp.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/glob_to_regexp.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_absolute.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_absolute.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_glob.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_glob.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join_globs.d.ts +0 -0
  272. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join_globs.js +0 -0
  273. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/mod.d.ts +0 -0
  274. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/mod.js +0 -0
  275. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize.d.ts +0 -0
  276. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize.js +0 -0
  277. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize_glob.d.ts +0 -0
  278. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize_glob.js +0 -0
  279. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/parse.d.ts +0 -0
  280. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/parse.js +0 -0
  281. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/relative.d.ts +0 -0
  282. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/relative.js +0 -0
  283. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/resolve.d.ts +0 -0
  284. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/resolve.js +0 -0
  285. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_file_url.d.ts +0 -0
  286. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_file_url.js +0 -0
  287. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_namespaced_path.d.ts +0 -0
  288. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_namespaced_path.js +0 -0
  289. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/relative.d.ts +0 -0
  290. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/relative.js +0 -0
  291. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/resolve.d.ts +0 -0
  292. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/resolve.js +0 -0
  293. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_file_url.d.ts +0 -0
  294. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_file_url.js +0 -0
  295. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_namespaced_path.d.ts +0 -0
  296. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_namespaced_path.js +0 -0
  297. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/_util.d.ts +0 -0
  298. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/_util.js +0 -0
  299. /package/esm/deps/deno.land/{std@0.218.0/path/posix → std@0.220.1/path/windows}/basename.d.ts +0 -0
  300. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/basename.js +0 -0
  301. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/common.d.ts +0 -0
  302. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/common.js +0 -0
  303. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/constants.d.ts +0 -0
  304. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/constants.js +0 -0
  305. /package/esm/deps/deno.land/{std@0.218.0/path/posix → std@0.220.1/path/windows}/dirname.d.ts +0 -0
  306. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/dirname.js +0 -0
  307. /package/esm/deps/deno.land/{std@0.218.0/path/posix → std@0.220.1/path/windows}/extname.d.ts +0 -0
  308. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/extname.js +0 -0
  309. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/format.d.ts +0 -0
  310. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/format.js +0 -0
  311. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/from_file_url.d.ts +0 -0
  312. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/from_file_url.js +0 -0
  313. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/glob_to_regexp.d.ts +0 -0
  314. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/glob_to_regexp.js +0 -0
  315. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_absolute.d.ts +0 -0
  316. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_absolute.js +0 -0
  317. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_glob.d.ts +0 -0
  318. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_glob.js +0 -0
  319. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join.d.ts +0 -0
  320. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join.js +0 -0
  321. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join_globs.d.ts +0 -0
  322. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join_globs.js +0 -0
  323. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/mod.d.ts +0 -0
  324. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/mod.js +0 -0
  325. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize.d.ts +0 -0
  326. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize.js +0 -0
  327. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize_glob.d.ts +0 -0
  328. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize_glob.js +0 -0
  329. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/parse.d.ts +0 -0
  330. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/parse.js +0 -0
  331. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/relative.d.ts +0 -0
  332. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/relative.js +0 -0
  333. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/resolve.d.ts +0 -0
  334. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/resolve.js +0 -0
  335. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_file_url.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_file_url.js +0 -0
  337. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_namespaced_path.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_namespaced_path.js +0 -0
  339. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_constants.d.ts +0 -0
  340. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_constants.js +0 -0
  341. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_diff.d.ts +0 -0
  342. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_format.d.ts +0 -0
  343. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_format.js +0 -0
  344. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert.d.ts +0 -0
  345. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert.js +0 -0
  346. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_almost_equals.d.ts +0 -0
  347. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_almost_equals.js +0 -0
  348. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_array_includes.d.ts +0 -0
  349. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_array_includes.js +0 -0
  350. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_equals.d.ts +0 -0
  351. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_equals.js +0 -0
  352. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_exists.d.ts +0 -0
  353. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_exists.js +0 -0
  354. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_false.d.ts +0 -0
  355. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_false.js +0 -0
  356. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater.d.ts +0 -0
  357. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater.js +0 -0
  358. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater_or_equal.d.ts +0 -0
  359. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater_or_equal.js +0 -0
  360. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_instance_of.d.ts +0 -0
  361. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_instance_of.js +0 -0
  362. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_is_error.d.ts +0 -0
  363. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_is_error.js +0 -0
  364. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less.d.ts +0 -0
  365. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less.js +0 -0
  366. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less_or_equal.d.ts +0 -0
  367. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less_or_equal.js +0 -0
  368. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_match.d.ts +0 -0
  369. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_match.js +0 -0
  370. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_equals.d.ts +0 -0
  371. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_equals.js +0 -0
  372. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_instance_of.d.ts +0 -0
  373. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_instance_of.js +0 -0
  374. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_match.d.ts +0 -0
  375. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_match.js +0 -0
  376. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_strict_equals.d.ts +0 -0
  377. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_strict_equals.js +0 -0
  378. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_object_match.d.ts +0 -0
  379. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_object_match.js +0 -0
  380. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_rejects.d.ts +0 -0
  381. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_rejects.js +0 -0
  382. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_strict_equals.d.ts +0 -0
  383. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_strict_equals.js +0 -0
  384. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_string_includes.d.ts +0 -0
  385. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_string_includes.js +0 -0
  386. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_throws.d.ts +0 -0
  387. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_throws.js +0 -0
  388. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assertion_error.d.ts +0 -0
  389. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assertion_error.js +0 -0
  390. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/equal.d.ts +0 -0
  391. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/equal.js +0 -0
  392. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/fail.d.ts +0 -0
  393. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/fail.js +0 -0
  394. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unimplemented.d.ts +0 -0
  395. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unimplemented.js +0 -0
  396. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unreachable.d.ts +0 -0
  397. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unreachable.js +0 -0
  398. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/_util.d.ts +0 -0
  399. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/_util.js +0 -0
  400. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/base64.d.ts +0 -0
  401. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/fmt/colors.d.ts +0 -0
  402. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/fmt/colors.js +0 -0
  403. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_db.d.ts +0 -0
  404. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_db.js +0 -0
  405. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_util.d.ts +0 -0
  406. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_util.js +0 -0
  407. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/content_type.d.ts +0 -0
  408. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/content_type.js +0 -0
  409. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extension.d.ts +0 -0
  410. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extension.js +0 -0
  411. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extensions_by_type.d.ts +0 -0
  412. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extensions_by_type.js +0 -0
  413. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/format_media_type.d.ts +0 -0
  414. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/format_media_type.js +0 -0
  415. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/get_charset.d.ts +0 -0
  416. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/get_charset.js +0 -0
  417. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/parse_media_type.d.ts +0 -0
  418. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/parse_media_type.js +0 -0
  419. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/type_by_extension.d.ts +0 -0
  420. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/type_by_extension.js +0 -0
  421. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  422. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  423. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/assert_path.d.ts +0 -0
  424. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/assert_path.js +0 -0
  425. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/basename.d.ts +0 -0
  426. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/basename.js +0 -0
  427. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/common.d.ts +0 -0
  428. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/constants.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/constants.js +0 -0
  430. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/dirname.d.ts +0 -0
  431. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/dirname.js +0 -0
  432. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/format.d.ts +0 -0
  433. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/format.js +0 -0
  434. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/from_file_url.d.ts +0 -0
  435. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/from_file_url.js +0 -0
  436. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
  437. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/glob_to_reg_exp.js +0 -0
  438. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize.d.ts +0 -0
  439. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize.js +0 -0
  440. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize_string.d.ts +0 -0
  441. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/relative.d.ts +0 -0
  442. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/relative.js +0 -0
  443. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/strip_trailing_separators.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/strip_trailing_separators.js +0 -0
  445. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/to_file_url.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/to_file_url.js +0 -0
  447. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_interface.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_interface.js +0 -0
  449. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_os.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_os.js +0 -0
  451. /package/{esm/deps/deno.land/std@0.218.0/path/windows → script/deps/deno.land/std@0.220.1/path}/basename.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/basename.js +0 -0
  453. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/common.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/common.js +0 -0
  455. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/constants.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/constants.js +0 -0
  457. /package/{esm/deps/deno.land/std@0.218.0/path/windows → script/deps/deno.land/std@0.220.1/path}/dirname.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/dirname.js +0 -0
  459. /package/{esm/deps/deno.land/std@0.218.0/path/windows → script/deps/deno.land/std@0.220.1/path}/extname.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/extname.js +0 -0
  461. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/format.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/format.js +0 -0
  463. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/from_file_url.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/from_file_url.js +0 -0
  465. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/glob_to_regexp.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/glob_to_regexp.js +0 -0
  467. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_absolute.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_absolute.js +0 -0
  469. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_glob.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_glob.js +0 -0
  471. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join.js +0 -0
  473. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join_globs.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join_globs.js +0 -0
  475. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/mod.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/mod.js +0 -0
  477. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize.js +0 -0
  479. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize_glob.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize_glob.js +0 -0
  481. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/parse.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/parse.js +0 -0
  483. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/_util.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/_util.js +0 -0
  485. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/common.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/common.js +0 -0
  487. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/constants.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/constants.js +0 -0
  489. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/format.d.ts +0 -0
  490. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/format.js +0 -0
  491. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/from_file_url.d.ts +0 -0
  492. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/from_file_url.js +0 -0
  493. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/glob_to_regexp.d.ts +0 -0
  494. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/glob_to_regexp.js +0 -0
  495. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_absolute.d.ts +0 -0
  496. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_absolute.js +0 -0
  497. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_glob.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_glob.js +0 -0
  499. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join.d.ts +0 -0
  500. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join_globs.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join_globs.js +0 -0
  502. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/mod.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/mod.js +0 -0
  504. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize.js +0 -0
  506. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize_glob.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize_glob.js +0 -0
  508. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/parse.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/parse.js +0 -0
  510. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/relative.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/relative.js +0 -0
  512. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/resolve.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/resolve.js +0 -0
  514. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_file_url.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_file_url.js +0 -0
  516. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_namespaced_path.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_namespaced_path.js +0 -0
  518. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/relative.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/relative.js +0 -0
  520. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/resolve.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/resolve.js +0 -0
  522. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_file_url.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_file_url.js +0 -0
  524. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_namespaced_path.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_namespaced_path.js +0 -0
  526. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/_util.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/_util.js +0 -0
  528. /package/script/deps/deno.land/{std@0.218.0/path → std@0.220.1/path/windows}/basename.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/basename.js +0 -0
  530. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/common.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/common.js +0 -0
  532. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/constants.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/constants.js +0 -0
  534. /package/script/deps/deno.land/{std@0.218.0/path → std@0.220.1/path/windows}/dirname.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/dirname.js +0 -0
  536. /package/script/deps/deno.land/{std@0.218.0/path → std@0.220.1/path/windows}/extname.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/extname.js +0 -0
  538. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/format.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/format.js +0 -0
  540. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/from_file_url.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/from_file_url.js +0 -0
  542. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/glob_to_regexp.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/glob_to_regexp.js +0 -0
  544. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_absolute.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_absolute.js +0 -0
  546. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_glob.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_glob.js +0 -0
  548. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join.js +0 -0
  550. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join_globs.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join_globs.js +0 -0
  552. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/mod.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/mod.js +0 -0
  554. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize.js +0 -0
  556. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize_glob.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize_glob.js +0 -0
  558. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/parse.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/parse.js +0 -0
  560. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/relative.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/relative.js +0 -0
  562. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/resolve.d.ts +0 -0
  563. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/resolve.js +0 -0
  564. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_file_url.d.ts +0 -0
  565. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_file_url.js +0 -0
  566. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_namespaced_path.d.ts +0 -0
  567. /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_namespaced_path.js +0 -0
@@ -9,51 +9,53 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
9
9
  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");
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
- var _Client_instances, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_storeMessages, _Client_id, _Client_L, _Client_Lauthorize, _Client_LreceiveLoop, _Client_LpingLoop, _Client_Linvoke, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_setAuth, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_pingLoop, _Client_pingLoopStarted, _Client_autoStarted, _Client_lastMsgId, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe, _Client_handle;
13
- import { gunzip } from "../0_deps.js";
14
- import { bigIntFromBuffer, cleanObject, drop, getLogger, getRandomBigInt, getRandomId, mustPrompt, mustPromptOneOf, Mutex, sha1, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
15
- import { as, chatIdToPeerId, functions, getChatIdPeerType, Message_, MessageContainer, name, peerToChatId, RPCResult, TLError, TLReader, types } from "../2_tl.js";
12
+ var _Client_instances, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_ignoreOutgoing, _Client_storeMessages, _Client_L, _Client_Lauthorize, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_namespaceProxies, _Client_getApiId, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_pingLoopStarted, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
13
+ import { cleanObject, drop, getLogger, getRandomId, mustPrompt, mustPromptOneOf, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
14
+ import { as, chatIdToPeerId, functions, getChatIdPeerType, name, peerToChatId, types } from "../2_tl.js";
16
15
  import { StorageMemory } from "../3_storage.js";
17
16
  import { constructUser } from "../3_types.js";
18
- import { ACK_THRESHOLD, APP_VERSION, DEVICE_MODEL, LANG_CODE, LANG_PACK, LAYER, MAX_CHANNEL_ID, MAX_CHAT_ID, SYSTEM_LANG_CODE, SYSTEM_VERSION, USERNAME_TTL } from "../4_constants.js";
19
- import { AuthKeyUnregistered, FloodWait, Migrate, PasswordHashInvalid, PhoneNumberInvalid, SessionPasswordNeeded, upgradeInstance } from "../4_errors.js";
20
- import { ClientAbstract } from "./0_client_abstract.js";
21
- import { match } from "./0_filters.js";
22
- import { decryptMessage, encryptMessage, getMessageId } from "./0_message.js";
17
+ import { APP_VERSION, DEVICE_MODEL, LANG_CODE, LANG_PACK, LAYER, MAX_CHANNEL_ID, MAX_CHAT_ID, SYSTEM_LANG_CODE, SYSTEM_VERSION, USERNAME_TTL } from "../4_constants.js";
18
+ import { AuthKeyUnregistered, FloodWait, Migrate, PasswordHashInvalid, PhoneNumberInvalid, SessionPasswordNeeded } from "../4_errors.js";
23
19
  import { checkPassword } from "./0_password.js";
24
- import { ConnectionError } from "./0_types.js";
25
20
  import { getUsername, resolve } from "./0_utilities.js";
26
21
  import { AccountManager } from "./1_account_manager.js";
27
22
  import { BotInfoManager } from "./1_bot_info_manager.js";
28
- import { Composer, concat, flatten, skip } from "./1_composer.js";
23
+ import { ClientEncrypted } from "./1_client_encrypted.js";
24
+ import { ClientPlain } from "./1_client_plain.js";
25
+ import { Composer as Composer_ } from "./1_composer.js";
29
26
  import { FileManager } from "./1_file_manager.js";
30
27
  import { NetworkStatisticsManager } from "./1_network_statistics_manager.js";
31
28
  import { ReactionManager } from "./1_reaction_manager.js";
32
29
  import { UpdateManager } from "./1_update_manager.js";
33
- import { ClientPlain } from "./2_client_plain.js";
34
30
  import { MessageManager } from "./2_message_manager.js";
35
31
  import { CallbackQueryManager } from "./3_callback_query_manager.js";
36
32
  import { ChatListManager } from "./3_chat_list_manager.js";
37
33
  import { InlineQueryManager } from "./3_inline_query_manager.js";
38
34
  import { StoryManager } from "./3_story_manager.js";
39
- let id = 0;
40
- const getEntity = Symbol();
41
- export const handleMigrationError = Symbol("handleMigrationError");
42
- const functionNamespaces = Object.entries(functions).filter(([, v]) => !(v instanceof Function)).map(([k]) => k);
43
- export function skipInvoke() {
35
+ export class Composer extends Composer_ {
36
+ }
37
+ function skipInvoke() {
44
38
  return (_ctx, next) => next();
45
39
  }
46
40
  export const restartAuth = Symbol("restartAuth");
47
- export class Client extends ClientAbstract {
41
+ export const handleMigrationError = Symbol("handleMigrationError");
42
+ // global Client ID counter for logs
43
+ let id = 0;
44
+ const getEntity = Symbol();
45
+ const functionNamespaces = Object.entries(functions).filter(([, v]) => !(v instanceof Function)).map(([k]) => k);
46
+ /**
47
+ * An MTKruto client.
48
+ */
49
+ export class Client extends Composer {
48
50
  /**
49
51
  * Constructs the client.
50
52
  *
51
- * @param storage The storage provider to use. Defaults to memory storage. Passing a string constructs a memory storage with the string being the string session.
53
+ * @param storage The storage provider to use. Defaults to memory storage. Passing a string constructs a memory storage with the string being the auth string.
52
54
  * @param apiId App's API ID from [my.telegram.org](https://my.telegram.org/apps). Defaults to 0 (unset).
53
55
  * @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps). Defaults to empty string (unset).
54
56
  */
55
57
  constructor(storage, apiId = 0, apiHash = "", params) {
56
- super(params);
58
+ super();
57
59
  _Client_instances.add(this);
58
60
  Object.defineProperty(this, "apiId", {
59
61
  enumerable: true,
@@ -67,11 +69,7 @@ export class Client extends ClientAbstract {
67
69
  writable: true,
68
70
  value: apiHash
69
71
  });
70
- _Client_auth.set(this, null);
71
- _Client_sessionId.set(this, getRandomBigInt(8, true, false));
72
- _Client_state.set(this, { salt: 0n, seqNo: 0 });
73
- _Client_promises.set(this, new Map());
74
- _Client_toAcknowledge.set(this, new Set());
72
+ _Client_client.set(this, void 0);
75
73
  _Client_guaranteeUpdateDelivery.set(this, void 0);
76
74
  _Client_updateManager.set(this, void 0);
77
75
  _Client_networkStatisticsManager.set(this, void 0);
@@ -134,16 +132,11 @@ export class Client extends ClientAbstract {
134
132
  value: void 0
135
133
  });
136
134
  _Client_publicKeys.set(this, void 0);
137
- _Client_autoStart.set(this, void 0);
138
135
  _Client_ignoreOutgoing.set(this, void 0);
139
- _Client_prefixes.set(this, void 0);
140
136
  _Client_storeMessages.set(this, void 0);
141
- _Client_id.set(this, void 0);
142
137
  _Client_L.set(this, void 0);
143
138
  _Client_Lauthorize.set(this, void 0);
144
- _Client_LreceiveLoop.set(this, void 0);
145
139
  _Client_LpingLoop.set(this, void 0);
146
- _Client_Linvoke.set(this, void 0);
147
140
  _Client_LhandleMigrationError.set(this, void 0);
148
141
  _Client_L$initConncetion.set(this, void 0);
149
142
  _Client_namespaceProxies.set(this, (() => {
@@ -513,39 +506,36 @@ export class Client extends ClientAbstract {
513
506
  unblock: () => {
514
507
  return this.unblockUser(mustGetUserId());
515
508
  },
509
+ getChatMember: (userId) => {
510
+ const { chatId } = mustGetMsg();
511
+ return this.getChatMember(chatId, userId);
512
+ },
513
+ setChatStickerSet: (setName) => {
514
+ const { chatId } = mustGetMsg();
515
+ return this.setChatStickerSet(chatId, setName);
516
+ },
517
+ deleteChatStickerSet: () => {
518
+ const { chatId } = mustGetMsg();
519
+ return this.deleteChatStickerSet(chatId);
520
+ },
516
521
  };
517
522
  return cleanObject(context);
518
523
  });
519
524
  _Client_lastPropagatedConnectionState.set(this, null);
520
- Object.defineProperty(this, "stateChangeHandler", {
521
- enumerable: true,
522
- configurable: true,
523
- writable: true,
524
- value: ((connected) => {
525
- __classPrivateFieldGet(this, _Client_connectMutex, "f").lock().then((unlock) => {
526
- try {
527
- const connectionState = connected ? "ready" : "notConnected";
528
- if (this.connected == connected && __classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") != connectionState) {
529
- __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).call(this, connectionState);
530
- }
531
- }
532
- finally {
533
- unlock();
534
- }
535
- });
536
- }).bind(this)
537
- });
525
+ _Client_stateChangeHandler.set(this, ((connected) => {
526
+ const connectionState = connected ? "ready" : "notConnected";
527
+ if (this.connected == connected && __classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") != connectionState) {
528
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).call(this, connectionState);
529
+ }
530
+ }).bind(this));
538
531
  _Client_storageInited.set(this, false);
539
- _Client_connectMutex.set(this, new Mutex());
540
532
  _Client_connectionInited.set(this, false);
541
533
  _Client_lastPropagatedAuthorizationState.set(this, null);
542
534
  _Client_selfId.set(this, null);
535
+ _Client_pingLoopStarted.set(this, false);
543
536
  _Client_pingLoopAbortController.set(this, null);
544
537
  _Client_pingInterval.set(this, 60 * 1000); // 60 seconds
545
538
  _Client_lastUpdates.set(this, new Date());
546
- _Client_pingLoopStarted.set(this, false);
547
- _Client_autoStarted.set(this, false);
548
- _Client_lastMsgId.set(this, 0n);
549
539
  _Client_handleInvokeError.set(this, skipInvoke());
550
540
  /**
551
541
  * Invokes a function waiting and returning its reply if the second parameter is not `true`. Requires the client
@@ -573,8 +563,38 @@ export class Client extends ClientAbstract {
573
563
  })
574
564
  });
575
565
  _Client_lastGetMe.set(this, null);
576
- //#region Composer
577
- _Client_handle.set(this, skip);
566
+ __classPrivateFieldSet(this, _Client_client, new ClientEncrypted(params), "f");
567
+ __classPrivateFieldGet(this, _Client_client, "f").stateChangeHandler = __classPrivateFieldGet(this, _Client_stateChangeHandler, "f").bind(this);
568
+ __classPrivateFieldGet(this, _Client_client, "f").handlers = {
569
+ serverSaltReassigned: async (newServerSalt) => {
570
+ await this.storage.setServerSalt(newServerSalt);
571
+ },
572
+ updates: (updates, call, callback) => {
573
+ __classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(updates, true, call, callback);
574
+ __classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
575
+ },
576
+ result: async (result, callback) => {
577
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").processResult(result);
578
+ callback();
579
+ },
580
+ error: async (_err, source) => {
581
+ switch (source) {
582
+ case "deserialization":
583
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap(source);
584
+ break;
585
+ case "decryption":
586
+ try {
587
+ await this.disconnect();
588
+ }
589
+ catch {
590
+ //
591
+ }
592
+ await this.connect();
593
+ await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap(source);
594
+ break;
595
+ }
596
+ },
597
+ };
578
598
  this.storage = typeof storage === "string" ? new StorageMemory(storage) : storage ?? new StorageMemory();
579
599
  __classPrivateFieldSet(this, _Client_storeMessages, params?.storeMessages ?? false, "f");
580
600
  if (!__classPrivateFieldGet(this, _Client_storeMessages, "f")) {
@@ -591,16 +611,14 @@ export class Client extends ClientAbstract {
591
611
  this.systemLangCode = params?.systemLangCode ?? SYSTEM_LANG_CODE;
592
612
  this.systemVersion = params?.systemVersion ?? SYSTEM_VERSION;
593
613
  __classPrivateFieldSet(this, _Client_publicKeys, params?.publicKeys, "f");
594
- __classPrivateFieldSet(this, _Client_autoStart, params?.autoStart ?? true, "f");
595
614
  __classPrivateFieldSet(this, _Client_ignoreOutgoing, params?.ignoreOutgoing ?? null, "f");
596
- __classPrivateFieldSet(this, _Client_prefixes, params?.prefixes, "f");
615
+ if (params?.prefixes) {
616
+ this.prefixes = params?.prefixes;
617
+ }
597
618
  __classPrivateFieldSet(this, _Client_guaranteeUpdateDelivery, params?.guaranteeUpdateDelivery ?? false, "f");
598
- __classPrivateFieldSet(this, _Client_id, id++, "f");
599
- const L = __classPrivateFieldSet(this, _Client_L, getLogger("Client").client(__classPrivateFieldGet(this, _Client_id, "f")), "f");
619
+ const L = __classPrivateFieldSet(this, _Client_L, getLogger("Client").client(id++), "f");
600
620
  __classPrivateFieldSet(this, _Client_Lauthorize, L.branch("authorize"), "f");
601
- __classPrivateFieldSet(this, _Client_LreceiveLoop, L.branch("receiveLoop"), "f");
602
621
  __classPrivateFieldSet(this, _Client_LpingLoop, L.branch("pingLoop"), "f");
603
- __classPrivateFieldSet(this, _Client_Linvoke, L.branch("invoke"), "f");
604
622
  __classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
605
623
  __classPrivateFieldSet(this, _Client_L$initConncetion, L.branch("#initConnection"), "f");
606
624
  const c = {
@@ -610,7 +628,7 @@ export class Client extends ClientAbstract {
610
628
  messageStorage: this.messageStorage,
611
629
  guaranteeUpdateDelivery: __classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f"),
612
630
  setConnectionState: __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).bind(this),
613
- resetConnectionState: () => this.stateChangeHandler(this.connected),
631
+ resetConnectionState: () => __classPrivateFieldGet(this, _Client_stateChangeHandler, "f").call(this, this.connected),
614
632
  getSelfId: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).bind(this),
615
633
  getInputPeer: this.getInputPeer.bind(this),
616
634
  getInputChannel: this.getInputChannel.bind(this),
@@ -619,8 +637,8 @@ export class Client extends ClientAbstract {
619
637
  handleUpdate: __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).bind(this),
620
638
  parseMode: __classPrivateFieldGet(this, _Client_parseMode, "f"),
621
639
  apiFactory: (dcId) => {
622
- const client = new Client((!dcId || dcId == this.dcId) ? this.storage : this.storage.branch(`download_client_${dcId}`), this.apiId, this.apiHash, {
623
- transportProvider: this.transportProvider,
640
+ const client = new Client((!dcId || dcId == __classPrivateFieldGet(this, _Client_client, "f").dcId) ? this.storage : this.storage.branch(`download_client_${dcId}`), this.apiId, this.apiHash, {
641
+ transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider,
624
642
  appVersion: this.appVersion,
625
643
  deviceModel: this.deviceModel,
626
644
  langCode: this.langCode,
@@ -629,7 +647,7 @@ export class Client extends ClientAbstract {
629
647
  systemVersion: this.systemVersion,
630
648
  cdn: true,
631
649
  });
632
- __classPrivateFieldGet(client, _Client_state, "f").salt = __classPrivateFieldGet(this, _Client_state, "f").salt;
650
+ __classPrivateFieldGet(client, _Client_client, "f").serverSalt = __classPrivateFieldGet(this, _Client_client, "f").serverSalt;
633
651
  client.invoke.use(async (ctx, next) => {
634
652
  if (ctx.error instanceof AuthKeyUnregistered && dcId) {
635
653
  try {
@@ -649,9 +667,9 @@ export class Client extends ClientAbstract {
649
667
  api: client.api,
650
668
  connect: async () => {
651
669
  await client.connect();
652
- if (dcId && dcId != this.dcId) {
670
+ if (dcId && dcId != __classPrivateFieldGet(this, _Client_client, "f").dcId) {
653
671
  let dc = String(dcId);
654
- if (this.dcId < 0) {
672
+ if (__classPrivateFieldGet(this, _Client_client, "f").dcId < 0) {
655
673
  dc += "-test";
656
674
  }
657
675
  await client.setDc(dc);
@@ -674,11 +692,11 @@ export class Client extends ClientAbstract {
674
692
  __classPrivateFieldSet(this, _Client_callbackQueryManager, new CallbackQueryManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
675
693
  __classPrivateFieldSet(this, _Client_storyManager, new StoryManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
676
694
  __classPrivateFieldSet(this, _Client_inlineQueryManager, new InlineQueryManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
677
- __classPrivateFieldSet(this, _Client_chatListManager, new ChatListManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
695
+ __classPrivateFieldSet(this, _Client_chatListManager, new ChatListManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
678
696
  __classPrivateFieldSet(this, _Client_accountManager, new AccountManager(c), "f");
679
697
  __classPrivateFieldGet(this, _Client_updateManager, "f").setUpdateHandler(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).bind(this));
680
- const transportProvider = this.transportProvider;
681
- this.transportProvider = (params) => {
698
+ const transportProvider = __classPrivateFieldGet(this, _Client_client, "f").transportProvider;
699
+ __classPrivateFieldGet(this, _Client_client, "f").transportProvider = (params) => {
682
700
  const transport = transportProvider(params);
683
701
  transport.connection.callback = __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f").getTransportReadWriteCallback();
684
702
  return transport;
@@ -687,7 +705,7 @@ export class Client extends ClientAbstract {
687
705
  this.on("connectionState", ({ connectionState }, next) => {
688
706
  drop((async () => {
689
707
  if (connectionState == "notConnected") {
690
- if (!this.transport?.transport.initialized) {
708
+ if (this.disconnected) {
691
709
  L.debug("not reconnecting");
692
710
  return;
693
711
  }
@@ -724,6 +742,13 @@ export class Client extends ClientAbstract {
724
742
  });
725
743
  }
726
744
  }
745
+ // direct ClientEncrypted property proxies
746
+ get connected() {
747
+ return __classPrivateFieldGet(this, _Client_client, "f").connected;
748
+ }
749
+ get disconnected() {
750
+ return __classPrivateFieldGet(this, _Client_client, "f").disconnected;
751
+ }
727
752
  /**
728
753
  * Sets the DC and resets the auth key stored in the session provider
729
754
  * if the stored DC was not the same as the `dc` parameter.
@@ -737,7 +762,7 @@ export class Client extends ClientAbstract {
737
762
  await this.storage.setAuthKey(null);
738
763
  await this.storage.getAuthKey();
739
764
  }
740
- super.setDc(dc);
765
+ __classPrivateFieldGet(this, _Client_client, "f").setDc(dc);
741
766
  }
742
767
  /**
743
768
  * Loads the session if `setDc` was not called, initializes and connnects
@@ -745,58 +770,43 @@ export class Client extends ClientAbstract {
745
770
  * Before establishing the connection, the session is saved.
746
771
  */
747
772
  async connect() {
748
- if (this.connected) {
749
- return;
750
- }
751
- const unlock = await __classPrivateFieldGet(this, _Client_connectMutex, "f").lock();
752
- try {
753
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
754
- const authKey = await this.storage.getAuthKey();
755
- if (authKey == null) {
756
- const plain = new ClientPlain({ initialDc: this.initialDc, transportProvider: this.transportProvider, cdn: this.cdn, publicKeys: __classPrivateFieldGet(this, _Client_publicKeys, "f") });
757
- const dc = await this.storage.getDc();
758
- if (dc != null) {
759
- plain.setDc(dc);
760
- }
761
- await plain.connect();
762
- const [authKey, salt] = await plain.createAuthKey();
763
- await plain.disconnect();
764
- await this.storage.setAuthKey(authKey);
765
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setAuth).call(this, authKey);
766
- __classPrivateFieldGet(this, _Client_state, "f").salt = salt;
767
- await this.storage.setServerSalt(salt);
768
- }
769
- else {
770
- if (__classPrivateFieldGet(this, _Client_state, "f").salt == 0n) {
771
- __classPrivateFieldGet(this, _Client_state, "f").salt = await this.storage.getServerSalt() ?? 0n;
772
- }
773
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setAuth).call(this, authKey);
773
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
774
+ const [authKey, dc] = await Promise.all([this.storage.getAuthKey(), this.storage.getDc()]);
775
+ if (authKey != null && dc != null) {
776
+ await __classPrivateFieldGet(this, _Client_client, "f").setAuthKey(authKey);
777
+ await __classPrivateFieldGet(this, _Client_client, "f").setDc(dc); // TODO: remove await
778
+ if (__classPrivateFieldGet(this, _Client_client, "f").serverSalt == 0n) {
779
+ __classPrivateFieldGet(this, _Client_client, "f").serverSalt = await this.storage.getServerSalt() ?? 0n;
774
780
  }
781
+ }
782
+ else {
783
+ const plain = new ClientPlain({ initialDc: __classPrivateFieldGet(this, _Client_client, "f").initialDc, transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider, cdn: __classPrivateFieldGet(this, _Client_client, "f").cdn, publicKeys: __classPrivateFieldGet(this, _Client_publicKeys, "f") });
775
784
  const dc = await this.storage.getDc();
776
785
  if (dc != null) {
777
- await this.setDc(dc);
786
+ plain.setDc(dc);
787
+ __classPrivateFieldGet(this, _Client_client, "f").setDc(dc);
778
788
  }
779
- await super.connect();
780
- if (dc == null) {
781
- await this.storage.setDc(this.initialDc);
782
- }
783
- __classPrivateFieldGet(this, _Client_L, "f").debug("connected");
784
- drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_receiveLoop).call(this));
785
- if (__classPrivateFieldGet(this, _Client_pingLoopStarted, "f")) {
786
- drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
787
- }
788
- }
789
- finally {
790
- unlock();
789
+ await plain.connect();
790
+ const [authKey, serverSalt] = await plain.createAuthKey();
791
+ drop(plain.disconnect());
792
+ await __classPrivateFieldGet(this, _Client_client, "f").setAuthKey(authKey);
793
+ __classPrivateFieldGet(this, _Client_client, "f").serverSalt = serverSalt;
791
794
  }
795
+ await __classPrivateFieldGet(this, _Client_client, "f").connect();
796
+ 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)]);
792
797
  }
793
- async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = 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_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_autoStart = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_prefixes = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_id = new WeakMap(), _Client_L = new WeakMap(), _Client_Lauthorize = new WeakMap(), _Client_LreceiveLoop = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_Linvoke = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_autoStarted = new WeakMap(), _Client_lastMsgId = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_handle = new WeakMap(), _Client_instances = new WeakSet(), _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
798
+ reconnect(dc) {
799
+ return __classPrivateFieldGet(this, _Client_client, "f").reconnect(dc);
800
+ }
801
+ 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_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_L = new WeakMap(), _Client_Lauthorize = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_getApiId = async function _Client_getApiId() {
802
+ const apiId = this.apiId || await this.storage.getApiId();
803
+ if (!apiId) {
804
+ throw new Error("apiId not set");
805
+ }
806
+ return apiId;
807
+ }, _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
794
808
  __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
795
809
  __classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
796
- }, _Client_setAuth = async function _Client_setAuth(key) {
797
- const hash = await sha1(key);
798
- const id = bigIntFromBuffer(hash.slice(-8), true, false);
799
- __classPrivateFieldSet(this, _Client_auth, { key, id }, "f");
800
810
  }, _Client_initStorage = async function _Client_initStorage() {
801
811
  if (!__classPrivateFieldGet(this, _Client_storageInited, "f")) {
802
812
  await this.storage.initialize();
@@ -807,7 +817,7 @@ export class Client extends ClientAbstract {
807
817
  }
808
818
  }, handleMigrationError)](err) {
809
819
  let newDc = String(err.dc);
810
- if (Math.abs(this.dcId) >= 10000) {
820
+ if (Math.abs(__classPrivateFieldGet(this, _Client_client, "f").dcId) >= 10000) {
811
821
  newDc += "-test";
812
822
  }
813
823
  await this.reconnect(newDc);
@@ -815,7 +825,7 @@ export class Client extends ClientAbstract {
815
825
  }
816
826
  async disconnect() {
817
827
  __classPrivateFieldSet(this, _Client_connectionInited, false, "f");
818
- await super.disconnect();
828
+ await __classPrivateFieldGet(this, _Client_client, "f").disconnect();
819
829
  __classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.abort();
820
830
  }
821
831
  /**
@@ -836,12 +846,6 @@ export class Client extends ClientAbstract {
836
846
  * [2]: https://core.telegram.org/method/updates.getState
837
847
  */
838
848
  async authorize(params) {
839
- if (!this.apiId) {
840
- throw new Error("apiId not set");
841
- }
842
- if (!this.apiHash) {
843
- throw new Error("apiHash not set");
844
- }
845
849
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
846
850
  try {
847
851
  await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
@@ -855,6 +859,10 @@ export class Client extends ClientAbstract {
855
859
  throw err;
856
860
  }
857
861
  }
862
+ const apiId = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this);
863
+ if (!this.apiHash) {
864
+ throw new Error("apiHash not set");
865
+ }
858
866
  if (typeof params === "undefined") {
859
867
  const loginType = mustPromptOneOf("Do you want to login as bot [b] or user [u]?", ["b", "u"]);
860
868
  if (loginType == "b") {
@@ -868,7 +876,7 @@ export class Client extends ClientAbstract {
868
876
  if (typeof params === "string") {
869
877
  while (true) {
870
878
  try {
871
- const auth = await this.api.auth.importBotAuthorization({ api_id: this.apiId, api_hash: this.apiHash, bot_auth_token: params, flags: 0 });
879
+ const auth = await this.api.auth.importBotAuthorization({ api_id: apiId, api_hash: this.apiHash, bot_auth_token: params, flags: 0 });
872
880
  __classPrivateFieldSet(this, _Client_selfId, Number(auth[as](types.auth.Authorization).user.id), "f");
873
881
  await this.storage.setAccountType("bot");
874
882
  break;
@@ -1011,12 +1019,17 @@ export class Client extends ClientAbstract {
1011
1019
  return this.invoke(function_, true);
1012
1020
  }
1013
1021
  exportAuthString() {
1014
- return this.storage.exportAuthString();
1022
+ return this.storage.exportAuthString(this.apiId);
1015
1023
  }
1016
1024
  async importAuthString(authString) {
1017
1025
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
1018
1026
  await this.storage.importAuthString(authString);
1019
1027
  }
1028
+ /**
1029
+ * Get a chat's inputPeer. Useful when calling API functions directly.
1030
+ *
1031
+ * @param id The identifier of the chat.
1032
+ */
1020
1033
  async getInputPeer(id) {
1021
1034
  if (id === "me") {
1022
1035
  return new types.InputPeerSelf();
@@ -1032,6 +1045,11 @@ export class Client extends ClientAbstract {
1032
1045
  }
1033
1046
  return inputPeer;
1034
1047
  }
1048
+ /**
1049
+ * Get a channel or a supergroup's inputChannel. Useful when calling API functions directly.
1050
+ *
1051
+ * @param id The identifier of the channel or the supergroup.
1052
+ */
1035
1053
  async getInputChannel(id) {
1036
1054
  const inputPeer = await this.getInputPeer(id);
1037
1055
  if (!(inputPeer instanceof types.InputPeerChannel)) {
@@ -1039,6 +1057,11 @@ export class Client extends ClientAbstract {
1039
1057
  }
1040
1058
  return new types.InputChannel(inputPeer);
1041
1059
  }
1060
+ /**
1061
+ * Get a user's inputUser. Useful when calling API functions directly.
1062
+ *
1063
+ * @param id The identifier of the user.
1064
+ */
1042
1065
  async getInputUser(id) {
1043
1066
  const inputPeer = await this.getInputPeer(id);
1044
1067
  if (!(inputPeer instanceof types.InputPeerUser)) {
@@ -1049,7 +1072,7 @@ export class Client extends ClientAbstract {
1049
1072
  async [(_Client_initConnection = async function _Client_initConnection() {
1050
1073
  if (!__classPrivateFieldGet(this, _Client_connectionInited, "f")) {
1051
1074
  await this.api.initConnection({
1052
- api_id: this.apiId,
1075
+ api_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this),
1053
1076
  app_version: this.appVersion,
1054
1077
  device_model: this.deviceModel,
1055
1078
  lang_code: this.langCode,
@@ -1066,7 +1089,7 @@ export class Client extends ClientAbstract {
1066
1089
  }
1067
1090
  }, _Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
1068
1091
  if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") != authorized) {
1069
- await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { authorizationState: { authorized } }), resolve);
1092
+ await this.middleware()(await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { authorizationState: { authorized } }), resolve);
1070
1093
  __classPrivateFieldSet(this, _Client_lastPropagatedAuthorizationState, authorized, "f");
1071
1094
  }
1072
1095
  }, _Client_getSelfId = async function _Client_getSelfId() {
@@ -1074,124 +1097,8 @@ export class Client extends ClientAbstract {
1074
1097
  __classPrivateFieldSet(this, _Client_selfId, await this.getMe().then((v) => v.id), "f");
1075
1098
  }
1076
1099
  return __classPrivateFieldGet(this, _Client_selfId, "f");
1077
- }, _Client_receiveLoop = async function _Client_receiveLoop() {
1078
- if (!__classPrivateFieldGet(this, _Client_auth, "f") || !this.transport) {
1079
- throw new ConnectionError("Not connected");
1080
- }
1081
- while (this.connected) {
1082
- try {
1083
- if (__classPrivateFieldGet(this, _Client_toAcknowledge, "f").size >= ACK_THRESHOLD) {
1084
- await this.send(new types.Msgs_ack({ msg_ids: [...__classPrivateFieldGet(this, _Client_toAcknowledge, "f")] }));
1085
- __classPrivateFieldGet(this, _Client_toAcknowledge, "f").clear();
1086
- }
1087
- const buffer = await this.transport.transport.receive();
1088
- __classPrivateFieldGet(this, _Client_L, "f").inBin(buffer);
1089
- let decrypted;
1090
- try {
1091
- decrypted = await (decryptMessage(buffer, __classPrivateFieldGet(this, _Client_auth, "f").key, __classPrivateFieldGet(this, _Client_auth, "f").id, __classPrivateFieldGet(this, _Client_sessionId, "f")));
1092
- __classPrivateFieldGet(this, _Client_L, "f").in(decrypted);
1093
- }
1094
- catch (err) {
1095
- __classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("failed to decrypt message:", err);
1096
- drop((async () => {
1097
- try {
1098
- await this.disconnect();
1099
- }
1100
- catch {
1101
- //
1102
- }
1103
- await this.connect();
1104
- await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("decryption");
1105
- })());
1106
- continue;
1107
- }
1108
- const messages = decrypted instanceof MessageContainer ? decrypted.messages : [decrypted];
1109
- for (const message of messages) {
1110
- let body = message.body;
1111
- if (body instanceof types.Gzip_packed) {
1112
- body = new TLReader(gunzip(body.packed_data)).readObject();
1113
- }
1114
- __classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("received", (typeof body === "object" && name in body) ? body[name] : body.constructor.name);
1115
- if (body instanceof types._Updates || body instanceof types._Update) {
1116
- __classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(body, true);
1117
- }
1118
- else if (body instanceof types.New_session_created) {
1119
- __classPrivateFieldGet(this, _Client_state, "f").salt = body.server_salt;
1120
- await this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_state, "f").salt);
1121
- }
1122
- else if (message.body instanceof RPCResult) {
1123
- let result = message.body.result;
1124
- if (result instanceof types.Gzip_packed) {
1125
- result = new TLReader(gunzip(result.packed_data)).readObject();
1126
- }
1127
- if (result instanceof types.Rpc_error) {
1128
- __classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("RPCResult:", result.error_code, result.error_message);
1129
- }
1130
- else {
1131
- __classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("RPCResult:", (typeof result === "object" && name in result) ? result[name] : result.constructor.name);
1132
- }
1133
- const messageId = message.body.messageId;
1134
- const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(messageId);
1135
- const resolvePromise = () => {
1136
- if (promise) {
1137
- if (result instanceof types.Rpc_error) {
1138
- promise.reject(upgradeInstance(result, promise.call));
1139
- }
1140
- else {
1141
- promise.resolve(result);
1142
- }
1143
- __classPrivateFieldGet(this, _Client_promises, "f").delete(messageId);
1144
- }
1145
- };
1146
- if (result instanceof types._Updates || result instanceof types._Update) {
1147
- __classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(result, true, promise?.call, resolvePromise);
1148
- }
1149
- else {
1150
- await __classPrivateFieldGet(this, _Client_updateManager, "f").processResult(result);
1151
- resolvePromise();
1152
- }
1153
- }
1154
- else if (message.body instanceof types.Pong) {
1155
- const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(message.body.msg_id);
1156
- if (promise) {
1157
- promise.resolve(message.body);
1158
- __classPrivateFieldGet(this, _Client_promises, "f").delete(message.body.msg_id);
1159
- }
1160
- }
1161
- else if (message.body instanceof types.Bad_server_salt) {
1162
- __classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("server salt reassigned");
1163
- __classPrivateFieldGet(this, _Client_state, "f").salt = message.body.new_server_salt;
1164
- await this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_state, "f").salt);
1165
- const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(message.body.bad_msg_id);
1166
- if (promise) {
1167
- promise.resolve(message.body);
1168
- __classPrivateFieldGet(this, _Client_promises, "f").delete(message.body.bad_msg_id);
1169
- }
1170
- }
1171
- __classPrivateFieldGet(this, _Client_toAcknowledge, "f").add(message.id);
1172
- }
1173
- }
1174
- catch (err) {
1175
- if (!this.connected) {
1176
- break;
1177
- }
1178
- else if (err instanceof TLError) {
1179
- __classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("failed to deserialize:", err);
1180
- drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("deserialize"));
1181
- }
1182
- else {
1183
- __classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("unexpected error:", err);
1184
- }
1185
- }
1186
- }
1187
- if (!this.connected) {
1188
- for (const { reject } of __classPrivateFieldGet(this, _Client_promises, "f").values()) {
1189
- reject(new ConnectionError("Connection was closed"));
1190
- }
1191
- }
1192
- else {
1193
- UNREACHABLE();
1194
- }
1100
+ }, _Client_startPingLoop = function _Client_startPingLoop() {
1101
+ drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
1195
1102
  }, _Client_pingLoop = async function _Client_pingLoop() {
1196
1103
  __classPrivateFieldSet(this, _Client_pingLoopAbortController, new AbortController(), "f");
1197
1104
  while (this.connected) {
@@ -1223,63 +1130,7 @@ export class Client extends ClientAbstract {
1223
1130
  let n = 1;
1224
1131
  while (true) {
1225
1132
  try {
1226
- if (!__classPrivateFieldGet(this, _Client_auth, "f") || !this.transport) {
1227
- if (__classPrivateFieldGet(this, _Client_autoStart, "f") && !__classPrivateFieldGet(this, _Client_autoStarted, "f")) {
1228
- await this.start();
1229
- }
1230
- else {
1231
- throw new ConnectionError("Not connected");
1232
- }
1233
- }
1234
- if (!__classPrivateFieldGet(this, _Client_auth, "f") || !this.transport) {
1235
- UNREACHABLE();
1236
- }
1237
- let seqNo = __classPrivateFieldGet(this, _Client_state, "f").seqNo * 2;
1238
- if (!(function_ instanceof functions.ping) && !(function_ instanceof types.Msgs_ack)) {
1239
- seqNo++;
1240
- __classPrivateFieldGet(this, _Client_state, "f").seqNo++;
1241
- }
1242
- const messageId = __classPrivateFieldSet(this, _Client_lastMsgId, getMessageId(__classPrivateFieldGet(this, _Client_lastMsgId, "f")), "f");
1243
- const message = new Message_(messageId, seqNo, function_);
1244
- const payload = await encryptMessage(message, __classPrivateFieldGet(this, _Client_auth, "f").key, __classPrivateFieldGet(this, _Client_auth, "f").id, __classPrivateFieldGet(this, _Client_state, "f").salt, __classPrivateFieldGet(this, _Client_sessionId, "f"));
1245
- await this.transport.transport.send(payload);
1246
- __classPrivateFieldGet(this, _Client_L, "f").out(message);
1247
- __classPrivateFieldGet(this, _Client_L, "f").outBin(payload);
1248
- __classPrivateFieldGet(this, _Client_Linvoke, "f").debug("invoked", function_[name]);
1249
- if (noWait) {
1250
- __classPrivateFieldGet(this, _Client_promises, "f").set(message.id, {
1251
- resolve: (result) => {
1252
- if (result instanceof types.Bad_server_salt) {
1253
- drop(this.invoke(function_, true));
1254
- }
1255
- },
1256
- reject: () => { },
1257
- call: function_,
1258
- });
1259
- return;
1260
- }
1261
- let result;
1262
- try {
1263
- result = await new Promise((resolve, reject) => {
1264
- __classPrivateFieldGet(this, _Client_promises, "f").set(message.id, { resolve, reject, call: function_ });
1265
- });
1266
- }
1267
- catch (err) {
1268
- if (err instanceof AuthKeyUnregistered) {
1269
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, false);
1270
- }
1271
- throw err;
1272
- }
1273
- if (result instanceof types.Bad_server_salt) {
1274
- return await this.invoke(function_);
1275
- }
1276
- else {
1277
- if (!__classPrivateFieldGet(this, _Client_pingLoopStarted, "f")) {
1278
- drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
1279
- __classPrivateFieldSet(this, _Client_pingLoopStarted, true, "f");
1280
- }
1281
- return result;
1282
- }
1133
+ return await __classPrivateFieldGet(this, _Client_client, "f").invoke(function_, noWait);
1283
1134
  }
1284
1135
  catch (err) {
1285
1136
  if (await __classPrivateFieldGet(this, _Client_handleInvokeError, "f").call(this, Object.freeze({ client: this, error: err, function: function_, n: n++ }), () => Promise.resolve(false))) {
@@ -1289,6 +1140,12 @@ export class Client extends ClientAbstract {
1289
1140
  throw err;
1290
1141
  }
1291
1142
  }
1143
+ finally {
1144
+ if (!__classPrivateFieldGet(this, _Client_pingLoopStarted, "f")) {
1145
+ __classPrivateFieldGet(this, _Client_instances, "m", _Client_startPingLoop).call(this);
1146
+ __classPrivateFieldSet(this, _Client_pingLoopStarted, true, "f");
1147
+ }
1148
+ }
1292
1149
  }
1293
1150
  }, _Client_getUserAccessHash = async function _Client_getUserAccessHash(userId) {
1294
1151
  const users = await this.api.users.getUsers({ id: [new types.InputUser({ user_id: userId, access_hash: 0n })] });
@@ -1369,77 +1226,6 @@ export class Client extends ClientAbstract {
1369
1226
  }
1370
1227
  return await this.messageStorage.getEntity(id);
1371
1228
  }
1372
- use(...middleware) {
1373
- const composer = new Composer(...middleware);
1374
- __classPrivateFieldSet(this, _Client_handle, concat(__classPrivateFieldGet(this, _Client_handle, "f"), flatten(composer)), "f");
1375
- return composer;
1376
- }
1377
- branch(predicate, trueHandler_, falseHandler_) {
1378
- const trueHandler = flatten(trueHandler_);
1379
- const falseHandler = flatten(falseHandler_);
1380
- return this.use(async (upd, next) => {
1381
- if (await predicate(upd)) {
1382
- await trueHandler(upd, next);
1383
- }
1384
- else {
1385
- await falseHandler(upd, next);
1386
- }
1387
- });
1388
- }
1389
- filter(predicate, ...middleware) {
1390
- const composer = new Composer(...middleware);
1391
- this.branch(predicate, composer, skip);
1392
- return composer;
1393
- }
1394
- on(filter, ...middleware) {
1395
- return this.filter((ctx) => {
1396
- return match(filter, ctx);
1397
- }, ...middleware);
1398
- }
1399
- command(commands, ...middleware) {
1400
- const commands__ = typeof commands === "object" && "names" in commands ? commands.names : commands;
1401
- const commands_ = Array.isArray(commands__) ? commands__ : [commands__];
1402
- const prefixes_ = typeof commands === "object" && "prefixes" in commands ? commands.prefixes : (__classPrivateFieldGet(this, _Client_prefixes, "f") ?? []);
1403
- const prefixes = Array.isArray(prefixes_) ? prefixes_ : [prefixes_];
1404
- for (const left of prefixes) {
1405
- for (const right of prefixes) {
1406
- if (left == right) {
1407
- continue;
1408
- }
1409
- if (left.startsWith(right) || right.startsWith(left)) {
1410
- throw new Error("Intersecting prefixes");
1411
- }
1412
- }
1413
- }
1414
- return this.on("message:text").filter((ctx) => {
1415
- const prefixes_ = prefixes.length == 0 ? [!ctx.me?.isBot ? "\\" : "/"] : prefixes;
1416
- if (prefixes_.length == 0) {
1417
- return false;
1418
- }
1419
- const cmd = ctx.message.text.split(/\s/, 1)[0];
1420
- const prefix = prefixes_.find((v) => cmd.startsWith(v));
1421
- if (prefix === undefined) {
1422
- return false;
1423
- }
1424
- if (cmd.includes("@")) {
1425
- const username = cmd.split("@", 2)[1];
1426
- if (username.toLowerCase() !== ctx.me.username?.toLowerCase()) {
1427
- return false;
1428
- }
1429
- }
1430
- const command_ = cmd.split("@", 1)[0].split(prefix, 2)[1].toLowerCase();
1431
- for (const command of commands_) {
1432
- if (typeof command === "string" && (command.toLowerCase() == command_)) {
1433
- return true;
1434
- }
1435
- else if (command instanceof RegExp && command.test(command_)) {
1436
- return true;
1437
- }
1438
- }
1439
- return false;
1440
- }, ...middleware);
1441
- }
1442
- //#endregion
1443
1229
  /**
1444
1230
  * Send a text message.
1445
1231
  *
@@ -1464,7 +1250,7 @@ export class Client extends ClientAbstract {
1464
1250
  return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
1465
1251
  }
1466
1252
  /**
1467
- * Edit an inline message's text.
1253
+ * Edit an inline message's text. Bot-only.
1468
1254
  *
1469
1255
  * @method ms
1470
1256
  * @param inlineMessageId The inline message's identifier.
@@ -1485,7 +1271,7 @@ export class Client extends ClientAbstract {
1485
1271
  return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageReplyMarkup(chatId, messageId, params);
1486
1272
  }
1487
1273
  /**
1488
- * Edit an inline message's reply markup.
1274
+ * Edit an inline message's reply markup. Bot-only.
1489
1275
  *
1490
1276
  * @method ms
1491
1277
  * @param inlineMessageId The inline message's identifier.
@@ -1883,11 +1669,11 @@ export class Client extends ClientAbstract {
1883
1669
  * @param id Identifier of one or more of custom emojis.
1884
1670
  * @returns The custom emoji documents.
1885
1671
  */
1886
- async getCustomEmojiDocuments(id) {
1887
- return await __classPrivateFieldGet(this, _Client_fileManager, "f").getCustomEmojiDocuments(id);
1672
+ async getCustomEmojiStickers(id) {
1673
+ return await __classPrivateFieldGet(this, _Client_fileManager, "f").getCustomEmojiStickers(id);
1888
1674
  }
1889
1675
  /**
1890
- * Set a chat's available reactions.
1676
+ * Set a chat's available reactions. User-only.
1891
1677
  *
1892
1678
  * @method ch
1893
1679
  * @param chatId The identifier of the chat.
@@ -1949,7 +1735,7 @@ export class Client extends ClientAbstract {
1949
1735
  await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatPhoto(chatId);
1950
1736
  }
1951
1737
  /**
1952
- * Delete all messages sent by a specific member of a chat.
1738
+ * Delete all messages sent by a specific member of a chat. User-only.
1953
1739
  *
1954
1740
  * @method ms
1955
1741
  * @param chatId The identifier of the chat. Must be a supergroup.
@@ -2200,7 +1986,7 @@ export class Client extends ClientAbstract {
2200
1986
  return await __classPrivateFieldGet(this, _Client_accountManager, "f").getInactiveChats();
2201
1987
  }
2202
1988
  /**
2203
- * Search the messages of a chat.
1989
+ * Search the messages of a chat. User-only.
2204
1990
  *
2205
1991
  * @method ms
2206
1992
  * @param chatId The identifier of the chat to search the messages in.
@@ -2210,7 +1996,7 @@ export class Client extends ClientAbstract {
2210
1996
  return await __classPrivateFieldGet(this, _Client_messageManager, "f").searchMessages(chatId, query, params);
2211
1997
  }
2212
1998
  /**
2213
- * Set the number of boosts required to circument a chat's default restrictions.
1999
+ * Set the number of boosts required to circument a chat's default restrictions. User-only.
2214
2000
  *
2215
2001
  * @method ch
2216
2002
  * @param chatId The identifier of the chat.
@@ -2275,9 +2061,38 @@ export class Client extends ClientAbstract {
2275
2061
  async unblockUser(userId) {
2276
2062
  await __classPrivateFieldGet(this, _Client_messageManager, "f").unblockUser(userId);
2277
2063
  }
2064
+ /**
2065
+ * Get information on a user's chat membership.
2066
+ *
2067
+ * @method ch
2068
+ * @param chatId The identifier of a chat that includes the user.
2069
+ * @param userId The identifier of the user.
2070
+ */
2071
+ async getChatMember(chatId, userId) {
2072
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getChatMember(chatId, userId);
2073
+ }
2074
+ /**
2075
+ * Set a chat's sticker set.
2076
+ *
2077
+ * @method ch
2078
+ * @param chatId The identifier of the chat. Must be a supergroup.
2079
+ * @param setName The name of the set.
2080
+ */
2081
+ async setChatStickerSet(chatId, setName) {
2082
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatStickerSet(chatId, setName);
2083
+ }
2084
+ /**
2085
+ * Delete a chat's sticker set.
2086
+ *
2087
+ * @method ch
2088
+ * @param chatId The identifier of the chat. Must be a supergroup.
2089
+ */
2090
+ async deleteChatStickerSet(chatId) {
2091
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatStickerSet(chatId);
2092
+ }
2278
2093
  }
2279
2094
  _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
2280
- await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, update), resolve);
2095
+ await this.middleware()(await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, update), resolve);
2281
2096
  }, _Client_queueHandleCtxUpdate = function _Client_queueHandleCtxUpdate(update) {
2282
2097
  __classPrivateFieldGet(this, _Client_updateManager, "f").getHandleUpdateQueue(UpdateManager.MAIN_BOX_ID).add(async () => {
2283
2098
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, update);