@mtkruto/node 0.1.162 → 0.1.170

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 (515) 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 -1
  4. package/esm/4_constants.js +1 -1
  5. package/esm/client/1_file_manager.d.ts +4 -2
  6. package/esm/client/1_file_manager.js +35 -11
  7. package/esm/client/2_message_manager.d.ts +3 -1
  8. package/esm/client/2_message_manager.js +28 -14
  9. package/esm/client/3_chat_list_manager.d.ts +2 -0
  10. package/esm/client/3_chat_list_manager.js +1 -1
  11. package/esm/client/4_client.d.ts +82 -58
  12. package/esm/client/4_client.js +32 -3
  13. package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/mod.d.ts +7 -0
  14. package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/mod.js +7 -0
  15. package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/common.js +8 -8
  16. package/esm/types/0_thumbnail.js +7 -13
  17. package/esm/types/1_sticker.d.ts +1 -1
  18. package/esm/types/1_sticker.js +6 -6
  19. package/package.json +1 -1
  20. package/script/0_deps.d.ts +4 -4
  21. package/script/0_deps.js +5 -5
  22. package/script/4_constants.d.ts +1 -1
  23. package/script/4_constants.js +1 -1
  24. package/script/client/1_file_manager.d.ts +4 -2
  25. package/script/client/1_file_manager.js +34 -10
  26. package/script/client/2_message_manager.d.ts +3 -1
  27. package/script/client/2_message_manager.js +28 -14
  28. package/script/client/3_chat_list_manager.d.ts +2 -0
  29. package/script/client/3_chat_list_manager.js +1 -1
  30. package/script/client/4_client.d.ts +82 -58
  31. package/script/client/4_client.js +32 -3
  32. package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/mod.d.ts +7 -0
  33. package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/mod.js +7 -0
  34. package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/common.js +8 -8
  35. package/script/types/0_thumbnail.js +7 -13
  36. package/script/types/1_sticker.d.ts +1 -1
  37. package/script/types/1_sticker.js +6 -6
  38. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_constants.d.ts +0 -0
  39. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_constants.js +0 -0
  40. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_diff.d.ts +0 -0
  41. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_diff.js +0 -0
  42. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_format.d.ts +0 -0
  43. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_format.js +0 -0
  44. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert.d.ts +0 -0
  45. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert.js +0 -0
  46. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_almost_equals.d.ts +0 -0
  47. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_almost_equals.js +0 -0
  48. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_array_includes.d.ts +0 -0
  49. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_array_includes.js +0 -0
  50. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_equals.d.ts +0 -0
  51. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_equals.js +0 -0
  52. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_exists.d.ts +0 -0
  53. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_exists.js +0 -0
  54. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_false.d.ts +0 -0
  55. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_false.js +0 -0
  56. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater.d.ts +0 -0
  57. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater.js +0 -0
  58. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater_or_equal.d.ts +0 -0
  59. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater_or_equal.js +0 -0
  60. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_instance_of.d.ts +0 -0
  61. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_instance_of.js +0 -0
  62. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_is_error.d.ts +0 -0
  63. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_is_error.js +0 -0
  64. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less.d.ts +0 -0
  65. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less.js +0 -0
  66. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less_or_equal.d.ts +0 -0
  67. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less_or_equal.js +0 -0
  68. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_match.d.ts +0 -0
  69. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_match.js +0 -0
  70. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_equals.d.ts +0 -0
  71. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_equals.js +0 -0
  72. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_instance_of.d.ts +0 -0
  73. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_instance_of.js +0 -0
  74. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_match.d.ts +0 -0
  75. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_match.js +0 -0
  76. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_strict_equals.d.ts +0 -0
  77. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_strict_equals.js +0 -0
  78. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_object_match.d.ts +0 -0
  79. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_object_match.js +0 -0
  80. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_rejects.d.ts +0 -0
  81. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_rejects.js +0 -0
  82. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_strict_equals.d.ts +0 -0
  83. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_strict_equals.js +0 -0
  84. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_string_includes.d.ts +0 -0
  85. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_string_includes.js +0 -0
  86. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_throws.d.ts +0 -0
  87. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_throws.js +0 -0
  88. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assertion_error.d.ts +0 -0
  89. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assertion_error.js +0 -0
  90. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/equal.d.ts +0 -0
  91. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/equal.js +0 -0
  92. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/fail.d.ts +0 -0
  93. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/fail.js +0 -0
  94. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unimplemented.d.ts +0 -0
  95. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unimplemented.js +0 -0
  96. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unreachable.d.ts +0 -0
  97. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unreachable.js +0 -0
  98. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/_util.d.ts +0 -0
  99. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/_util.js +0 -0
  100. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/base64.d.ts +0 -0
  101. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/base64.js +0 -0
  102. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/fmt/colors.d.ts +0 -0
  103. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/fmt/colors.js +0 -0
  104. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_db.d.ts +0 -0
  105. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_db.js +0 -0
  106. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_util.d.ts +0 -0
  107. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_util.js +0 -0
  108. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/content_type.d.ts +0 -0
  109. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/content_type.js +0 -0
  110. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extension.d.ts +0 -0
  111. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extension.js +0 -0
  112. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extensions_by_type.d.ts +0 -0
  113. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extensions_by_type.js +0 -0
  114. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/format_media_type.d.ts +0 -0
  115. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/format_media_type.js +0 -0
  116. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/get_charset.d.ts +0 -0
  117. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/get_charset.js +0 -0
  118. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/parse_media_type.d.ts +0 -0
  119. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/parse_media_type.js +0 -0
  120. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/type_by_extension.d.ts +0 -0
  121. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/type_by_extension.js +0 -0
  122. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  123. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  124. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/assert_path.d.ts +0 -0
  125. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/assert_path.js +0 -0
  126. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/basename.d.ts +0 -0
  127. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/basename.js +0 -0
  128. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/common.d.ts +0 -0
  129. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/constants.d.ts +0 -0
  130. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/constants.js +0 -0
  131. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/dirname.d.ts +0 -0
  132. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/dirname.js +0 -0
  133. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/format.d.ts +0 -0
  134. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/format.js +0 -0
  135. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/from_file_url.d.ts +0 -0
  136. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/from_file_url.js +0 -0
  137. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  138. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/glob_to_reg_exp.js +0 -0
  139. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize.d.ts +0 -0
  140. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize.js +0 -0
  141. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize_string.d.ts +0 -0
  142. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize_string.js +0 -0
  143. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/relative.d.ts +0 -0
  144. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/relative.js +0 -0
  145. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  146. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/strip_trailing_separators.js +0 -0
  147. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/to_file_url.d.ts +0 -0
  148. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/to_file_url.js +0 -0
  149. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_interface.d.ts +0 -0
  150. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_interface.js +0 -0
  151. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_os.d.ts +0 -0
  152. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_os.js +0 -0
  153. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/basename.d.ts +0 -0
  154. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/basename.js +0 -0
  155. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/common.d.ts +0 -0
  156. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/common.js +0 -0
  157. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/constants.d.ts +0 -0
  158. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/constants.js +0 -0
  159. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/dirname.d.ts +0 -0
  160. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/dirname.js +0 -0
  161. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/extname.d.ts +0 -0
  162. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/extname.js +0 -0
  163. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/format.d.ts +0 -0
  164. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/format.js +0 -0
  165. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/from_file_url.d.ts +0 -0
  166. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/from_file_url.js +0 -0
  167. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/glob_to_regexp.d.ts +0 -0
  168. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/glob_to_regexp.js +0 -0
  169. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_absolute.d.ts +0 -0
  170. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_absolute.js +0 -0
  171. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_glob.d.ts +0 -0
  172. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_glob.js +0 -0
  173. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join.d.ts +0 -0
  174. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join.js +0 -0
  175. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join_globs.d.ts +0 -0
  176. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join_globs.js +0 -0
  177. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/mod.d.ts +0 -0
  178. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/mod.js +0 -0
  179. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize.d.ts +0 -0
  180. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize.js +0 -0
  181. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize_glob.d.ts +0 -0
  182. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize_glob.js +0 -0
  183. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/parse.d.ts +0 -0
  184. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/parse.js +0 -0
  185. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/_util.d.ts +0 -0
  186. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/_util.js +0 -0
  187. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/basename.d.ts +0 -0
  188. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/basename.js +0 -0
  189. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/common.d.ts +0 -0
  190. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/common.js +0 -0
  191. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/constants.d.ts +0 -0
  192. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/constants.js +0 -0
  193. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/dirname.d.ts +0 -0
  194. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/dirname.js +0 -0
  195. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/extname.d.ts +0 -0
  196. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/extname.js +0 -0
  197. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/format.d.ts +0 -0
  198. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/format.js +0 -0
  199. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/from_file_url.d.ts +0 -0
  200. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/from_file_url.js +0 -0
  201. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/glob_to_regexp.d.ts +0 -0
  202. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/glob_to_regexp.js +0 -0
  203. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_absolute.d.ts +0 -0
  204. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_absolute.js +0 -0
  205. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_glob.d.ts +0 -0
  206. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_glob.js +0 -0
  207. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join.d.ts +0 -0
  208. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join.js +0 -0
  209. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join_globs.d.ts +0 -0
  210. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join_globs.js +0 -0
  211. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/mod.d.ts +0 -0
  212. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/mod.js +0 -0
  213. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize.d.ts +0 -0
  214. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize.js +0 -0
  215. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize_glob.d.ts +0 -0
  216. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize_glob.js +0 -0
  217. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/parse.d.ts +0 -0
  218. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/parse.js +0 -0
  219. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/relative.d.ts +0 -0
  220. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/relative.js +0 -0
  221. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/resolve.d.ts +0 -0
  222. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/resolve.js +0 -0
  223. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_file_url.d.ts +0 -0
  224. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_file_url.js +0 -0
  225. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_namespaced_path.d.ts +0 -0
  226. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_namespaced_path.js +0 -0
  227. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/relative.d.ts +0 -0
  228. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/relative.js +0 -0
  229. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/resolve.d.ts +0 -0
  230. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/resolve.js +0 -0
  231. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_file_url.d.ts +0 -0
  232. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_file_url.js +0 -0
  233. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_namespaced_path.d.ts +0 -0
  234. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_namespaced_path.js +0 -0
  235. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/_util.d.ts +0 -0
  236. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/_util.js +0 -0
  237. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/basename.d.ts +0 -0
  238. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/basename.js +0 -0
  239. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/common.d.ts +0 -0
  240. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/common.js +0 -0
  241. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/constants.d.ts +0 -0
  242. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/constants.js +0 -0
  243. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/dirname.d.ts +0 -0
  244. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/dirname.js +0 -0
  245. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/extname.d.ts +0 -0
  246. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/extname.js +0 -0
  247. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/format.d.ts +0 -0
  248. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/format.js +0 -0
  249. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/from_file_url.d.ts +0 -0
  250. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/from_file_url.js +0 -0
  251. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/glob_to_regexp.d.ts +0 -0
  252. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/glob_to_regexp.js +0 -0
  253. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_absolute.d.ts +0 -0
  254. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_absolute.js +0 -0
  255. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_glob.d.ts +0 -0
  256. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_glob.js +0 -0
  257. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join.d.ts +0 -0
  258. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join.js +0 -0
  259. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join_globs.d.ts +0 -0
  260. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join_globs.js +0 -0
  261. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/mod.d.ts +0 -0
  262. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/mod.js +0 -0
  263. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize.d.ts +0 -0
  264. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize.js +0 -0
  265. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize_glob.d.ts +0 -0
  266. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize_glob.js +0 -0
  267. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/parse.d.ts +0 -0
  268. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/parse.js +0 -0
  269. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/relative.d.ts +0 -0
  270. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/relative.js +0 -0
  271. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/resolve.d.ts +0 -0
  272. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/resolve.js +0 -0
  273. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_file_url.d.ts +0 -0
  274. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_file_url.js +0 -0
  275. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_namespaced_path.d.ts +0 -0
  276. /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_namespaced_path.js +0 -0
  277. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_constants.d.ts +0 -0
  278. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_constants.js +0 -0
  279. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_diff.d.ts +0 -0
  280. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_diff.js +0 -0
  281. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_format.d.ts +0 -0
  282. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_format.js +0 -0
  283. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert.d.ts +0 -0
  284. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert.js +0 -0
  285. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_almost_equals.d.ts +0 -0
  286. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_almost_equals.js +0 -0
  287. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_array_includes.d.ts +0 -0
  288. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_array_includes.js +0 -0
  289. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_equals.d.ts +0 -0
  290. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_equals.js +0 -0
  291. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_exists.d.ts +0 -0
  292. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_exists.js +0 -0
  293. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_false.d.ts +0 -0
  294. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_false.js +0 -0
  295. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater.d.ts +0 -0
  296. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater.js +0 -0
  297. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater_or_equal.d.ts +0 -0
  298. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater_or_equal.js +0 -0
  299. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_instance_of.d.ts +0 -0
  300. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_instance_of.js +0 -0
  301. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_is_error.d.ts +0 -0
  302. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_is_error.js +0 -0
  303. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less.d.ts +0 -0
  304. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less.js +0 -0
  305. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less_or_equal.d.ts +0 -0
  306. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less_or_equal.js +0 -0
  307. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_match.d.ts +0 -0
  308. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_match.js +0 -0
  309. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_equals.d.ts +0 -0
  310. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_equals.js +0 -0
  311. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_instance_of.d.ts +0 -0
  312. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_instance_of.js +0 -0
  313. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_match.d.ts +0 -0
  314. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_match.js +0 -0
  315. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_strict_equals.d.ts +0 -0
  316. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_strict_equals.js +0 -0
  317. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_object_match.d.ts +0 -0
  318. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_object_match.js +0 -0
  319. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_rejects.d.ts +0 -0
  320. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_rejects.js +0 -0
  321. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_strict_equals.d.ts +0 -0
  322. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_strict_equals.js +0 -0
  323. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_string_includes.d.ts +0 -0
  324. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_string_includes.js +0 -0
  325. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_throws.d.ts +0 -0
  326. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_throws.js +0 -0
  327. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assertion_error.d.ts +0 -0
  328. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assertion_error.js +0 -0
  329. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/equal.d.ts +0 -0
  330. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/equal.js +0 -0
  331. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/fail.d.ts +0 -0
  332. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/fail.js +0 -0
  333. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unimplemented.d.ts +0 -0
  334. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unimplemented.js +0 -0
  335. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unreachable.d.ts +0 -0
  336. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unreachable.js +0 -0
  337. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/_util.d.ts +0 -0
  338. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/_util.js +0 -0
  339. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/base64.d.ts +0 -0
  340. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/base64.js +0 -0
  341. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/fmt/colors.d.ts +0 -0
  342. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/fmt/colors.js +0 -0
  343. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_db.d.ts +0 -0
  344. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_db.js +0 -0
  345. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_util.d.ts +0 -0
  346. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_util.js +0 -0
  347. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/content_type.d.ts +0 -0
  348. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/content_type.js +0 -0
  349. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extension.d.ts +0 -0
  350. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extension.js +0 -0
  351. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extensions_by_type.d.ts +0 -0
  352. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extensions_by_type.js +0 -0
  353. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/format_media_type.d.ts +0 -0
  354. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/format_media_type.js +0 -0
  355. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/get_charset.d.ts +0 -0
  356. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/get_charset.js +0 -0
  357. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/parse_media_type.d.ts +0 -0
  358. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/parse_media_type.js +0 -0
  359. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/type_by_extension.d.ts +0 -0
  360. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/type_by_extension.js +0 -0
  361. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  362. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  363. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/assert_path.d.ts +0 -0
  364. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/assert_path.js +0 -0
  365. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/basename.d.ts +0 -0
  366. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/basename.js +0 -0
  367. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/common.d.ts +0 -0
  368. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/constants.d.ts +0 -0
  369. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/constants.js +0 -0
  370. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/dirname.d.ts +0 -0
  371. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/dirname.js +0 -0
  372. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/format.d.ts +0 -0
  373. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/format.js +0 -0
  374. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/from_file_url.d.ts +0 -0
  375. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/from_file_url.js +0 -0
  376. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  377. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/glob_to_reg_exp.js +0 -0
  378. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize.d.ts +0 -0
  379. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize.js +0 -0
  380. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize_string.d.ts +0 -0
  381. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize_string.js +0 -0
  382. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/relative.d.ts +0 -0
  383. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/relative.js +0 -0
  384. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  385. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/strip_trailing_separators.js +0 -0
  386. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/to_file_url.d.ts +0 -0
  387. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/to_file_url.js +0 -0
  388. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_interface.d.ts +0 -0
  389. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_interface.js +0 -0
  390. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_os.d.ts +0 -0
  391. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_os.js +0 -0
  392. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/basename.d.ts +0 -0
  393. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/basename.js +0 -0
  394. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/common.d.ts +0 -0
  395. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/common.js +0 -0
  396. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/constants.d.ts +0 -0
  397. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/constants.js +0 -0
  398. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/dirname.d.ts +0 -0
  399. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/dirname.js +0 -0
  400. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/extname.d.ts +0 -0
  401. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/extname.js +0 -0
  402. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/format.d.ts +0 -0
  403. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/format.js +0 -0
  404. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/from_file_url.d.ts +0 -0
  405. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/from_file_url.js +0 -0
  406. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/glob_to_regexp.d.ts +0 -0
  407. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/glob_to_regexp.js +0 -0
  408. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_absolute.d.ts +0 -0
  409. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_absolute.js +0 -0
  410. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_glob.d.ts +0 -0
  411. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_glob.js +0 -0
  412. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join.d.ts +0 -0
  413. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join.js +0 -0
  414. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join_globs.d.ts +0 -0
  415. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join_globs.js +0 -0
  416. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/mod.d.ts +0 -0
  417. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/mod.js +0 -0
  418. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize.d.ts +0 -0
  419. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize.js +0 -0
  420. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize_glob.d.ts +0 -0
  421. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize_glob.js +0 -0
  422. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/parse.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/parse.js +0 -0
  424. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/_util.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/_util.js +0 -0
  426. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/basename.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/basename.js +0 -0
  428. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/common.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/common.js +0 -0
  430. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/constants.d.ts +0 -0
  431. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/constants.js +0 -0
  432. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/dirname.d.ts +0 -0
  433. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/dirname.js +0 -0
  434. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/extname.d.ts +0 -0
  435. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/extname.js +0 -0
  436. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/format.d.ts +0 -0
  437. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/format.js +0 -0
  438. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/from_file_url.d.ts +0 -0
  439. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/from_file_url.js +0 -0
  440. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/glob_to_regexp.d.ts +0 -0
  441. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/glob_to_regexp.js +0 -0
  442. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_absolute.d.ts +0 -0
  443. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_absolute.js +0 -0
  444. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_glob.d.ts +0 -0
  445. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_glob.js +0 -0
  446. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join.d.ts +0 -0
  447. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join.js +0 -0
  448. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join_globs.d.ts +0 -0
  449. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join_globs.js +0 -0
  450. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/mod.d.ts +0 -0
  451. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/mod.js +0 -0
  452. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize.d.ts +0 -0
  453. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize.js +0 -0
  454. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize_glob.d.ts +0 -0
  455. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize_glob.js +0 -0
  456. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/parse.d.ts +0 -0
  457. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/parse.js +0 -0
  458. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/relative.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/relative.js +0 -0
  460. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/resolve.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/resolve.js +0 -0
  462. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_file_url.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_file_url.js +0 -0
  464. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_namespaced_path.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_namespaced_path.js +0 -0
  466. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/relative.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/relative.js +0 -0
  468. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/resolve.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/resolve.js +0 -0
  470. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_file_url.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_file_url.js +0 -0
  472. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_namespaced_path.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_namespaced_path.js +0 -0
  474. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/_util.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/_util.js +0 -0
  476. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/basename.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/basename.js +0 -0
  478. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/common.d.ts +0 -0
  479. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/common.js +0 -0
  480. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/constants.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/constants.js +0 -0
  482. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/dirname.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/dirname.js +0 -0
  484. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/extname.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/extname.js +0 -0
  486. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/format.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/format.js +0 -0
  488. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/from_file_url.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/from_file_url.js +0 -0
  490. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/glob_to_regexp.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/glob_to_regexp.js +0 -0
  492. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_absolute.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_absolute.js +0 -0
  494. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_glob.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_glob.js +0 -0
  496. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join.js +0 -0
  498. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join_globs.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join_globs.js +0 -0
  500. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/mod.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/mod.js +0 -0
  502. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize.js +0 -0
  504. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize_glob.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize_glob.js +0 -0
  506. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/parse.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/parse.js +0 -0
  508. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/relative.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/relative.js +0 -0
  510. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/resolve.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/resolve.js +0 -0
  512. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_file_url.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_file_url.js +0 -0
  514. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_namespaced_path.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_namespaced_path.js +0 -0
package/esm/0_deps.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./deps/deno.land/std@0.218.0/assert/mod.js";
2
- export * as path from "./deps/deno.land/std@0.218.0/path/mod.js";
3
- export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.218.0/encoding/base64.js";
4
- import { contentType as contentType_ } from "./deps/deno.land/std@0.218.0/media_types/content_type.js";
1
+ export * from "./deps/deno.land/std@0.219.0/assert/mod.js";
2
+ export * as path from "./deps/deno.land/std@0.219.0/path/mod.js";
3
+ export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.219.0/encoding/base64.js";
4
+ import { contentType as contentType_ } from "./deps/deno.land/std@0.219.0/media_types/content_type.js";
5
5
  export declare const contentType: typeof contentType_;
6
6
  export declare function extension(mimeType: string): string;
7
7
  export { ctr256, factorize, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.3.3/mod.js";
package/esm/0_deps.js CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./deps/deno.land/std@0.218.0/assert/mod.js";
2
- export * as path from "./deps/deno.land/std@0.218.0/path/mod.js";
3
- export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.218.0/encoding/base64.js";
4
- import { contentType as contentType_ } from "./deps/deno.land/std@0.218.0/media_types/content_type.js";
1
+ export * from "./deps/deno.land/std@0.219.0/assert/mod.js";
2
+ export * as path from "./deps/deno.land/std@0.219.0/path/mod.js";
3
+ export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.219.0/encoding/base64.js";
4
+ import { contentType as contentType_ } from "./deps/deno.land/std@0.219.0/media_types/content_type.js";
5
5
  export const contentType = (extentionOrType) => {
6
6
  if (extentionOrType == "tgs") {
7
7
  return "application/x-tgsticker";
@@ -10,7 +10,7 @@ export const contentType = (extentionOrType) => {
10
10
  return contentType_(extentionOrType);
11
11
  }
12
12
  };
13
- import { extension as extension_ } from "./deps/deno.land/std@0.218.0/media_types/extension.js";
13
+ import { extension as extension_ } from "./deps/deno.land/std@0.219.0/media_types/extension.js";
14
14
  export function extension(mimeType) {
15
15
  if (mimeType == "application/x-tgsticker") {
16
16
  return "tgs";
@@ -4,7 +4,7 @@ export type PublicKeys = readonly [bigint, [bigint, bigint]][];
4
4
  export declare const PUBLIC_KEYS: PublicKeys;
5
5
  export declare const INITIAL_DC: DC;
6
6
  export declare const LAYER = 176;
7
- export declare const APP_VERSION = "MTKruto 0.1.160";
7
+ export declare const APP_VERSION = "MTKruto 0.1.170";
8
8
  export declare const DEVICE_MODEL: string;
9
9
  export declare const LANG_CODE: string;
10
10
  export declare const LANG_PACK = "";
@@ -53,7 +53,7 @@ export const PUBLIC_KEYS = Object.freeze([
53
53
  ]);
54
54
  export const INITIAL_DC = "2";
55
55
  export const LAYER = 176;
56
- export const APP_VERSION = "MTKruto 0.1.160";
56
+ export const APP_VERSION = "MTKruto 0.1.170";
57
57
  // @ts-ignore: lib
58
58
  export const DEVICE_MODEL = typeof dntShim.Deno === "undefined" ? typeof navigator === "undefined" ? typeof process === "undefined" ? "Unknown" : process.platform + "-" + process.arch : navigator.userAgent.split(" ")[0] : dntShim.Deno.build.os + "-" + dntShim.Deno.build.arch;
59
59
  export const LANG_CODE = typeof navigator === "undefined" || typeof navigator.language !== "string" ? "en" : navigator.language.split("-")[0];
@@ -1,4 +1,5 @@
1
- import { Document } from "../3_types.js";
1
+ import { types } from "../2_tl.js";
2
+ import { Sticker } from "../3_types.js";
2
3
  import { DownloadParams, UploadParams } from "./0_params.js";
3
4
  import { C } from "./0_types.js";
4
5
  export declare class FileManager {
@@ -6,5 +7,6 @@ export declare class FileManager {
6
7
  constructor(c: C);
7
8
  upload(contents: Uint8Array, params?: UploadParams): Promise<import("../tl/2_types.js").InputFile_ | import("../tl/2_types.js").InputFileBig_>;
8
9
  download(fileId: string, params?: DownloadParams): AsyncGenerator<Uint8Array, void, unknown>;
9
- getCustomEmojiDocuments(id: string | string[]): Promise<Document[]>;
10
+ getStickerSetName(inputStickerSet: types.InputStickerSetID, hash?: number): Promise<string>;
11
+ getCustomEmojiStickers(id: string | string[]): Promise<Sticker[]>;
10
12
  }
@@ -10,10 +10,10 @@ 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 { extension } from "../0_deps.js";
14
13
  import { drop, getLogger, getRandomId, mod, UNREACHABLE } from "../1_utilities.js";
15
14
  import { as, types } from "../2_tl.js";
16
- import { constructDocument, deserializeFileId, FileType, PhotoSourceType, serializeFileId, toUniqueFileId } from "../3_types.js";
15
+ import { constructSticker, deserializeFileId, FileType, PhotoSourceType, serializeFileId, toUniqueFileId } from "../3_types.js";
16
+ import { STICKER_SET_NAME_TTL } from "../4_constants.js";
17
17
  import { FloodWait } from "../4_errors.js";
18
18
  import { ConnectionError } from "./0_types.js";
19
19
  export class FileManager {
@@ -126,6 +126,18 @@ export class FileManager {
126
126
  }
127
127
  break;
128
128
  }
129
+ case FileType.Thumbnail: {
130
+ const location = new types.InputDocumentFileLocation({
131
+ id: fileId_.location.id,
132
+ access_hash: fileId_.location.accessHash,
133
+ file_reference: fileId_.fileReference ?? new Uint8Array(),
134
+ thumb_size: "thumbnailType" in fileId_.location.source ? String.fromCharCode(fileId_.location.source.thumbnailType) : UNREACHABLE(),
135
+ });
136
+ for await (const chunk of __classPrivateFieldGet(this, _FileManager_instances, "m", _FileManager_downloadInner).call(this, location, fileId_.dcId, params)) {
137
+ yield chunk;
138
+ }
139
+ break;
140
+ }
129
141
  }
130
142
  }
131
143
  else if (fileId_.location.type == "common") {
@@ -143,14 +155,26 @@ export class FileManager {
143
155
  UNREACHABLE();
144
156
  }
145
157
  }
146
- async getCustomEmojiDocuments(id) {
158
+ async getStickerSetName(inputStickerSet, hash = 0) {
159
+ const maybeStickerSetName = await __classPrivateFieldGet(this, _FileManager_c, "f").messageStorage.getStickerSetName(inputStickerSet.id, inputStickerSet.access_hash);
160
+ if (maybeStickerSetName != null && Date.now() - maybeStickerSetName[1].getTime() < STICKER_SET_NAME_TTL) {
161
+ return maybeStickerSetName[0];
162
+ }
163
+ else {
164
+ const stickerSet = await __classPrivateFieldGet(this, _FileManager_c, "f").api.messages.getStickerSet({ stickerset: inputStickerSet, hash });
165
+ const name = stickerSet[as](types.messages.StickerSet).set.short_name;
166
+ await __classPrivateFieldGet(this, _FileManager_c, "f").messageStorage.updateStickerSetName(inputStickerSet.id, inputStickerSet.access_hash, name);
167
+ return name;
168
+ }
169
+ }
170
+ async getCustomEmojiStickers(id) {
147
171
  id = Array.isArray(id) ? id : [id];
148
172
  if (!id.length) {
149
173
  throw new Error("No custom emoji ID provided");
150
174
  }
151
- const documents = new Array();
175
+ const stickers = new Array();
152
176
  let shouldFetch = false;
153
- for (const [i, id_] of id.entries()) {
177
+ for (const id_ of id) {
154
178
  const maybeDocument = await __classPrivateFieldGet(this, _FileManager_c, "f").messageStorage.getCustomEmojiDocument(BigInt(id_));
155
179
  if (maybeDocument != null && Date.now() - maybeDocument[1].getTime() <= 30 * 60 * 1000) {
156
180
  const document_ = maybeDocument[0];
@@ -162,8 +186,8 @@ export class FileManager {
162
186
  };
163
187
  const fileUniqueId = toUniqueFileId(fileId_);
164
188
  const fileId = serializeFileId(fileId_);
165
- const document = constructDocument(document_, new types.DocumentAttributeFilename({ file_name: `${id[i] ?? "customEmoji"}.${extension(document_.mime_type)}` }), fileId, fileUniqueId);
166
- documents.push(document);
189
+ const sticker = await constructSticker(document_, fileId, fileUniqueId, this.getStickerSetName.bind(this), id_);
190
+ stickers.push(sticker);
167
191
  }
168
192
  else {
169
193
  shouldFetch = true;
@@ -171,7 +195,7 @@ export class FileManager {
171
195
  }
172
196
  }
173
197
  if (!shouldFetch) {
174
- return documents;
198
+ return stickers;
175
199
  }
176
200
  const documents_ = await __classPrivateFieldGet(this, _FileManager_c, "f").api.messages.getCustomEmojiDocuments({ document_id: id.map(BigInt) }).then((v) => v.map((v) => v[as](types.Document)));
177
201
  for (const [i, document_] of documents_.entries()) {
@@ -184,10 +208,10 @@ export class FileManager {
184
208
  };
185
209
  const fileUniqueId = toUniqueFileId(fileId_);
186
210
  const fileId = serializeFileId(fileId_);
187
- const document = constructDocument(document_, new types.DocumentAttributeFilename({ file_name: `${id[i] ?? "customEmoji"}.${extension(document_.mime_type)}` }), fileId, fileUniqueId);
188
- documents.push(document);
211
+ const sticker = await constructSticker(document_, fileId, fileUniqueId, this.getStickerSetName.bind(this), id[i]);
212
+ stickers.push(sticker);
189
213
  }
190
- return documents;
214
+ return stickers;
191
215
  }
192
216
  }
193
217
  _FileManager_c = new WeakMap(), _FileManager_Lupload = new WeakMap(), _FileManager_instances = new WeakSet(), _FileManager_downloadInner = async function* _FileManager_downloadInner(location, dcId, params) {
@@ -17,7 +17,6 @@ export declare class MessageManager {
17
17
  parseMode?: ParseMode;
18
18
  entities?: MessageEntity[];
19
19
  }): Promise<readonly [string, enums.MessageEntity[] | undefined]>;
20
- getStickerSetName(inputStickerSet: types.InputStickerSetID, hash?: number): Promise<string>;
21
20
  constructMessage(message_: enums.Message, r?: boolean): Promise<Message>;
22
21
  forwardMessages(from: ID, to: ID, messageIds: number[], params?: ForwardMessagesParams): Promise<Message[]>;
23
22
  getHistory(chatId: ID, params?: GetHistoryParams): Promise<Message[]>;
@@ -74,5 +73,8 @@ export declare class MessageManager {
74
73
  leaveChat(chatId: ID): Promise<void>;
75
74
  blockUser(userId: ID): Promise<void>;
76
75
  unblockUser(userId: ID): Promise<void>;
76
+ getChatMember(chatId: ID, userId: ID): Promise<ChatMember>;
77
+ setChatStickerSet(chatId: ID, setName: string): Promise<void>;
78
+ deleteChatStickerSet(chatId: ID): Promise<void>;
77
79
  }
78
80
  export {};
@@ -15,7 +15,6 @@ import { getLogger, getRandomId, toUnixTimestamp, UNREACHABLE } from "../1_utili
15
15
  import { as, getChannelChatId, peerToChatId, types } from "../2_tl.js";
16
16
  import { constructChatMemberUpdated, constructInviteLink, deserializeFileId } from "../3_types.js";
17
17
  import { assertMessageType, chatMemberRightsToTlObject, constructChatMember, constructMessage as constructMessage_, deserializeInlineMessageId, FileType, messageEntityToTlObject, reactionEqual, reactionToTlObject, replyMarkupToTlObject } from "../3_types.js";
18
- import { STICKER_SET_NAME_TTL } from "../4_constants.js";
19
18
  import { messageSearchFilterToTlObject } from "../types/0_message_search_filter.js";
20
19
  import { parseHtml } from "./0_html.js";
21
20
  import { getFileContents, isHttpUrl } from "./0_utilities.js";
@@ -107,20 +106,8 @@ export class MessageManager {
107
106
  const entities = entities_?.length > 0 ? await Promise.all(entities_.map((v) => messageEntityToTlObject(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity))) : undefined;
108
107
  return [text, entities];
109
108
  }
110
- async getStickerSetName(inputStickerSet, hash = 0) {
111
- const maybeStickerSetName = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getStickerSetName(inputStickerSet.id, inputStickerSet.access_hash);
112
- if (maybeStickerSetName != null && Date.now() - maybeStickerSetName[1].getTime() < STICKER_SET_NAME_TTL) {
113
- return maybeStickerSetName[0];
114
- }
115
- else {
116
- const stickerSet = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getStickerSet({ stickerset: inputStickerSet, hash });
117
- const name = stickerSet[as](types.messages.StickerSet).set.short_name;
118
- await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.updateStickerSetName(inputStickerSet.id, inputStickerSet.access_hash, name);
119
- return name;
120
- }
121
- }
122
109
  async constructMessage(message_, r) {
123
- return await constructMessage_(message_, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity, this.getMessage.bind(this), this.getStickerSetName.bind(this), r);
110
+ return await constructMessage_(message_, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity, this.getMessage.bind(this), __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.getStickerSetName.bind(__classPrivateFieldGet(this, _MessageManager_c, "f").fileManager), r);
124
111
  }
125
112
  async forwardMessages(from, to, messageIds, params) {
126
113
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.forwardMessages({
@@ -968,6 +955,33 @@ export class MessageManager {
968
955
  }
969
956
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.contacts.unblock({ id });
970
957
  }
958
+ async getChatMember(chatId, userId) {
959
+ const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
960
+ if (peer instanceof types.InputPeerChannel) {
961
+ const { participant } = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.getParticipant({
962
+ channel: new types.InputChannel(peer),
963
+ participant: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(userId),
964
+ });
965
+ return await constructChatMember(participant, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
966
+ }
967
+ else if (peer instanceof types.InputPeerChat) {
968
+ const user = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputUser(userId);
969
+ const fullChat = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getFullChat(peer).then((v) => v.full_chat[as](types.ChatFull));
970
+ const participant = fullChat.participants[as](types.ChatParticipants).participants.find((v) => v.user_id == user.user_id);
971
+ return await constructChatMember(participant, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
972
+ }
973
+ else {
974
+ throw new Error("Invalid chat ID");
975
+ }
976
+ }
977
+ async setChatStickerSet(chatId, setName) {
978
+ const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
979
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.setStickers({ channel, stickerset: new types.InputStickerSetShortName({ short_name: setName }) });
980
+ }
981
+ async deleteChatStickerSet(chatId) {
982
+ const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
983
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.setStickers({ channel, stickerset: new types.InputStickerSetEmpty() });
984
+ }
971
985
  }
972
986
  _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
973
987
  const messages = new Array();
@@ -1,8 +1,10 @@
1
1
  import { enums, types } from "../2_tl.js";
2
2
  import { Chat, ID } from "../3_types.js";
3
3
  import { C as C_ } from "./0_types.js";
4
+ import { FileManager } from "./1_file_manager.js";
4
5
  import { MessageManager } from "./2_message_manager.js";
5
6
  type C = C_ & {
7
+ fileManager: FileManager;
6
8
  messageManager: MessageManager;
7
9
  };
8
10
  type ChatListManagerUpdate = types.UpdateNewMessage | types.UpdateNewChannelMessage | types.UpdatePinnedDialogs | types.UpdateFolderPeers | types.UpdateChannel | types.UpdateChat | types.UpdateUser | types.UpdateUserName;
@@ -434,7 +434,7 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
434
434
  }
435
435
  const chats = __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getChatList).call(this, listId);
436
436
  for (const dialog of dialogs.dialogs) {
437
- const chat = await constructChat(dialog, dialogs, pinnedChats, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager), __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getStickerSetName.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
437
+ const chat = await constructChat(dialog, dialogs, pinnedChats, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager), __classPrivateFieldGet(this, _ChatListManager_c, "f").fileManager.getStickerSetName.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
438
438
  chats.set(chat.id, chat);
439
439
  await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setChat(listId, chat.id, chat.pinned, chat.lastMessage?.id ?? 0, chat.lastMessage?.date ?? new Date(0));
440
440
  }
@@ -2,8 +2,7 @@ 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 { InactiveChat } from "../3_types.js";
6
- import { BotCommand, Chat, ChatAction, ChatMember, ChatP, Document, FileSource, ID, InlineQueryResult, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Reaction, Story, Update, UpdateIntersection, 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, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Reaction, Sticker, Story, Update, UpdateIntersection, User } from "../3_types.js";
7
6
  import { Migrate } from "../4_errors.js";
8
7
  import { ClientAbstract } from "./0_client_abstract.js";
9
8
  import { FilterQuery, WithFilter } from "./0_filters.js";
@@ -35,117 +34,119 @@ export interface Context {
35
34
  from?: User;
36
35
  /** Resolves to `msg?.senderChat`. */
37
36
  senderChat?: ChatP;
38
- /** Reply the received message with a text message. */
37
+ /** Context-aware alias for `client.sendMessage()`. */
39
38
  reply: (text: string, params?: Omit<SendMessageParams, "replyToMessageId"> & ReplyParams) => Promise<MessageText>;
40
- /** Reply the received message with a poll. */
39
+ /** Context-aware alias for `client.sendPoll()`. */
41
40
  replyPoll: (question: string, options: [string, string, ...string[]], params?: Omit<SendPollParams, "replyToMessageId"> & ReplyParams) => Promise<MessagePoll>;
42
- /** Reply the received message with a photo. */
41
+ /** Context-aware alias for `client.sendPhoto()`. */
43
42
  replyPhoto: (photo: FileSource, params?: Omit<SendPhotoParams, "replyToMessageId"> & ReplyParams) => Promise<MessagePhoto>;
44
- /** Reply the received message with a document. */
43
+ /** Context-aware alias for `client.sendDocument()`. */
45
44
  replyDocument: (document: FileSource, params?: Omit<SendDocumentParams, "replyToMessageId"> & ReplyParams) => Promise<MessageDocument>;
46
- /** Reply the received message with a location. */
45
+ /** Context-aware alias for `client.sendLocation()`. */
47
46
  replyLocation: (latitude: number, longitude: number, params?: Omit<SendLocationParams, "replyToMessageId"> & ReplyParams) => Promise<MessageLocation>;
48
- /** Reply the received message with a dice. */
47
+ /** Context-aware alias for `client.sendDice()`. */
49
48
  replyDice: (params?: Omit<SendDiceParams, "replyToMessageId"> & ReplyParams) => Promise<MessageDice>;
50
- /** Reply the received message with a venue. */
49
+ /** Context-aware alias for `client.sendVenue()`. */
51
50
  replyVenue: (latitude: number, longitude: number, title: string, address: string, params?: Omit<SendVenueParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVenue>;
52
- /** Reply the received message with a contact. */
51
+ /** Context-aware alias for `client.sendContact()`. */
53
52
  replyContact: (firstName: string, number: string, params?: Omit<SendContactParams, "replyToMessageId"> & ReplyParams) => Promise<MessageContact>;
54
- /** Reply the received message with a video. */
53
+ /** Context-aware alias for `client.sendVideo()`. */
55
54
  replyVideo: (video: FileSource, params?: Omit<SendVideoParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVideo>;
56
- /** Reply the received message with an animation. */
55
+ /** Context-aware alias for `client.sendAnimation()`. */
57
56
  replyAnimation: (animation: FileSource, params?: Omit<SendAnimationParams, "replyToMessageId"> & ReplyParams) => Promise<MessageAnimation>;
58
- /** Reply the received message with a voice message. */
57
+ /** Context-aware alias for `client.sendVoice()`. */
59
58
  replyVoice: (voice: FileSource, params?: Omit<SendVoiceParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVoice>;
60
- /** Reply the received message with an audio file. */
59
+ /** Context-aware alias for `client.sendAudio()`. */
61
60
  replyAudio: (audio: FileSource, params?: Omit<SendAudioParams, "replyToMessageId"> & ReplyParams) => Promise<MessageAudio>;
62
- /** Reply the received message with a video note. */
61
+ /** Context-aware alias for `client.sendPoll()`. */
63
62
  replyVideoNote: (videoNote: FileSource, params?: Omit<SendVideoNoteParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVideoNote>;
64
- /** Delete the received message. */
63
+ /** Context-aware alias for `client.deleteMessage()`. */
65
64
  delete: () => Promise<void>;
66
- /** Forward the received message. */
65
+ /** Context-aware alias for `client.forwardMessage()`. */
67
66
  forward: (to: ID, params?: ForwardMessagesParams) => Promise<this["msg"]>;
68
- /** Pin the received message. */
67
+ /** Context-aware alias for `client.pinMessage()`. */
69
68
  pin: (params?: PinMessageParams) => Promise<void>;
70
- /** Unpin the received message. */
69
+ /** Context-aware alias for `client.unpinMessage()`. */
71
70
  unpin: (params?: PinMessageParams) => Promise<void>;
72
- /** Ban the sender of the received message. */
71
+ /** Context-aware alias for `client.banChatMember()`. */
73
72
  banSender: (params?: BanChatMemberParams) => Promise<void>;
74
- /** Kick the sender of the received message. */
73
+ /** Context-aware alias for `client.kickChatMember()`. */
75
74
  kickSender: () => Promise<void>;
76
- /** Set the rights of the received message. */
75
+ /** Context-aware alias for `client.setChatMemberRights()`. */
77
76
  setSenderRights: (params?: SetChatMemberRightsParams) => Promise<void>;
78
- /** Get the administrators of the chat which the message was received from. */
77
+ /** Context-aware alias for `client.getChatAdministrators()`. */
79
78
  getChatAdministrators: () => Promise<ChatMember[]>;
80
- /** Change the reactions made to the received message. */
79
+ /** Context-aware alias for `client.setReactions()`. */
81
80
  react: (reactions: Reaction[], params?: SetReactionsParams) => Promise<void>;
82
- /** Send a chat action to the chat which the message was received from. */
81
+ /** Context-aware alias for `client.sendChatAction()`. */
83
82
  sendChatAction: (action: ChatAction, params?: {
84
83
  messageThreadId?: number;
85
84
  }) => Promise<void>;
85
+ /** Context-aware alias for `client.editInlineMessageText()`. */
86
86
  editInlineMessageText: (text: string, params?: EditMessageParams) => Promise<void>;
87
+ /** Context-aware alias for `client.editInlineMessageReplyMarkup()`. */
87
88
  editInlineMessageReplyMarkup: (params?: EditMessageReplyMarkupParams) => Promise<void>;
88
- /** Edit a message in the chat which the message was received from. */
89
+ /** Context-aware alias for `client.editMessageText()`. */
89
90
  editMessageText: (messageId: number, text: string, params?: EditMessageParams) => Promise<MessageText>;
90
- /** Edit the reply markup of a message in the chat which the message was received from. */
91
+ /** Context-aware alias for `client.editMessageReplyMarkup()`. */
91
92
  editMessageReplyMarkup: (messageId: number, params?: EditMessageReplyMarkupParams) => Promise<Message>;
92
- /** Answer the received callback query. Bot-only. */
93
+ /** Context-aware alias for `client.answerCallbackQuery()`. */
93
94
  answerCallbackQuery: (params?: AnswerCallbackQueryParams) => Promise<void>;
94
- /** Answer the received inline query. Bot-only */
95
+ /** Context-aware alias for `client.answerInlineQuery()`. */
95
96
  answerInlineQuery: (results: InlineQueryResult[], params?: AnswerInlineQueryParams) => Promise<void>;
96
- /** Retrieve a single message of the chat which the message was received from. */
97
+ /** Context-aware alias for `client.getMessage()`. */
97
98
  getMessage: (messageId: number) => Promise<Message | null>;
98
- /** Retrieve multiple messages of the chat which the message was received from. */
99
+ /** Context-aware alias for `client.getMessages()`. */
99
100
  getMessages: (messageIds: number[]) => Promise<Message[]>;
100
- /** Forward a message of the chat which the message was received from. */
101
+ /** Context-aware alias for `client.forwardMessage()`. */
101
102
  forwardMessage: (to: ID, messageId: number, params?: ForwardMessagesParams) => Promise<Message>;
102
- /** Forward multiple messages of the chat which the message was received from. */
103
+ /** Context-aware alias for `client.forwardMessages()`. */
103
104
  forwardMessages: (to: ID, messageIds: number[], params?: ForwardMessagesParams) => Promise<Message[]>;
104
- /** Delete a message in the chat which the message was received from. */
105
+ /** Context-aware alias for `client.deleteMessage()`. */
105
106
  deleteMessage: (messageId: number, params?: DeleteMessagesParams) => Promise<void>;
106
- /** Delete multiple messages in the chat which the message was received from. */
107
+ /** Context-aware alias for `client.deleteMessages()`. */
107
108
  deleteMessages: (messageIds: number[], params?: DeleteMessagesParams) => Promise<void>;
108
- /** Pin a message in the chat which the message was received from. */
109
+ /** Context-aware alias for `client.pinMessage()`. */
109
110
  pinMessage: (messageId: number, params?: PinMessageParams) => Promise<void>;
110
- /** Unpin a message in the chat which the message was received from. */
111
+ /** Context-aware alias for `client.unpinMessage()`. */
111
112
  unpinMessage: (messageId: number) => Promise<void>;
112
- /** Unpin the pinned messages in the chat which the message was received from. */
113
- unpinMessages: (messageId: number) => Promise<void>;
114
- /** Set the available reactions of the chat which the message was received from. */
113
+ /** Context-aware alias for `client.unpinMessages()`. */
114
+ unpinMessages: () => Promise<void>;
115
+ /** Context-aware alias for `client.setAvailableReactions()`. */
115
116
  setAvailableReactions: (availableReactions: "none" | "all" | Reaction[]) => Promise<void>;
116
- /** Add a reaction to a message of the chat which the message was received from. */
117
+ /** Context-aware alias for `client.addReaction()`. */
117
118
  addReaction: (messageId: number, reaction: Reaction, params?: AddReactionParams) => Promise<void>;
118
- /** Remove a reaction from a message of the chat which the message was received from. */
119
+ /** Context-aware alias for `client.removeReaction()`. */
119
120
  removeReaction: (messageId: number, reaction: Reaction) => Promise<void>;
120
- /** Change the reactions made to a message of the chat which the message was received from. */
121
+ /** Context-aware alias for `client.setReactions()`. */
121
122
  setReactions: (messageId: number, reactions: Reaction[], params?: SetReactionsParams) => Promise<void>;
122
- /** Set the photo of the chat which the message was received from. */
123
+ /** Context-aware alias for `client.setChatPhoto()`. */
123
124
  setChatPhoto: (photo: FileSource, params?: SetChatPhotoParams) => Promise<void>;
124
- /** Delete the photo of the chat which the message was received from. */
125
+ /** Context-aware alias for `client.deleteChatPhoto()`. */
125
126
  deleteChatPhoto: () => Promise<void>;
126
- /** Ban a member from the chat which the message was received from. */
127
+ /** Context-aware alias for `client.banChatMember()`. */
127
128
  banChatMember: (memberId: ID, params?: BanChatMemberParams) => Promise<void>;
128
- /** Unban a member from the chat which the message was received from. */
129
+ /** Context-aware alias for `client.unbanChatMember()`. */
129
130
  unbanChatMember: (memberId: ID) => Promise<void>;
130
- /** Kick a member from the chat which the message was received from. */
131
+ /** Context-aware alias for `client.kickChatMember()`. */
131
132
  kickChatMember: (memberId: ID) => Promise<void>;
132
- /** Set the rights of a member of the chat which the message was received from. */
133
+ /** Context-aware alias for `client.setChatMemberRights()`. */
133
134
  setChatMemberRights: (memberId: ID, params?: SetChatMemberRightsParams) => Promise<void>;
134
- /** Delete all messages sent by a specific member of the chat which the message was received from. */
135
+ /** Context-aware alias for `client.deleteChatMemberMessages()`. */
135
136
  deleteChatMemberMessages: (userId: ID) => Promise<void>;
136
- /** Search the messages of the chat which the message was received from. */
137
+ /** Context-aware alias for `client.searchMessages()`. */
137
138
  searchMessages: (query: string, params?: SearchMessagesParams) => Promise<Message[]>;
138
- /** Set the number of boosts required to circument the chat's default restrictions. */
139
+ /** Context-aware alias for `client.setBoostsRequiredToCircumventRestrictions()`. */
139
140
  setBoostsRequiredToCircumventRestrictions: (boosts: number) => Promise<void>;
140
- /** Create an invite link for the chat which the message was received from. */
141
+ /** Context-aware alias for `client.createInviteLink()`. */
141
142
  createInviteLink: (params?: CreateInviteLinkParams) => Promise<InviteLink>;
142
- /** Get the invite links that were created for the chat which the message was received from. */
143
+ /** Context-aware alias for `client.getCreatedInviteLinks()`. */
143
144
  getCreatedInviteLinks: (params?: GetCreatedInviteLinksParams) => Promise<InviteLink[]>;
144
- /** Leave the chat which the message was received from. */
145
+ /** Context-aware alias for `client.leaveChat()`. */
145
146
  leave: () => Promise<void>;
146
- /** Block the user who sent the message. User-only. */
147
+ /** Context-aware alias for `client.blockUser()`. */
147
148
  block: () => Promise<void>;
148
- /** Unblock the user who sent the message. */
149
+ /** Context-aware alias for `client.unblockUser()`. */
149
150
  unblock: () => Promise<void>;
150
151
  toJSON: () => Update;
151
152
  }
@@ -643,7 +644,7 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
643
644
  * @param id Identifier of one or more of custom emojis.
644
645
  * @returns The custom emoji documents.
645
646
  */
646
- getCustomEmojiDocuments(id: string | string[]): Promise<Document[]>;
647
+ getCustomEmojiStickers(id: string | string[]): Promise<Sticker[]>;
647
648
  /**
648
649
  * Set a chat's available reactions.
649
650
  *
@@ -951,5 +952,28 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
951
952
  * @param userId The identifier of the user to unblock.
952
953
  */
953
954
  unblockUser(userId: ID): Promise<void>;
955
+ /**
956
+ * Get information on a user's chat membership.
957
+ *
958
+ * @method ch
959
+ * @param chatId The identifier of a chat that includes the user.
960
+ * @param userId The identifier of the user.
961
+ */
962
+ getChatMember(chatId: ID, userId: ID): Promise<ChatMember>;
963
+ /**
964
+ * Set a chat's sticker set.
965
+ *
966
+ * @method ch
967
+ * @param chatId The identifier of the chat. Must be a supergroup.
968
+ * @param setName The name of the set.
969
+ */
970
+ setChatStickerSet(chatId: ID, setName: string): Promise<void>;
971
+ /**
972
+ * Delete a chat's sticker set.
973
+ *
974
+ * @method ch
975
+ * @param chatId The identifier of the chat. Must be a supergroup.
976
+ */
977
+ deleteChatStickerSet(chatId: ID): Promise<void>;
954
978
  }
955
979
  export {};
@@ -674,7 +674,7 @@ export class Client extends ClientAbstract {
674
674
  __classPrivateFieldSet(this, _Client_callbackQueryManager, new CallbackQueryManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
675
675
  __classPrivateFieldSet(this, _Client_storyManager, new StoryManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
676
676
  __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");
677
+ __classPrivateFieldSet(this, _Client_chatListManager, new ChatListManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
678
678
  __classPrivateFieldSet(this, _Client_accountManager, new AccountManager(c), "f");
679
679
  __classPrivateFieldGet(this, _Client_updateManager, "f").setUpdateHandler(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).bind(this));
680
680
  const transportProvider = this.transportProvider;
@@ -1883,8 +1883,8 @@ export class Client extends ClientAbstract {
1883
1883
  * @param id Identifier of one or more of custom emojis.
1884
1884
  * @returns The custom emoji documents.
1885
1885
  */
1886
- async getCustomEmojiDocuments(id) {
1887
- return await __classPrivateFieldGet(this, _Client_fileManager, "f").getCustomEmojiDocuments(id);
1886
+ async getCustomEmojiStickers(id) {
1887
+ return await __classPrivateFieldGet(this, _Client_fileManager, "f").getCustomEmojiStickers(id);
1888
1888
  }
1889
1889
  /**
1890
1890
  * Set a chat's available reactions.
@@ -2275,6 +2275,35 @@ export class Client extends ClientAbstract {
2275
2275
  async unblockUser(userId) {
2276
2276
  await __classPrivateFieldGet(this, _Client_messageManager, "f").unblockUser(userId);
2277
2277
  }
2278
+ /**
2279
+ * Get information on a user's chat membership.
2280
+ *
2281
+ * @method ch
2282
+ * @param chatId The identifier of a chat that includes the user.
2283
+ * @param userId The identifier of the user.
2284
+ */
2285
+ async getChatMember(chatId, userId) {
2286
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getChatMember(chatId, userId);
2287
+ }
2288
+ /**
2289
+ * Set a chat's sticker set.
2290
+ *
2291
+ * @method ch
2292
+ * @param chatId The identifier of the chat. Must be a supergroup.
2293
+ * @param setName The name of the set.
2294
+ */
2295
+ async setChatStickerSet(chatId, setName) {
2296
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatStickerSet(chatId, setName);
2297
+ }
2298
+ /**
2299
+ * Delete a chat's sticker set.
2300
+ *
2301
+ * @method ch
2302
+ * @param chatId The identifier of the chat. Must be a supergroup.
2303
+ */
2304
+ async deleteChatStickerSet(chatId) {
2305
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatStickerSet(chatId);
2306
+ }
2278
2307
  }
2279
2308
  _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
2280
2309
  await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, update), resolve);
@@ -5,6 +5,13 @@
5
5
  * This module is browser compatible, but do not rely on good formatting of
6
6
  * values for AssertionError messages in browsers.
7
7
  *
8
+ * ```ts
9
+ * import { assert } from "https://deno.land/std@$STD_VERSION/assert/assert.ts";
10
+ *
11
+ * assert("I am truthy"); // Doesn't throw
12
+ * assert(false); // Throws `AssertionError`
13
+ * ```
14
+ *
8
15
  * @module
9
16
  */
10
17
  export * from "./assert_almost_equals.js";
@@ -6,6 +6,13 @@
6
6
  * This module is browser compatible, but do not rely on good formatting of
7
7
  * values for AssertionError messages in browsers.
8
8
  *
9
+ * ```ts
10
+ * import { assert } from "https://deno.land/std@$STD_VERSION/assert/assert.ts";
11
+ *
12
+ * assert("I am truthy"); // Doesn't throw
13
+ * assert(false); // Throws `AssertionError`
14
+ * ```
15
+ *
9
16
  * @module
10
17
  */
11
18
  export * from "./assert_almost_equals.js";
@@ -2,22 +2,22 @@
2
2
  // This module is browser compatible.
3
3
  export function _common(paths, sep) {
4
4
  const [first = "", ...remaining] = paths;
5
- if (first === "" || remaining.length === 0) {
6
- return first.substring(0, first.lastIndexOf(sep) + 1);
7
- }
8
5
  const parts = first.split(sep);
9
6
  let endOfPrefix = parts.length;
7
+ let append = "";
10
8
  for (const path of remaining) {
11
9
  const compare = path.split(sep);
10
+ if (compare.length <= endOfPrefix) {
11
+ endOfPrefix = compare.length;
12
+ append = "";
13
+ }
12
14
  for (let i = 0; i < endOfPrefix; i++) {
13
15
  if (compare[i] !== parts[i]) {
14
16
  endOfPrefix = i;
17
+ append = i === 0 ? "" : sep;
18
+ break;
15
19
  }
16
20
  }
17
- if (endOfPrefix === 0) {
18
- return "";
19
- }
20
21
  }
21
- const prefix = parts.slice(0, endOfPrefix).join(sep);
22
- return prefix.endsWith(sep) ? prefix : `${prefix}${sep}`;
22
+ return parts.slice(0, endOfPrefix).join(sep) + append;
23
23
  }