@mtkruto/node 0.1.183 → 0.1.190
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/0_html.js +0 -6
- package/esm/client/0_markdown.d.ts +21 -0
- package/esm/client/0_markdown.js +321 -0
- package/esm/client/0_params.d.ts +16 -0
- package/esm/client/1_client_encrypted.js +2 -0
- package/esm/client/2_message_manager.d.ts +7 -2
- package/esm/client/2_message_manager.js +98 -7
- package/esm/client/4_client.d.ts +49 -4
- package/esm/client/4_client.js +109 -46
- package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.d.ts +13 -1
- package/esm/deps/deno.land/{std@0.220.1/path/windows → std@0.221.0/path}/basename.d.ts +9 -0
- package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/basename.js +9 -0
- package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.d.ts +3 -1
- package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.js +3 -1
- package/esm/deps/deno.land/std@0.221.0/path/parse.d.ts +18 -0
- package/esm/deps/deno.land/std@0.221.0/path/parse.js +24 -0
- package/esm/deps/deno.land/{std@0.220.1/path → std@0.221.0/path/windows}/basename.d.ts +9 -0
- package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/basename.js +9 -0
- package/esm/storage/0_storage.d.ts +3 -0
- package/esm/storage/0_storage.js +26 -11
- package/esm/types/0_message_entity.d.ts +1 -0
- package/esm/types/0_message_entity.js +34 -0
- package/esm/types/0_parse_mode.d.ts +1 -1
- 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/0_html.js +0 -6
- package/script/client/0_markdown.d.ts +21 -0
- package/script/client/0_markdown.js +325 -0
- package/script/client/0_params.d.ts +16 -0
- package/script/client/1_client_encrypted.js +2 -0
- package/script/client/2_message_manager.d.ts +7 -2
- package/script/client/2_message_manager.js +98 -7
- package/script/client/4_client.d.ts +49 -4
- package/script/client/4_client.js +108 -45
- package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.d.ts +13 -1
- package/script/deps/deno.land/std@0.221.0/path/basename.d.ts +17 -0
- package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/basename.js +9 -0
- package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.d.ts +3 -1
- package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.js +3 -1
- package/script/deps/deno.land/std@0.221.0/path/parse.d.ts +18 -0
- package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/parse.js +13 -1
- package/script/deps/deno.land/std@0.221.0/path/windows/basename.d.ts +17 -0
- package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/basename.js +9 -0
- package/script/storage/0_storage.d.ts +3 -0
- package/script/storage/0_storage.js +26 -11
- package/script/types/0_message_entity.d.ts +1 -0
- package/script/types/0_message_entity.js +36 -1
- package/script/types/0_parse_mode.d.ts +1 -1
- package/esm/deps/deno.land/std@0.220.1/path/parse.d.ts +0 -6
- package/esm/deps/deno.land/std@0.220.1/path/parse.js +0 -12
- package/script/deps/deno.land/std@0.220.1/path/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.220.1/path/parse.d.ts +0 -6
- package/script/deps/deno.land/std@0.220.1/path/windows/basename.d.ts +0 -8
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.js +0 -0
|
@@ -20,7 +20,10 @@ const _3_types_js_1 = require("../3_types.js");
|
|
|
20
20
|
const _3_types_js_2 = require("../3_types.js");
|
|
21
21
|
const _0_message_search_filter_js_1 = require("../types/0_message_search_filter.js");
|
|
22
22
|
const _0_html_js_1 = require("./0_html.js");
|
|
23
|
+
const _0_markdown_js_1 = require("./0_markdown.js");
|
|
23
24
|
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
25
|
+
const FALLBACK_MIME_TYPE = "application/octet-stream";
|
|
26
|
+
const STICKER_MIME_TYPES = ["image/webp", "video/webp", "application/x-tgsticker"];
|
|
24
27
|
class MessageManager {
|
|
25
28
|
constructor(c) {
|
|
26
29
|
_MessageManager_instances.add(this);
|
|
@@ -89,9 +92,7 @@ class MessageManager {
|
|
|
89
92
|
const messages = await this.getMessages(chatId, [messageId]);
|
|
90
93
|
return messages[0] ?? null;
|
|
91
94
|
}
|
|
92
|
-
|
|
93
|
-
const entities_ = params?.entities ?? [];
|
|
94
|
-
const parseMode = params?.parseMode ?? __classPrivateFieldGet(this, _MessageManager_c, "f").parseMode;
|
|
95
|
+
static parseText(text, entities, parseMode) {
|
|
95
96
|
switch (parseMode) {
|
|
96
97
|
case null:
|
|
97
98
|
break;
|
|
@@ -99,13 +100,31 @@ class MessageManager {
|
|
|
99
100
|
const [newText, entitiesToPush] = (0, _0_html_js_1.parseHtml)(text);
|
|
100
101
|
text = newText;
|
|
101
102
|
for (const entity of entitiesToPush) {
|
|
102
|
-
|
|
103
|
+
entities.push(entity);
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
case "Markdown": {
|
|
108
|
+
const [newText, entitiesToPush] = (0, _0_markdown_js_1.parseMarkdown)(text);
|
|
109
|
+
text = newText;
|
|
110
|
+
for (const entity of entitiesToPush) {
|
|
111
|
+
entities.push(entity);
|
|
103
112
|
}
|
|
104
113
|
break;
|
|
105
114
|
}
|
|
106
115
|
default:
|
|
107
116
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
108
117
|
}
|
|
118
|
+
text = text.trimEnd();
|
|
119
|
+
for (const entity of entities) {
|
|
120
|
+
while (text[entity.offset + (entity.length - 1)] === undefined) {
|
|
121
|
+
--entity.length;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return [text, entities];
|
|
125
|
+
}
|
|
126
|
+
async parseText(text_, params) {
|
|
127
|
+
const [text, entities_] = MessageManager.parseText(text_, params?.entities ?? [], params?.parseMode ?? __classPrivateFieldGet(this, _MessageManager_c, "f").parseMode);
|
|
109
128
|
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;
|
|
110
129
|
return [text, entities];
|
|
111
130
|
}
|
|
@@ -388,6 +407,10 @@ class MessageManager {
|
|
|
388
407
|
const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, document, params, _3_types_js_2.FileType.Document, []);
|
|
389
408
|
return (0, _3_types_js_2.assertMessageType)(message, "document");
|
|
390
409
|
}
|
|
410
|
+
async sendSticker(chatId, sticker, params) {
|
|
411
|
+
const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, sticker, params, _3_types_js_2.FileType.Sticker, [new _2_tl_js_1.types.DocumentAttributeSticker({ alt: params?.emoji || "", stickerset: new _2_tl_js_1.types.InputStickerSetEmpty() })], undefined, STICKER_MIME_TYPES);
|
|
412
|
+
return (0, _3_types_js_2.assertMessageType)(message, "sticker");
|
|
413
|
+
}
|
|
391
414
|
async sendPhoto(chatId, photo, params) {
|
|
392
415
|
let media = null;
|
|
393
416
|
const spoiler = params?.hasSpoiler ? true : undefined;
|
|
@@ -986,6 +1009,66 @@ class MessageManager {
|
|
|
986
1009
|
const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
|
|
987
1010
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.setStickers({ channel, stickerset: new _2_tl_js_1.types.InputStickerSetEmpty() });
|
|
988
1011
|
}
|
|
1012
|
+
async stopPoll(chatId, messageId, params) {
|
|
1013
|
+
const message = await this.getMessage(chatId, messageId);
|
|
1014
|
+
if (message && "poll" in message && !message.poll.isClosed) {
|
|
1015
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
|
|
1016
|
+
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
1017
|
+
id: messageId,
|
|
1018
|
+
media: new _2_tl_js_1.types.InputMediaPoll({
|
|
1019
|
+
poll: new _2_tl_js_1.types.Poll({
|
|
1020
|
+
id: BigInt(message.poll.id),
|
|
1021
|
+
closed: true,
|
|
1022
|
+
question: "",
|
|
1023
|
+
answers: [],
|
|
1024
|
+
}),
|
|
1025
|
+
}),
|
|
1026
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
1027
|
+
});
|
|
1028
|
+
const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
1029
|
+
return (0, _3_types_js_2.assertMessageType)(message_, "poll").poll;
|
|
1030
|
+
}
|
|
1031
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
1032
|
+
}
|
|
1033
|
+
async editMessageLiveLocation(chatId, messageId, latitude, longitude, params) {
|
|
1034
|
+
const message = await this.getMessage(chatId, messageId);
|
|
1035
|
+
if (message && "location" in message && message.location.livePeriod) {
|
|
1036
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
|
|
1037
|
+
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
1038
|
+
id: messageId,
|
|
1039
|
+
media: new _2_tl_js_1.types.InputMediaGeoLive({
|
|
1040
|
+
geo_point: new _2_tl_js_1.types.InputGeoPoint({
|
|
1041
|
+
lat: latitude,
|
|
1042
|
+
long: longitude,
|
|
1043
|
+
accuracy_radius: params?.horizontalAccuracy,
|
|
1044
|
+
}),
|
|
1045
|
+
heading: params?.heading,
|
|
1046
|
+
proximity_notification_radius: params?.proximityAlertRadius,
|
|
1047
|
+
}),
|
|
1048
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
1049
|
+
});
|
|
1050
|
+
const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
1051
|
+
return (0, _3_types_js_2.assertMessageType)(message, "location");
|
|
1052
|
+
}
|
|
1053
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
1054
|
+
}
|
|
1055
|
+
async editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params) {
|
|
1056
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertBot("editInlineMessageLiveLocation");
|
|
1057
|
+
const id = (0, _3_types_js_2.deserializeInlineMessageId)(inlineMessageId);
|
|
1058
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
|
|
1059
|
+
id,
|
|
1060
|
+
media: new _2_tl_js_1.types.InputMediaGeoLive({
|
|
1061
|
+
geo_point: new _2_tl_js_1.types.InputGeoPoint({
|
|
1062
|
+
lat: latitude,
|
|
1063
|
+
long: longitude,
|
|
1064
|
+
accuracy_radius: params?.horizontalAccuracy,
|
|
1065
|
+
}),
|
|
1066
|
+
heading: params?.heading,
|
|
1067
|
+
proximity_notification_radius: params?.proximityAlertRadius,
|
|
1068
|
+
}),
|
|
1069
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
989
1072
|
}
|
|
990
1073
|
exports.MessageManager = MessageManager;
|
|
991
1074
|
_MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
|
|
@@ -1025,7 +1108,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1025
1108
|
const topMsgId = params?.messageThreadId;
|
|
1026
1109
|
const replyToMsgId = params?.replyToMessageId;
|
|
1027
1110
|
return replyToMsgId !== undefined ? new _2_tl_js_1.types.InputReplyToMessage({ reply_to_msg_id: replyToMsgId, top_msg_id: topMsgId, quote_text: params?.replyQuote?.text, quote_entities: await Promise.all(params?.replyQuote?.entities.map((v) => (0, _3_types_js_2.messageEntityToTlObject)(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity)) ?? []), quote_offset: params?.replyQuote?.offset }) : undefined;
|
|
1028
|
-
}, _MessageManager_sendDocumentInner = async function _MessageManager_sendDocumentInner(chatId, document, params, fileType, otherAttribs, urlSupported = false) {
|
|
1111
|
+
}, _MessageManager_sendDocumentInner = async function _MessageManager_sendDocumentInner(chatId, document, params, fileType, otherAttribs, urlSupported = false, expectedMimeTypes) {
|
|
1029
1112
|
let media = null;
|
|
1030
1113
|
const spoiler = params?.hasSpoiler ? true : undefined;
|
|
1031
1114
|
if (typeof document === "string") {
|
|
@@ -1034,6 +1117,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1034
1117
|
media = new _2_tl_js_1.types.InputMediaDocument({
|
|
1035
1118
|
id: new _2_tl_js_1.types.InputDocument(fileId),
|
|
1036
1119
|
spoiler,
|
|
1120
|
+
query: otherAttribs.find((v) => v instanceof _2_tl_js_1.types.DocumentAttributeSticker)?.alt || undefined,
|
|
1037
1121
|
});
|
|
1038
1122
|
}
|
|
1039
1123
|
}
|
|
@@ -1046,8 +1130,14 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1046
1130
|
}
|
|
1047
1131
|
else {
|
|
1048
1132
|
const [contents, fileName_] = await (0, _0_utilities_js_1.getFileContents)(document);
|
|
1049
|
-
|
|
1050
|
-
const mimeType = params?.mimeType ?? (0, _0_deps_js_1.contentType)(fileName.split(".").slice(-1)[0]) ??
|
|
1133
|
+
let fileName = params?.fileName ?? fileName_;
|
|
1134
|
+
const mimeType = params?.mimeType ?? (0, _0_deps_js_1.contentType)(fileName.split(".").slice(-1)[0]) ?? FALLBACK_MIME_TYPE;
|
|
1135
|
+
if (expectedMimeTypes && !expectedMimeTypes.includes(mimeType)) {
|
|
1136
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
1137
|
+
}
|
|
1138
|
+
if (fileName.endsWith(".tgs") && fileType == _3_types_js_2.FileType.Document) {
|
|
1139
|
+
fileName += "-";
|
|
1140
|
+
}
|
|
1051
1141
|
const file = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(contents, { fileName, chunkSize: params?.chunkSize, signal: params?.signal });
|
|
1052
1142
|
let thumb = undefined;
|
|
1053
1143
|
if (params?.thumbnail) {
|
|
@@ -1060,6 +1150,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1060
1150
|
spoiler,
|
|
1061
1151
|
attributes: [new _2_tl_js_1.types.DocumentAttributeFilename({ file_name: fileName }), ...otherAttribs],
|
|
1062
1152
|
mime_type: mimeType,
|
|
1153
|
+
force_file: fileType == _3_types_js_2.FileType.Document ? true : undefined,
|
|
1063
1154
|
});
|
|
1064
1155
|
}
|
|
1065
1156
|
}
|
|
@@ -2,9 +2,9 @@ import { MaybePromise } from "../1_utilities.js";
|
|
|
2
2
|
import { enums, functions, types } from "../2_tl.js";
|
|
3
3
|
import { Storage } from "../3_storage.js";
|
|
4
4
|
import { DC } from "../3_transport.js";
|
|
5
|
-
import { BotCommand, Chat, ChatAction, ChatMember, ChatP, FileSource, ID, InactiveChat, InlineQueryResult, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Reaction, Sticker, Story, Update, User } from "../3_types.js";
|
|
5
|
+
import { BotCommand, Chat, ChatAction, ChatMember, ChatP, FileSource, ID, InactiveChat, InlineQueryResult, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Poll, Reaction, Sticker, Story, Update, User } from "../3_types.js";
|
|
6
6
|
import { Migrate } from "../4_errors.js";
|
|
7
|
-
import { AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeleteMessageParams, DeleteMessagesParams, DownloadParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, PinMessageParams, ReplyParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, UploadParams } from "./0_params.js";
|
|
7
|
+
import { AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeleteMessageParams, DeleteMessagesParams, DownloadParams, EditMessageLiveLocationParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, PinMessageParams, ReplyParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, StopPollParams, UploadParams } from "./0_params.js";
|
|
8
8
|
import { Api } from "./0_types.js";
|
|
9
9
|
import { ClientPlainParams } from "./1_client_plain.js";
|
|
10
10
|
import { Composer as Composer_, NextFunction } from "./1_composer.js";
|
|
@@ -29,6 +29,8 @@ export interface Context {
|
|
|
29
29
|
replyPhoto: (photo: FileSource, params?: Omit<SendPhotoParams, "replyToMessageId"> & ReplyParams) => Promise<MessagePhoto>;
|
|
30
30
|
/** Context-aware alias for `client.sendDocument()`. */
|
|
31
31
|
replyDocument: (document: FileSource, params?: Omit<SendDocumentParams, "replyToMessageId"> & ReplyParams) => Promise<MessageDocument>;
|
|
32
|
+
/** Context-aware alias for `client.sendSticker()`. */
|
|
33
|
+
replySticker: (sticker: FileSource, params?: Omit<SendStickerParams, "replyToMessageId"> & ReplyParams) => Promise<MessageSticker>;
|
|
32
34
|
/** Context-aware alias for `client.sendLocation()`. */
|
|
33
35
|
replyLocation: (latitude: number, longitude: number, params?: Omit<SendLocationParams, "replyToMessageId"> & ReplyParams) => Promise<MessageLocation>;
|
|
34
36
|
/** Context-aware alias for `client.sendDice()`. */
|
|
@@ -71,10 +73,14 @@ export interface Context {
|
|
|
71
73
|
}) => Promise<void>;
|
|
72
74
|
/** Context-aware alias for `client.editInlineMessageText()`. */
|
|
73
75
|
editInlineMessageText: (text: string, params?: EditMessageParams) => Promise<void>;
|
|
76
|
+
/** Context-aware alias for `client.editInlineMessageLiveLocation()`. */
|
|
77
|
+
editInlineMessageLiveLocation: (latitude: number, longitude: number, params?: EditMessageLiveLocationParams) => Promise<void>;
|
|
74
78
|
/** Context-aware alias for `client.editInlineMessageReplyMarkup()`. */
|
|
75
79
|
editInlineMessageReplyMarkup: (params?: EditMessageReplyMarkupParams) => Promise<void>;
|
|
76
80
|
/** Context-aware alias for `client.editMessageText()`. */
|
|
77
81
|
editMessageText: (messageId: number, text: string, params?: EditMessageParams) => Promise<MessageText>;
|
|
82
|
+
/** Context-aware alias for `client.editMessageLiveLocation()`. */
|
|
83
|
+
editMessageLiveLocation: (messageId: number, latitude: number, longitude: number, params?: EditMessageLiveLocationParams) => Promise<MessageLocation>;
|
|
78
84
|
/** Context-aware alias for `client.editMessageReplyMarkup()`. */
|
|
79
85
|
editMessageReplyMarkup: (messageId: number, params?: EditMessageReplyMarkupParams) => Promise<Message>;
|
|
80
86
|
/** Context-aware alias for `client.answerCallbackQuery()`. */
|
|
@@ -301,7 +307,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
301
307
|
* Edit a message's text.
|
|
302
308
|
*
|
|
303
309
|
* @method ms
|
|
304
|
-
* @param chatId The identifier of the chat that contains the
|
|
310
|
+
* @param chatId The identifier of the chat that contains the message.
|
|
305
311
|
* @param messageId The message's identifier.
|
|
306
312
|
* @param text The new text of the message.
|
|
307
313
|
* @returns The edited text message.
|
|
@@ -319,7 +325,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
319
325
|
* Edit a message's reply markup.
|
|
320
326
|
*
|
|
321
327
|
* @method ms
|
|
322
|
-
* @param chatId The identifier of the chat that contains the
|
|
328
|
+
* @param chatId The identifier of the chat that contains the message.
|
|
323
329
|
* @param messageId The message's identifier.
|
|
324
330
|
* @returns The edited message.
|
|
325
331
|
*/
|
|
@@ -331,6 +337,27 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
331
337
|
* @param inlineMessageId The inline message's identifier.
|
|
332
338
|
*/
|
|
333
339
|
editInlineMessageReplyMarkup(inlineMessageId: string, params?: EditMessageReplyMarkupParams): Promise<void>;
|
|
340
|
+
/**
|
|
341
|
+
* Edit a message's live location.
|
|
342
|
+
*
|
|
343
|
+
* @method ms
|
|
344
|
+
* @param chatId The identifier of the chat that contains the messages.
|
|
345
|
+
* @param messageId The message's identifier.
|
|
346
|
+
* @param latitude The new latitude.
|
|
347
|
+
* @param longitude The new longitude.
|
|
348
|
+
* @returns The edited location message.
|
|
349
|
+
*/
|
|
350
|
+
editMessageLiveLocation(chatId: ID, messageId: number, latitude: number, longitude: number, params?: EditMessageLiveLocationParams): Promise<MessageLocation>;
|
|
351
|
+
/**
|
|
352
|
+
* Edit an inline message's live location. Bot-only.
|
|
353
|
+
*
|
|
354
|
+
* @method ms
|
|
355
|
+
* @param inlineMessageId The inline message's identifier.
|
|
356
|
+
* @param latitude The new latitude.
|
|
357
|
+
* @param longitude The new longitude.
|
|
358
|
+
* @returns The edited location message.
|
|
359
|
+
*/
|
|
360
|
+
editInlineMessageLiveLocation(inlineMessageId: string, latitude: number, longitude: number, params?: EditMessageLiveLocationParams): Promise<void>;
|
|
334
361
|
/**
|
|
335
362
|
* Retrieve multiple messages.
|
|
336
363
|
*
|
|
@@ -411,6 +438,15 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
411
438
|
* @returns The sent poll.
|
|
412
439
|
*/
|
|
413
440
|
sendPoll(chatId: ID, question: string, options: [string, string, ...string[]], params?: SendPollParams): Promise<MessagePoll>;
|
|
441
|
+
/**
|
|
442
|
+
* Stop a poll.
|
|
443
|
+
*
|
|
444
|
+
* @method ms
|
|
445
|
+
* @param chatId The chat that includes the poll.
|
|
446
|
+
* @param messageId The idenfifier of the poll's message.
|
|
447
|
+
* @returns The new state of the poll.
|
|
448
|
+
*/
|
|
449
|
+
stopPoll(chatId: ID, messageId: number, params?: StopPollParams): Promise<Poll>;
|
|
414
450
|
/**
|
|
415
451
|
* Send a chat action.
|
|
416
452
|
*
|
|
@@ -540,6 +576,15 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
540
576
|
* @returns The sent document.
|
|
541
577
|
*/
|
|
542
578
|
sendDocument(chatId: ID, document: FileSource, params?: SendDocumentParams): Promise<MessageDocument>;
|
|
579
|
+
/**
|
|
580
|
+
* Send a sticker.
|
|
581
|
+
*
|
|
582
|
+
* @method ms
|
|
583
|
+
* @param chatId The chat to send the sticker to.
|
|
584
|
+
* @param document The sticker to send.
|
|
585
|
+
* @returns The sent sticker.
|
|
586
|
+
*/
|
|
587
|
+
sendSticker(chatId: ID, sticker: FileSource, params?: SendStickerParams): Promise<MessageSticker>;
|
|
543
588
|
/**
|
|
544
589
|
* Send a video.
|
|
545
590
|
*
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _Client_instances, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_ignoreOutgoing, _Client_storeMessages,
|
|
13
|
+
var _Client_instances, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_ignoreOutgoing, _Client_storeMessages, _Client_Lauthorize, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_namespaceProxies, _Client_getApiId, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_pingLoopStarted, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Client = exports.handleMigrationError = exports.restartAuth = exports.Composer = void 0;
|
|
16
16
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
@@ -138,7 +138,6 @@ class Client extends Composer {
|
|
|
138
138
|
_Client_publicKeys.set(this, void 0);
|
|
139
139
|
_Client_ignoreOutgoing.set(this, void 0);
|
|
140
140
|
_Client_storeMessages.set(this, void 0);
|
|
141
|
-
_Client_L.set(this, void 0);
|
|
142
141
|
_Client_Lauthorize.set(this, void 0);
|
|
143
142
|
_Client_LpingLoop.set(this, void 0);
|
|
144
143
|
_Client_LhandleMigrationError.set(this, void 0);
|
|
@@ -282,6 +281,11 @@ class Client extends Composer {
|
|
|
282
281
|
const replyToMessageId = getReplyToMessageId(params?.quote, chatId, messageId);
|
|
283
282
|
return this.sendDocument(chatId, document, { ...params, replyToMessageId });
|
|
284
283
|
},
|
|
284
|
+
replySticker: (sticker, params) => {
|
|
285
|
+
const { chatId, messageId } = mustGetMsg();
|
|
286
|
+
const replyToMessageId = getReplyToMessageId(params?.quote, chatId, messageId);
|
|
287
|
+
return this.sendSticker(chatId, sticker, { ...params, replyToMessageId });
|
|
288
|
+
},
|
|
285
289
|
replyContact: (firstName, number, params) => {
|
|
286
290
|
const { chatId, messageId } = mustGetMsg();
|
|
287
291
|
const replyToMessageId = getReplyToMessageId(params?.quote, chatId, messageId);
|
|
@@ -392,6 +396,10 @@ class Client extends Composer {
|
|
|
392
396
|
const inlineMessageId = mustGetInlineMsgId();
|
|
393
397
|
return this.editInlineMessageText(inlineMessageId, text, params);
|
|
394
398
|
},
|
|
399
|
+
editInlineMessageLiveLocation: (latitude, longitude, params) => {
|
|
400
|
+
const inlineMessageId = mustGetInlineMsgId();
|
|
401
|
+
return this.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
|
|
402
|
+
},
|
|
395
403
|
editInlineMessageReplyMarkup: (params) => {
|
|
396
404
|
const inlineMessageId = mustGetInlineMsgId();
|
|
397
405
|
return this.editInlineMessageReplyMarkup(inlineMessageId, params);
|
|
@@ -400,6 +408,10 @@ class Client extends Composer {
|
|
|
400
408
|
const { chatId } = mustGetMsg();
|
|
401
409
|
return this.editMessageText(chatId, messageId, text, params);
|
|
402
410
|
},
|
|
411
|
+
editMessageLiveLocation: (messageId, latitude, longitude, params) => {
|
|
412
|
+
const { chatId } = mustGetMsg();
|
|
413
|
+
return this.editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
|
|
414
|
+
},
|
|
403
415
|
editMessageReplyMarkup: (messageId, params) => {
|
|
404
416
|
const { chatId } = mustGetMsg();
|
|
405
417
|
return this.editMessageReplyMarkup(chatId, messageId, params);
|
|
@@ -535,7 +547,6 @@ class Client extends Composer {
|
|
|
535
547
|
_Client_storageInited.set(this, false);
|
|
536
548
|
_Client_connectionInited.set(this, false);
|
|
537
549
|
_Client_lastPropagatedAuthorizationState.set(this, null);
|
|
538
|
-
_Client_selfId.set(this, null);
|
|
539
550
|
_Client_pingLoopStarted.set(this, false);
|
|
540
551
|
_Client_pingLoopAbortController.set(this, null);
|
|
541
552
|
_Client_pingInterval.set(this, 60 * 1000); // 60 seconds
|
|
@@ -620,7 +631,7 @@ class Client extends Composer {
|
|
|
620
631
|
this.prefixes = params?.prefixes;
|
|
621
632
|
}
|
|
622
633
|
__classPrivateFieldSet(this, _Client_guaranteeUpdateDelivery, params?.guaranteeUpdateDelivery ?? false, "f");
|
|
623
|
-
const L =
|
|
634
|
+
const L = (0, _1_utilities_js_1.getLogger)("Client").client(id++);
|
|
624
635
|
__classPrivateFieldSet(this, _Client_Lauthorize, L.branch("authorize"), "f");
|
|
625
636
|
__classPrivateFieldSet(this, _Client_LpingLoop, L.branch("pingLoop"), "f");
|
|
626
637
|
__classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
|
|
@@ -678,7 +689,6 @@ class Client extends Composer {
|
|
|
678
689
|
}
|
|
679
690
|
await client.setDc(dc);
|
|
680
691
|
}
|
|
681
|
-
await __classPrivateFieldGet(client, _Client_instances, "m", _Client_initConnection).call(client);
|
|
682
692
|
},
|
|
683
693
|
disconnect: client.disconnect.bind(client),
|
|
684
694
|
};
|
|
@@ -799,10 +809,10 @@ class Client extends Composer {
|
|
|
799
809
|
await __classPrivateFieldGet(this, _Client_client, "f").connect();
|
|
800
810
|
await Promise.all([this.storage.setAuthKey(__classPrivateFieldGet(this, _Client_client, "f").authKey), this.storage.setDc(__classPrivateFieldGet(this, _Client_client, "f").dc), this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_client, "f").serverSalt)]);
|
|
801
811
|
}
|
|
802
|
-
reconnect(dc) {
|
|
803
|
-
|
|
812
|
+
async reconnect(dc) {
|
|
813
|
+
await __classPrivateFieldGet(this, _Client_client, "f").reconnect(dc);
|
|
804
814
|
}
|
|
805
|
-
async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_storeMessages = new WeakMap(),
|
|
815
|
+
async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_Lauthorize = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_getApiId = async function _Client_getApiId() {
|
|
806
816
|
const apiId = this.apiId || await this.storage.getApiId();
|
|
807
817
|
if (!apiId) {
|
|
808
818
|
throw new Error("apiId not set");
|
|
@@ -850,7 +860,6 @@ class Client extends Composer {
|
|
|
850
860
|
* [2]: https://core.telegram.org/method/updates.getState
|
|
851
861
|
*/
|
|
852
862
|
async authorize(params) {
|
|
853
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
|
|
854
863
|
try {
|
|
855
864
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
856
865
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
@@ -881,14 +890,13 @@ class Client extends Composer {
|
|
|
881
890
|
while (true) {
|
|
882
891
|
try {
|
|
883
892
|
const auth = await this.api.auth.importBotAuthorization({ api_id: apiId, api_hash: this.apiHash, bot_auth_token: params, flags: 0 });
|
|
884
|
-
|
|
893
|
+
await this.storage.setAccountId(Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id));
|
|
885
894
|
await this.storage.setAccountType("bot");
|
|
886
895
|
break;
|
|
887
896
|
}
|
|
888
897
|
catch (err) {
|
|
889
898
|
if (err instanceof _4_errors_js_1.Migrate) {
|
|
890
899
|
await this[exports.handleMigrationError](err);
|
|
891
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
|
|
892
900
|
continue;
|
|
893
901
|
}
|
|
894
902
|
else {
|
|
@@ -925,7 +933,6 @@ class Client extends Composer {
|
|
|
925
933
|
catch (err) {
|
|
926
934
|
if (err instanceof _4_errors_js_1.Migrate) {
|
|
927
935
|
await this[exports.handleMigrationError](err);
|
|
928
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
|
|
929
936
|
sentCode = await sendCode();
|
|
930
937
|
}
|
|
931
938
|
else {
|
|
@@ -953,7 +960,7 @@ class Client extends Composer {
|
|
|
953
960
|
phone_code: code,
|
|
954
961
|
phone_code_hash: sentCode.phone_code_hash,
|
|
955
962
|
});
|
|
956
|
-
|
|
963
|
+
await this.storage.setAccountId(Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id));
|
|
957
964
|
await this.storage.setAccountType("user");
|
|
958
965
|
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as user");
|
|
959
966
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
@@ -982,7 +989,7 @@ class Client extends Composer {
|
|
|
982
989
|
const password = typeof params.password === "string" ? params.password : await params.password(ap.hint ?? null);
|
|
983
990
|
const input = await (0, _0_password_js_1.checkPassword)(password, ap);
|
|
984
991
|
const auth = await this.api.auth.checkPassword({ password: input });
|
|
985
|
-
|
|
992
|
+
await this.storage.setAccountId(Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id));
|
|
986
993
|
await this.storage.setAccountType("user");
|
|
987
994
|
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as user");
|
|
988
995
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
@@ -1035,7 +1042,7 @@ class Client extends Composer {
|
|
|
1035
1042
|
* @param id The identifier of the chat.
|
|
1036
1043
|
*/
|
|
1037
1044
|
async getInputPeer(id) {
|
|
1038
|
-
if (id === "me") {
|
|
1045
|
+
if (id === "me" || id == await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) {
|
|
1039
1046
|
return new _2_tl_js_1.types.InputPeerSelf();
|
|
1040
1047
|
}
|
|
1041
1048
|
const inputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerInner).call(this, id);
|
|
@@ -1073,34 +1080,17 @@ class Client extends Composer {
|
|
|
1073
1080
|
}
|
|
1074
1081
|
return new _2_tl_js_1.types.InputUser(inputPeer);
|
|
1075
1082
|
}
|
|
1076
|
-
async [(
|
|
1077
|
-
if (!__classPrivateFieldGet(this, _Client_connectionInited, "f")) {
|
|
1078
|
-
await this.api.initConnection({
|
|
1079
|
-
api_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this),
|
|
1080
|
-
app_version: this.appVersion,
|
|
1081
|
-
device_model: this.deviceModel,
|
|
1082
|
-
lang_code: this.langCode,
|
|
1083
|
-
lang_pack: this.langPack,
|
|
1084
|
-
query: new _2_tl_js_1.functions.invokeWithLayer({
|
|
1085
|
-
layer: _4_constants_js_1.LAYER,
|
|
1086
|
-
query: new _2_tl_js_1.functions.help.getConfig(),
|
|
1087
|
-
}),
|
|
1088
|
-
system_lang_code: this.systemLangCode,
|
|
1089
|
-
system_version: this.systemVersion,
|
|
1090
|
-
});
|
|
1091
|
-
__classPrivateFieldSet(this, _Client_connectionInited, true, "f");
|
|
1092
|
-
__classPrivateFieldGet(this, _Client_L$initConncetion, "f").debug("connection inited");
|
|
1093
|
-
}
|
|
1094
|
-
}, _Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
|
|
1083
|
+
async [(_Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
|
|
1095
1084
|
if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") != authorized) {
|
|
1096
1085
|
await this.middleware()(await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { authorizationState: { authorized } }), _0_utilities_js_1.resolve);
|
|
1097
1086
|
__classPrivateFieldSet(this, _Client_lastPropagatedAuthorizationState, authorized, "f");
|
|
1098
1087
|
}
|
|
1099
1088
|
}, _Client_getSelfId = async function _Client_getSelfId() {
|
|
1100
|
-
|
|
1101
|
-
|
|
1089
|
+
const id = await this.storage.getAccountId();
|
|
1090
|
+
if (id == null) {
|
|
1091
|
+
throw new Error("Unauthorized");
|
|
1102
1092
|
}
|
|
1103
|
-
return
|
|
1093
|
+
return id;
|
|
1104
1094
|
}, _Client_startPingLoop = function _Client_startPingLoop() {
|
|
1105
1095
|
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
|
|
1106
1096
|
}, _Client_pingLoop = async function _Client_pingLoop() {
|
|
@@ -1134,10 +1124,34 @@ class Client extends Composer {
|
|
|
1134
1124
|
let n = 1;
|
|
1135
1125
|
while (true) {
|
|
1136
1126
|
try {
|
|
1137
|
-
|
|
1127
|
+
if (function_ instanceof _2_tl_js_1.functions.Function && !__classPrivateFieldGet(this, _Client_connectionInited, "f")) {
|
|
1128
|
+
const result = await __classPrivateFieldGet(this, _Client_client, "f").invoke(new _2_tl_js_1.functions.initConnection({
|
|
1129
|
+
api_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this),
|
|
1130
|
+
app_version: this.appVersion,
|
|
1131
|
+
device_model: this.deviceModel,
|
|
1132
|
+
lang_code: this.langCode,
|
|
1133
|
+
lang_pack: this.langPack,
|
|
1134
|
+
query: new _2_tl_js_1.functions.invokeWithLayer({
|
|
1135
|
+
layer: _4_constants_js_1.LAYER,
|
|
1136
|
+
query: function_,
|
|
1137
|
+
}),
|
|
1138
|
+
system_lang_code: this.systemLangCode,
|
|
1139
|
+
system_version: this.systemVersion,
|
|
1140
|
+
}), noWait);
|
|
1141
|
+
__classPrivateFieldSet(this, _Client_connectionInited, true, "f");
|
|
1142
|
+
__classPrivateFieldGet(this, _Client_L$initConncetion, "f").debug("connection inited");
|
|
1143
|
+
return result;
|
|
1144
|
+
}
|
|
1145
|
+
else {
|
|
1146
|
+
return await __classPrivateFieldGet(this, _Client_client, "f").invoke(function_, noWait);
|
|
1147
|
+
}
|
|
1138
1148
|
}
|
|
1139
1149
|
catch (err) {
|
|
1140
|
-
if (
|
|
1150
|
+
if (err instanceof _4_errors_js_1.ConnectionNotInited) {
|
|
1151
|
+
__classPrivateFieldSet(this, _Client_connectionInited, false, "f");
|
|
1152
|
+
continue;
|
|
1153
|
+
}
|
|
1154
|
+
else if (await __classPrivateFieldGet(this, _Client_handleInvokeError, "f").call(this, Object.freeze({ client: this, error: err, function: function_, n: n++ }), () => Promise.resolve(false))) {
|
|
1141
1155
|
continue;
|
|
1142
1156
|
}
|
|
1143
1157
|
else {
|
|
@@ -1245,7 +1259,7 @@ class Client extends Composer {
|
|
|
1245
1259
|
* Edit a message's text.
|
|
1246
1260
|
*
|
|
1247
1261
|
* @method ms
|
|
1248
|
-
* @param chatId The identifier of the chat that contains the
|
|
1262
|
+
* @param chatId The identifier of the chat that contains the message.
|
|
1249
1263
|
* @param messageId The message's identifier.
|
|
1250
1264
|
* @param text The new text of the message.
|
|
1251
1265
|
* @returns The edited text message.
|
|
@@ -1267,7 +1281,7 @@ class Client extends Composer {
|
|
|
1267
1281
|
* Edit a message's reply markup.
|
|
1268
1282
|
*
|
|
1269
1283
|
* @method ms
|
|
1270
|
-
* @param chatId The identifier of the chat that contains the
|
|
1284
|
+
* @param chatId The identifier of the chat that contains the message.
|
|
1271
1285
|
* @param messageId The message's identifier.
|
|
1272
1286
|
* @returns The edited message.
|
|
1273
1287
|
*/
|
|
@@ -1283,6 +1297,31 @@ class Client extends Composer {
|
|
|
1283
1297
|
async editInlineMessageReplyMarkup(inlineMessageId, params) {
|
|
1284
1298
|
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageReplyMarkup(inlineMessageId, params);
|
|
1285
1299
|
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Edit a message's live location.
|
|
1302
|
+
*
|
|
1303
|
+
* @method ms
|
|
1304
|
+
* @param chatId The identifier of the chat that contains the messages.
|
|
1305
|
+
* @param messageId The message's identifier.
|
|
1306
|
+
* @param latitude The new latitude.
|
|
1307
|
+
* @param longitude The new longitude.
|
|
1308
|
+
* @returns The edited location message.
|
|
1309
|
+
*/
|
|
1310
|
+
async editMessageLiveLocation(chatId, messageId, latitude, longitude, params) {
|
|
1311
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* Edit an inline message's live location. Bot-only.
|
|
1315
|
+
*
|
|
1316
|
+
* @method ms
|
|
1317
|
+
* @param inlineMessageId The inline message's identifier.
|
|
1318
|
+
* @param latitude The new latitude.
|
|
1319
|
+
* @param longitude The new longitude.
|
|
1320
|
+
* @returns The edited location message.
|
|
1321
|
+
*/
|
|
1322
|
+
async editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params) {
|
|
1323
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
|
|
1324
|
+
}
|
|
1286
1325
|
/**
|
|
1287
1326
|
* Retrieve multiple messages.
|
|
1288
1327
|
*
|
|
@@ -1358,11 +1397,13 @@ class Client extends Composer {
|
|
|
1358
1397
|
* @method ac
|
|
1359
1398
|
*/
|
|
1360
1399
|
async getMe() {
|
|
1361
|
-
|
|
1362
|
-
if (
|
|
1363
|
-
(
|
|
1400
|
+
let user_ = await this[getEntity](new _2_tl_js_1.types.PeerUser({ user_id: BigInt(await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) }));
|
|
1401
|
+
if (user_ == null) {
|
|
1402
|
+
const users = await this.api.users.getUsers({ id: [new _2_tl_js_1.types.InputUserSelf()] });
|
|
1403
|
+
user_ = users[0][_2_tl_js_1.as](_2_tl_js_1.types.User);
|
|
1404
|
+
await this.messageStorage.setEntity(user_);
|
|
1364
1405
|
}
|
|
1365
|
-
const user = (0, _3_types_js_1.constructUser)(
|
|
1406
|
+
const user = (0, _3_types_js_1.constructUser)(user_);
|
|
1366
1407
|
__classPrivateFieldSet(this, _Client_lastGetMe, user, "f");
|
|
1367
1408
|
return user;
|
|
1368
1409
|
}
|
|
@@ -1387,6 +1428,17 @@ class Client extends Composer {
|
|
|
1387
1428
|
async sendPoll(chatId, question, options, params) {
|
|
1388
1429
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendPoll(chatId, question, options, params);
|
|
1389
1430
|
}
|
|
1431
|
+
/**
|
|
1432
|
+
* Stop a poll.
|
|
1433
|
+
*
|
|
1434
|
+
* @method ms
|
|
1435
|
+
* @param chatId The chat that includes the poll.
|
|
1436
|
+
* @param messageId The idenfifier of the poll's message.
|
|
1437
|
+
* @returns The new state of the poll.
|
|
1438
|
+
*/
|
|
1439
|
+
async stopPoll(chatId, messageId, params) {
|
|
1440
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").stopPoll(chatId, messageId, params);
|
|
1441
|
+
}
|
|
1390
1442
|
/**
|
|
1391
1443
|
* Send a chat action.
|
|
1392
1444
|
*
|
|
@@ -1530,6 +1582,17 @@ class Client extends Composer {
|
|
|
1530
1582
|
async sendDocument(chatId, document, params) {
|
|
1531
1583
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendDocument(chatId, document, params);
|
|
1532
1584
|
}
|
|
1585
|
+
/**
|
|
1586
|
+
* Send a sticker.
|
|
1587
|
+
*
|
|
1588
|
+
* @method ms
|
|
1589
|
+
* @param chatId The chat to send the sticker to.
|
|
1590
|
+
* @param document The sticker to send.
|
|
1591
|
+
* @returns The sent sticker.
|
|
1592
|
+
*/
|
|
1593
|
+
async sendSticker(chatId, sticker, params) {
|
|
1594
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendSticker(chatId, sticker, params);
|
|
1595
|
+
}
|
|
1533
1596
|
/**
|
|
1534
1597
|
* Send a video.
|
|
1535
1598
|
*
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A parsed path object generated by path.parse() or consumed by path.format().
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { parse } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
7
|
+
*
|
|
8
|
+
* const parsedPathObj = parse("c:\\path\\dir\\index.html");
|
|
9
|
+
* parsedPathObj.root; // "c:\\"
|
|
10
|
+
* parsedPathObj.dir; // "c:\\path\\dir"
|
|
11
|
+
* parsedPathObj.base; // "index.html"
|
|
12
|
+
* parsedPathObj.ext; // ".html"
|
|
13
|
+
* parsedPathObj.name; // "index"
|
|
14
|
+
* ```
|
|
3
15
|
*/
|
|
4
16
|
export interface ParsedPath {
|
|
5
17
|
/**
|
|
@@ -7,7 +19,7 @@ export interface ParsedPath {
|
|
|
7
19
|
*/
|
|
8
20
|
root: string;
|
|
9
21
|
/**
|
|
10
|
-
* The full directory path such as '/home/user/dir' or 'c:\path\dir'
|
|
22
|
+
* The full directory path of the parent such as '/home/user/dir' or 'c:\path\dir'
|
|
11
23
|
*/
|
|
12
24
|
dir: string;
|
|
13
25
|
/**
|