@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
@@ -1,20 +1,14 @@
1
1
  import { types } from "../2_tl.js";
2
2
  import { FileType, PhotoSourceType, serializeFileId, toUniqueFileId } from "./0__file_id.js";
3
3
  export function constructThumbnail(size, file) {
4
+ const type = file instanceof types.Photo ? FileType.Photo : FileType.Thumbnail;
4
5
  const fileType = file instanceof types.Photo ? FileType.Photo : FileType.Document;
5
- const fileId_ = file instanceof types.Photo
6
- ? {
7
- type: FileType.Photo,
8
- dcId: file.dc_id,
9
- fileReference: file.file_reference,
10
- location: { type: "photo", id: file.id, accessHash: file.access_hash, source: { type: PhotoSourceType.Thumbnail, fileType, thumbnailType: size.type.charCodeAt(0) } },
11
- }
12
- : {
13
- type: FileType.Photo,
14
- dcId: file.dc_id,
15
- fileReference: file.file_reference,
16
- location: { type: "common", id: file.id, accessHash: file.access_hash },
17
- };
6
+ const fileId_ = {
7
+ type,
8
+ dcId: file.dc_id,
9
+ fileReference: file.file_reference,
10
+ location: { type: "photo", id: file.id, accessHash: file.access_hash, source: { type: PhotoSourceType.Thumbnail, fileType, thumbnailType: size.type.charCodeAt(0) } },
11
+ };
18
12
  return {
19
13
  fileId: serializeFileId(fileId_),
20
14
  fileUniqueId: toUniqueFileId(fileId_),
@@ -37,4 +37,4 @@ export interface Sticker {
37
37
  }
38
38
  /** @unlisted */
39
39
  export type StickerSetNameGetter = (inputStickerSet: types.InputStickerSetID) => MaybePromise<string>;
40
- export declare function constructSticker(document: types.Document, fileId: string, fileUniqueId: string, getStickerSetName: StickerSetNameGetter): Promise<Sticker>;
40
+ export declare function constructSticker(document: types.Document, fileId: string, fileUniqueId: string, getStickerSetName: StickerSetNameGetter, customEmojiId?: string): Promise<Sticker>;
@@ -2,27 +2,27 @@ import { cleanObject } from "../1_utilities.js";
2
2
  import { types } from "../2_tl.js";
3
3
  import { constructMaskPosition } from "./0_mask_position.js";
4
4
  import { constructThumbnail } from "./0_thumbnail.js";
5
- export async function constructSticker(document, fileId, fileUniqueId, getStickerSetName) {
5
+ export async function constructSticker(document, fileId, fileUniqueId, getStickerSetName, customEmojiId = "") {
6
6
  const stickerAttribute = document.attributes.find((v) => v instanceof types.DocumentAttributeSticker);
7
7
  const imageSizeAttribute = document.attributes.find((v) => v instanceof types.DocumentAttributeImageSize);
8
+ const customEmojiAttribute = document.attributes.find((v) => v instanceof types.DocumentAttributeCustomEmoji);
8
9
  const videoAttribute = document.attributes.find((v) => v instanceof types.DocumentAttributeVideo);
9
10
  const setName = stickerAttribute.stickerset instanceof types.InputStickerSetID ? await getStickerSetName(stickerAttribute.stickerset) : undefined;
10
11
  return cleanObject({
11
12
  fileId,
12
13
  fileUniqueId,
13
- // TODO: custom emoji type?
14
- type: stickerAttribute.mask ? "mask" : "regular",
14
+ type: customEmojiAttribute ? "customEmoji" : stickerAttribute.mask ? "mask" : "regular",
15
15
  width: imageSizeAttribute ? imageSizeAttribute.w : videoAttribute ? videoAttribute.w : 512,
16
16
  height: imageSizeAttribute ? imageSizeAttribute.h : videoAttribute ? videoAttribute.h : 512,
17
17
  isAnimated: document.mime_type == "application/x-tgsticker",
18
18
  isVideo: document.mime_type == "video/webm",
19
19
  thumbnails: document.thumbs ? document.thumbs.map((v) => v instanceof types.PhotoSize ? constructThumbnail(v, document) : null).filter((v) => v) : [],
20
- emoji: stickerAttribute.alt || undefined,
20
+ emoji: (customEmojiAttribute ? customEmojiAttribute.alt : stickerAttribute.alt) || undefined,
21
21
  setName,
22
22
  premiumAnimation: undefined,
23
23
  maskPosition: stickerAttribute.mask_coords ? constructMaskPosition(stickerAttribute.mask_coords) : undefined,
24
- customEmojiId: undefined,
25
- needsRepainting: undefined,
24
+ customEmojiId: customEmojiAttribute ? customEmojiId : undefined,
25
+ needsRepainting: customEmojiAttribute ? Boolean(customEmojiAttribute.text_color) : undefined,
26
26
  fileSize: Number(document.size),
27
27
  });
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/node",
3
- "version": "0.1.162",
3
+ "version": "0.1.170",
4
4
  "description": "MTKruto for Node.js",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -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/script/0_deps.js CHANGED
@@ -27,12 +27,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Parser = exports.gzip = exports.gunzip = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.factorize = exports.ctr256 = exports.extension = exports.contentType = exports.encodeBase64 = exports.decodeBase64 = exports.path = void 0;
30
- __exportStar(require("./deps/deno.land/std@0.218.0/assert/mod.js"), exports);
31
- exports.path = __importStar(require("./deps/deno.land/std@0.218.0/path/mod.js"));
32
- var base64_js_1 = require("./deps/deno.land/std@0.218.0/encoding/base64.js");
30
+ __exportStar(require("./deps/deno.land/std@0.219.0/assert/mod.js"), exports);
31
+ exports.path = __importStar(require("./deps/deno.land/std@0.219.0/path/mod.js"));
32
+ var base64_js_1 = require("./deps/deno.land/std@0.219.0/encoding/base64.js");
33
33
  Object.defineProperty(exports, "decodeBase64", { enumerable: true, get: function () { return base64_js_1.decodeBase64; } });
34
34
  Object.defineProperty(exports, "encodeBase64", { enumerable: true, get: function () { return base64_js_1.encodeBase64; } });
35
- const content_type_js_1 = require("./deps/deno.land/std@0.218.0/media_types/content_type.js");
35
+ const content_type_js_1 = require("./deps/deno.land/std@0.219.0/media_types/content_type.js");
36
36
  const contentType = (extentionOrType) => {
37
37
  if (extentionOrType == "tgs") {
38
38
  return "application/x-tgsticker";
@@ -42,7 +42,7 @@ const contentType = (extentionOrType) => {
42
42
  }
43
43
  };
44
44
  exports.contentType = contentType;
45
- const extension_js_1 = require("./deps/deno.land/std@0.218.0/media_types/extension.js");
45
+ const extension_js_1 = require("./deps/deno.land/std@0.219.0/media_types/extension.js");
46
46
  function extension(mimeType) {
47
47
  if (mimeType == "application/x-tgsticker") {
48
48
  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 = "";
@@ -79,7 +79,7 @@ exports.PUBLIC_KEYS = Object.freeze([
79
79
  ]);
80
80
  exports.INITIAL_DC = "2";
81
81
  exports.LAYER = 176;
82
- exports.APP_VERSION = "MTKruto 0.1.160";
82
+ exports.APP_VERSION = "MTKruto 0.1.170";
83
83
  // @ts-ignore: lib
84
84
  exports.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;
85
85
  exports.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
  }
@@ -13,10 +13,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
13
  var _FileManager_instances, _FileManager_c, _FileManager_Lupload, _FileManager_downloadInner;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.FileManager = void 0;
16
- const _0_deps_js_1 = require("../0_deps.js");
17
16
  const _1_utilities_js_1 = require("../1_utilities.js");
18
17
  const _2_tl_js_1 = require("../2_tl.js");
19
18
  const _3_types_js_1 = require("../3_types.js");
19
+ const _4_constants_js_1 = require("../4_constants.js");
20
20
  const _4_errors_js_1 = require("../4_errors.js");
21
21
  const _0_types_js_1 = require("./0_types.js");
22
22
  class FileManager {
@@ -129,6 +129,18 @@ class FileManager {
129
129
  }
130
130
  break;
131
131
  }
132
+ case _3_types_js_1.FileType.Thumbnail: {
133
+ const location = new _2_tl_js_1.types.InputDocumentFileLocation({
134
+ id: fileId_.location.id,
135
+ access_hash: fileId_.location.accessHash,
136
+ file_reference: fileId_.fileReference ?? new Uint8Array(),
137
+ thumb_size: "thumbnailType" in fileId_.location.source ? String.fromCharCode(fileId_.location.source.thumbnailType) : (0, _1_utilities_js_1.UNREACHABLE)(),
138
+ });
139
+ for await (const chunk of __classPrivateFieldGet(this, _FileManager_instances, "m", _FileManager_downloadInner).call(this, location, fileId_.dcId, params)) {
140
+ yield chunk;
141
+ }
142
+ break;
143
+ }
132
144
  }
133
145
  }
134
146
  else if (fileId_.location.type == "common") {
@@ -146,14 +158,26 @@ class FileManager {
146
158
  (0, _1_utilities_js_1.UNREACHABLE)();
147
159
  }
148
160
  }
149
- async getCustomEmojiDocuments(id) {
161
+ async getStickerSetName(inputStickerSet, hash = 0) {
162
+ const maybeStickerSetName = await __classPrivateFieldGet(this, _FileManager_c, "f").messageStorage.getStickerSetName(inputStickerSet.id, inputStickerSet.access_hash);
163
+ if (maybeStickerSetName != null && Date.now() - maybeStickerSetName[1].getTime() < _4_constants_js_1.STICKER_SET_NAME_TTL) {
164
+ return maybeStickerSetName[0];
165
+ }
166
+ else {
167
+ const stickerSet = await __classPrivateFieldGet(this, _FileManager_c, "f").api.messages.getStickerSet({ stickerset: inputStickerSet, hash });
168
+ const name = stickerSet[_2_tl_js_1.as](_2_tl_js_1.types.messages.StickerSet).set.short_name;
169
+ await __classPrivateFieldGet(this, _FileManager_c, "f").messageStorage.updateStickerSetName(inputStickerSet.id, inputStickerSet.access_hash, name);
170
+ return name;
171
+ }
172
+ }
173
+ async getCustomEmojiStickers(id) {
150
174
  id = Array.isArray(id) ? id : [id];
151
175
  if (!id.length) {
152
176
  throw new Error("No custom emoji ID provided");
153
177
  }
154
- const documents = new Array();
178
+ const stickers = new Array();
155
179
  let shouldFetch = false;
156
- for (const [i, id_] of id.entries()) {
180
+ for (const id_ of id) {
157
181
  const maybeDocument = await __classPrivateFieldGet(this, _FileManager_c, "f").messageStorage.getCustomEmojiDocument(BigInt(id_));
158
182
  if (maybeDocument != null && Date.now() - maybeDocument[1].getTime() <= 30 * 60 * 1000) {
159
183
  const document_ = maybeDocument[0];
@@ -165,8 +189,8 @@ class FileManager {
165
189
  };
166
190
  const fileUniqueId = (0, _3_types_js_1.toUniqueFileId)(fileId_);
167
191
  const fileId = (0, _3_types_js_1.serializeFileId)(fileId_);
168
- const document = (0, _3_types_js_1.constructDocument)(document_, new _2_tl_js_1.types.DocumentAttributeFilename({ file_name: `${id[i] ?? "customEmoji"}.${(0, _0_deps_js_1.extension)(document_.mime_type)}` }), fileId, fileUniqueId);
169
- documents.push(document);
192
+ const sticker = await (0, _3_types_js_1.constructSticker)(document_, fileId, fileUniqueId, this.getStickerSetName.bind(this), id_);
193
+ stickers.push(sticker);
170
194
  }
171
195
  else {
172
196
  shouldFetch = true;
@@ -174,7 +198,7 @@ class FileManager {
174
198
  }
175
199
  }
176
200
  if (!shouldFetch) {
177
- return documents;
201
+ return stickers;
178
202
  }
179
203
  const documents_ = await __classPrivateFieldGet(this, _FileManager_c, "f").api.messages.getCustomEmojiDocuments({ document_id: id.map(BigInt) }).then((v) => v.map((v) => v[_2_tl_js_1.as](_2_tl_js_1.types.Document)));
180
204
  for (const [i, document_] of documents_.entries()) {
@@ -187,10 +211,10 @@ class FileManager {
187
211
  };
188
212
  const fileUniqueId = (0, _3_types_js_1.toUniqueFileId)(fileId_);
189
213
  const fileId = (0, _3_types_js_1.serializeFileId)(fileId_);
190
- const document = (0, _3_types_js_1.constructDocument)(document_, new _2_tl_js_1.types.DocumentAttributeFilename({ file_name: `${id[i] ?? "customEmoji"}.${(0, _0_deps_js_1.extension)(document_.mime_type)}` }), fileId, fileUniqueId);
191
- documents.push(document);
214
+ const sticker = await (0, _3_types_js_1.constructSticker)(document_, fileId, fileUniqueId, this.getStickerSetName.bind(this), id[i]);
215
+ stickers.push(sticker);
192
216
  }
193
- return documents;
217
+ return stickers;
194
218
  }
195
219
  }
196
220
  exports.FileManager = FileManager;
@@ -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 {};
@@ -18,7 +18,6 @@ const _1_utilities_js_1 = require("../1_utilities.js");
18
18
  const _2_tl_js_1 = require("../2_tl.js");
19
19
  const _3_types_js_1 = require("../3_types.js");
20
20
  const _3_types_js_2 = require("../3_types.js");
21
- const _4_constants_js_1 = require("../4_constants.js");
22
21
  const _0_message_search_filter_js_1 = require("../types/0_message_search_filter.js");
23
22
  const _0_html_js_1 = require("./0_html.js");
24
23
  const _0_utilities_js_1 = require("./0_utilities.js");
@@ -110,20 +109,8 @@ class MessageManager {
110
109
  const entities = entities_?.length > 0 ? await Promise.all(entities_.map((v) => (0, _3_types_js_2.messageEntityToTlObject)(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity))) : undefined;
111
110
  return [text, entities];
112
111
  }
113
- async getStickerSetName(inputStickerSet, hash = 0) {
114
- const maybeStickerSetName = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getStickerSetName(inputStickerSet.id, inputStickerSet.access_hash);
115
- if (maybeStickerSetName != null && Date.now() - maybeStickerSetName[1].getTime() < _4_constants_js_1.STICKER_SET_NAME_TTL) {
116
- return maybeStickerSetName[0];
117
- }
118
- else {
119
- const stickerSet = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getStickerSet({ stickerset: inputStickerSet, hash });
120
- const name = stickerSet[_2_tl_js_1.as](_2_tl_js_1.types.messages.StickerSet).set.short_name;
121
- await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.updateStickerSetName(inputStickerSet.id, inputStickerSet.access_hash, name);
122
- return name;
123
- }
124
- }
125
112
  async constructMessage(message_, r) {
126
- return await (0, _3_types_js_2.constructMessage)(message_, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity, this.getMessage.bind(this), this.getStickerSetName.bind(this), r);
113
+ return await (0, _3_types_js_2.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);
127
114
  }
128
115
  async forwardMessages(from, to, messageIds, params) {
129
116
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.forwardMessages({
@@ -971,6 +958,33 @@ class MessageManager {
971
958
  }
972
959
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.contacts.unblock({ id });
973
960
  }
961
+ async getChatMember(chatId, userId) {
962
+ const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
963
+ if (peer instanceof _2_tl_js_1.types.InputPeerChannel) {
964
+ const { participant } = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.getParticipant({
965
+ channel: new _2_tl_js_1.types.InputChannel(peer),
966
+ participant: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(userId),
967
+ });
968
+ return await (0, _3_types_js_2.constructChatMember)(participant, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
969
+ }
970
+ else if (peer instanceof _2_tl_js_1.types.InputPeerChat) {
971
+ const user = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputUser(userId);
972
+ const fullChat = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getFullChat(peer).then((v) => v.full_chat[_2_tl_js_1.as](_2_tl_js_1.types.ChatFull));
973
+ const participant = fullChat.participants[_2_tl_js_1.as](_2_tl_js_1.types.ChatParticipants).participants.find((v) => v.user_id == user.user_id);
974
+ return await (0, _3_types_js_2.constructChatMember)(participant, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
975
+ }
976
+ else {
977
+ throw new Error("Invalid chat ID");
978
+ }
979
+ }
980
+ async setChatStickerSet(chatId, setName) {
981
+ const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
982
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.setStickers({ channel, stickerset: new _2_tl_js_1.types.InputStickerSetShortName({ short_name: setName }) });
983
+ }
984
+ async deleteChatStickerSet(chatId) {
985
+ const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
986
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.setStickers({ channel, stickerset: new _2_tl_js_1.types.InputStickerSetEmpty() });
987
+ }
974
988
  }
975
989
  exports.MessageManager = MessageManager;
976
990
  _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
@@ -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;
@@ -438,7 +438,7 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
438
438
  }
439
439
  const chats = __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getChatList).call(this, listId);
440
440
  for (const dialog of dialogs.dialogs) {
441
- const chat = await (0, _3_types_js_1.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));
441
+ const chat = await (0, _3_types_js_1.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));
442
442
  chats.set(chat.id, chat);
443
443
  await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setChat(listId, chat.id, chat.pinned, chat.lastMessage?.id ?? 0, chat.lastMessage?.date ?? new Date(0));
444
444
  }
@@ -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 {};