@mtkruto/node 0.1.183 → 0.1.191

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 (560) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +5 -5
  3. package/esm/0_errors.d.ts +12 -0
  4. package/esm/0_errors.js +19 -0
  5. package/esm/4_constants.d.ts +1 -1
  6. package/esm/4_constants.js +1 -1
  7. package/esm/client/0_client_abstract.js +3 -2
  8. package/esm/client/0_html.js +4 -9
  9. package/esm/client/0_markdown.d.ts +21 -0
  10. package/esm/client/0_markdown.js +322 -0
  11. package/esm/client/0_params.d.ts +16 -0
  12. package/esm/client/0_types.d.ts +0 -2
  13. package/esm/client/0_types.js +1 -2
  14. package/esm/client/0_utilities.js +2 -1
  15. package/esm/client/1_client_encrypted.js +3 -1
  16. package/esm/client/1_client_plain.js +3 -4
  17. package/esm/client/1_composer.js +3 -2
  18. package/esm/client/1_file_manager.js +4 -4
  19. package/esm/client/2_message_manager.d.ts +7 -2
  20. package/esm/client/2_message_manager.js +121 -32
  21. package/esm/client/3_chat_list_manager.js +3 -2
  22. package/esm/client/3_story_manager.js +2 -1
  23. package/esm/client/4_client.d.ts +50 -5
  24. package/esm/client/4_client.js +121 -49
  25. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.d.ts +13 -1
  26. package/esm/deps/deno.land/{std@0.220.1/path/windows → std@0.221.0/path}/basename.d.ts +9 -0
  27. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/basename.js +9 -0
  28. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.d.ts +3 -1
  29. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.js +3 -1
  30. package/esm/deps/deno.land/std@0.221.0/path/parse.d.ts +18 -0
  31. package/esm/deps/deno.land/std@0.221.0/path/parse.js +24 -0
  32. package/esm/deps/deno.land/{std@0.220.1/path → std@0.221.0/path/windows}/basename.d.ts +9 -0
  33. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/basename.js +9 -0
  34. package/esm/mod.d.ts +1 -0
  35. package/esm/mod.js +1 -0
  36. package/esm/storage/0_storage.d.ts +3 -0
  37. package/esm/storage/0_storage.js +26 -11
  38. package/esm/types/0__file_id.js +2 -1
  39. package/esm/types/0_chat_photo.d.ts +1 -0
  40. package/esm/types/0_chat_photo.js +7 -4
  41. package/esm/types/0_message_entity.d.ts +1 -0
  42. package/esm/types/0_message_entity.js +34 -0
  43. package/esm/types/0_parse_mode.d.ts +1 -1
  44. package/esm/types/5_callback_query.js +2 -1
  45. package/package.json +1 -1
  46. package/script/0_deps.d.ts +4 -4
  47. package/script/0_deps.js +5 -5
  48. package/script/0_errors.d.ts +12 -0
  49. package/script/0_errors.js +27 -0
  50. package/script/4_constants.d.ts +1 -1
  51. package/script/4_constants.js +1 -1
  52. package/script/client/0_client_abstract.js +3 -2
  53. package/script/client/0_html.js +4 -9
  54. package/script/client/0_markdown.d.ts +21 -0
  55. package/script/client/0_markdown.js +326 -0
  56. package/script/client/0_params.d.ts +16 -0
  57. package/script/client/0_types.d.ts +0 -2
  58. package/script/client/0_types.js +0 -4
  59. package/script/client/0_utilities.js +2 -1
  60. package/script/client/1_client_encrypted.js +4 -2
  61. package/script/client/1_client_plain.js +3 -4
  62. package/script/client/1_composer.js +3 -2
  63. package/script/client/1_file_manager.js +5 -5
  64. package/script/client/2_message_manager.d.ts +7 -2
  65. package/script/client/2_message_manager.js +121 -32
  66. package/script/client/3_chat_list_manager.js +3 -2
  67. package/script/client/3_story_manager.js +2 -1
  68. package/script/client/4_client.d.ts +50 -5
  69. package/script/client/4_client.js +120 -48
  70. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.d.ts +13 -1
  71. package/script/deps/deno.land/std@0.221.0/path/basename.d.ts +17 -0
  72. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/basename.js +9 -0
  73. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.d.ts +3 -1
  74. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.js +3 -1
  75. package/script/deps/deno.land/std@0.221.0/path/parse.d.ts +18 -0
  76. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/parse.js +13 -1
  77. package/script/deps/deno.land/std@0.221.0/path/windows/basename.d.ts +17 -0
  78. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/basename.js +9 -0
  79. package/script/mod.d.ts +1 -0
  80. package/script/mod.js +1 -0
  81. package/script/storage/0_storage.d.ts +3 -0
  82. package/script/storage/0_storage.js +26 -11
  83. package/script/types/0__file_id.js +2 -1
  84. package/script/types/0_chat_photo.d.ts +1 -0
  85. package/script/types/0_chat_photo.js +7 -4
  86. package/script/types/0_message_entity.d.ts +1 -0
  87. package/script/types/0_message_entity.js +36 -1
  88. package/script/types/0_parse_mode.d.ts +1 -1
  89. package/script/types/5_callback_query.js +2 -1
  90. package/esm/deps/deno.land/std@0.220.1/path/parse.d.ts +0 -6
  91. package/esm/deps/deno.land/std@0.220.1/path/parse.js +0 -12
  92. package/script/deps/deno.land/std@0.220.1/path/basename.d.ts +0 -8
  93. package/script/deps/deno.land/std@0.220.1/path/parse.d.ts +0 -6
  94. package/script/deps/deno.land/std@0.220.1/path/windows/basename.d.ts +0 -8
  95. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.d.ts +0 -0
  96. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.js +0 -0
  97. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.d.ts +0 -0
  98. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.js +0 -0
  99. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.d.ts +0 -0
  100. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.js +0 -0
  101. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.d.ts +0 -0
  102. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.js +0 -0
  103. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.d.ts +0 -0
  104. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.js +0 -0
  105. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.d.ts +0 -0
  106. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.js +0 -0
  107. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.d.ts +0 -0
  108. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.js +0 -0
  109. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.d.ts +0 -0
  110. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.js +0 -0
  111. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.d.ts +0 -0
  112. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.js +0 -0
  113. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.d.ts +0 -0
  114. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.js +0 -0
  115. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.d.ts +0 -0
  116. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.js +0 -0
  117. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.d.ts +0 -0
  118. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.js +0 -0
  119. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.d.ts +0 -0
  120. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.js +0 -0
  121. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.d.ts +0 -0
  122. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.js +0 -0
  123. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.d.ts +0 -0
  124. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.js +0 -0
  125. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.d.ts +0 -0
  126. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.js +0 -0
  127. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.d.ts +0 -0
  128. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.js +0 -0
  129. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.d.ts +0 -0
  130. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.js +0 -0
  131. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.d.ts +0 -0
  132. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.js +0 -0
  133. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.d.ts +0 -0
  134. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.js +0 -0
  135. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.d.ts +0 -0
  136. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.js +0 -0
  137. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.d.ts +0 -0
  138. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.js +0 -0
  139. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.d.ts +0 -0
  140. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.js +0 -0
  141. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.d.ts +0 -0
  142. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.js +0 -0
  143. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.d.ts +0 -0
  144. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.js +0 -0
  145. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.d.ts +0 -0
  146. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.js +0 -0
  147. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.d.ts +0 -0
  148. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.js +0 -0
  149. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.d.ts +0 -0
  150. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.js +0 -0
  151. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.d.ts +0 -0
  152. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.js +0 -0
  153. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.d.ts +0 -0
  154. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.js +0 -0
  155. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.d.ts +0 -0
  156. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.js +0 -0
  157. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.d.ts +0 -0
  158. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.js +0 -0
  159. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.d.ts +0 -0
  160. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.js +0 -0
  161. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.d.ts +0 -0
  162. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.js +0 -0
  163. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.d.ts +0 -0
  164. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.js +0 -0
  165. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.d.ts +0 -0
  166. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.js +0 -0
  167. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.d.ts +0 -0
  168. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.js +0 -0
  169. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.d.ts +0 -0
  170. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.js +0 -0
  171. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.d.ts +0 -0
  172. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.js +0 -0
  173. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.d.ts +0 -0
  174. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.js +0 -0
  175. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.d.ts +0 -0
  176. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.js +0 -0
  177. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.d.ts +0 -0
  178. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.js +0 -0
  179. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.d.ts +0 -0
  180. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.js +0 -0
  181. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  182. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  183. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.d.ts +0 -0
  184. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.js +0 -0
  185. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.d.ts +0 -0
  186. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.js +0 -0
  187. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.d.ts +0 -0
  188. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.js +0 -0
  189. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.d.ts +0 -0
  190. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.js +0 -0
  191. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.d.ts +0 -0
  192. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.js +0 -0
  193. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.d.ts +0 -0
  194. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.js +0 -0
  195. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.d.ts +0 -0
  196. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.js +0 -0
  197. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  198. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.js +0 -0
  199. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.d.ts +0 -0
  200. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.js +0 -0
  201. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.d.ts +0 -0
  202. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.js +0 -0
  203. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.d.ts +0 -0
  204. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.js +0 -0
  205. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  206. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.js +0 -0
  207. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.d.ts +0 -0
  208. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.js +0 -0
  209. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.js +0 -0
  210. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.d.ts +0 -0
  211. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.js +0 -0
  212. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.js +0 -0
  214. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.js +0 -0
  216. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.js +0 -0
  218. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.js +0 -0
  220. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.js +0 -0
  222. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.js +0 -0
  224. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.js +0 -0
  226. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.js +0 -0
  228. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.js +0 -0
  230. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.js +0 -0
  232. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.js +0 -0
  234. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.js +0 -0
  236. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.js +0 -0
  244. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.d.ts +0 -0
  245. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.js +0 -0
  246. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.d.ts +0 -0
  247. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.js +0 -0
  248. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.d.ts +0 -0
  249. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.js +0 -0
  250. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.d.ts +0 -0
  251. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.js +0 -0
  252. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.d.ts +0 -0
  275. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.js +0 -0
  276. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.d.ts +0 -0
  277. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.js +0 -0
  278. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.d.ts +0 -0
  279. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.js +0 -0
  280. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.d.ts +0 -0
  281. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.js +0 -0
  282. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.d.ts +0 -0
  283. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.js +0 -0
  284. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.d.ts +0 -0
  285. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.js +0 -0
  286. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.d.ts +0 -0
  287. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.js +0 -0
  288. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.d.ts +0 -0
  289. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.js +0 -0
  290. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.d.ts +0 -0
  291. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.js +0 -0
  292. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.d.ts +0 -0
  293. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.js +0 -0
  294. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.d.ts +0 -0
  295. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.js +0 -0
  296. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.d.ts +0 -0
  297. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.js +0 -0
  298. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.d.ts +0 -0
  299. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.js +0 -0
  300. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.d.ts +0 -0
  301. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.js +0 -0
  302. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.d.ts +0 -0
  303. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.js +0 -0
  304. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.d.ts +0 -0
  305. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.js +0 -0
  306. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.d.ts +0 -0
  307. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.js +0 -0
  308. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.d.ts +0 -0
  309. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.js +0 -0
  310. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.d.ts +0 -0
  311. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.js +0 -0
  312. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.d.ts +0 -0
  313. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.js +0 -0
  314. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.d.ts +0 -0
  315. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.js +0 -0
  316. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.d.ts +0 -0
  317. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.js +0 -0
  318. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.d.ts +0 -0
  319. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.js +0 -0
  320. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.d.ts +0 -0
  321. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.js +0 -0
  322. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.d.ts +0 -0
  323. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.js +0 -0
  324. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.d.ts +0 -0
  325. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.js +0 -0
  326. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.d.ts +0 -0
  327. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.js +0 -0
  328. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.d.ts +0 -0
  329. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.js +0 -0
  330. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.d.ts +0 -0
  331. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.js +0 -0
  332. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.d.ts +0 -0
  333. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.js +0 -0
  334. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.d.ts +0 -0
  335. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.js +0 -0
  336. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.d.ts +0 -0
  337. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.js +0 -0
  338. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.d.ts +0 -0
  339. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.js +0 -0
  340. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.d.ts +0 -0
  341. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.js +0 -0
  342. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.d.ts +0 -0
  343. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.js +0 -0
  344. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.d.ts +0 -0
  345. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.js +0 -0
  346. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.d.ts +0 -0
  347. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.js +0 -0
  348. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.d.ts +0 -0
  349. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.js +0 -0
  350. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.d.ts +0 -0
  351. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.js +0 -0
  352. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.d.ts +0 -0
  353. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.js +0 -0
  354. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.d.ts +0 -0
  355. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.js +0 -0
  356. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.d.ts +0 -0
  357. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.js +0 -0
  358. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.d.ts +0 -0
  359. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.js +0 -0
  360. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.d.ts +0 -0
  361. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.js +0 -0
  362. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.d.ts +0 -0
  363. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.js +0 -0
  364. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.d.ts +0 -0
  365. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.js +0 -0
  366. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.d.ts +0 -0
  367. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.js +0 -0
  368. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.d.ts +0 -0
  369. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.js +0 -0
  370. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.d.ts +0 -0
  371. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.js +0 -0
  372. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.d.ts +0 -0
  373. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.js +0 -0
  374. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.d.ts +0 -0
  375. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.js +0 -0
  376. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.d.ts +0 -0
  377. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.js +0 -0
  378. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.d.ts +0 -0
  379. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.js +0 -0
  380. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.d.ts +0 -0
  381. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.js +0 -0
  382. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.d.ts +0 -0
  383. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.js +0 -0
  384. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.d.ts +0 -0
  385. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.js +0 -0
  386. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.d.ts +0 -0
  387. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.js +0 -0
  388. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.d.ts +0 -0
  389. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.js +0 -0
  390. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.d.ts +0 -0
  391. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.js +0 -0
  392. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.d.ts +0 -0
  393. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.js +0 -0
  394. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.d.ts +0 -0
  395. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.js +0 -0
  396. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.d.ts +0 -0
  397. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.js +0 -0
  398. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.d.ts +0 -0
  399. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.js +0 -0
  400. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.d.ts +0 -0
  401. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.js +0 -0
  402. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.d.ts +0 -0
  403. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.js +0 -0
  404. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.d.ts +0 -0
  405. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.js +0 -0
  406. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.d.ts +0 -0
  407. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.js +0 -0
  408. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.d.ts +0 -0
  409. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.js +0 -0
  410. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.d.ts +0 -0
  411. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.js +0 -0
  412. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.d.ts +0 -0
  413. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.js +0 -0
  414. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  415. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  416. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.d.ts +0 -0
  417. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.js +0 -0
  418. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.d.ts +0 -0
  419. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.js +0 -0
  420. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.d.ts +0 -0
  421. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.js +0 -0
  422. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.js +0 -0
  424. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.js +0 -0
  426. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.js +0 -0
  428. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.js +0 -0
  430. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  431. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.js +0 -0
  432. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.d.ts +0 -0
  433. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.js +0 -0
  434. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.d.ts +0 -0
  435. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.js +0 -0
  436. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.d.ts +0 -0
  437. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.js +0 -0
  438. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  439. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.js +0 -0
  440. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.d.ts +0 -0
  441. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.js +0 -0
  442. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.js +0 -0
  443. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.js +0 -0
  445. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.js +0 -0
  447. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.js +0 -0
  449. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.js +0 -0
  451. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.js +0 -0
  453. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.js +0 -0
  455. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.js +0 -0
  457. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.js +0 -0
  459. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.js +0 -0
  461. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.js +0 -0
  463. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.js +0 -0
  465. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.js +0 -0
  467. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.js +0 -0
  469. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.js +0 -0
  471. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.js +0 -0
  473. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.js +0 -0
  475. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.js +0 -0
  477. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.js +0 -0
  479. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.js +0 -0
  481. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.js +0 -0
  483. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.js +0 -0
  485. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.js +0 -0
  487. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.js +0 -0
  489. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.d.ts +0 -0
  490. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.js +0 -0
  491. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.d.ts +0 -0
  492. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.js +0 -0
  493. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.d.ts +0 -0
  494. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.js +0 -0
  495. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.d.ts +0 -0
  496. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.js +0 -0
  497. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.js +0 -0
  499. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.d.ts +0 -0
  500. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.js +0 -0
  501. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.d.ts +0 -0
  502. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.js +0 -0
  503. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.d.ts +0 -0
  504. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.js +0 -0
  505. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.d.ts +0 -0
  506. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.js +0 -0
  507. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.d.ts +0 -0
  508. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.js +0 -0
  509. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.d.ts +0 -0
  510. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.js +0 -0
  511. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.d.ts +0 -0
  512. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.js +0 -0
  513. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.d.ts +0 -0
  514. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.js +0 -0
  515. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.d.ts +0 -0
  516. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.js +0 -0
  517. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.d.ts +0 -0
  518. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.js +0 -0
  519. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.d.ts +0 -0
  520. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.js +0 -0
  521. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.d.ts +0 -0
  522. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.js +0 -0
  523. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.d.ts +0 -0
  524. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.js +0 -0
  525. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.d.ts +0 -0
  526. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.js +0 -0
  527. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.d.ts +0 -0
  528. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.js +0 -0
  529. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.d.ts +0 -0
  530. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.js +0 -0
  531. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.d.ts +0 -0
  532. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.js +0 -0
  533. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.d.ts +0 -0
  534. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.js +0 -0
  535. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.d.ts +0 -0
  536. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.js +0 -0
  537. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.d.ts +0 -0
  538. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.js +0 -0
  539. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.d.ts +0 -0
  540. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.js +0 -0
  541. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.d.ts +0 -0
  542. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.js +0 -0
  543. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.d.ts +0 -0
  544. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.js +0 -0
  545. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.d.ts +0 -0
  546. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.js +0 -0
  547. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.d.ts +0 -0
  548. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.js +0 -0
  549. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.d.ts +0 -0
  550. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.js +0 -0
  551. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.d.ts +0 -0
  552. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.js +0 -0
  553. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.d.ts +0 -0
  554. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.js +0 -0
  555. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.d.ts +0 -0
  556. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.js +0 -0
  557. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.d.ts +0 -0
  558. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.js +0 -0
  559. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.d.ts +0 -0
  560. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.js +0 -0
@@ -10,12 +10,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
12
  var _FileManager_instances, _FileManager_c, _FileManager_Lupload, _FileManager_downloadInner;
13
+ import { ConnectionError, InputError } from "../0_errors.js";
13
14
  import { drop, getLogger, getRandomId, mod, UNREACHABLE } from "../1_utilities.js";
14
15
  import { as, types } from "../2_tl.js";
15
16
  import { constructSticker, deserializeFileId, FileType, PhotoSourceType, serializeFileId, toUniqueFileId } from "../3_types.js";
16
17
  import { STICKER_SET_NAME_TTL } from "../4_constants.js";
17
18
  import { FloodWait } from "../4_errors.js";
18
- import { ConnectionError } from "./0_types.js";
19
19
  export class FileManager {
20
20
  constructor(c) {
21
21
  _FileManager_instances.add(this);
@@ -29,7 +29,7 @@ export class FileManager {
29
29
  const isBig = contents.length > 1048576; // 10 MB
30
30
  const chunkSize = params?.chunkSize ?? 512 * 1024;
31
31
  if (mod(chunkSize, 1024) != 0) {
32
- throw new Error("chunkSize must be divisible by 1024");
32
+ throw new InputError("chunkSize must be divisible by 1024.");
33
33
  }
34
34
  const signal = params?.signal;
35
35
  __classPrivateFieldGet(this, _FileManager_Lupload, "f").debug("uploading " + (isBig ? "big " : "") + "file of size " + contents.length + " with chunk size of " + chunkSize);
@@ -170,7 +170,7 @@ export class FileManager {
170
170
  async getCustomEmojiStickers(id) {
171
171
  id = Array.isArray(id) ? id : [id];
172
172
  if (!id.length) {
173
- throw new Error("No custom emoji ID provided");
173
+ return [];
174
174
  }
175
175
  const stickers = new Array();
176
176
  let shouldFetch = false;
@@ -228,7 +228,7 @@ _FileManager_c = new WeakMap(), _FileManager_Lupload = new WeakMap(), _FileManag
228
228
  }
229
229
  const chunkSize = params?.chunkSize ?? 1024 * 1024;
230
230
  if (mod(chunkSize, 1024) != 0) {
231
- throw new Error("chunkSize must be divisible by 1024");
231
+ throw new InputError("chunkSize must be divisible by 1024.");
232
232
  }
233
233
  const { api, connect, disconnect } = __classPrivateFieldGet(this, _FileManager_c, "f").apiFactory(dcId);
234
234
  await connect();
@@ -1,6 +1,6 @@
1
1
  import { enums, types } from "../2_tl.js";
2
2
  import { ChatAction, ChatMember, FileSource, FileType, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
3
- import { AddReactionParams, BanChatMemberParams, CreateInviteLinkParams, DeleteMessagesParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetCreatedInviteLinksParams, GetHistoryParams, PinMessageParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetReactionsParams } from "./0_params.js";
3
+ import { AddReactionParams, BanChatMemberParams, CreateInviteLinkParams, DeleteMessagesParams, EditMessageLiveLocationParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetCreatedInviteLinksParams, GetHistoryParams, PinMessageParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetReactionsParams, StopPollParams } from "./0_params.js";
4
4
  import { C as C_ } from "./0_types.js";
5
5
  import { FileManager } from "./1_file_manager.js";
6
6
  interface C extends C_ {
@@ -13,7 +13,8 @@ export declare class MessageManager {
13
13
  getMessages(chatId: ID, messageIds: number[]): Promise<Message[]>;
14
14
  getMessageWithReply(chatId: ID, messageId: number): Promise<Message>;
15
15
  getMessage(chatId: ID, messageId: number): Promise<Message>;
16
- parseText(text: string, params?: {
16
+ static parseText(text: string, entities: MessageEntity[], parseMode: ParseMode): [string, MessageEntity[]];
17
+ parseText(text_: string, params?: {
17
18
  parseMode?: ParseMode;
18
19
  entities?: MessageEntity[];
19
20
  }): Promise<readonly [string, enums.MessageEntity[] | undefined]>;
@@ -32,6 +33,7 @@ export declare class MessageManager {
32
33
  sendAnimation(chatId: ID, animation: FileSource, params?: SendAnimationParams): Promise<import("../3_types.js").MessageAnimation>;
33
34
  sendVideo(chatId: ID, video: FileSource, params?: SendVideoParams): Promise<import("../3_types.js").MessageVideo>;
34
35
  sendDocument(chatId: ID, document: FileSource, params?: SendDocumentParams): Promise<import("../3_types.js").MessageDocument>;
36
+ sendSticker(chatId: ID, sticker: FileSource, params?: SendStickerParams): Promise<import("../3_types.js").MessageSticker>;
35
37
  sendPhoto(chatId: ID, photo: FileSource, params?: SendPhotoParams): Promise<import("../3_types.js").MessagePhoto>;
36
38
  resolveFileId(maybeFileId: string, expectedFileType: FileType | FileType[]): {
37
39
  id: bigint;
@@ -76,5 +78,8 @@ export declare class MessageManager {
76
78
  getChatMember(chatId: ID, userId: ID): Promise<ChatMember>;
77
79
  setChatStickerSet(chatId: ID, setName: string): Promise<void>;
78
80
  deleteChatStickerSet(chatId: ID): Promise<void>;
81
+ stopPoll(chatId: ID, messageId: number, params?: StopPollParams): Promise<import("../3_types.js").Poll>;
82
+ editMessageLiveLocation(chatId: ID, messageId: number, latitude: number, longitude: number, params?: EditMessageLiveLocationParams): Promise<import("../3_types.js").MessageLocation>;
83
+ editInlineMessageLiveLocation(inlineMessageId: string, latitude: number, longitude: number, params?: EditMessageLiveLocationParams): Promise<void>;
79
84
  }
80
85
  export {};
@@ -11,13 +11,17 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
11
11
  };
12
12
  var _MessageManager_instances, _MessageManager_c, _MessageManager_LresolveFileId, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_sendReaction, _MessageManager_toggleJoinRequests;
13
13
  import { contentType } from "../0_deps.js";
14
+ import { InputError } from "../0_errors.js";
14
15
  import { getLogger, getRandomId, toUnixTimestamp, UNREACHABLE } from "../1_utilities.js";
15
16
  import { as, getChannelChatId, peerToChatId, types } from "../2_tl.js";
16
17
  import { constructChatMemberUpdated, constructInviteLink, deserializeFileId } from "../3_types.js";
17
18
  import { assertMessageType, chatMemberRightsToTlObject, constructChatMember, constructMessage as constructMessage_, deserializeInlineMessageId, FileType, messageEntityToTlObject, reactionEqual, reactionToTlObject, replyMarkupToTlObject } from "../3_types.js";
18
19
  import { messageSearchFilterToTlObject } from "../types/0_message_search_filter.js";
19
20
  import { parseHtml } from "./0_html.js";
21
+ import { parseMarkdown } from "./0_markdown.js";
20
22
  import { getFileContents, isHttpUrl } from "./0_utilities.js";
23
+ const FALLBACK_MIME_TYPE = "application/octet-stream";
24
+ const STICKER_MIME_TYPES = ["image/webp", "video/webm", "application/x-tgsticker"];
21
25
  export class MessageManager {
22
26
  constructor(c) {
23
27
  _MessageManager_instances.add(this);
@@ -86,9 +90,7 @@ export class MessageManager {
86
90
  const messages = await this.getMessages(chatId, [messageId]);
87
91
  return messages[0] ?? null;
88
92
  }
89
- async parseText(text, params) {
90
- const entities_ = params?.entities ?? [];
91
- const parseMode = params?.parseMode ?? __classPrivateFieldGet(this, _MessageManager_c, "f").parseMode;
93
+ static parseText(text, entities, parseMode) {
92
94
  switch (parseMode) {
93
95
  case null:
94
96
  break;
@@ -96,13 +98,31 @@ export class MessageManager {
96
98
  const [newText, entitiesToPush] = parseHtml(text);
97
99
  text = newText;
98
100
  for (const entity of entitiesToPush) {
99
- entities_.push(entity);
101
+ entities.push(entity);
102
+ }
103
+ break;
104
+ }
105
+ case "Markdown": {
106
+ const [newText, entitiesToPush] = parseMarkdown(text);
107
+ text = newText;
108
+ for (const entity of entitiesToPush) {
109
+ entities.push(entity);
100
110
  }
101
111
  break;
102
112
  }
103
113
  default:
104
114
  UNREACHABLE();
105
115
  }
116
+ text = text.trimEnd();
117
+ for (const entity of entities) {
118
+ while (text[entity.offset + (entity.length - 1)] === undefined) {
119
+ --entity.length;
120
+ }
121
+ }
122
+ return [text, entities];
123
+ }
124
+ async parseText(text_, params) {
125
+ const [text, entities_] = MessageManager.parseText(text_, params?.entities ?? [], params?.parseMode ?? __classPrivateFieldGet(this, _MessageManager_c, "f").parseMode);
106
126
  const entities = entities_?.length > 0 ? await Promise.all(entities_.map((v) => messageEntityToTlObject(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity))) : undefined;
107
127
  return [text, entities];
108
128
  }
@@ -385,6 +405,10 @@ export class MessageManager {
385
405
  const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, document, params, FileType.Document, []);
386
406
  return assertMessageType(message, "document");
387
407
  }
408
+ async sendSticker(chatId, sticker, params) {
409
+ const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, sticker, params, FileType.Sticker, [new types.DocumentAttributeSticker({ alt: params?.emoji || "", stickerset: new types.InputStickerSetEmpty() })], undefined, STICKER_MIME_TYPES);
410
+ return assertMessageType(message, "sticker");
411
+ }
388
412
  async sendPhoto(chatId, photo, params) {
389
413
  let media = null;
390
414
  const spoiler = params?.hasSpoiler ? true : undefined;
@@ -550,12 +574,9 @@ export class MessageManager {
550
574
  }
551
575
  }
552
576
  async deleteChatMemberMessages(chatId, memberId) {
553
- const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
554
- if (!(channel instanceof types.InputPeerChannel)) {
555
- throw new Error("Invalid chat ID");
556
- }
577
+ const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
557
578
  const participant = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(memberId);
558
- await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.deleteParticipantHistory({ channel: new types.InputChannel(channel), participant });
579
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.deleteParticipantHistory({ channel, participant });
559
580
  }
560
581
  async pinMessage(chatId, messageId, params) {
561
582
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.updatePinnedMessage({
@@ -715,7 +736,7 @@ export class MessageManager {
715
736
  action_ = new types.SendMessageUploadRoundAction({ progress: 0 });
716
737
  break;
717
738
  default:
718
- throw new Error("Invalid chat action: " + action);
739
+ throw new InputError(`Invalid chat action: ${action}`);
719
740
  }
720
741
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.setTyping({ peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId), action: action_, top_msg_id: params?.messageThreadId });
721
742
  }
@@ -749,7 +770,7 @@ export class MessageManager {
749
770
  async banChatMember(chatId, memberId, params) {
750
771
  const chat = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
751
772
  if (!(chat instanceof types.InputPeerChannel) && !(chat instanceof types.InputPeerChat)) {
752
- throw new Error("Invalid chat ID");
773
+ throw new InputError("Expected a channel, supergroup, or group ID.");
753
774
  }
754
775
  const member = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(memberId);
755
776
  if (chat instanceof types.InputPeerChannel) {
@@ -779,7 +800,7 @@ export class MessageManager {
779
800
  }
780
801
  else if (chat instanceof types.InputPeerChat) {
781
802
  if (!(member instanceof types.InputPeerUser)) {
782
- throw new Error("Invalid user ID");
803
+ throw new InputError(`Invalid user ID: ${memberId}`);
783
804
  }
784
805
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.deleteChatUser({
785
806
  chat_id: chat.chat_id,
@@ -789,25 +810,19 @@ export class MessageManager {
789
810
  }
790
811
  }
791
812
  async unbanChatMember(chatId, memberId) {
792
- const chat = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
793
- if (!(chat instanceof types.InputPeerChannel)) {
794
- throw new Error("Invalid chat ID");
795
- }
813
+ const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
796
814
  const member = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(memberId);
797
815
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.editBanned({
798
- channel: new types.InputChannel(chat),
816
+ channel,
799
817
  participant: member,
800
818
  banned_rights: new types.ChatBannedRights({ until_date: 0 }),
801
819
  });
802
820
  }
803
821
  async setChatMemberRights(chatId, memberId, params) {
804
- const chat = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
805
- if (!(chat instanceof types.InputPeerChannel)) {
806
- throw new Error("Invalid chat ID");
807
- }
822
+ const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
808
823
  const member = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(memberId);
809
824
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.editBanned({
810
- channel: new types.InputChannel(chat),
825
+ channel,
811
826
  participant: member,
812
827
  banned_rights: chatMemberRightsToTlObject(params?.rights, params?.untilDate),
813
828
  });
@@ -886,7 +901,7 @@ export class MessageManager {
886
901
  }
887
902
  async createInviteLink(chatId, params) {
888
903
  if (params?.requireApproval && params?.limit) {
889
- throw new Error("createInviteLink: requireApproval cannot be true while limit is specified");
904
+ throw new InputError("requireApproval cannot be true while limit is specified.");
890
905
  }
891
906
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.exportChatInvite({
892
907
  peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
@@ -913,7 +928,7 @@ export class MessageManager {
913
928
  await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("joinChat");
914
929
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
915
930
  if (peer instanceof types.InputPeerUser) {
916
- throw new Error("joinChat: cannot join private chats");
931
+ throw new InputError("Cannot join private chats.");
917
932
  }
918
933
  else if (peer instanceof types.InputPeerChannel) {
919
934
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.joinChannel({ channel: new types.InputChannel(peer) });
@@ -928,7 +943,7 @@ export class MessageManager {
928
943
  async leaveChat(chatId) {
929
944
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
930
945
  if (peer instanceof types.InputPeerUser) {
931
- throw new Error("leaveChat: cannot leave private chats");
946
+ throw new InputError("Cannot leave private chats.");
932
947
  }
933
948
  else if (peer instanceof types.InputPeerChannel) {
934
949
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.leaveChannel({ channel: new types.InputChannel(peer) });
@@ -944,7 +959,7 @@ export class MessageManager {
944
959
  await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("blockUser");
945
960
  const id = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(userId);
946
961
  if (!(id instanceof types.User)) {
947
- throw new Error("blockUser: only users can be blocked or unblocked");
962
+ throw new InputError("Only users can be blocked or unblocked.");
948
963
  }
949
964
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.contacts.block({ id });
950
965
  }
@@ -952,7 +967,7 @@ export class MessageManager {
952
967
  await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("unblockUser");
953
968
  const id = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(userId);
954
969
  if (!(id instanceof types.User)) {
955
- throw new Error("unblockUser: only users can be blocked or unblocked");
970
+ throw new InputError("Only users can be blocked or unblocked.");
956
971
  }
957
972
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.contacts.unblock({ id });
958
973
  }
@@ -972,7 +987,7 @@ export class MessageManager {
972
987
  return await constructChatMember(participant, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
973
988
  }
974
989
  else {
975
- throw new Error("Invalid chat ID");
990
+ throw new InputError("Expected a channel, supergroup, or group ID. Got a user ID instead.");
976
991
  }
977
992
  }
978
993
  async setChatStickerSet(chatId, setName) {
@@ -983,6 +998,72 @@ export class MessageManager {
983
998
  const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
984
999
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.setStickers({ channel, stickerset: new types.InputStickerSetEmpty() });
985
1000
  }
1001
+ async stopPoll(chatId, messageId, params) {
1002
+ const message = await this.getMessage(chatId, messageId);
1003
+ if (!message) {
1004
+ throw new InputError("Message not found.");
1005
+ }
1006
+ if (!("poll" in message)) {
1007
+ throw new InputError("Message is not a poll.");
1008
+ }
1009
+ if (message.poll.isClosed) {
1010
+ throw new InputError("Poll is already stopped.");
1011
+ }
1012
+ const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
1013
+ peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
1014
+ id: messageId,
1015
+ media: new types.InputMediaPoll({
1016
+ poll: new types.Poll({
1017
+ id: BigInt(message.poll.id),
1018
+ closed: true,
1019
+ question: "",
1020
+ answers: [],
1021
+ }),
1022
+ }),
1023
+ reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
1024
+ });
1025
+ const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
1026
+ return assertMessageType(message_, "poll").poll;
1027
+ }
1028
+ async editMessageLiveLocation(chatId, messageId, latitude, longitude, params) {
1029
+ const message = await this.getMessage(chatId, messageId);
1030
+ if (message && "location" in message && message.location.livePeriod) {
1031
+ const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
1032
+ peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
1033
+ id: messageId,
1034
+ media: new types.InputMediaGeoLive({
1035
+ geo_point: new types.InputGeoPoint({
1036
+ lat: latitude,
1037
+ long: longitude,
1038
+ accuracy_radius: params?.horizontalAccuracy,
1039
+ }),
1040
+ heading: params?.heading,
1041
+ proximity_notification_radius: params?.proximityAlertRadius,
1042
+ }),
1043
+ reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
1044
+ });
1045
+ const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
1046
+ return assertMessageType(message, "location");
1047
+ }
1048
+ UNREACHABLE();
1049
+ }
1050
+ async editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params) {
1051
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertBot("editInlineMessageLiveLocation");
1052
+ const id = deserializeInlineMessageId(inlineMessageId);
1053
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
1054
+ id,
1055
+ media: new types.InputMediaGeoLive({
1056
+ geo_point: new types.InputGeoPoint({
1057
+ lat: latitude,
1058
+ long: longitude,
1059
+ accuracy_radius: params?.horizontalAccuracy,
1060
+ }),
1061
+ heading: params?.heading,
1062
+ proximity_notification_radius: params?.proximityAlertRadius,
1063
+ }),
1064
+ reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
1065
+ });
1066
+ }
986
1067
  }
987
1068
  _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
988
1069
  const messages = new Array();
@@ -1021,7 +1102,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
1021
1102
  const topMsgId = params?.messageThreadId;
1022
1103
  const replyToMsgId = params?.replyToMessageId;
1023
1104
  return replyToMsgId !== undefined ? new types.InputReplyToMessage({ reply_to_msg_id: replyToMsgId, top_msg_id: topMsgId, quote_text: params?.replyQuote?.text, quote_entities: await Promise.all(params?.replyQuote?.entities.map((v) => messageEntityToTlObject(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity)) ?? []), quote_offset: params?.replyQuote?.offset }) : undefined;
1024
- }, _MessageManager_sendDocumentInner = async function _MessageManager_sendDocumentInner(chatId, document, params, fileType, otherAttribs, urlSupported = false) {
1105
+ }, _MessageManager_sendDocumentInner = async function _MessageManager_sendDocumentInner(chatId, document, params, fileType, otherAttribs, urlSupported = false, expectedMimeTypes) {
1025
1106
  let media = null;
1026
1107
  const spoiler = params?.hasSpoiler ? true : undefined;
1027
1108
  if (typeof document === "string") {
@@ -1030,20 +1111,27 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
1030
1111
  media = new types.InputMediaDocument({
1031
1112
  id: new types.InputDocument(fileId),
1032
1113
  spoiler,
1114
+ query: otherAttribs.find((v) => v instanceof types.DocumentAttributeSticker)?.alt || undefined,
1033
1115
  });
1034
1116
  }
1035
1117
  }
1036
1118
  if (media == null) {
1037
1119
  if (typeof document === "string" && isHttpUrl(document)) {
1038
1120
  if (!urlSupported) {
1039
- throw new Error("URL not supported");
1121
+ throw new InputError("URL not supported.");
1040
1122
  }
1041
1123
  media = new types.InputMediaDocumentExternal({ url: document, spoiler });
1042
1124
  }
1043
1125
  else {
1044
1126
  const [contents, fileName_] = await getFileContents(document);
1045
- const fileName = params?.fileName ?? fileName_;
1046
- const mimeType = params?.mimeType ?? contentType(fileName.split(".").slice(-1)[0]) ?? "application/octet-stream";
1127
+ let fileName = params?.fileName ?? fileName_;
1128
+ const mimeType = params?.mimeType ?? contentType(fileName.split(".").slice(-1)[0]) ?? FALLBACK_MIME_TYPE;
1129
+ if (expectedMimeTypes && !expectedMimeTypes.includes(mimeType)) {
1130
+ UNREACHABLE();
1131
+ }
1132
+ if (fileName.endsWith(".tgs") && fileType == FileType.Document) {
1133
+ fileName += "-";
1134
+ }
1047
1135
  const file = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(contents, { fileName, chunkSize: params?.chunkSize, signal: params?.signal });
1048
1136
  let thumb = undefined;
1049
1137
  if (params?.thumbnail) {
@@ -1056,6 +1144,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
1056
1144
  spoiler,
1057
1145
  attributes: [new types.DocumentAttributeFilename({ file_name: fileName }), ...otherAttribs],
1058
1146
  mime_type: mimeType,
1147
+ force_file: fileType == FileType.Document ? true : undefined,
1059
1148
  });
1060
1149
  }
1061
1150
  }
@@ -10,6 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
12
  var _ChatListManager_instances, _ChatListManager_c, _ChatListManager_LgetChats, _ChatListManager_sendChatUpdate, _ChatListManager_chats, _ChatListManager_archivedChats, _ChatListManager_chatsLoadedFromStorage, _ChatListManager_tryGetChatId, _ChatListManager_getChatAnywhere, _ChatListManager_getChatList, _ChatListManager_loadChatsFromStorage, _ChatListManager_getLoadedChats, _ChatListManager_pinnedChats, _ChatListManager_pinnedArchiveChats, _ChatListManager_storageHadPinnedChats, _ChatListManager_pinnedChatsLoaded, _ChatListManager_loadPinnedChats, _ChatListManager_fetchPinnedChats, _ChatListManager_getPinnedChats, _ChatListManager_updateOrAddChat, _ChatListManager_removeChat, _ChatListManager_handleUpdateFolderPeers, _ChatListManager_handleUpdatePinnedDialogs, _ChatListManager_handleUpdateChannel, _ChatListManager_handleUpdateChat, _ChatListManager_handleUpdateUser, _ChatListManager_fetchChats;
13
+ import { InputError } from "../0_errors.js";
13
14
  import { getLogger, toUnixTimestamp, UNREACHABLE } from "../1_utilities.js";
14
15
  import { as, peerToChatId, types } from "../2_tl.js";
15
16
  import { constructChat, constructChat2, constructChat3, constructChat4, getChatOrder } from "../3_types.js";
@@ -98,7 +99,7 @@ export class ChatListManager {
98
99
  await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_loadChatsFromStorage).call(this);
99
100
  }
100
101
  if (after && !__classPrivateFieldGet(this, _ChatListManager_chats, "f").get(after.id)) {
101
- throw new Error("Invalid after");
102
+ throw new InputError("Invalid after");
102
103
  }
103
104
  if (limit <= 0 || limit > 100) {
104
105
  limit = 100;
@@ -258,7 +259,7 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
258
259
  case 1:
259
260
  return __classPrivateFieldGet(this, _ChatListManager_archivedChats, "f");
260
261
  default:
261
- throw new Error("Invalid chat list: " + listId);
262
+ throw new Error(`Invalid chat list: ${listId}`);
262
263
  }
263
264
  }, _ChatListManager_loadChatsFromStorage = async function _ChatListManager_loadChatsFromStorage() {
264
265
  const chats = await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.getChats(0);
@@ -11,6 +11,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
11
11
  };
12
12
  var _StoryManager_instances, _StoryManager_c, _StoryManager_updatesToStory, _StoryManager_togglePinned;
13
13
  import { contentType } from "../0_deps.js";
14
+ import { InputError } from "../0_errors.js";
14
15
  import { getRandomId, UNREACHABLE } from "../1_utilities.js";
15
16
  import { as, inputPeerToPeer, peerToChatId, types } from "../2_tl.js";
16
17
  import { constructStory, FileType, storyInteractiveAreaToTlObject, storyPrivacyToTlObject } from "../3_types.js";
@@ -35,7 +36,7 @@ export class StoryManager {
35
36
  }
36
37
  if (media == null) {
37
38
  if (typeof source === "string" && isHttpUrl(source)) {
38
- throw new Error("URL not supported");
39
+ throw new InputError("URL not supported.");
39
40
  }
40
41
  else {
41
42
  const [contents, fileName_] = await getFileContents(source);
@@ -2,9 +2,9 @@ import { MaybePromise } from "../1_utilities.js";
2
2
  import { enums, functions, types } from "../2_tl.js";
3
3
  import { Storage } from "../3_storage.js";
4
4
  import { DC } from "../3_transport.js";
5
- import { BotCommand, Chat, ChatAction, ChatMember, ChatP, FileSource, ID, InactiveChat, InlineQueryResult, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Reaction, Sticker, Story, Update, User } from "../3_types.js";
5
+ import { BotCommand, Chat, ChatAction, ChatMember, ChatP, FileSource, ID, InactiveChat, InlineQueryResult, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Poll, Reaction, Sticker, Story, Update, User } from "../3_types.js";
6
6
  import { Migrate } from "../4_errors.js";
7
- import { AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeleteMessageParams, DeleteMessagesParams, DownloadParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, PinMessageParams, ReplyParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, UploadParams } from "./0_params.js";
7
+ import { AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeleteMessageParams, DeleteMessagesParams, DownloadParams, EditMessageLiveLocationParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, PinMessageParams, ReplyParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, StopPollParams, UploadParams } from "./0_params.js";
8
8
  import { Api } from "./0_types.js";
9
9
  import { ClientPlainParams } from "./1_client_plain.js";
10
10
  import { Composer as Composer_, NextFunction } from "./1_composer.js";
@@ -29,6 +29,8 @@ export interface Context {
29
29
  replyPhoto: (photo: FileSource, params?: Omit<SendPhotoParams, "replyToMessageId"> & ReplyParams) => Promise<MessagePhoto>;
30
30
  /** Context-aware alias for `client.sendDocument()`. */
31
31
  replyDocument: (document: FileSource, params?: Omit<SendDocumentParams, "replyToMessageId"> & ReplyParams) => Promise<MessageDocument>;
32
+ /** Context-aware alias for `client.sendSticker()`. */
33
+ replySticker: (sticker: FileSource, params?: Omit<SendStickerParams, "replyToMessageId"> & ReplyParams) => Promise<MessageSticker>;
32
34
  /** Context-aware alias for `client.sendLocation()`. */
33
35
  replyLocation: (latitude: number, longitude: number, params?: Omit<SendLocationParams, "replyToMessageId"> & ReplyParams) => Promise<MessageLocation>;
34
36
  /** Context-aware alias for `client.sendDice()`. */
@@ -71,10 +73,14 @@ export interface Context {
71
73
  }) => Promise<void>;
72
74
  /** Context-aware alias for `client.editInlineMessageText()`. */
73
75
  editInlineMessageText: (text: string, params?: EditMessageParams) => Promise<void>;
76
+ /** Context-aware alias for `client.editInlineMessageLiveLocation()`. */
77
+ editInlineMessageLiveLocation: (latitude: number, longitude: number, params?: EditMessageLiveLocationParams) => Promise<void>;
74
78
  /** Context-aware alias for `client.editInlineMessageReplyMarkup()`. */
75
79
  editInlineMessageReplyMarkup: (params?: EditMessageReplyMarkupParams) => Promise<void>;
76
80
  /** Context-aware alias for `client.editMessageText()`. */
77
81
  editMessageText: (messageId: number, text: string, params?: EditMessageParams) => Promise<MessageText>;
82
+ /** Context-aware alias for `client.editMessageLiveLocation()`. */
83
+ editMessageLiveLocation: (messageId: number, latitude: number, longitude: number, params?: EditMessageLiveLocationParams) => Promise<MessageLocation>;
78
84
  /** Context-aware alias for `client.editMessageReplyMarkup()`. */
79
85
  editMessageReplyMarkup: (messageId: number, params?: EditMessageReplyMarkupParams) => Promise<Message>;
80
86
  /** Context-aware alias for `client.answerCallbackQuery()`. */
@@ -223,7 +229,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
223
229
  * Before establishing the connection, the session is saved.
224
230
  */
225
231
  connect(): Promise<void>;
226
- reconnect(dc: DC): Promise<void>;
232
+ reconnect(dc?: DC): Promise<void>;
227
233
  [handleMigrationError](err: Migrate): Promise<void>;
228
234
  disconnect(): Promise<void>;
229
235
  /**
@@ -301,7 +307,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
301
307
  * Edit a message's text.
302
308
  *
303
309
  * @method ms
304
- * @param chatId The identifier of the chat that contains the messages.
310
+ * @param chatId The identifier of the chat that contains the message.
305
311
  * @param messageId The message's identifier.
306
312
  * @param text The new text of the message.
307
313
  * @returns The edited text message.
@@ -319,7 +325,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
319
325
  * Edit a message's reply markup.
320
326
  *
321
327
  * @method ms
322
- * @param chatId The identifier of the chat that contains the messages.
328
+ * @param chatId The identifier of the chat that contains the message.
323
329
  * @param messageId The message's identifier.
324
330
  * @returns The edited message.
325
331
  */
@@ -331,6 +337,27 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
331
337
  * @param inlineMessageId The inline message's identifier.
332
338
  */
333
339
  editInlineMessageReplyMarkup(inlineMessageId: string, params?: EditMessageReplyMarkupParams): Promise<void>;
340
+ /**
341
+ * Edit a message's live location.
342
+ *
343
+ * @method ms
344
+ * @param chatId The identifier of the chat that contains the messages.
345
+ * @param messageId The message's identifier.
346
+ * @param latitude The new latitude.
347
+ * @param longitude The new longitude.
348
+ * @returns The edited location message.
349
+ */
350
+ editMessageLiveLocation(chatId: ID, messageId: number, latitude: number, longitude: number, params?: EditMessageLiveLocationParams): Promise<MessageLocation>;
351
+ /**
352
+ * Edit an inline message's live location. Bot-only.
353
+ *
354
+ * @method ms
355
+ * @param inlineMessageId The inline message's identifier.
356
+ * @param latitude The new latitude.
357
+ * @param longitude The new longitude.
358
+ * @returns The edited location message.
359
+ */
360
+ editInlineMessageLiveLocation(inlineMessageId: string, latitude: number, longitude: number, params?: EditMessageLiveLocationParams): Promise<void>;
334
361
  /**
335
362
  * Retrieve multiple messages.
336
363
  *
@@ -411,6 +438,15 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
411
438
  * @returns The sent poll.
412
439
  */
413
440
  sendPoll(chatId: ID, question: string, options: [string, string, ...string[]], params?: SendPollParams): Promise<MessagePoll>;
441
+ /**
442
+ * Stop a poll.
443
+ *
444
+ * @method ms
445
+ * @param chatId The chat that includes the poll.
446
+ * @param messageId The idenfifier of the poll's message.
447
+ * @returns The new state of the poll.
448
+ */
449
+ stopPoll(chatId: ID, messageId: number, params?: StopPollParams): Promise<Poll>;
414
450
  /**
415
451
  * Send a chat action.
416
452
  *
@@ -540,6 +576,15 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
540
576
  * @returns The sent document.
541
577
  */
542
578
  sendDocument(chatId: ID, document: FileSource, params?: SendDocumentParams): Promise<MessageDocument>;
579
+ /**
580
+ * Send a sticker.
581
+ *
582
+ * @method ms
583
+ * @param chatId The chat to send the sticker to.
584
+ * @param document The sticker to send.
585
+ * @returns The sent sticker.
586
+ */
587
+ sendSticker(chatId: ID, sticker: FileSource, params?: SendStickerParams): Promise<MessageSticker>;
543
588
  /**
544
589
  * Send a video.
545
590
  *