@mtkruto/node 0.1.170 → 0.1.183
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 -2
- package/esm/4_constants.js +2 -3
- package/esm/5_client.d.ts +2 -2
- package/esm/5_client.js +2 -2
- package/esm/client/0_client_abstract.d.ts +6 -4
- package/esm/client/0_client_abstract.js +11 -5
- package/esm/client/0_message.d.ts +1 -1
- package/esm/client/0_message.js +3 -6
- package/esm/client/1_client_encrypted.d.ts +34 -0
- package/esm/client/1_client_encrypted.js +237 -0
- package/esm/client/{2_client_plain.d.ts → 1_client_plain.d.ts} +3 -0
- package/esm/client/{2_client_plain.js → 1_client_plain.js} +4 -1
- package/esm/client/1_composer.d.ts +2 -3
- package/esm/client/2_message_manager.d.ts +1 -1
- package/esm/client/2_message_manager.js +3 -2
- package/esm/client/4_client.d.ts +50 -37
- package/esm/client/4_client.js +165 -379
- package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_diff.js +6 -3
- package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/encoding/base64.js +2 -1
- package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/normalize_string.js +2 -2
- package/esm/deps/deno.land/std@0.220.1/path/posix/basename.d.ts +17 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/basename.js +9 -0
- package/esm/deps/deno.land/std@0.220.1/path/posix/dirname.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/dirname.js +9 -0
- package/esm/deps/deno.land/std@0.220.1/path/posix/extname.d.ts +15 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/extname.js +9 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/join.js +1 -1
- package/esm/storage/0_storage.d.ts +7 -1
- package/esm/storage/0_storage.js +22 -2
- package/esm/tl/6_message.d.ts +3 -2
- package/esm/tl/6_message.js +1 -1
- package/esm/tl/7_message_container.d.ts +6 -4
- package/esm/tl/7_message_container.js +22 -7
- package/esm/types/4_inline_query_result.d.ts +1 -1
- package/esm/types/4_inline_query_result.js +4 -0
- package/esm/utilities/0_bigint.d.ts +1 -0
- package/esm/utilities/0_bigint.js +1 -0
- 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 -2
- package/script/4_constants.js +3 -4
- package/script/5_client.d.ts +2 -2
- package/script/5_client.js +2 -2
- package/script/client/0_client_abstract.d.ts +6 -4
- package/script/client/0_client_abstract.js +11 -5
- package/script/client/0_message.d.ts +1 -1
- package/script/client/0_message.js +3 -6
- package/script/client/1_client_encrypted.d.ts +34 -0
- package/script/client/1_client_encrypted.js +241 -0
- package/script/client/{2_client_plain.d.ts → 1_client_plain.d.ts} +3 -0
- package/script/client/{2_client_plain.js → 1_client_plain.js} +4 -1
- package/script/client/1_composer.d.ts +2 -3
- package/script/client/2_message_manager.d.ts +1 -1
- package/script/client/2_message_manager.js +3 -2
- package/script/client/4_client.d.ts +50 -37
- package/script/client/4_client.js +161 -375
- package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_diff.js +6 -3
- package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/encoding/base64.js +2 -1
- package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/normalize_string.js +2 -2
- package/script/deps/deno.land/std@0.220.1/path/posix/basename.d.ts +17 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/basename.js +9 -0
- package/script/deps/deno.land/std@0.220.1/path/posix/dirname.d.ts +14 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/dirname.js +9 -0
- package/script/deps/deno.land/std@0.220.1/path/posix/extname.d.ts +15 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/extname.js +9 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/join.js +1 -1
- package/script/storage/0_storage.d.ts +7 -1
- package/script/storage/0_storage.js +22 -2
- package/script/tl/6_message.d.ts +3 -2
- package/script/tl/6_message.js +1 -1
- package/script/tl/7_message_container.d.ts +6 -4
- package/script/tl/7_message_container.js +20 -5
- package/script/types/4_inline_query_result.d.ts +1 -1
- package/script/types/4_inline_query_result.js +4 -0
- package/script/utilities/0_bigint.d.ts +1 -0
- package/script/utilities/0_bigint.js +1 -0
- package/esm/client/5_composer.d.ts +0 -4
- package/esm/client/5_composer.js +0 -3
- package/script/client/5_composer.d.ts +0 -4
- package/script/client/5_composer.js +0 -7
- package/script/deps/deno.land/std@0.219.0/path/posix/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.219.0/path/posix/dirname.d.ts +0 -5
- package/script/deps/deno.land/std@0.219.0/path/posix/extname.d.ts +0 -6
- package/script/deps/deno.land/std@0.219.0/path/windows/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.219.0/path/windows/dirname.d.ts +0 -5
- package/script/deps/deno.land/std@0.219.0/path/windows/extname.d.ts +0 -6
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0/path/posix → std@0.220.1/path/windows}/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0/path/posix → std@0.220.1/path/windows}/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0/path/posix → std@0.220.1/path/windows}/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/_os.js +0 -0
- /package/{esm/deps/deno.land/std@0.219.0/path/windows → script/deps/deno.land/std@0.220.1/path}/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/constants.js +0 -0
- /package/{esm/deps/deno.land/std@0.219.0/path/windows → script/deps/deno.land/std@0.220.1/path}/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/dirname.js +0 -0
- /package/{esm/deps/deno.land/std@0.219.0/path/windows → script/deps/deno.land/std@0.220.1/path}/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0/path → std@0.220.1/path/windows}/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0/path → std@0.220.1/path/windows}/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0/path → std@0.220.1/path/windows}/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.220.1}/path/windows/to_namespaced_path.js +0 -0
package/esm/client/4_client.js
CHANGED
|
@@ -9,51 +9,53 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
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");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _Client_instances,
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { as, chatIdToPeerId, functions, getChatIdPeerType, Message_, MessageContainer, name, peerToChatId, RPCResult, TLError, TLReader, types } from "../2_tl.js";
|
|
12
|
+
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_L, _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_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _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;
|
|
13
|
+
import { cleanObject, drop, getLogger, getRandomId, mustPrompt, mustPromptOneOf, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
14
|
+
import { as, chatIdToPeerId, functions, getChatIdPeerType, name, peerToChatId, types } from "../2_tl.js";
|
|
16
15
|
import { StorageMemory } from "../3_storage.js";
|
|
17
16
|
import { constructUser } from "../3_types.js";
|
|
18
|
-
import {
|
|
19
|
-
import { AuthKeyUnregistered, FloodWait, Migrate, PasswordHashInvalid, PhoneNumberInvalid, SessionPasswordNeeded
|
|
20
|
-
import { ClientAbstract } from "./0_client_abstract.js";
|
|
21
|
-
import { match } from "./0_filters.js";
|
|
22
|
-
import { decryptMessage, encryptMessage, getMessageId } from "./0_message.js";
|
|
17
|
+
import { APP_VERSION, DEVICE_MODEL, LANG_CODE, LANG_PACK, LAYER, MAX_CHANNEL_ID, MAX_CHAT_ID, SYSTEM_LANG_CODE, SYSTEM_VERSION, USERNAME_TTL } from "../4_constants.js";
|
|
18
|
+
import { AuthKeyUnregistered, FloodWait, Migrate, PasswordHashInvalid, PhoneNumberInvalid, SessionPasswordNeeded } from "../4_errors.js";
|
|
23
19
|
import { checkPassword } from "./0_password.js";
|
|
24
|
-
import { ConnectionError } from "./0_types.js";
|
|
25
20
|
import { getUsername, resolve } from "./0_utilities.js";
|
|
26
21
|
import { AccountManager } from "./1_account_manager.js";
|
|
27
22
|
import { BotInfoManager } from "./1_bot_info_manager.js";
|
|
28
|
-
import {
|
|
23
|
+
import { ClientEncrypted } from "./1_client_encrypted.js";
|
|
24
|
+
import { ClientPlain } from "./1_client_plain.js";
|
|
25
|
+
import { Composer as Composer_ } from "./1_composer.js";
|
|
29
26
|
import { FileManager } from "./1_file_manager.js";
|
|
30
27
|
import { NetworkStatisticsManager } from "./1_network_statistics_manager.js";
|
|
31
28
|
import { ReactionManager } from "./1_reaction_manager.js";
|
|
32
29
|
import { UpdateManager } from "./1_update_manager.js";
|
|
33
|
-
import { ClientPlain } from "./2_client_plain.js";
|
|
34
30
|
import { MessageManager } from "./2_message_manager.js";
|
|
35
31
|
import { CallbackQueryManager } from "./3_callback_query_manager.js";
|
|
36
32
|
import { ChatListManager } from "./3_chat_list_manager.js";
|
|
37
33
|
import { InlineQueryManager } from "./3_inline_query_manager.js";
|
|
38
34
|
import { StoryManager } from "./3_story_manager.js";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const functionNamespaces = Object.entries(functions).filter(([, v]) => !(v instanceof Function)).map(([k]) => k);
|
|
43
|
-
export function skipInvoke() {
|
|
35
|
+
export class Composer extends Composer_ {
|
|
36
|
+
}
|
|
37
|
+
function skipInvoke() {
|
|
44
38
|
return (_ctx, next) => next();
|
|
45
39
|
}
|
|
46
40
|
export const restartAuth = Symbol("restartAuth");
|
|
47
|
-
export
|
|
41
|
+
export const handleMigrationError = Symbol("handleMigrationError");
|
|
42
|
+
// global Client ID counter for logs
|
|
43
|
+
let id = 0;
|
|
44
|
+
const getEntity = Symbol();
|
|
45
|
+
const functionNamespaces = Object.entries(functions).filter(([, v]) => !(v instanceof Function)).map(([k]) => k);
|
|
46
|
+
/**
|
|
47
|
+
* An MTKruto client.
|
|
48
|
+
*/
|
|
49
|
+
export class Client extends Composer {
|
|
48
50
|
/**
|
|
49
51
|
* Constructs the client.
|
|
50
52
|
*
|
|
51
|
-
* @param storage The storage provider to use. Defaults to memory storage. Passing a string constructs a memory storage with the string being the string
|
|
53
|
+
* @param storage The storage provider to use. Defaults to memory storage. Passing a string constructs a memory storage with the string being the auth string.
|
|
52
54
|
* @param apiId App's API ID from [my.telegram.org](https://my.telegram.org/apps). Defaults to 0 (unset).
|
|
53
55
|
* @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps). Defaults to empty string (unset).
|
|
54
56
|
*/
|
|
55
57
|
constructor(storage, apiId = 0, apiHash = "", params) {
|
|
56
|
-
super(
|
|
58
|
+
super();
|
|
57
59
|
_Client_instances.add(this);
|
|
58
60
|
Object.defineProperty(this, "apiId", {
|
|
59
61
|
enumerable: true,
|
|
@@ -67,11 +69,7 @@ export class Client extends ClientAbstract {
|
|
|
67
69
|
writable: true,
|
|
68
70
|
value: apiHash
|
|
69
71
|
});
|
|
70
|
-
|
|
71
|
-
_Client_sessionId.set(this, getRandomBigInt(8, true, false));
|
|
72
|
-
_Client_state.set(this, { salt: 0n, seqNo: 0 });
|
|
73
|
-
_Client_promises.set(this, new Map());
|
|
74
|
-
_Client_toAcknowledge.set(this, new Set());
|
|
72
|
+
_Client_client.set(this, void 0);
|
|
75
73
|
_Client_guaranteeUpdateDelivery.set(this, void 0);
|
|
76
74
|
_Client_updateManager.set(this, void 0);
|
|
77
75
|
_Client_networkStatisticsManager.set(this, void 0);
|
|
@@ -134,16 +132,11 @@ export class Client extends ClientAbstract {
|
|
|
134
132
|
value: void 0
|
|
135
133
|
});
|
|
136
134
|
_Client_publicKeys.set(this, void 0);
|
|
137
|
-
_Client_autoStart.set(this, void 0);
|
|
138
135
|
_Client_ignoreOutgoing.set(this, void 0);
|
|
139
|
-
_Client_prefixes.set(this, void 0);
|
|
140
136
|
_Client_storeMessages.set(this, void 0);
|
|
141
|
-
_Client_id.set(this, void 0);
|
|
142
137
|
_Client_L.set(this, void 0);
|
|
143
138
|
_Client_Lauthorize.set(this, void 0);
|
|
144
|
-
_Client_LreceiveLoop.set(this, void 0);
|
|
145
139
|
_Client_LpingLoop.set(this, void 0);
|
|
146
|
-
_Client_Linvoke.set(this, void 0);
|
|
147
140
|
_Client_LhandleMigrationError.set(this, void 0);
|
|
148
141
|
_Client_L$initConncetion.set(this, void 0);
|
|
149
142
|
_Client_namespaceProxies.set(this, (() => {
|
|
@@ -513,39 +506,36 @@ export class Client extends ClientAbstract {
|
|
|
513
506
|
unblock: () => {
|
|
514
507
|
return this.unblockUser(mustGetUserId());
|
|
515
508
|
},
|
|
509
|
+
getChatMember: (userId) => {
|
|
510
|
+
const { chatId } = mustGetMsg();
|
|
511
|
+
return this.getChatMember(chatId, userId);
|
|
512
|
+
},
|
|
513
|
+
setChatStickerSet: (setName) => {
|
|
514
|
+
const { chatId } = mustGetMsg();
|
|
515
|
+
return this.setChatStickerSet(chatId, setName);
|
|
516
|
+
},
|
|
517
|
+
deleteChatStickerSet: () => {
|
|
518
|
+
const { chatId } = mustGetMsg();
|
|
519
|
+
return this.deleteChatStickerSet(chatId);
|
|
520
|
+
},
|
|
516
521
|
};
|
|
517
522
|
return cleanObject(context);
|
|
518
523
|
});
|
|
519
524
|
_Client_lastPropagatedConnectionState.set(this, null);
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
try {
|
|
527
|
-
const connectionState = connected ? "ready" : "notConnected";
|
|
528
|
-
if (this.connected == connected && __classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") != connectionState) {
|
|
529
|
-
__classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).call(this, connectionState);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
finally {
|
|
533
|
-
unlock();
|
|
534
|
-
}
|
|
535
|
-
});
|
|
536
|
-
}).bind(this)
|
|
537
|
-
});
|
|
525
|
+
_Client_stateChangeHandler.set(this, ((connected) => {
|
|
526
|
+
const connectionState = connected ? "ready" : "notConnected";
|
|
527
|
+
if (this.connected == connected && __classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") != connectionState) {
|
|
528
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).call(this, connectionState);
|
|
529
|
+
}
|
|
530
|
+
}).bind(this));
|
|
538
531
|
_Client_storageInited.set(this, false);
|
|
539
|
-
_Client_connectMutex.set(this, new Mutex());
|
|
540
532
|
_Client_connectionInited.set(this, false);
|
|
541
533
|
_Client_lastPropagatedAuthorizationState.set(this, null);
|
|
542
534
|
_Client_selfId.set(this, null);
|
|
535
|
+
_Client_pingLoopStarted.set(this, false);
|
|
543
536
|
_Client_pingLoopAbortController.set(this, null);
|
|
544
537
|
_Client_pingInterval.set(this, 60 * 1000); // 60 seconds
|
|
545
538
|
_Client_lastUpdates.set(this, new Date());
|
|
546
|
-
_Client_pingLoopStarted.set(this, false);
|
|
547
|
-
_Client_autoStarted.set(this, false);
|
|
548
|
-
_Client_lastMsgId.set(this, 0n);
|
|
549
539
|
_Client_handleInvokeError.set(this, skipInvoke());
|
|
550
540
|
/**
|
|
551
541
|
* Invokes a function waiting and returning its reply if the second parameter is not `true`. Requires the client
|
|
@@ -573,8 +563,38 @@ export class Client extends ClientAbstract {
|
|
|
573
563
|
})
|
|
574
564
|
});
|
|
575
565
|
_Client_lastGetMe.set(this, null);
|
|
576
|
-
|
|
577
|
-
|
|
566
|
+
__classPrivateFieldSet(this, _Client_client, new ClientEncrypted(params), "f");
|
|
567
|
+
__classPrivateFieldGet(this, _Client_client, "f").stateChangeHandler = __classPrivateFieldGet(this, _Client_stateChangeHandler, "f").bind(this);
|
|
568
|
+
__classPrivateFieldGet(this, _Client_client, "f").handlers = {
|
|
569
|
+
serverSaltReassigned: async (newServerSalt) => {
|
|
570
|
+
await this.storage.setServerSalt(newServerSalt);
|
|
571
|
+
},
|
|
572
|
+
updates: (updates, call, callback) => {
|
|
573
|
+
__classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(updates, true, call, callback);
|
|
574
|
+
__classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
|
|
575
|
+
},
|
|
576
|
+
result: async (result, callback) => {
|
|
577
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").processResult(result);
|
|
578
|
+
callback();
|
|
579
|
+
},
|
|
580
|
+
error: async (_err, source) => {
|
|
581
|
+
switch (source) {
|
|
582
|
+
case "deserialization":
|
|
583
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap(source);
|
|
584
|
+
break;
|
|
585
|
+
case "decryption":
|
|
586
|
+
try {
|
|
587
|
+
await this.disconnect();
|
|
588
|
+
}
|
|
589
|
+
catch {
|
|
590
|
+
//
|
|
591
|
+
}
|
|
592
|
+
await this.connect();
|
|
593
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap(source);
|
|
594
|
+
break;
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
};
|
|
578
598
|
this.storage = typeof storage === "string" ? new StorageMemory(storage) : storage ?? new StorageMemory();
|
|
579
599
|
__classPrivateFieldSet(this, _Client_storeMessages, params?.storeMessages ?? false, "f");
|
|
580
600
|
if (!__classPrivateFieldGet(this, _Client_storeMessages, "f")) {
|
|
@@ -591,16 +611,14 @@ export class Client extends ClientAbstract {
|
|
|
591
611
|
this.systemLangCode = params?.systemLangCode ?? SYSTEM_LANG_CODE;
|
|
592
612
|
this.systemVersion = params?.systemVersion ?? SYSTEM_VERSION;
|
|
593
613
|
__classPrivateFieldSet(this, _Client_publicKeys, params?.publicKeys, "f");
|
|
594
|
-
__classPrivateFieldSet(this, _Client_autoStart, params?.autoStart ?? true, "f");
|
|
595
614
|
__classPrivateFieldSet(this, _Client_ignoreOutgoing, params?.ignoreOutgoing ?? null, "f");
|
|
596
|
-
|
|
615
|
+
if (params?.prefixes) {
|
|
616
|
+
this.prefixes = params?.prefixes;
|
|
617
|
+
}
|
|
597
618
|
__classPrivateFieldSet(this, _Client_guaranteeUpdateDelivery, params?.guaranteeUpdateDelivery ?? false, "f");
|
|
598
|
-
__classPrivateFieldSet(this,
|
|
599
|
-
const L = __classPrivateFieldSet(this, _Client_L, getLogger("Client").client(__classPrivateFieldGet(this, _Client_id, "f")), "f");
|
|
619
|
+
const L = __classPrivateFieldSet(this, _Client_L, getLogger("Client").client(id++), "f");
|
|
600
620
|
__classPrivateFieldSet(this, _Client_Lauthorize, L.branch("authorize"), "f");
|
|
601
|
-
__classPrivateFieldSet(this, _Client_LreceiveLoop, L.branch("receiveLoop"), "f");
|
|
602
621
|
__classPrivateFieldSet(this, _Client_LpingLoop, L.branch("pingLoop"), "f");
|
|
603
|
-
__classPrivateFieldSet(this, _Client_Linvoke, L.branch("invoke"), "f");
|
|
604
622
|
__classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
|
|
605
623
|
__classPrivateFieldSet(this, _Client_L$initConncetion, L.branch("#initConnection"), "f");
|
|
606
624
|
const c = {
|
|
@@ -610,7 +628,7 @@ export class Client extends ClientAbstract {
|
|
|
610
628
|
messageStorage: this.messageStorage,
|
|
611
629
|
guaranteeUpdateDelivery: __classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f"),
|
|
612
630
|
setConnectionState: __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).bind(this),
|
|
613
|
-
resetConnectionState: () => this.
|
|
631
|
+
resetConnectionState: () => __classPrivateFieldGet(this, _Client_stateChangeHandler, "f").call(this, this.connected),
|
|
614
632
|
getSelfId: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).bind(this),
|
|
615
633
|
getInputPeer: this.getInputPeer.bind(this),
|
|
616
634
|
getInputChannel: this.getInputChannel.bind(this),
|
|
@@ -619,8 +637,8 @@ export class Client extends ClientAbstract {
|
|
|
619
637
|
handleUpdate: __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).bind(this),
|
|
620
638
|
parseMode: __classPrivateFieldGet(this, _Client_parseMode, "f"),
|
|
621
639
|
apiFactory: (dcId) => {
|
|
622
|
-
const client = new Client((!dcId || dcId == this.dcId) ? this.storage : this.storage.branch(`download_client_${dcId}`), this.apiId, this.apiHash, {
|
|
623
|
-
transportProvider: this.transportProvider,
|
|
640
|
+
const client = new Client((!dcId || dcId == __classPrivateFieldGet(this, _Client_client, "f").dcId) ? this.storage : this.storage.branch(`download_client_${dcId}`), this.apiId, this.apiHash, {
|
|
641
|
+
transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider,
|
|
624
642
|
appVersion: this.appVersion,
|
|
625
643
|
deviceModel: this.deviceModel,
|
|
626
644
|
langCode: this.langCode,
|
|
@@ -629,7 +647,7 @@ export class Client extends ClientAbstract {
|
|
|
629
647
|
systemVersion: this.systemVersion,
|
|
630
648
|
cdn: true,
|
|
631
649
|
});
|
|
632
|
-
__classPrivateFieldGet(client,
|
|
650
|
+
__classPrivateFieldGet(client, _Client_client, "f").serverSalt = __classPrivateFieldGet(this, _Client_client, "f").serverSalt;
|
|
633
651
|
client.invoke.use(async (ctx, next) => {
|
|
634
652
|
if (ctx.error instanceof AuthKeyUnregistered && dcId) {
|
|
635
653
|
try {
|
|
@@ -649,9 +667,9 @@ export class Client extends ClientAbstract {
|
|
|
649
667
|
api: client.api,
|
|
650
668
|
connect: async () => {
|
|
651
669
|
await client.connect();
|
|
652
|
-
if (dcId && dcId != this.dcId) {
|
|
670
|
+
if (dcId && dcId != __classPrivateFieldGet(this, _Client_client, "f").dcId) {
|
|
653
671
|
let dc = String(dcId);
|
|
654
|
-
if (this.dcId < 0) {
|
|
672
|
+
if (__classPrivateFieldGet(this, _Client_client, "f").dcId < 0) {
|
|
655
673
|
dc += "-test";
|
|
656
674
|
}
|
|
657
675
|
await client.setDc(dc);
|
|
@@ -677,8 +695,8 @@ export class Client extends ClientAbstract {
|
|
|
677
695
|
__classPrivateFieldSet(this, _Client_chatListManager, new ChatListManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
|
|
678
696
|
__classPrivateFieldSet(this, _Client_accountManager, new AccountManager(c), "f");
|
|
679
697
|
__classPrivateFieldGet(this, _Client_updateManager, "f").setUpdateHandler(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).bind(this));
|
|
680
|
-
const transportProvider = this.transportProvider;
|
|
681
|
-
this.transportProvider = (params) => {
|
|
698
|
+
const transportProvider = __classPrivateFieldGet(this, _Client_client, "f").transportProvider;
|
|
699
|
+
__classPrivateFieldGet(this, _Client_client, "f").transportProvider = (params) => {
|
|
682
700
|
const transport = transportProvider(params);
|
|
683
701
|
transport.connection.callback = __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f").getTransportReadWriteCallback();
|
|
684
702
|
return transport;
|
|
@@ -687,7 +705,7 @@ export class Client extends ClientAbstract {
|
|
|
687
705
|
this.on("connectionState", ({ connectionState }, next) => {
|
|
688
706
|
drop((async () => {
|
|
689
707
|
if (connectionState == "notConnected") {
|
|
690
|
-
if (
|
|
708
|
+
if (this.disconnected) {
|
|
691
709
|
L.debug("not reconnecting");
|
|
692
710
|
return;
|
|
693
711
|
}
|
|
@@ -724,6 +742,13 @@ export class Client extends ClientAbstract {
|
|
|
724
742
|
});
|
|
725
743
|
}
|
|
726
744
|
}
|
|
745
|
+
// direct ClientEncrypted property proxies
|
|
746
|
+
get connected() {
|
|
747
|
+
return __classPrivateFieldGet(this, _Client_client, "f").connected;
|
|
748
|
+
}
|
|
749
|
+
get disconnected() {
|
|
750
|
+
return __classPrivateFieldGet(this, _Client_client, "f").disconnected;
|
|
751
|
+
}
|
|
727
752
|
/**
|
|
728
753
|
* Sets the DC and resets the auth key stored in the session provider
|
|
729
754
|
* if the stored DC was not the same as the `dc` parameter.
|
|
@@ -737,7 +762,7 @@ export class Client extends ClientAbstract {
|
|
|
737
762
|
await this.storage.setAuthKey(null);
|
|
738
763
|
await this.storage.getAuthKey();
|
|
739
764
|
}
|
|
740
|
-
|
|
765
|
+
__classPrivateFieldGet(this, _Client_client, "f").setDc(dc);
|
|
741
766
|
}
|
|
742
767
|
/**
|
|
743
768
|
* Loads the session if `setDc` was not called, initializes and connnects
|
|
@@ -745,58 +770,43 @@ export class Client extends ClientAbstract {
|
|
|
745
770
|
* Before establishing the connection, the session is saved.
|
|
746
771
|
*/
|
|
747
772
|
async connect() {
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
if (authKey == null) {
|
|
756
|
-
const plain = new ClientPlain({ initialDc: this.initialDc, transportProvider: this.transportProvider, cdn: this.cdn, publicKeys: __classPrivateFieldGet(this, _Client_publicKeys, "f") });
|
|
757
|
-
const dc = await this.storage.getDc();
|
|
758
|
-
if (dc != null) {
|
|
759
|
-
plain.setDc(dc);
|
|
760
|
-
}
|
|
761
|
-
await plain.connect();
|
|
762
|
-
const [authKey, salt] = await plain.createAuthKey();
|
|
763
|
-
await plain.disconnect();
|
|
764
|
-
await this.storage.setAuthKey(authKey);
|
|
765
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setAuth).call(this, authKey);
|
|
766
|
-
__classPrivateFieldGet(this, _Client_state, "f").salt = salt;
|
|
767
|
-
await this.storage.setServerSalt(salt);
|
|
768
|
-
}
|
|
769
|
-
else {
|
|
770
|
-
if (__classPrivateFieldGet(this, _Client_state, "f").salt == 0n) {
|
|
771
|
-
__classPrivateFieldGet(this, _Client_state, "f").salt = await this.storage.getServerSalt() ?? 0n;
|
|
772
|
-
}
|
|
773
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setAuth).call(this, authKey);
|
|
773
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
774
|
+
const [authKey, dc] = await Promise.all([this.storage.getAuthKey(), this.storage.getDc()]);
|
|
775
|
+
if (authKey != null && dc != null) {
|
|
776
|
+
await __classPrivateFieldGet(this, _Client_client, "f").setAuthKey(authKey);
|
|
777
|
+
await __classPrivateFieldGet(this, _Client_client, "f").setDc(dc); // TODO: remove await
|
|
778
|
+
if (__classPrivateFieldGet(this, _Client_client, "f").serverSalt == 0n) {
|
|
779
|
+
__classPrivateFieldGet(this, _Client_client, "f").serverSalt = await this.storage.getServerSalt() ?? 0n;
|
|
774
780
|
}
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
const plain = new ClientPlain({ initialDc: __classPrivateFieldGet(this, _Client_client, "f").initialDc, transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider, cdn: __classPrivateFieldGet(this, _Client_client, "f").cdn, publicKeys: __classPrivateFieldGet(this, _Client_publicKeys, "f") });
|
|
775
784
|
const dc = await this.storage.getDc();
|
|
776
785
|
if (dc != null) {
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
await super.connect();
|
|
780
|
-
if (dc == null) {
|
|
781
|
-
await this.storage.setDc(this.initialDc);
|
|
786
|
+
plain.setDc(dc);
|
|
787
|
+
__classPrivateFieldGet(this, _Client_client, "f").setDc(dc);
|
|
782
788
|
}
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
}
|
|
789
|
-
finally {
|
|
790
|
-
unlock();
|
|
789
|
+
await plain.connect();
|
|
790
|
+
const [authKey, serverSalt] = await plain.createAuthKey();
|
|
791
|
+
drop(plain.disconnect());
|
|
792
|
+
await __classPrivateFieldGet(this, _Client_client, "f").setAuthKey(authKey);
|
|
793
|
+
__classPrivateFieldGet(this, _Client_client, "f").serverSalt = serverSalt;
|
|
791
794
|
}
|
|
795
|
+
await __classPrivateFieldGet(this, _Client_client, "f").connect();
|
|
796
|
+
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)]);
|
|
792
797
|
}
|
|
793
|
-
|
|
798
|
+
reconnect(dc) {
|
|
799
|
+
return __classPrivateFieldGet(this, _Client_client, "f").reconnect(dc);
|
|
800
|
+
}
|
|
801
|
+
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_L = 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_selfId = 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() {
|
|
802
|
+
const apiId = this.apiId || await this.storage.getApiId();
|
|
803
|
+
if (!apiId) {
|
|
804
|
+
throw new Error("apiId not set");
|
|
805
|
+
}
|
|
806
|
+
return apiId;
|
|
807
|
+
}, _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
|
|
794
808
|
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
|
|
795
809
|
__classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
|
|
796
|
-
}, _Client_setAuth = async function _Client_setAuth(key) {
|
|
797
|
-
const hash = await sha1(key);
|
|
798
|
-
const id = bigIntFromBuffer(hash.slice(-8), true, false);
|
|
799
|
-
__classPrivateFieldSet(this, _Client_auth, { key, id }, "f");
|
|
800
810
|
}, _Client_initStorage = async function _Client_initStorage() {
|
|
801
811
|
if (!__classPrivateFieldGet(this, _Client_storageInited, "f")) {
|
|
802
812
|
await this.storage.initialize();
|
|
@@ -807,7 +817,7 @@ export class Client extends ClientAbstract {
|
|
|
807
817
|
}
|
|
808
818
|
}, handleMigrationError)](err) {
|
|
809
819
|
let newDc = String(err.dc);
|
|
810
|
-
if (Math.abs(this.dcId) >= 10000) {
|
|
820
|
+
if (Math.abs(__classPrivateFieldGet(this, _Client_client, "f").dcId) >= 10000) {
|
|
811
821
|
newDc += "-test";
|
|
812
822
|
}
|
|
813
823
|
await this.reconnect(newDc);
|
|
@@ -815,7 +825,7 @@ export class Client extends ClientAbstract {
|
|
|
815
825
|
}
|
|
816
826
|
async disconnect() {
|
|
817
827
|
__classPrivateFieldSet(this, _Client_connectionInited, false, "f");
|
|
818
|
-
await
|
|
828
|
+
await __classPrivateFieldGet(this, _Client_client, "f").disconnect();
|
|
819
829
|
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.abort();
|
|
820
830
|
}
|
|
821
831
|
/**
|
|
@@ -836,12 +846,6 @@ export class Client extends ClientAbstract {
|
|
|
836
846
|
* [2]: https://core.telegram.org/method/updates.getState
|
|
837
847
|
*/
|
|
838
848
|
async authorize(params) {
|
|
839
|
-
if (!this.apiId) {
|
|
840
|
-
throw new Error("apiId not set");
|
|
841
|
-
}
|
|
842
|
-
if (!this.apiHash) {
|
|
843
|
-
throw new Error("apiHash not set");
|
|
844
|
-
}
|
|
845
849
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
|
|
846
850
|
try {
|
|
847
851
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
@@ -855,6 +859,10 @@ export class Client extends ClientAbstract {
|
|
|
855
859
|
throw err;
|
|
856
860
|
}
|
|
857
861
|
}
|
|
862
|
+
const apiId = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this);
|
|
863
|
+
if (!this.apiHash) {
|
|
864
|
+
throw new Error("apiHash not set");
|
|
865
|
+
}
|
|
858
866
|
if (typeof params === "undefined") {
|
|
859
867
|
const loginType = mustPromptOneOf("Do you want to login as bot [b] or user [u]?", ["b", "u"]);
|
|
860
868
|
if (loginType == "b") {
|
|
@@ -868,7 +876,7 @@ export class Client extends ClientAbstract {
|
|
|
868
876
|
if (typeof params === "string") {
|
|
869
877
|
while (true) {
|
|
870
878
|
try {
|
|
871
|
-
const auth = await this.api.auth.importBotAuthorization({ api_id:
|
|
879
|
+
const auth = await this.api.auth.importBotAuthorization({ api_id: apiId, api_hash: this.apiHash, bot_auth_token: params, flags: 0 });
|
|
872
880
|
__classPrivateFieldSet(this, _Client_selfId, Number(auth[as](types.auth.Authorization).user.id), "f");
|
|
873
881
|
await this.storage.setAccountType("bot");
|
|
874
882
|
break;
|
|
@@ -1011,12 +1019,17 @@ export class Client extends ClientAbstract {
|
|
|
1011
1019
|
return this.invoke(function_, true);
|
|
1012
1020
|
}
|
|
1013
1021
|
exportAuthString() {
|
|
1014
|
-
return this.storage.exportAuthString();
|
|
1022
|
+
return this.storage.exportAuthString(this.apiId);
|
|
1015
1023
|
}
|
|
1016
1024
|
async importAuthString(authString) {
|
|
1017
1025
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
1018
1026
|
await this.storage.importAuthString(authString);
|
|
1019
1027
|
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Get a chat's inputPeer. Useful when calling API functions directly.
|
|
1030
|
+
*
|
|
1031
|
+
* @param id The identifier of the chat.
|
|
1032
|
+
*/
|
|
1020
1033
|
async getInputPeer(id) {
|
|
1021
1034
|
if (id === "me") {
|
|
1022
1035
|
return new types.InputPeerSelf();
|
|
@@ -1032,6 +1045,11 @@ export class Client extends ClientAbstract {
|
|
|
1032
1045
|
}
|
|
1033
1046
|
return inputPeer;
|
|
1034
1047
|
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Get a channel or a supergroup's inputChannel. Useful when calling API functions directly.
|
|
1050
|
+
*
|
|
1051
|
+
* @param id The identifier of the channel or the supergroup.
|
|
1052
|
+
*/
|
|
1035
1053
|
async getInputChannel(id) {
|
|
1036
1054
|
const inputPeer = await this.getInputPeer(id);
|
|
1037
1055
|
if (!(inputPeer instanceof types.InputPeerChannel)) {
|
|
@@ -1039,6 +1057,11 @@ export class Client extends ClientAbstract {
|
|
|
1039
1057
|
}
|
|
1040
1058
|
return new types.InputChannel(inputPeer);
|
|
1041
1059
|
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Get a user's inputUser. Useful when calling API functions directly.
|
|
1062
|
+
*
|
|
1063
|
+
* @param id The identifier of the user.
|
|
1064
|
+
*/
|
|
1042
1065
|
async getInputUser(id) {
|
|
1043
1066
|
const inputPeer = await this.getInputPeer(id);
|
|
1044
1067
|
if (!(inputPeer instanceof types.InputPeerUser)) {
|
|
@@ -1049,7 +1072,7 @@ export class Client extends ClientAbstract {
|
|
|
1049
1072
|
async [(_Client_initConnection = async function _Client_initConnection() {
|
|
1050
1073
|
if (!__classPrivateFieldGet(this, _Client_connectionInited, "f")) {
|
|
1051
1074
|
await this.api.initConnection({
|
|
1052
|
-
api_id: this.
|
|
1075
|
+
api_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this),
|
|
1053
1076
|
app_version: this.appVersion,
|
|
1054
1077
|
device_model: this.deviceModel,
|
|
1055
1078
|
lang_code: this.langCode,
|
|
@@ -1066,7 +1089,7 @@ export class Client extends ClientAbstract {
|
|
|
1066
1089
|
}
|
|
1067
1090
|
}, _Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
|
|
1068
1091
|
if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") != authorized) {
|
|
1069
|
-
await
|
|
1092
|
+
await this.middleware()(await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { authorizationState: { authorized } }), resolve);
|
|
1070
1093
|
__classPrivateFieldSet(this, _Client_lastPropagatedAuthorizationState, authorized, "f");
|
|
1071
1094
|
}
|
|
1072
1095
|
}, _Client_getSelfId = async function _Client_getSelfId() {
|
|
@@ -1074,124 +1097,8 @@ export class Client extends ClientAbstract {
|
|
|
1074
1097
|
__classPrivateFieldSet(this, _Client_selfId, await this.getMe().then((v) => v.id), "f");
|
|
1075
1098
|
}
|
|
1076
1099
|
return __classPrivateFieldGet(this, _Client_selfId, "f");
|
|
1077
|
-
},
|
|
1078
|
-
|
|
1079
|
-
throw new ConnectionError("Not connected");
|
|
1080
|
-
}
|
|
1081
|
-
while (this.connected) {
|
|
1082
|
-
try {
|
|
1083
|
-
if (__classPrivateFieldGet(this, _Client_toAcknowledge, "f").size >= ACK_THRESHOLD) {
|
|
1084
|
-
await this.send(new types.Msgs_ack({ msg_ids: [...__classPrivateFieldGet(this, _Client_toAcknowledge, "f")] }));
|
|
1085
|
-
__classPrivateFieldGet(this, _Client_toAcknowledge, "f").clear();
|
|
1086
|
-
}
|
|
1087
|
-
const buffer = await this.transport.transport.receive();
|
|
1088
|
-
__classPrivateFieldGet(this, _Client_L, "f").inBin(buffer);
|
|
1089
|
-
let decrypted;
|
|
1090
|
-
try {
|
|
1091
|
-
decrypted = await (decryptMessage(buffer, __classPrivateFieldGet(this, _Client_auth, "f").key, __classPrivateFieldGet(this, _Client_auth, "f").id, __classPrivateFieldGet(this, _Client_sessionId, "f")));
|
|
1092
|
-
__classPrivateFieldGet(this, _Client_L, "f").in(decrypted);
|
|
1093
|
-
}
|
|
1094
|
-
catch (err) {
|
|
1095
|
-
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("failed to decrypt message:", err);
|
|
1096
|
-
drop((async () => {
|
|
1097
|
-
try {
|
|
1098
|
-
await this.disconnect();
|
|
1099
|
-
}
|
|
1100
|
-
catch {
|
|
1101
|
-
//
|
|
1102
|
-
}
|
|
1103
|
-
await this.connect();
|
|
1104
|
-
await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("decryption");
|
|
1105
|
-
})());
|
|
1106
|
-
continue;
|
|
1107
|
-
}
|
|
1108
|
-
const messages = decrypted instanceof MessageContainer ? decrypted.messages : [decrypted];
|
|
1109
|
-
for (const message of messages) {
|
|
1110
|
-
let body = message.body;
|
|
1111
|
-
if (body instanceof types.Gzip_packed) {
|
|
1112
|
-
body = new TLReader(gunzip(body.packed_data)).readObject();
|
|
1113
|
-
}
|
|
1114
|
-
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("received", (typeof body === "object" && name in body) ? body[name] : body.constructor.name);
|
|
1115
|
-
if (body instanceof types._Updates || body instanceof types._Update) {
|
|
1116
|
-
__classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(body, true);
|
|
1117
|
-
}
|
|
1118
|
-
else if (body instanceof types.New_session_created) {
|
|
1119
|
-
__classPrivateFieldGet(this, _Client_state, "f").salt = body.server_salt;
|
|
1120
|
-
await this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_state, "f").salt);
|
|
1121
|
-
}
|
|
1122
|
-
else if (message.body instanceof RPCResult) {
|
|
1123
|
-
let result = message.body.result;
|
|
1124
|
-
if (result instanceof types.Gzip_packed) {
|
|
1125
|
-
result = new TLReader(gunzip(result.packed_data)).readObject();
|
|
1126
|
-
}
|
|
1127
|
-
if (result instanceof types.Rpc_error) {
|
|
1128
|
-
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("RPCResult:", result.error_code, result.error_message);
|
|
1129
|
-
}
|
|
1130
|
-
else {
|
|
1131
|
-
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("RPCResult:", (typeof result === "object" && name in result) ? result[name] : result.constructor.name);
|
|
1132
|
-
}
|
|
1133
|
-
const messageId = message.body.messageId;
|
|
1134
|
-
const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(messageId);
|
|
1135
|
-
const resolvePromise = () => {
|
|
1136
|
-
if (promise) {
|
|
1137
|
-
if (result instanceof types.Rpc_error) {
|
|
1138
|
-
promise.reject(upgradeInstance(result, promise.call));
|
|
1139
|
-
}
|
|
1140
|
-
else {
|
|
1141
|
-
promise.resolve(result);
|
|
1142
|
-
}
|
|
1143
|
-
__classPrivateFieldGet(this, _Client_promises, "f").delete(messageId);
|
|
1144
|
-
}
|
|
1145
|
-
};
|
|
1146
|
-
if (result instanceof types._Updates || result instanceof types._Update) {
|
|
1147
|
-
__classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(result, true, promise?.call, resolvePromise);
|
|
1148
|
-
}
|
|
1149
|
-
else {
|
|
1150
|
-
await __classPrivateFieldGet(this, _Client_updateManager, "f").processResult(result);
|
|
1151
|
-
resolvePromise();
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
else if (message.body instanceof types.Pong) {
|
|
1155
|
-
const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(message.body.msg_id);
|
|
1156
|
-
if (promise) {
|
|
1157
|
-
promise.resolve(message.body);
|
|
1158
|
-
__classPrivateFieldGet(this, _Client_promises, "f").delete(message.body.msg_id);
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
else if (message.body instanceof types.Bad_server_salt) {
|
|
1162
|
-
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("server salt reassigned");
|
|
1163
|
-
__classPrivateFieldGet(this, _Client_state, "f").salt = message.body.new_server_salt;
|
|
1164
|
-
await this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_state, "f").salt);
|
|
1165
|
-
const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(message.body.bad_msg_id);
|
|
1166
|
-
if (promise) {
|
|
1167
|
-
promise.resolve(message.body);
|
|
1168
|
-
__classPrivateFieldGet(this, _Client_promises, "f").delete(message.body.bad_msg_id);
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
__classPrivateFieldGet(this, _Client_toAcknowledge, "f").add(message.id);
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
catch (err) {
|
|
1175
|
-
if (!this.connected) {
|
|
1176
|
-
break;
|
|
1177
|
-
}
|
|
1178
|
-
else if (err instanceof TLError) {
|
|
1179
|
-
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("failed to deserialize:", err);
|
|
1180
|
-
drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("deserialize"));
|
|
1181
|
-
}
|
|
1182
|
-
else {
|
|
1183
|
-
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("unexpected error:", err);
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
}
|
|
1187
|
-
if (!this.connected) {
|
|
1188
|
-
for (const { reject } of __classPrivateFieldGet(this, _Client_promises, "f").values()) {
|
|
1189
|
-
reject(new ConnectionError("Connection was closed"));
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
else {
|
|
1193
|
-
UNREACHABLE();
|
|
1194
|
-
}
|
|
1100
|
+
}, _Client_startPingLoop = function _Client_startPingLoop() {
|
|
1101
|
+
drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
|
|
1195
1102
|
}, _Client_pingLoop = async function _Client_pingLoop() {
|
|
1196
1103
|
__classPrivateFieldSet(this, _Client_pingLoopAbortController, new AbortController(), "f");
|
|
1197
1104
|
while (this.connected) {
|
|
@@ -1223,63 +1130,7 @@ export class Client extends ClientAbstract {
|
|
|
1223
1130
|
let n = 1;
|
|
1224
1131
|
while (true) {
|
|
1225
1132
|
try {
|
|
1226
|
-
|
|
1227
|
-
if (__classPrivateFieldGet(this, _Client_autoStart, "f") && !__classPrivateFieldGet(this, _Client_autoStarted, "f")) {
|
|
1228
|
-
await this.start();
|
|
1229
|
-
}
|
|
1230
|
-
else {
|
|
1231
|
-
throw new ConnectionError("Not connected");
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
if (!__classPrivateFieldGet(this, _Client_auth, "f") || !this.transport) {
|
|
1235
|
-
UNREACHABLE();
|
|
1236
|
-
}
|
|
1237
|
-
let seqNo = __classPrivateFieldGet(this, _Client_state, "f").seqNo * 2;
|
|
1238
|
-
if (!(function_ instanceof functions.ping) && !(function_ instanceof types.Msgs_ack)) {
|
|
1239
|
-
seqNo++;
|
|
1240
|
-
__classPrivateFieldGet(this, _Client_state, "f").seqNo++;
|
|
1241
|
-
}
|
|
1242
|
-
const messageId = __classPrivateFieldSet(this, _Client_lastMsgId, getMessageId(__classPrivateFieldGet(this, _Client_lastMsgId, "f")), "f");
|
|
1243
|
-
const message = new Message_(messageId, seqNo, function_);
|
|
1244
|
-
const payload = await encryptMessage(message, __classPrivateFieldGet(this, _Client_auth, "f").key, __classPrivateFieldGet(this, _Client_auth, "f").id, __classPrivateFieldGet(this, _Client_state, "f").salt, __classPrivateFieldGet(this, _Client_sessionId, "f"));
|
|
1245
|
-
await this.transport.transport.send(payload);
|
|
1246
|
-
__classPrivateFieldGet(this, _Client_L, "f").out(message);
|
|
1247
|
-
__classPrivateFieldGet(this, _Client_L, "f").outBin(payload);
|
|
1248
|
-
__classPrivateFieldGet(this, _Client_Linvoke, "f").debug("invoked", function_[name]);
|
|
1249
|
-
if (noWait) {
|
|
1250
|
-
__classPrivateFieldGet(this, _Client_promises, "f").set(message.id, {
|
|
1251
|
-
resolve: (result) => {
|
|
1252
|
-
if (result instanceof types.Bad_server_salt) {
|
|
1253
|
-
drop(this.invoke(function_, true));
|
|
1254
|
-
}
|
|
1255
|
-
},
|
|
1256
|
-
reject: () => { },
|
|
1257
|
-
call: function_,
|
|
1258
|
-
});
|
|
1259
|
-
return;
|
|
1260
|
-
}
|
|
1261
|
-
let result;
|
|
1262
|
-
try {
|
|
1263
|
-
result = await new Promise((resolve, reject) => {
|
|
1264
|
-
__classPrivateFieldGet(this, _Client_promises, "f").set(message.id, { resolve, reject, call: function_ });
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
catch (err) {
|
|
1268
|
-
if (err instanceof AuthKeyUnregistered) {
|
|
1269
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, false);
|
|
1270
|
-
}
|
|
1271
|
-
throw err;
|
|
1272
|
-
}
|
|
1273
|
-
if (result instanceof types.Bad_server_salt) {
|
|
1274
|
-
return await this.invoke(function_);
|
|
1275
|
-
}
|
|
1276
|
-
else {
|
|
1277
|
-
if (!__classPrivateFieldGet(this, _Client_pingLoopStarted, "f")) {
|
|
1278
|
-
drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
|
|
1279
|
-
__classPrivateFieldSet(this, _Client_pingLoopStarted, true, "f");
|
|
1280
|
-
}
|
|
1281
|
-
return result;
|
|
1282
|
-
}
|
|
1133
|
+
return await __classPrivateFieldGet(this, _Client_client, "f").invoke(function_, noWait);
|
|
1283
1134
|
}
|
|
1284
1135
|
catch (err) {
|
|
1285
1136
|
if (await __classPrivateFieldGet(this, _Client_handleInvokeError, "f").call(this, Object.freeze({ client: this, error: err, function: function_, n: n++ }), () => Promise.resolve(false))) {
|
|
@@ -1289,6 +1140,12 @@ export class Client extends ClientAbstract {
|
|
|
1289
1140
|
throw err;
|
|
1290
1141
|
}
|
|
1291
1142
|
}
|
|
1143
|
+
finally {
|
|
1144
|
+
if (!__classPrivateFieldGet(this, _Client_pingLoopStarted, "f")) {
|
|
1145
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_startPingLoop).call(this);
|
|
1146
|
+
__classPrivateFieldSet(this, _Client_pingLoopStarted, true, "f");
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1292
1149
|
}
|
|
1293
1150
|
}, _Client_getUserAccessHash = async function _Client_getUserAccessHash(userId) {
|
|
1294
1151
|
const users = await this.api.users.getUsers({ id: [new types.InputUser({ user_id: userId, access_hash: 0n })] });
|
|
@@ -1369,77 +1226,6 @@ export class Client extends ClientAbstract {
|
|
|
1369
1226
|
}
|
|
1370
1227
|
return await this.messageStorage.getEntity(id);
|
|
1371
1228
|
}
|
|
1372
|
-
use(...middleware) {
|
|
1373
|
-
const composer = new Composer(...middleware);
|
|
1374
|
-
__classPrivateFieldSet(this, _Client_handle, concat(__classPrivateFieldGet(this, _Client_handle, "f"), flatten(composer)), "f");
|
|
1375
|
-
return composer;
|
|
1376
|
-
}
|
|
1377
|
-
branch(predicate, trueHandler_, falseHandler_) {
|
|
1378
|
-
const trueHandler = flatten(trueHandler_);
|
|
1379
|
-
const falseHandler = flatten(falseHandler_);
|
|
1380
|
-
return this.use(async (upd, next) => {
|
|
1381
|
-
if (await predicate(upd)) {
|
|
1382
|
-
await trueHandler(upd, next);
|
|
1383
|
-
}
|
|
1384
|
-
else {
|
|
1385
|
-
await falseHandler(upd, next);
|
|
1386
|
-
}
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
filter(predicate, ...middleware) {
|
|
1390
|
-
const composer = new Composer(...middleware);
|
|
1391
|
-
this.branch(predicate, composer, skip);
|
|
1392
|
-
return composer;
|
|
1393
|
-
}
|
|
1394
|
-
on(filter, ...middleware) {
|
|
1395
|
-
return this.filter((ctx) => {
|
|
1396
|
-
return match(filter, ctx);
|
|
1397
|
-
}, ...middleware);
|
|
1398
|
-
}
|
|
1399
|
-
command(commands, ...middleware) {
|
|
1400
|
-
const commands__ = typeof commands === "object" && "names" in commands ? commands.names : commands;
|
|
1401
|
-
const commands_ = Array.isArray(commands__) ? commands__ : [commands__];
|
|
1402
|
-
const prefixes_ = typeof commands === "object" && "prefixes" in commands ? commands.prefixes : (__classPrivateFieldGet(this, _Client_prefixes, "f") ?? []);
|
|
1403
|
-
const prefixes = Array.isArray(prefixes_) ? prefixes_ : [prefixes_];
|
|
1404
|
-
for (const left of prefixes) {
|
|
1405
|
-
for (const right of prefixes) {
|
|
1406
|
-
if (left == right) {
|
|
1407
|
-
continue;
|
|
1408
|
-
}
|
|
1409
|
-
if (left.startsWith(right) || right.startsWith(left)) {
|
|
1410
|
-
throw new Error("Intersecting prefixes");
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
}
|
|
1414
|
-
return this.on("message:text").filter((ctx) => {
|
|
1415
|
-
const prefixes_ = prefixes.length == 0 ? [!ctx.me?.isBot ? "\\" : "/"] : prefixes;
|
|
1416
|
-
if (prefixes_.length == 0) {
|
|
1417
|
-
return false;
|
|
1418
|
-
}
|
|
1419
|
-
const cmd = ctx.message.text.split(/\s/, 1)[0];
|
|
1420
|
-
const prefix = prefixes_.find((v) => cmd.startsWith(v));
|
|
1421
|
-
if (prefix === undefined) {
|
|
1422
|
-
return false;
|
|
1423
|
-
}
|
|
1424
|
-
if (cmd.includes("@")) {
|
|
1425
|
-
const username = cmd.split("@", 2)[1];
|
|
1426
|
-
if (username.toLowerCase() !== ctx.me.username?.toLowerCase()) {
|
|
1427
|
-
return false;
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
|
-
const command_ = cmd.split("@", 1)[0].split(prefix, 2)[1].toLowerCase();
|
|
1431
|
-
for (const command of commands_) {
|
|
1432
|
-
if (typeof command === "string" && (command.toLowerCase() == command_)) {
|
|
1433
|
-
return true;
|
|
1434
|
-
}
|
|
1435
|
-
else if (command instanceof RegExp && command.test(command_)) {
|
|
1436
|
-
return true;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
return false;
|
|
1440
|
-
}, ...middleware);
|
|
1441
|
-
}
|
|
1442
|
-
//#endregion
|
|
1443
1229
|
/**
|
|
1444
1230
|
* Send a text message.
|
|
1445
1231
|
*
|
|
@@ -1464,7 +1250,7 @@ export class Client extends ClientAbstract {
|
|
|
1464
1250
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
|
|
1465
1251
|
}
|
|
1466
1252
|
/**
|
|
1467
|
-
* Edit an inline message's text.
|
|
1253
|
+
* Edit an inline message's text. Bot-only.
|
|
1468
1254
|
*
|
|
1469
1255
|
* @method ms
|
|
1470
1256
|
* @param inlineMessageId The inline message's identifier.
|
|
@@ -1485,7 +1271,7 @@ export class Client extends ClientAbstract {
|
|
|
1485
1271
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageReplyMarkup(chatId, messageId, params);
|
|
1486
1272
|
}
|
|
1487
1273
|
/**
|
|
1488
|
-
* Edit an inline message's reply markup.
|
|
1274
|
+
* Edit an inline message's reply markup. Bot-only.
|
|
1489
1275
|
*
|
|
1490
1276
|
* @method ms
|
|
1491
1277
|
* @param inlineMessageId The inline message's identifier.
|
|
@@ -1887,7 +1673,7 @@ export class Client extends ClientAbstract {
|
|
|
1887
1673
|
return await __classPrivateFieldGet(this, _Client_fileManager, "f").getCustomEmojiStickers(id);
|
|
1888
1674
|
}
|
|
1889
1675
|
/**
|
|
1890
|
-
* Set a chat's available reactions.
|
|
1676
|
+
* Set a chat's available reactions. User-only.
|
|
1891
1677
|
*
|
|
1892
1678
|
* @method ch
|
|
1893
1679
|
* @param chatId The identifier of the chat.
|
|
@@ -1949,7 +1735,7 @@ export class Client extends ClientAbstract {
|
|
|
1949
1735
|
await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatPhoto(chatId);
|
|
1950
1736
|
}
|
|
1951
1737
|
/**
|
|
1952
|
-
* Delete all messages sent by a specific member of a chat.
|
|
1738
|
+
* Delete all messages sent by a specific member of a chat. User-only.
|
|
1953
1739
|
*
|
|
1954
1740
|
* @method ms
|
|
1955
1741
|
* @param chatId The identifier of the chat. Must be a supergroup.
|
|
@@ -2200,7 +1986,7 @@ export class Client extends ClientAbstract {
|
|
|
2200
1986
|
return await __classPrivateFieldGet(this, _Client_accountManager, "f").getInactiveChats();
|
|
2201
1987
|
}
|
|
2202
1988
|
/**
|
|
2203
|
-
* Search the messages of a chat.
|
|
1989
|
+
* Search the messages of a chat. User-only.
|
|
2204
1990
|
*
|
|
2205
1991
|
* @method ms
|
|
2206
1992
|
* @param chatId The identifier of the chat to search the messages in.
|
|
@@ -2210,7 +1996,7 @@ export class Client extends ClientAbstract {
|
|
|
2210
1996
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").searchMessages(chatId, query, params);
|
|
2211
1997
|
}
|
|
2212
1998
|
/**
|
|
2213
|
-
* Set the number of boosts required to circument a chat's default restrictions.
|
|
1999
|
+
* Set the number of boosts required to circument a chat's default restrictions. User-only.
|
|
2214
2000
|
*
|
|
2215
2001
|
* @method ch
|
|
2216
2002
|
* @param chatId The identifier of the chat.
|
|
@@ -2306,7 +2092,7 @@ export class Client extends ClientAbstract {
|
|
|
2306
2092
|
}
|
|
2307
2093
|
}
|
|
2308
2094
|
_Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
2309
|
-
await
|
|
2095
|
+
await this.middleware()(await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, update), resolve);
|
|
2310
2096
|
}, _Client_queueHandleCtxUpdate = function _Client_queueHandleCtxUpdate(update) {
|
|
2311
2097
|
__classPrivateFieldGet(this, _Client_updateManager, "f").getHandleUpdateQueue(UpdateManager.MAIN_BOX_ID).add(async () => {
|
|
2312
2098
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, update);
|