@mtkruto/node 0.1.161 → 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.
- package/esm/0_deps.d.ts +4 -4
- package/esm/0_deps.js +5 -5
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/1_file_manager.d.ts +4 -2
- package/esm/client/1_file_manager.js +35 -11
- package/esm/client/2_message_manager.d.ts +3 -1
- package/esm/client/2_message_manager.js +28 -14
- package/esm/client/3_chat_list_manager.d.ts +2 -0
- package/esm/client/3_chat_list_manager.js +1 -1
- package/esm/client/4_client.d.ts +82 -58
- package/esm/client/4_client.js +32 -3
- package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/mod.d.ts +7 -0
- package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/mod.js +7 -0
- package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/common.js +8 -8
- package/esm/types/0__file_id.js +1 -1
- package/esm/types/0_thumbnail.js +7 -13
- package/esm/types/1_sticker.d.ts +1 -1
- package/esm/types/1_sticker.js +6 -6
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -4
- package/script/0_deps.js +5 -5
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/1_file_manager.d.ts +4 -2
- package/script/client/1_file_manager.js +34 -10
- package/script/client/2_message_manager.d.ts +3 -1
- package/script/client/2_message_manager.js +28 -14
- package/script/client/3_chat_list_manager.d.ts +2 -0
- package/script/client/3_chat_list_manager.js +1 -1
- package/script/client/4_client.d.ts +82 -58
- package/script/client/4_client.js +32 -3
- package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/mod.d.ts +7 -0
- package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/mod.js +7 -0
- package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/common.js +8 -8
- package/script/types/0__file_id.js +1 -1
- package/script/types/0_thumbnail.js +7 -13
- package/script/types/1_sticker.d.ts +1 -1
- package/script/types/1_sticker.js +6 -6
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/base64.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/type_by_extension.js +0 -0
- /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
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/encoding/base64.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/type_by_extension.js +0 -0
- /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
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.219.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /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.
|
|
2
|
-
export * as path from "./deps/deno.land/std@0.
|
|
3
|
-
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.
|
|
4
|
-
import { contentType as contentType_ } from "./deps/deno.land/std@0.
|
|
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.
|
|
2
|
-
export * as path from "./deps/deno.land/std@0.
|
|
3
|
-
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.
|
|
4
|
-
import { contentType as contentType_ } from "./deps/deno.land/std@0.
|
|
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.
|
|
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";
|
package/esm/4_constants.d.ts
CHANGED
|
@@ -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.
|
|
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 = "";
|
package/esm/4_constants.js
CHANGED
|
@@ -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.
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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
|
|
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
|
|
175
|
+
const stickers = new Array();
|
|
152
176
|
let shouldFetch = false;
|
|
153
|
-
for (const
|
|
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
|
|
166
|
-
|
|
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
|
|
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
|
|
188
|
-
|
|
211
|
+
const sticker = await constructSticker(document_, fileId, fileUniqueId, this.getStickerSetName.bind(this), id[i]);
|
|
212
|
+
stickers.push(sticker);
|
|
189
213
|
}
|
|
190
|
-
return
|
|
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").
|
|
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
|
}
|
package/esm/client/4_client.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
37
|
+
/** Context-aware alias for `client.sendMessage()`. */
|
|
39
38
|
reply: (text: string, params?: Omit<SendMessageParams, "replyToMessageId"> & ReplyParams) => Promise<MessageText>;
|
|
40
|
-
/**
|
|
39
|
+
/** Context-aware alias for `client.sendPoll()`. */
|
|
41
40
|
replyPoll: (question: string, options: [string, string, ...string[]], params?: Omit<SendPollParams, "replyToMessageId"> & ReplyParams) => Promise<MessagePoll>;
|
|
42
|
-
/**
|
|
41
|
+
/** Context-aware alias for `client.sendPhoto()`. */
|
|
43
42
|
replyPhoto: (photo: FileSource, params?: Omit<SendPhotoParams, "replyToMessageId"> & ReplyParams) => Promise<MessagePhoto>;
|
|
44
|
-
/**
|
|
43
|
+
/** Context-aware alias for `client.sendDocument()`. */
|
|
45
44
|
replyDocument: (document: FileSource, params?: Omit<SendDocumentParams, "replyToMessageId"> & ReplyParams) => Promise<MessageDocument>;
|
|
46
|
-
/**
|
|
45
|
+
/** Context-aware alias for `client.sendLocation()`. */
|
|
47
46
|
replyLocation: (latitude: number, longitude: number, params?: Omit<SendLocationParams, "replyToMessageId"> & ReplyParams) => Promise<MessageLocation>;
|
|
48
|
-
/**
|
|
47
|
+
/** Context-aware alias for `client.sendDice()`. */
|
|
49
48
|
replyDice: (params?: Omit<SendDiceParams, "replyToMessageId"> & ReplyParams) => Promise<MessageDice>;
|
|
50
|
-
/**
|
|
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
|
-
/**
|
|
51
|
+
/** Context-aware alias for `client.sendContact()`. */
|
|
53
52
|
replyContact: (firstName: string, number: string, params?: Omit<SendContactParams, "replyToMessageId"> & ReplyParams) => Promise<MessageContact>;
|
|
54
|
-
/**
|
|
53
|
+
/** Context-aware alias for `client.sendVideo()`. */
|
|
55
54
|
replyVideo: (video: FileSource, params?: Omit<SendVideoParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVideo>;
|
|
56
|
-
/**
|
|
55
|
+
/** Context-aware alias for `client.sendAnimation()`. */
|
|
57
56
|
replyAnimation: (animation: FileSource, params?: Omit<SendAnimationParams, "replyToMessageId"> & ReplyParams) => Promise<MessageAnimation>;
|
|
58
|
-
/**
|
|
57
|
+
/** Context-aware alias for `client.sendVoice()`. */
|
|
59
58
|
replyVoice: (voice: FileSource, params?: Omit<SendVoiceParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVoice>;
|
|
60
|
-
/**
|
|
59
|
+
/** Context-aware alias for `client.sendAudio()`. */
|
|
61
60
|
replyAudio: (audio: FileSource, params?: Omit<SendAudioParams, "replyToMessageId"> & ReplyParams) => Promise<MessageAudio>;
|
|
62
|
-
/**
|
|
61
|
+
/** Context-aware alias for `client.sendPoll()`. */
|
|
63
62
|
replyVideoNote: (videoNote: FileSource, params?: Omit<SendVideoNoteParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVideoNote>;
|
|
64
|
-
/**
|
|
63
|
+
/** Context-aware alias for `client.deleteMessage()`. */
|
|
65
64
|
delete: () => Promise<void>;
|
|
66
|
-
/**
|
|
65
|
+
/** Context-aware alias for `client.forwardMessage()`. */
|
|
67
66
|
forward: (to: ID, params?: ForwardMessagesParams) => Promise<this["msg"]>;
|
|
68
|
-
/**
|
|
67
|
+
/** Context-aware alias for `client.pinMessage()`. */
|
|
69
68
|
pin: (params?: PinMessageParams) => Promise<void>;
|
|
70
|
-
/**
|
|
69
|
+
/** Context-aware alias for `client.unpinMessage()`. */
|
|
71
70
|
unpin: (params?: PinMessageParams) => Promise<void>;
|
|
72
|
-
/**
|
|
71
|
+
/** Context-aware alias for `client.banChatMember()`. */
|
|
73
72
|
banSender: (params?: BanChatMemberParams) => Promise<void>;
|
|
74
|
-
/**
|
|
73
|
+
/** Context-aware alias for `client.kickChatMember()`. */
|
|
75
74
|
kickSender: () => Promise<void>;
|
|
76
|
-
/**
|
|
75
|
+
/** Context-aware alias for `client.setChatMemberRights()`. */
|
|
77
76
|
setSenderRights: (params?: SetChatMemberRightsParams) => Promise<void>;
|
|
78
|
-
/**
|
|
77
|
+
/** Context-aware alias for `client.getChatAdministrators()`. */
|
|
79
78
|
getChatAdministrators: () => Promise<ChatMember[]>;
|
|
80
|
-
/**
|
|
79
|
+
/** Context-aware alias for `client.setReactions()`. */
|
|
81
80
|
react: (reactions: Reaction[], params?: SetReactionsParams) => Promise<void>;
|
|
82
|
-
/**
|
|
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
|
-
/**
|
|
89
|
+
/** Context-aware alias for `client.editMessageText()`. */
|
|
89
90
|
editMessageText: (messageId: number, text: string, params?: EditMessageParams) => Promise<MessageText>;
|
|
90
|
-
/**
|
|
91
|
+
/** Context-aware alias for `client.editMessageReplyMarkup()`. */
|
|
91
92
|
editMessageReplyMarkup: (messageId: number, params?: EditMessageReplyMarkupParams) => Promise<Message>;
|
|
92
|
-
/**
|
|
93
|
+
/** Context-aware alias for `client.answerCallbackQuery()`. */
|
|
93
94
|
answerCallbackQuery: (params?: AnswerCallbackQueryParams) => Promise<void>;
|
|
94
|
-
/**
|
|
95
|
+
/** Context-aware alias for `client.answerInlineQuery()`. */
|
|
95
96
|
answerInlineQuery: (results: InlineQueryResult[], params?: AnswerInlineQueryParams) => Promise<void>;
|
|
96
|
-
/**
|
|
97
|
+
/** Context-aware alias for `client.getMessage()`. */
|
|
97
98
|
getMessage: (messageId: number) => Promise<Message | null>;
|
|
98
|
-
/**
|
|
99
|
+
/** Context-aware alias for `client.getMessages()`. */
|
|
99
100
|
getMessages: (messageIds: number[]) => Promise<Message[]>;
|
|
100
|
-
/**
|
|
101
|
+
/** Context-aware alias for `client.forwardMessage()`. */
|
|
101
102
|
forwardMessage: (to: ID, messageId: number, params?: ForwardMessagesParams) => Promise<Message>;
|
|
102
|
-
/**
|
|
103
|
+
/** Context-aware alias for `client.forwardMessages()`. */
|
|
103
104
|
forwardMessages: (to: ID, messageIds: number[], params?: ForwardMessagesParams) => Promise<Message[]>;
|
|
104
|
-
/**
|
|
105
|
+
/** Context-aware alias for `client.deleteMessage()`. */
|
|
105
106
|
deleteMessage: (messageId: number, params?: DeleteMessagesParams) => Promise<void>;
|
|
106
|
-
/**
|
|
107
|
+
/** Context-aware alias for `client.deleteMessages()`. */
|
|
107
108
|
deleteMessages: (messageIds: number[], params?: DeleteMessagesParams) => Promise<void>;
|
|
108
|
-
/**
|
|
109
|
+
/** Context-aware alias for `client.pinMessage()`. */
|
|
109
110
|
pinMessage: (messageId: number, params?: PinMessageParams) => Promise<void>;
|
|
110
|
-
/**
|
|
111
|
+
/** Context-aware alias for `client.unpinMessage()`. */
|
|
111
112
|
unpinMessage: (messageId: number) => Promise<void>;
|
|
112
|
-
/**
|
|
113
|
-
unpinMessages: (
|
|
114
|
-
/**
|
|
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
|
-
/**
|
|
117
|
+
/** Context-aware alias for `client.addReaction()`. */
|
|
117
118
|
addReaction: (messageId: number, reaction: Reaction, params?: AddReactionParams) => Promise<void>;
|
|
118
|
-
/**
|
|
119
|
+
/** Context-aware alias for `client.removeReaction()`. */
|
|
119
120
|
removeReaction: (messageId: number, reaction: Reaction) => Promise<void>;
|
|
120
|
-
/**
|
|
121
|
+
/** Context-aware alias for `client.setReactions()`. */
|
|
121
122
|
setReactions: (messageId: number, reactions: Reaction[], params?: SetReactionsParams) => Promise<void>;
|
|
122
|
-
/**
|
|
123
|
+
/** Context-aware alias for `client.setChatPhoto()`. */
|
|
123
124
|
setChatPhoto: (photo: FileSource, params?: SetChatPhotoParams) => Promise<void>;
|
|
124
|
-
/**
|
|
125
|
+
/** Context-aware alias for `client.deleteChatPhoto()`. */
|
|
125
126
|
deleteChatPhoto: () => Promise<void>;
|
|
126
|
-
/**
|
|
127
|
+
/** Context-aware alias for `client.banChatMember()`. */
|
|
127
128
|
banChatMember: (memberId: ID, params?: BanChatMemberParams) => Promise<void>;
|
|
128
|
-
/**
|
|
129
|
+
/** Context-aware alias for `client.unbanChatMember()`. */
|
|
129
130
|
unbanChatMember: (memberId: ID) => Promise<void>;
|
|
130
|
-
/**
|
|
131
|
+
/** Context-aware alias for `client.kickChatMember()`. */
|
|
131
132
|
kickChatMember: (memberId: ID) => Promise<void>;
|
|
132
|
-
/**
|
|
133
|
+
/** Context-aware alias for `client.setChatMemberRights()`. */
|
|
133
134
|
setChatMemberRights: (memberId: ID, params?: SetChatMemberRightsParams) => Promise<void>;
|
|
134
|
-
/**
|
|
135
|
+
/** Context-aware alias for `client.deleteChatMemberMessages()`. */
|
|
135
136
|
deleteChatMemberMessages: (userId: ID) => Promise<void>;
|
|
136
|
-
/**
|
|
137
|
+
/** Context-aware alias for `client.searchMessages()`. */
|
|
137
138
|
searchMessages: (query: string, params?: SearchMessagesParams) => Promise<Message[]>;
|
|
138
|
-
/**
|
|
139
|
+
/** Context-aware alias for `client.setBoostsRequiredToCircumventRestrictions()`. */
|
|
139
140
|
setBoostsRequiredToCircumventRestrictions: (boosts: number) => Promise<void>;
|
|
140
|
-
/**
|
|
141
|
+
/** Context-aware alias for `client.createInviteLink()`. */
|
|
141
142
|
createInviteLink: (params?: CreateInviteLinkParams) => Promise<InviteLink>;
|
|
142
|
-
/**
|
|
143
|
+
/** Context-aware alias for `client.getCreatedInviteLinks()`. */
|
|
143
144
|
getCreatedInviteLinks: (params?: GetCreatedInviteLinksParams) => Promise<InviteLink[]>;
|
|
144
|
-
/**
|
|
145
|
+
/** Context-aware alias for `client.leaveChat()`. */
|
|
145
146
|
leave: () => Promise<void>;
|
|
146
|
-
/**
|
|
147
|
+
/** Context-aware alias for `client.blockUser()`. */
|
|
147
148
|
block: () => Promise<void>;
|
|
148
|
-
/**
|
|
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
|
-
|
|
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 {};
|
package/esm/client/4_client.js
CHANGED
|
@@ -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
|
|
1887
|
-
return await __classPrivateFieldGet(this, _Client_fileManager, "f").
|
|
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
|
-
|
|
22
|
-
return prefix.endsWith(sep) ? prefix : `${prefix}${sep}`;
|
|
22
|
+
return parts.slice(0, endOfPrefix).join(sep) + append;
|
|
23
23
|
}
|