@mtkruto/node 0.1.183 → 0.1.191
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/0_errors.d.ts +12 -0
- package/esm/0_errors.js +19 -0
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_client_abstract.js +3 -2
- package/esm/client/0_html.js +4 -9
- package/esm/client/0_markdown.d.ts +21 -0
- package/esm/client/0_markdown.js +322 -0
- package/esm/client/0_params.d.ts +16 -0
- package/esm/client/0_types.d.ts +0 -2
- package/esm/client/0_types.js +1 -2
- package/esm/client/0_utilities.js +2 -1
- package/esm/client/1_client_encrypted.js +3 -1
- package/esm/client/1_client_plain.js +3 -4
- package/esm/client/1_composer.js +3 -2
- package/esm/client/1_file_manager.js +4 -4
- package/esm/client/2_message_manager.d.ts +7 -2
- package/esm/client/2_message_manager.js +121 -32
- package/esm/client/3_chat_list_manager.js +3 -2
- package/esm/client/3_story_manager.js +2 -1
- package/esm/client/4_client.d.ts +50 -5
- package/esm/client/4_client.js +121 -49
- 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/mod.d.ts +1 -0
- package/esm/mod.js +1 -0
- package/esm/storage/0_storage.d.ts +3 -0
- package/esm/storage/0_storage.js +26 -11
- package/esm/types/0__file_id.js +2 -1
- package/esm/types/0_chat_photo.d.ts +1 -0
- package/esm/types/0_chat_photo.js +7 -4
- 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/esm/types/5_callback_query.js +2 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -4
- package/script/0_deps.js +5 -5
- package/script/0_errors.d.ts +12 -0
- package/script/0_errors.js +27 -0
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_client_abstract.js +3 -2
- package/script/client/0_html.js +4 -9
- package/script/client/0_markdown.d.ts +21 -0
- package/script/client/0_markdown.js +326 -0
- package/script/client/0_params.d.ts +16 -0
- package/script/client/0_types.d.ts +0 -2
- package/script/client/0_types.js +0 -4
- package/script/client/0_utilities.js +2 -1
- package/script/client/1_client_encrypted.js +4 -2
- package/script/client/1_client_plain.js +3 -4
- package/script/client/1_composer.js +3 -2
- package/script/client/1_file_manager.js +5 -5
- package/script/client/2_message_manager.d.ts +7 -2
- package/script/client/2_message_manager.js +121 -32
- package/script/client/3_chat_list_manager.js +3 -2
- package/script/client/3_story_manager.js +2 -1
- package/script/client/4_client.d.ts +50 -5
- package/script/client/4_client.js +120 -48
- 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/mod.d.ts +1 -0
- package/script/mod.js +1 -0
- package/script/storage/0_storage.d.ts +3 -0
- package/script/storage/0_storage.js +26 -11
- package/script/types/0__file_id.js +2 -1
- package/script/types/0_chat_photo.d.ts +1 -0
- package/script/types/0_chat_photo.js +7 -4
- 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/script/types/5_callback_query.js +2 -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
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseMarkdown = exports.CODEPOINTS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) 2023 Dunkan
|
|
6
|
+
* Copyright (c) 2024 Roj
|
|
7
|
+
*/
|
|
8
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
9
|
+
const _3_types_js_1 = require("../3_types.js");
|
|
10
|
+
const _0_errors_js_1 = require("../0_errors.js");
|
|
11
|
+
const enc = new TextEncoder();
|
|
12
|
+
const dec = new TextDecoder();
|
|
13
|
+
exports.CODEPOINTS = {
|
|
14
|
+
"\t": 9,
|
|
15
|
+
"\r": 13,
|
|
16
|
+
"\0": 0,
|
|
17
|
+
"\v": 11,
|
|
18
|
+
"\n": 10,
|
|
19
|
+
" ": 32,
|
|
20
|
+
"_": 95,
|
|
21
|
+
"[": 91,
|
|
22
|
+
"]": 93,
|
|
23
|
+
"(": 40,
|
|
24
|
+
")": 41,
|
|
25
|
+
"`": 96,
|
|
26
|
+
"~": 126,
|
|
27
|
+
"\\": 92,
|
|
28
|
+
"*": 42,
|
|
29
|
+
"!": 33,
|
|
30
|
+
"|": 124,
|
|
31
|
+
};
|
|
32
|
+
function isUtf8CharacterFirstCodeUnit(c) {
|
|
33
|
+
return (c & 0xC0) !== 0x80;
|
|
34
|
+
}
|
|
35
|
+
function isWhitespace(codepoint) {
|
|
36
|
+
return (codepoint === exports.CODEPOINTS[" "] || codepoint === exports.CODEPOINTS["\t"] || codepoint === exports.CODEPOINTS["\r"] ||
|
|
37
|
+
codepoint === exports.CODEPOINTS["\n"] || codepoint === exports.CODEPOINTS["\0"] || codepoint === exports.CODEPOINTS["\v"]);
|
|
38
|
+
}
|
|
39
|
+
function getUrl(url_) {
|
|
40
|
+
try {
|
|
41
|
+
const url = new URL(url_);
|
|
42
|
+
if (url.protocol != "http:" && url.protocol != "https:" && url.protocol != "tg:" && url.protocol != "ton:") {
|
|
43
|
+
return "";
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return url.href;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function getLinkUserId(url_) {
|
|
54
|
+
try {
|
|
55
|
+
const url = new URL(url_);
|
|
56
|
+
if (url.protocol != "tg:" || url.hostname != "user" || url.pathname.slice(1) != "" || url.port != "") {
|
|
57
|
+
return 0;
|
|
58
|
+
}
|
|
59
|
+
return Number(url.searchParams.get("id")) || 0;
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
return 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function getLinkCustomEmojiId(url_) {
|
|
66
|
+
try {
|
|
67
|
+
const url = new URL(url_);
|
|
68
|
+
if (url.protocol != "tg:" || url.hostname != "emoji" || url.pathname.slice(1) != "" || url.port != "") {
|
|
69
|
+
return "";
|
|
70
|
+
}
|
|
71
|
+
const id_ = url.searchParams.get("id");
|
|
72
|
+
if (!id_) {
|
|
73
|
+
return "";
|
|
74
|
+
}
|
|
75
|
+
const id = BigInt(id_);
|
|
76
|
+
if (!id) {
|
|
77
|
+
return "";
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
return String(id);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
return "";
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function parseMarkdown(text_) {
|
|
88
|
+
const text = enc.encode(text_);
|
|
89
|
+
let resultSize = 0;
|
|
90
|
+
let entities = [];
|
|
91
|
+
let utf16Offset = 0;
|
|
92
|
+
const nestedEntities = [];
|
|
93
|
+
for (let i = 0; i < text.length; i++) {
|
|
94
|
+
const c = text[i];
|
|
95
|
+
if (c === exports.CODEPOINTS["\\"] && text[i + 1] != null && text[i + 1] > 0 && text[i + 1] <= 126) {
|
|
96
|
+
i++;
|
|
97
|
+
utf16Offset += 1;
|
|
98
|
+
text[resultSize++] = text[i];
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
let reservedCharacters = enc.encode("_*[]()~`>#+-=|{}.!");
|
|
102
|
+
if (nestedEntities.length !== 0) {
|
|
103
|
+
switch (nestedEntities[nestedEntities.length - 1].type) {
|
|
104
|
+
case "code":
|
|
105
|
+
case "pre":
|
|
106
|
+
reservedCharacters = Uint8Array.of(exports.CODEPOINTS["`"]);
|
|
107
|
+
break;
|
|
108
|
+
default:
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (!reservedCharacters.includes(text[i])) {
|
|
113
|
+
if (isUtf8CharacterFirstCodeUnit(c)) {
|
|
114
|
+
utf16Offset += 1 + (c >= 0xf0 ? 1 : 0);
|
|
115
|
+
}
|
|
116
|
+
text[resultSize++] = text[i];
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
let isEndOfAnEntity = false;
|
|
120
|
+
if (nestedEntities.length !== 0) {
|
|
121
|
+
isEndOfAnEntity = (() => {
|
|
122
|
+
switch (nestedEntities[nestedEntities.length - 1].type) {
|
|
123
|
+
case "bold":
|
|
124
|
+
return c === exports.CODEPOINTS["*"];
|
|
125
|
+
case "italic":
|
|
126
|
+
return c === exports.CODEPOINTS["_"] && text[i + 1] !== exports.CODEPOINTS["_"];
|
|
127
|
+
case "code":
|
|
128
|
+
return c === exports.CODEPOINTS["`"];
|
|
129
|
+
case "pre":
|
|
130
|
+
return c === exports.CODEPOINTS["`"] && text[i + 1] === exports.CODEPOINTS["`"] && text[i + 2] === exports.CODEPOINTS["`"];
|
|
131
|
+
case "textLink":
|
|
132
|
+
return c === exports.CODEPOINTS["]"];
|
|
133
|
+
case "underline":
|
|
134
|
+
return c === exports.CODEPOINTS["_"] && text[i + 1] === exports.CODEPOINTS["_"];
|
|
135
|
+
case "strikethrough":
|
|
136
|
+
return c === exports.CODEPOINTS["~"];
|
|
137
|
+
case "spoiler":
|
|
138
|
+
return c === exports.CODEPOINTS["|"] && text[i + 1] === exports.CODEPOINTS["|"];
|
|
139
|
+
case "customEmoji":
|
|
140
|
+
return c === exports.CODEPOINTS["]"];
|
|
141
|
+
default:
|
|
142
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
143
|
+
}
|
|
144
|
+
})();
|
|
145
|
+
}
|
|
146
|
+
if (!isEndOfAnEntity) {
|
|
147
|
+
let type;
|
|
148
|
+
let argument = new Uint8Array();
|
|
149
|
+
const entityByteOffset = i;
|
|
150
|
+
switch (c) {
|
|
151
|
+
case exports.CODEPOINTS["_"]:
|
|
152
|
+
if (text[i + 1] === exports.CODEPOINTS["_"]) {
|
|
153
|
+
type = "underline";
|
|
154
|
+
i++;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
type = "italic";
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
160
|
+
case exports.CODEPOINTS["*"]:
|
|
161
|
+
type = "bold";
|
|
162
|
+
break;
|
|
163
|
+
case exports.CODEPOINTS["~"]:
|
|
164
|
+
type = "strikethrough";
|
|
165
|
+
break;
|
|
166
|
+
case exports.CODEPOINTS["|"]:
|
|
167
|
+
if (text[i + 1] === exports.CODEPOINTS["|"]) {
|
|
168
|
+
i++;
|
|
169
|
+
type = "spoiler";
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
throw new _0_errors_js_1.InputError(`The character "${String.fromCharCode(c)}" is reserved and must be escaped with a preceding backslash.`);
|
|
173
|
+
}
|
|
174
|
+
break;
|
|
175
|
+
case exports.CODEPOINTS["["]:
|
|
176
|
+
type = "textLink";
|
|
177
|
+
break;
|
|
178
|
+
case exports.CODEPOINTS["`"]:
|
|
179
|
+
if (text[i + 1] === exports.CODEPOINTS["`"] && text[i + 2] === exports.CODEPOINTS["`"]) {
|
|
180
|
+
i += 3;
|
|
181
|
+
type = "code";
|
|
182
|
+
let languageEnd = i;
|
|
183
|
+
while (text[languageEnd] != null && !isWhitespace(text[languageEnd]) && text[languageEnd] !== exports.CODEPOINTS["`"]) {
|
|
184
|
+
languageEnd++;
|
|
185
|
+
}
|
|
186
|
+
if (i !== languageEnd && languageEnd < text.length && text[languageEnd] !== exports.CODEPOINTS["`"]) {
|
|
187
|
+
type = "pre";
|
|
188
|
+
argument = text.slice(i, languageEnd);
|
|
189
|
+
i = languageEnd;
|
|
190
|
+
}
|
|
191
|
+
const current = text[i], next = text[i + 1];
|
|
192
|
+
if (current === exports.CODEPOINTS["\n"] || current === exports.CODEPOINTS["\r"]) {
|
|
193
|
+
if ((next === exports.CODEPOINTS["\n"] || next === exports.CODEPOINTS["\r"]) && current !== next) {
|
|
194
|
+
i += 2;
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
i++;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
i--;
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
type = "code";
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
case exports.CODEPOINTS["!"]:
|
|
207
|
+
if (text[i + 1] === exports.CODEPOINTS["["]) {
|
|
208
|
+
i++;
|
|
209
|
+
type = "customEmoji";
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
throw new Error(`Character '${String.fromCharCode(text[i])}' is reserved and must be escaped with the preceding '\\'`);
|
|
213
|
+
}
|
|
214
|
+
break;
|
|
215
|
+
default:
|
|
216
|
+
throw new Error(`Character '${String.fromCharCode(text[i])}' is reserved and must be escaped with the preceding '\\'`);
|
|
217
|
+
}
|
|
218
|
+
nestedEntities.push({ type, argument, entityOffset: utf16Offset, entityByteOffset, entityBeginPos: resultSize });
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
let { type, argument } = nestedEntities[nestedEntities.length - 1];
|
|
222
|
+
let userId = 0;
|
|
223
|
+
let customEmojiId = "";
|
|
224
|
+
let skipEntity = utf16Offset === nestedEntities.at(-1).entityOffset;
|
|
225
|
+
switch (type) {
|
|
226
|
+
case "bold":
|
|
227
|
+
case "italic":
|
|
228
|
+
case "code":
|
|
229
|
+
case "strikethrough":
|
|
230
|
+
break;
|
|
231
|
+
case "underline":
|
|
232
|
+
case "spoiler":
|
|
233
|
+
i++;
|
|
234
|
+
break;
|
|
235
|
+
case "pre":
|
|
236
|
+
i += 2;
|
|
237
|
+
break;
|
|
238
|
+
case "textLink": {
|
|
239
|
+
let url;
|
|
240
|
+
if (text[i + 1] !== exports.CODEPOINTS["("]) {
|
|
241
|
+
url = text.slice(nestedEntities.at(-1).entityBeginPos, resultSize);
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
i += 2;
|
|
245
|
+
const urlBeginPos = i;
|
|
246
|
+
const url_ = [];
|
|
247
|
+
while (i < text.length && text[i] !== exports.CODEPOINTS[")"]) {
|
|
248
|
+
if (text[i] === exports.CODEPOINTS["\\"] && text[i + 1] > 0 && text[i + 1] <= 126) {
|
|
249
|
+
url_.push(text[i + 1]);
|
|
250
|
+
i += 2;
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
url_.push(text[i++]);
|
|
254
|
+
}
|
|
255
|
+
url = Uint8Array.from(url_);
|
|
256
|
+
if (text[i] !== exports.CODEPOINTS[")"]) {
|
|
257
|
+
throw new Error(`Can't find the end of the URL that starts at offset ${urlBeginPos}.`);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
userId = getLinkUserId(dec.decode(url));
|
|
261
|
+
if (!userId) {
|
|
262
|
+
const url_ = getUrl(dec.decode(url));
|
|
263
|
+
if (!url_) {
|
|
264
|
+
skipEntity = true;
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
argument = url_;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
case "customEmoji": {
|
|
273
|
+
if (text[i + 1] !== exports.CODEPOINTS["("]) {
|
|
274
|
+
throw new _0_errors_js_1.InputError("Custom emoji entities must contain a tg://emoji URL.");
|
|
275
|
+
}
|
|
276
|
+
i += 2;
|
|
277
|
+
const url_ = [];
|
|
278
|
+
const urlBeginPos = i;
|
|
279
|
+
while (i < text.length && text[i] !== exports.CODEPOINTS[")"]) {
|
|
280
|
+
if (text[i] === exports.CODEPOINTS["\\"] && text[i + 1] > 0 && text[i + 1] <= 126) {
|
|
281
|
+
url_.push(text[i + 1]);
|
|
282
|
+
i += 2;
|
|
283
|
+
continue;
|
|
284
|
+
}
|
|
285
|
+
url_.push(text[i++]);
|
|
286
|
+
}
|
|
287
|
+
const url = Uint8Array.from(url_);
|
|
288
|
+
if (text[i] !== exports.CODEPOINTS[")"]) {
|
|
289
|
+
throw new _0_errors_js_1.InputError(`Can't find the end of the custom emoji URL that starts at offset ${urlBeginPos}.`);
|
|
290
|
+
}
|
|
291
|
+
customEmojiId = getLinkCustomEmojiId(dec.decode(url));
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
default:
|
|
295
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
296
|
+
}
|
|
297
|
+
if (!skipEntity) {
|
|
298
|
+
const entityOffset = nestedEntities.at(-1).entityOffset;
|
|
299
|
+
const entityLength = utf16Offset - entityOffset;
|
|
300
|
+
if (userId) {
|
|
301
|
+
entities.push({ type: "textMention", offset: entityOffset, length: entityLength, userId });
|
|
302
|
+
}
|
|
303
|
+
else if (customEmojiId) {
|
|
304
|
+
entities.push({ type: "customEmoji", offset: entityOffset, length: entityLength, customEmojiId });
|
|
305
|
+
}
|
|
306
|
+
else if (type == "textLink") {
|
|
307
|
+
entities.push({ type, offset: entityOffset, length: entityLength, url: typeof argument === "string" ? argument : dec.decode(argument) });
|
|
308
|
+
}
|
|
309
|
+
else if (type == "pre") {
|
|
310
|
+
entities.push({ type, offset: entityOffset, length: entityLength, language: typeof argument === "string" ? argument : dec.decode(argument) });
|
|
311
|
+
}
|
|
312
|
+
else if (type != "customEmoji") {
|
|
313
|
+
entities.push({ type, offset: entityOffset, length: entityLength });
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
nestedEntities.pop();
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
if (nestedEntities.length !== 0) {
|
|
320
|
+
const last = nestedEntities[nestedEntities.length - 1];
|
|
321
|
+
throw new _0_errors_js_1.InputError(`Can't find the end of the ${last.type} entity that starts at offset ${last.entityByteOffset}.`);
|
|
322
|
+
}
|
|
323
|
+
entities = (0, _3_types_js_1.sortMessageEntities)(entities);
|
|
324
|
+
return [dec.decode(text.slice(0, resultSize)), entities];
|
|
325
|
+
}
|
|
326
|
+
exports.parseMarkdown = parseMarkdown;
|
|
@@ -153,6 +153,9 @@ export interface _ThumbnailCommon {
|
|
|
153
153
|
}
|
|
154
154
|
export interface SendDocumentParams extends _CaptionCommon, _ThumbnailCommon, _SpoilCommon, _UploadCommon, _SendCommon {
|
|
155
155
|
}
|
|
156
|
+
export interface SendStickerParams extends _UploadCommon, _SendCommon {
|
|
157
|
+
emoji?: string;
|
|
158
|
+
}
|
|
156
159
|
export interface SendVideoParams extends _CaptionCommon, _ThumbnailCommon, _SpoilCommon, _UploadCommon, _SendCommon {
|
|
157
160
|
/** The duration of the video in seconds. */
|
|
158
161
|
duration?: number;
|
|
@@ -307,3 +310,16 @@ export interface GetCreatedInviteLinksParams {
|
|
|
307
310
|
afterDate?: Date;
|
|
308
311
|
afterInviteLink?: string;
|
|
309
312
|
}
|
|
313
|
+
export interface StopPollParams {
|
|
314
|
+
replyMarkup?: ReplyMarkup;
|
|
315
|
+
}
|
|
316
|
+
export interface EditMessageLiveLocationParams {
|
|
317
|
+
/** The accuracy radius of the location in meters. Must be in the range of 0-1500. */
|
|
318
|
+
horizontalAccuracy?: number;
|
|
319
|
+
/** The direction which the user is moving towards. Must be in the range of 1-350. */
|
|
320
|
+
heading?: number;
|
|
321
|
+
/** The maximum distance for proximity alerts on approaching another chat member in meters. Must be in the range 1-100,000. */
|
|
322
|
+
proximityAlertRadius?: number;
|
|
323
|
+
/** The reply markup of the message. Bot-only. */
|
|
324
|
+
replyMarkup?: ReplyMarkup;
|
|
325
|
+
}
|
package/script/client/0_types.js
CHANGED
|
@@ -26,6 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.getChatListId = exports.getUsername = exports.isHttpUrl = exports.getFileContents = exports.isChannelPtsUpdate = exports.isPtsUpdate = exports.resolve = void 0;
|
|
27
27
|
const dntShim = __importStar(require("../_dnt.shims.js"));
|
|
28
28
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
29
|
+
const _0_errors_js_1 = require("../0_errors.js");
|
|
29
30
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
30
31
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
31
32
|
const resolve = () => Promise.resolve();
|
|
@@ -111,7 +112,7 @@ function isDigit(string) {
|
|
|
111
112
|
const c = string.charCodeAt(0);
|
|
112
113
|
return "0".charCodeAt(0) <= c && c <= "9".charCodeAt(0);
|
|
113
114
|
}
|
|
114
|
-
const errInvalidUsername = (u) => new
|
|
115
|
+
const errInvalidUsername = (u) => new _0_errors_js_1.InputError(`Invalid username: ${u}`);
|
|
115
116
|
function validateUsername(string, ignoreAt = false) {
|
|
116
117
|
string = string.trim();
|
|
117
118
|
if (ignoreAt && string.startsWith("@")) {
|
|
@@ -14,12 +14,12 @@ var _ClientEncrypted_instances, _ClientEncrypted_authKey, _ClientEncrypted_authK
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.ClientEncrypted = void 0;
|
|
16
16
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
17
|
+
const _0_errors_js_1 = require("../0_errors.js");
|
|
17
18
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
18
19
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
19
20
|
const _4_errors_js_1 = require("../4_errors.js");
|
|
20
21
|
const _0_client_abstract_js_1 = require("./0_client_abstract.js");
|
|
21
22
|
const _0_message_js_1 = require("./0_message.js");
|
|
22
|
-
const _0_types_js_1 = require("./0_types.js");
|
|
23
23
|
// global ClientEncrypted ID counter for logs
|
|
24
24
|
let id = 0;
|
|
25
25
|
/**
|
|
@@ -118,6 +118,8 @@ _ClientEncrypted_authKey = new WeakMap(), _ClientEncrypted_authKeyId = new WeakM
|
|
|
118
118
|
}, _ClientEncrypted_sendMessage = async function _ClientEncrypted_sendMessage(message) {
|
|
119
119
|
const payload = await (0, _0_message_js_1.encryptMessage)(message, __classPrivateFieldGet(this, _ClientEncrypted_authKey, "f"), __classPrivateFieldGet(this, _ClientEncrypted_authKeyId, "f"), __classPrivateFieldGet(this, _ClientEncrypted_state, "f").serverSalt, __classPrivateFieldGet(this, _ClientEncrypted_sessionId, "f"));
|
|
120
120
|
await this.transport.transport.send(payload);
|
|
121
|
+
__classPrivateFieldGet(this, _ClientEncrypted_L, "f").out(message);
|
|
122
|
+
__classPrivateFieldGet(this, _ClientEncrypted_L, "f").outBin(payload);
|
|
121
123
|
}, _ClientEncrypted_receiveLoop = async function _ClientEncrypted_receiveLoop() {
|
|
122
124
|
if (!this.transport) {
|
|
123
125
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
@@ -231,7 +233,7 @@ _ClientEncrypted_authKey = new WeakMap(), _ClientEncrypted_authKeyId = new WeakM
|
|
|
231
233
|
}
|
|
232
234
|
if (!this.connected) {
|
|
233
235
|
for (const [key, { reject }] of __classPrivateFieldGet(this, _ClientEncrypted_promises, "f").entries()) {
|
|
234
|
-
reject?.(new
|
|
236
|
+
reject?.(new _0_errors_js_1.ConnectionError("Connection was closed"));
|
|
235
237
|
__classPrivateFieldGet(this, _ClientEncrypted_promises, "f").delete(key);
|
|
236
238
|
}
|
|
237
239
|
}
|
|
@@ -14,6 +14,7 @@ var _ClientPlain_publicKeys, _ClientPlain_lastMsgId;
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.ClientPlain = void 0;
|
|
16
16
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
17
|
+
const _0_errors_js_1 = require("../0_errors.js");
|
|
17
18
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
18
19
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
19
20
|
const _4_constants_js_1 = require("../4_constants.js");
|
|
@@ -33,7 +34,7 @@ class ClientPlain extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
33
34
|
}
|
|
34
35
|
async invoke(function_) {
|
|
35
36
|
if (!this.transport) {
|
|
36
|
-
throw new
|
|
37
|
+
throw new _0_errors_js_1.ConnectionError("Not connected.");
|
|
37
38
|
}
|
|
38
39
|
const msgId = __classPrivateFieldSet(this, _ClientPlain_lastMsgId, (0, _0_message_js_1.getMessageId)(__classPrivateFieldGet(this, _ClientPlain_lastMsgId, "f")), "f");
|
|
39
40
|
const payload = (0, _0_message_js_1.packUnencryptedMessage)(function_[_2_tl_js_1.serialize](), msgId);
|
|
@@ -44,9 +45,7 @@ class ClientPlain extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
44
45
|
L.inBin(payload);
|
|
45
46
|
if (buffer.length == 4) {
|
|
46
47
|
const int = (0, _1_utilities_js_1.bigIntFromBuffer)(buffer, true, true);
|
|
47
|
-
|
|
48
|
-
throw new Error("-404");
|
|
49
|
-
}
|
|
48
|
+
throw new _0_errors_js_1.TransportError(Number(int));
|
|
50
49
|
}
|
|
51
50
|
const { message } = (0, _0_message_js_1.unpackUnencryptedMessage)(buffer);
|
|
52
51
|
const reader = new _2_tl_js_1.TLReader(message);
|
|
@@ -13,6 +13,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
13
13
|
var _Composer_handle, _Composer_prefixes;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Composer = exports.skip = exports.concat = exports.flatten = void 0;
|
|
16
|
+
const _0_errors_js_1 = require("../0_errors.js");
|
|
16
17
|
const _0_filters_js_1 = require("./0_filters.js");
|
|
17
18
|
function flatten(mw) {
|
|
18
19
|
return typeof mw === "function" ? mw : (ctx, next) => mw.middleware()(ctx, next);
|
|
@@ -40,7 +41,7 @@ exports.skip = skip;
|
|
|
40
41
|
class Composer {
|
|
41
42
|
set prefixes(value) {
|
|
42
43
|
if (__classPrivateFieldGet(this, _Composer_prefixes, "f") !== undefined) {
|
|
43
|
-
throw new
|
|
44
|
+
throw new _0_errors_js_1.InputError("Prefixes already set");
|
|
44
45
|
}
|
|
45
46
|
__classPrivateFieldSet(this, _Composer_prefixes, value, "f");
|
|
46
47
|
}
|
|
@@ -90,7 +91,7 @@ class Composer {
|
|
|
90
91
|
continue;
|
|
91
92
|
}
|
|
92
93
|
if (left.startsWith(right) || right.startsWith(left)) {
|
|
93
|
-
throw new
|
|
94
|
+
throw new _0_errors_js_1.InputError("Intersecting prefixes");
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
}
|
|
@@ -13,12 +13,12 @@ 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_errors_js_1 = require("../0_errors.js");
|
|
16
17
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
17
18
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
18
19
|
const _3_types_js_1 = require("../3_types.js");
|
|
19
20
|
const _4_constants_js_1 = require("../4_constants.js");
|
|
20
21
|
const _4_errors_js_1 = require("../4_errors.js");
|
|
21
|
-
const _0_types_js_1 = require("./0_types.js");
|
|
22
22
|
class FileManager {
|
|
23
23
|
constructor(c) {
|
|
24
24
|
_FileManager_instances.add(this);
|
|
@@ -32,7 +32,7 @@ class FileManager {
|
|
|
32
32
|
const isBig = contents.length > 1048576; // 10 MB
|
|
33
33
|
const chunkSize = params?.chunkSize ?? 512 * 1024;
|
|
34
34
|
if ((0, _1_utilities_js_1.mod)(chunkSize, 1024) != 0) {
|
|
35
|
-
throw new
|
|
35
|
+
throw new _0_errors_js_1.InputError("chunkSize must be divisible by 1024.");
|
|
36
36
|
}
|
|
37
37
|
const signal = params?.signal;
|
|
38
38
|
__classPrivateFieldGet(this, _FileManager_Lupload, "f").debug("uploading " + (isBig ? "big " : "") + "file of size " + contents.length + " with chunk size of " + chunkSize);
|
|
@@ -70,7 +70,7 @@ class FileManager {
|
|
|
70
70
|
__classPrivateFieldGet(this, _FileManager_Lupload, "f").warning("got a flood wait of " + err.seconds + " seconds");
|
|
71
71
|
await new Promise((r) => setTimeout(r, err.seconds * 1000));
|
|
72
72
|
}
|
|
73
|
-
else if (err instanceof
|
|
73
|
+
else if (err instanceof _0_errors_js_1.ConnectionError) {
|
|
74
74
|
while (true) {
|
|
75
75
|
try {
|
|
76
76
|
await new Promise((r) => setTimeout(r, 3000));
|
|
@@ -173,7 +173,7 @@ class FileManager {
|
|
|
173
173
|
async getCustomEmojiStickers(id) {
|
|
174
174
|
id = Array.isArray(id) ? id : [id];
|
|
175
175
|
if (!id.length) {
|
|
176
|
-
|
|
176
|
+
return [];
|
|
177
177
|
}
|
|
178
178
|
const stickers = new Array();
|
|
179
179
|
let shouldFetch = false;
|
|
@@ -232,7 +232,7 @@ _FileManager_c = new WeakMap(), _FileManager_Lupload = new WeakMap(), _FileManag
|
|
|
232
232
|
}
|
|
233
233
|
const chunkSize = params?.chunkSize ?? 1024 * 1024;
|
|
234
234
|
if ((0, _1_utilities_js_1.mod)(chunkSize, 1024) != 0) {
|
|
235
|
-
throw new
|
|
235
|
+
throw new _0_errors_js_1.InputError("chunkSize must be divisible by 1024.");
|
|
236
236
|
}
|
|
237
237
|
const { api, connect, disconnect } = __classPrivateFieldGet(this, _FileManager_c, "f").apiFactory(dcId);
|
|
238
238
|
await connect();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { enums, types } from "../2_tl.js";
|
|
2
2
|
import { ChatAction, ChatMember, FileSource, FileType, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
|
|
3
|
-
import { AddReactionParams, BanChatMemberParams, CreateInviteLinkParams, DeleteMessagesParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetCreatedInviteLinksParams, GetHistoryParams, PinMessageParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetReactionsParams } from "./0_params.js";
|
|
3
|
+
import { AddReactionParams, BanChatMemberParams, CreateInviteLinkParams, DeleteMessagesParams, EditMessageLiveLocationParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetCreatedInviteLinksParams, GetHistoryParams, PinMessageParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetReactionsParams, StopPollParams } from "./0_params.js";
|
|
4
4
|
import { C as C_ } from "./0_types.js";
|
|
5
5
|
import { FileManager } from "./1_file_manager.js";
|
|
6
6
|
interface C extends C_ {
|
|
@@ -13,7 +13,8 @@ export declare class MessageManager {
|
|
|
13
13
|
getMessages(chatId: ID, messageIds: number[]): Promise<Message[]>;
|
|
14
14
|
getMessageWithReply(chatId: ID, messageId: number): Promise<Message>;
|
|
15
15
|
getMessage(chatId: ID, messageId: number): Promise<Message>;
|
|
16
|
-
parseText(text: string,
|
|
16
|
+
static parseText(text: string, entities: MessageEntity[], parseMode: ParseMode): [string, MessageEntity[]];
|
|
17
|
+
parseText(text_: string, params?: {
|
|
17
18
|
parseMode?: ParseMode;
|
|
18
19
|
entities?: MessageEntity[];
|
|
19
20
|
}): Promise<readonly [string, enums.MessageEntity[] | undefined]>;
|
|
@@ -32,6 +33,7 @@ export declare class MessageManager {
|
|
|
32
33
|
sendAnimation(chatId: ID, animation: FileSource, params?: SendAnimationParams): Promise<import("../3_types.js").MessageAnimation>;
|
|
33
34
|
sendVideo(chatId: ID, video: FileSource, params?: SendVideoParams): Promise<import("../3_types.js").MessageVideo>;
|
|
34
35
|
sendDocument(chatId: ID, document: FileSource, params?: SendDocumentParams): Promise<import("../3_types.js").MessageDocument>;
|
|
36
|
+
sendSticker(chatId: ID, sticker: FileSource, params?: SendStickerParams): Promise<import("../3_types.js").MessageSticker>;
|
|
35
37
|
sendPhoto(chatId: ID, photo: FileSource, params?: SendPhotoParams): Promise<import("../3_types.js").MessagePhoto>;
|
|
36
38
|
resolveFileId(maybeFileId: string, expectedFileType: FileType | FileType[]): {
|
|
37
39
|
id: bigint;
|
|
@@ -76,5 +78,8 @@ export declare class MessageManager {
|
|
|
76
78
|
getChatMember(chatId: ID, userId: ID): Promise<ChatMember>;
|
|
77
79
|
setChatStickerSet(chatId: ID, setName: string): Promise<void>;
|
|
78
80
|
deleteChatStickerSet(chatId: ID): Promise<void>;
|
|
81
|
+
stopPoll(chatId: ID, messageId: number, params?: StopPollParams): Promise<import("../3_types.js").Poll>;
|
|
82
|
+
editMessageLiveLocation(chatId: ID, messageId: number, latitude: number, longitude: number, params?: EditMessageLiveLocationParams): Promise<import("../3_types.js").MessageLocation>;
|
|
83
|
+
editInlineMessageLiveLocation(inlineMessageId: string, latitude: number, longitude: number, params?: EditMessageLiveLocationParams): Promise<void>;
|
|
79
84
|
}
|
|
80
85
|
export {};
|