@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.
- 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_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_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/types/0_thumbnail.js
CHANGED
|
@@ -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_ =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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_),
|
package/esm/types/1_sticker.d.ts
CHANGED
|
@@ -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>;
|
package/esm/types/1_sticker.js
CHANGED
|
@@ -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
|
-
|
|
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
package/script/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/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.
|
|
31
|
-
exports.path = __importStar(require("./deps/deno.land/std@0.
|
|
32
|
-
var base64_js_1 = require("./deps/deno.land/std@0.
|
|
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.
|
|
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.
|
|
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";
|
package/script/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/script/4_constants.js
CHANGED
|
@@ -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.
|
|
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 {
|
|
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
|
}
|
|
@@ -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
|
|
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
|
|
178
|
+
const stickers = new Array();
|
|
155
179
|
let shouldFetch = false;
|
|
156
|
-
for (const
|
|
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
|
|
169
|
-
|
|
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
|
|
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
|
|
191
|
-
|
|
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
|
|
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").
|
|
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
|
-
/**
|
|
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 {};
|