@mtkruto/node 0.1.162 → 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/1_file_manager.d.ts +4 -2
- package/esm/client/1_file_manager.js +35 -11
- package/esm/client/2_message_manager.d.ts +4 -2
- package/esm/client/2_message_manager.js +31 -16
- package/esm/client/3_chat_list_manager.d.ts +2 -0
- package/esm/client/3_chat_list_manager.js +1 -1
- package/esm/client/4_client.d.ts +131 -94
- package/esm/client/4_client.js +197 -382
- package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_diff.js +6 -3
- package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/mod.d.ts +7 -0
- package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/mod.js +7 -0
- package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/base64.js +2 -1
- package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/common.js +8 -8
- package/esm/deps/deno.land/{std@0.218.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.218.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.218.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.218.0 → std@0.220.1}/path/posix/extname.js +9 -0
- package/esm/deps/deno.land/{std@0.218.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/0_thumbnail.js +7 -13
- package/esm/types/1_sticker.d.ts +1 -1
- package/esm/types/1_sticker.js +6 -6
- 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/1_file_manager.d.ts +4 -2
- package/script/client/1_file_manager.js +34 -10
- package/script/client/2_message_manager.d.ts +4 -2
- package/script/client/2_message_manager.js +31 -16
- package/script/client/3_chat_list_manager.d.ts +2 -0
- package/script/client/3_chat_list_manager.js +1 -1
- package/script/client/4_client.d.ts +131 -94
- package/script/client/4_client.js +193 -378
- package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_diff.js +6 -3
- package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/mod.d.ts +7 -0
- package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/mod.js +7 -0
- package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/base64.js +2 -1
- package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/common.js +8 -8
- package/script/deps/deno.land/{std@0.218.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.218.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.218.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.218.0 → std@0.220.1}/path/posix/extname.js +9 -0
- package/script/deps/deno.land/{std@0.218.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/0_thumbnail.js +7 -13
- package/script/types/1_sticker.d.ts +1 -1
- package/script/types/1_sticker.js +6 -6
- 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.218.0/path/posix/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.218.0/path/posix/dirname.d.ts +0 -5
- package/script/deps/deno.land/std@0.218.0/path/posix/extname.d.ts +0 -6
- package/script/deps/deno.land/std@0.218.0/path/windows/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.218.0/path/windows/dirname.d.ts +0 -5
- package/script/deps/deno.land/std@0.218.0/path/windows/extname.d.ts +0 -6
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0/path/posix → std@0.220.1/path/windows}/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0/path/posix → std@0.220.1/path/windows}/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0/path/posix → std@0.220.1/path/windows}/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/_os.js +0 -0
- /package/{esm/deps/deno.land/std@0.218.0/path/windows → script/deps/deno.land/std@0.220.1/path}/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/constants.js +0 -0
- /package/{esm/deps/deno.land/std@0.218.0/path/windows → script/deps/deno.land/std@0.220.1/path}/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/dirname.js +0 -0
- /package/{esm/deps/deno.land/std@0.218.0/path/windows → script/deps/deno.land/std@0.220.1/path}/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0/path → std@0.220.1/path/windows}/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0/path → std@0.220.1/path/windows}/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0/path → std@0.220.1/path/windows}/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.218.0 → std@0.220.1}/path/windows/to_namespaced_path.js +0 -0
|
@@ -18,7 +18,6 @@ const _1_utilities_js_1 = require("../1_utilities.js");
|
|
|
18
18
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
19
19
|
const _3_types_js_1 = require("../3_types.js");
|
|
20
20
|
const _3_types_js_2 = require("../3_types.js");
|
|
21
|
-
const _4_constants_js_1 = require("../4_constants.js");
|
|
22
21
|
const _0_message_search_filter_js_1 = require("../types/0_message_search_filter.js");
|
|
23
22
|
const _0_html_js_1 = require("./0_html.js");
|
|
24
23
|
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
@@ -110,20 +109,8 @@ class MessageManager {
|
|
|
110
109
|
const entities = entities_?.length > 0 ? await Promise.all(entities_.map((v) => (0, _3_types_js_2.messageEntityToTlObject)(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity))) : undefined;
|
|
111
110
|
return [text, entities];
|
|
112
111
|
}
|
|
113
|
-
async getStickerSetName(inputStickerSet, hash = 0) {
|
|
114
|
-
const maybeStickerSetName = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getStickerSetName(inputStickerSet.id, inputStickerSet.access_hash);
|
|
115
|
-
if (maybeStickerSetName != null && Date.now() - maybeStickerSetName[1].getTime() < _4_constants_js_1.STICKER_SET_NAME_TTL) {
|
|
116
|
-
return maybeStickerSetName[0];
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
const stickerSet = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getStickerSet({ stickerset: inputStickerSet, hash });
|
|
120
|
-
const name = stickerSet[_2_tl_js_1.as](_2_tl_js_1.types.messages.StickerSet).set.short_name;
|
|
121
|
-
await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.updateStickerSetName(inputStickerSet.id, inputStickerSet.access_hash, name);
|
|
122
|
-
return name;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
112
|
async constructMessage(message_, r) {
|
|
126
|
-
return await (0, _3_types_js_2.constructMessage)(message_, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity, this.getMessage.bind(this), this.getStickerSetName.bind(this), r);
|
|
113
|
+
return await (0, _3_types_js_2.constructMessage)(message_, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity, this.getMessage.bind(this), __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.getStickerSetName.bind(__classPrivateFieldGet(this, _MessageManager_c, "f").fileManager), r);
|
|
127
114
|
}
|
|
128
115
|
async forwardMessages(from, to, messageIds, params) {
|
|
129
116
|
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.forwardMessages({
|
|
@@ -405,7 +392,7 @@ class MessageManager {
|
|
|
405
392
|
let media = null;
|
|
406
393
|
const spoiler = params?.hasSpoiler ? true : undefined;
|
|
407
394
|
if (typeof photo === "string") {
|
|
408
|
-
const fileId = this.resolveFileId(photo, _3_types_js_2.FileType.Photo);
|
|
395
|
+
const fileId = this.resolveFileId(photo, [_3_types_js_2.FileType.Photo, _3_types_js_2.FileType.ProfilePhoto]);
|
|
409
396
|
if (fileId != null) {
|
|
410
397
|
media = new _2_tl_js_1.types.InputMediaPhoto({
|
|
411
398
|
id: new _2_tl_js_1.types.InputPhoto(fileId),
|
|
@@ -427,6 +414,7 @@ class MessageManager {
|
|
|
427
414
|
return (0, _3_types_js_2.assertMessageType)(message, "photo");
|
|
428
415
|
}
|
|
429
416
|
resolveFileId(maybeFileId, expectedFileType) {
|
|
417
|
+
expectedFileType = Array.isArray(expectedFileType) ? expectedFileType : [expectedFileType];
|
|
430
418
|
let fileId = null;
|
|
431
419
|
try {
|
|
432
420
|
fileId = (0, _3_types_js_1.deserializeFileId)(maybeFileId);
|
|
@@ -435,7 +423,7 @@ class MessageManager {
|
|
|
435
423
|
__classPrivateFieldGet(this, _MessageManager_LresolveFileId, "f").warning(err);
|
|
436
424
|
}
|
|
437
425
|
if (fileId != null) {
|
|
438
|
-
if (fileId.type
|
|
426
|
+
if (!expectedFileType.includes(fileId.type)) {
|
|
439
427
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
440
428
|
}
|
|
441
429
|
return {
|
|
@@ -971,6 +959,33 @@ class MessageManager {
|
|
|
971
959
|
}
|
|
972
960
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.contacts.unblock({ id });
|
|
973
961
|
}
|
|
962
|
+
async getChatMember(chatId, userId) {
|
|
963
|
+
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
964
|
+
if (peer instanceof _2_tl_js_1.types.InputPeerChannel) {
|
|
965
|
+
const { participant } = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.getParticipant({
|
|
966
|
+
channel: new _2_tl_js_1.types.InputChannel(peer),
|
|
967
|
+
participant: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(userId),
|
|
968
|
+
});
|
|
969
|
+
return await (0, _3_types_js_2.constructChatMember)(participant, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
|
|
970
|
+
}
|
|
971
|
+
else if (peer instanceof _2_tl_js_1.types.InputPeerChat) {
|
|
972
|
+
const user = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputUser(userId);
|
|
973
|
+
const fullChat = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getFullChat(peer).then((v) => v.full_chat[_2_tl_js_1.as](_2_tl_js_1.types.ChatFull));
|
|
974
|
+
const participant = fullChat.participants[_2_tl_js_1.as](_2_tl_js_1.types.ChatParticipants).participants.find((v) => v.user_id == user.user_id);
|
|
975
|
+
return await (0, _3_types_js_2.constructChatMember)(participant, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
|
|
976
|
+
}
|
|
977
|
+
else {
|
|
978
|
+
throw new Error("Invalid chat ID");
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
async setChatStickerSet(chatId, setName) {
|
|
982
|
+
const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
|
|
983
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.setStickers({ channel, stickerset: new _2_tl_js_1.types.InputStickerSetShortName({ short_name: setName }) });
|
|
984
|
+
}
|
|
985
|
+
async deleteChatStickerSet(chatId) {
|
|
986
|
+
const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
|
|
987
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.setStickers({ channel, stickerset: new _2_tl_js_1.types.InputStickerSetEmpty() });
|
|
988
|
+
}
|
|
974
989
|
}
|
|
975
990
|
exports.MessageManager = MessageManager;
|
|
976
991
|
_MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { enums, types } from "../2_tl.js";
|
|
2
2
|
import { Chat, ID } from "../3_types.js";
|
|
3
3
|
import { C as C_ } from "./0_types.js";
|
|
4
|
+
import { FileManager } from "./1_file_manager.js";
|
|
4
5
|
import { MessageManager } from "./2_message_manager.js";
|
|
5
6
|
type C = C_ & {
|
|
7
|
+
fileManager: FileManager;
|
|
6
8
|
messageManager: MessageManager;
|
|
7
9
|
};
|
|
8
10
|
type ChatListManagerUpdate = types.UpdateNewMessage | types.UpdateNewChannelMessage | types.UpdatePinnedDialogs | types.UpdateFolderPeers | types.UpdateChannel | types.UpdateChat | types.UpdateUser | types.UpdateUserName;
|
|
@@ -438,7 +438,7 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
|
|
|
438
438
|
}
|
|
439
439
|
const chats = __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getChatList).call(this, listId);
|
|
440
440
|
for (const dialog of dialogs.dialogs) {
|
|
441
|
-
const chat = await (0, _3_types_js_1.constructChat)(dialog, dialogs, pinnedChats, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager), __classPrivateFieldGet(this, _ChatListManager_c, "f").
|
|
441
|
+
const chat = await (0, _3_types_js_1.constructChat)(dialog, dialogs, pinnedChats, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager), __classPrivateFieldGet(this, _ChatListManager_c, "f").fileManager.getStickerSetName.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
|
|
442
442
|
chats.set(chat.id, chat);
|
|
443
443
|
await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setChat(listId, chat.id, chat.pinned, chat.lastMessage?.id ?? 0, chat.lastMessage?.date ?? new Date(0));
|
|
444
444
|
}
|
|
@@ -2,26 +2,12 @@ import { MaybePromise } from "../1_utilities.js";
|
|
|
2
2
|
import { enums, functions, types } from "../2_tl.js";
|
|
3
3
|
import { Storage } from "../3_storage.js";
|
|
4
4
|
import { DC } from "../3_transport.js";
|
|
5
|
-
import { InactiveChat } from "../3_types.js";
|
|
6
|
-
import { BotCommand, Chat, ChatAction, ChatMember, ChatP, Document, FileSource, ID, InlineQueryResult, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Reaction, Story, Update, UpdateIntersection, User } from "../3_types.js";
|
|
5
|
+
import { BotCommand, Chat, ChatAction, ChatMember, ChatP, FileSource, ID, InactiveChat, InlineQueryResult, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Reaction, Sticker, Story, Update, User } from "../3_types.js";
|
|
7
6
|
import { Migrate } from "../4_errors.js";
|
|
8
|
-
import { ClientAbstract } from "./0_client_abstract.js";
|
|
9
|
-
import { FilterQuery, WithFilter } from "./0_filters.js";
|
|
10
7
|
import { AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeleteMessageParams, DeleteMessagesParams, DownloadParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, PinMessageParams, ReplyParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, UploadParams } from "./0_params.js";
|
|
11
8
|
import { Api } from "./0_types.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
export type NextFn<T = void> = () => Promise<T>;
|
|
15
|
-
export interface InvokeErrorHandler<C> {
|
|
16
|
-
(ctx: {
|
|
17
|
-
client: C;
|
|
18
|
-
error: unknown;
|
|
19
|
-
function: types.Type | functions.Function<unknown>;
|
|
20
|
-
n: number;
|
|
21
|
-
}, next: NextFn<boolean>): MaybePromise<boolean>;
|
|
22
|
-
}
|
|
23
|
-
declare const getEntity: unique symbol;
|
|
24
|
-
export declare const handleMigrationError: unique symbol;
|
|
9
|
+
import { ClientPlainParams } from "./1_client_plain.js";
|
|
10
|
+
import { Composer as Composer_, NextFunction } from "./1_composer.js";
|
|
25
11
|
export interface Context {
|
|
26
12
|
/** The client that received the update. */
|
|
27
13
|
client: Client;
|
|
@@ -35,122 +21,141 @@ export interface Context {
|
|
|
35
21
|
from?: User;
|
|
36
22
|
/** Resolves to `msg?.senderChat`. */
|
|
37
23
|
senderChat?: ChatP;
|
|
38
|
-
/**
|
|
24
|
+
/** Context-aware alias for `client.sendMessage()`. */
|
|
39
25
|
reply: (text: string, params?: Omit<SendMessageParams, "replyToMessageId"> & ReplyParams) => Promise<MessageText>;
|
|
40
|
-
/**
|
|
26
|
+
/** Context-aware alias for `client.sendPoll()`. */
|
|
41
27
|
replyPoll: (question: string, options: [string, string, ...string[]], params?: Omit<SendPollParams, "replyToMessageId"> & ReplyParams) => Promise<MessagePoll>;
|
|
42
|
-
/**
|
|
28
|
+
/** Context-aware alias for `client.sendPhoto()`. */
|
|
43
29
|
replyPhoto: (photo: FileSource, params?: Omit<SendPhotoParams, "replyToMessageId"> & ReplyParams) => Promise<MessagePhoto>;
|
|
44
|
-
/**
|
|
30
|
+
/** Context-aware alias for `client.sendDocument()`. */
|
|
45
31
|
replyDocument: (document: FileSource, params?: Omit<SendDocumentParams, "replyToMessageId"> & ReplyParams) => Promise<MessageDocument>;
|
|
46
|
-
/**
|
|
32
|
+
/** Context-aware alias for `client.sendLocation()`. */
|
|
47
33
|
replyLocation: (latitude: number, longitude: number, params?: Omit<SendLocationParams, "replyToMessageId"> & ReplyParams) => Promise<MessageLocation>;
|
|
48
|
-
/**
|
|
34
|
+
/** Context-aware alias for `client.sendDice()`. */
|
|
49
35
|
replyDice: (params?: Omit<SendDiceParams, "replyToMessageId"> & ReplyParams) => Promise<MessageDice>;
|
|
50
|
-
/**
|
|
36
|
+
/** Context-aware alias for `client.sendVenue()`. */
|
|
51
37
|
replyVenue: (latitude: number, longitude: number, title: string, address: string, params?: Omit<SendVenueParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVenue>;
|
|
52
|
-
/**
|
|
38
|
+
/** Context-aware alias for `client.sendContact()`. */
|
|
53
39
|
replyContact: (firstName: string, number: string, params?: Omit<SendContactParams, "replyToMessageId"> & ReplyParams) => Promise<MessageContact>;
|
|
54
|
-
/**
|
|
40
|
+
/** Context-aware alias for `client.sendVideo()`. */
|
|
55
41
|
replyVideo: (video: FileSource, params?: Omit<SendVideoParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVideo>;
|
|
56
|
-
/**
|
|
42
|
+
/** Context-aware alias for `client.sendAnimation()`. */
|
|
57
43
|
replyAnimation: (animation: FileSource, params?: Omit<SendAnimationParams, "replyToMessageId"> & ReplyParams) => Promise<MessageAnimation>;
|
|
58
|
-
/**
|
|
44
|
+
/** Context-aware alias for `client.sendVoice()`. */
|
|
59
45
|
replyVoice: (voice: FileSource, params?: Omit<SendVoiceParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVoice>;
|
|
60
|
-
/**
|
|
46
|
+
/** Context-aware alias for `client.sendAudio()`. */
|
|
61
47
|
replyAudio: (audio: FileSource, params?: Omit<SendAudioParams, "replyToMessageId"> & ReplyParams) => Promise<MessageAudio>;
|
|
62
|
-
/**
|
|
48
|
+
/** Context-aware alias for `client.sendPoll()`. */
|
|
63
49
|
replyVideoNote: (videoNote: FileSource, params?: Omit<SendVideoNoteParams, "replyToMessageId"> & ReplyParams) => Promise<MessageVideoNote>;
|
|
64
|
-
/**
|
|
50
|
+
/** Context-aware alias for `client.deleteMessage()`. */
|
|
65
51
|
delete: () => Promise<void>;
|
|
66
|
-
/**
|
|
52
|
+
/** Context-aware alias for `client.forwardMessage()`. */
|
|
67
53
|
forward: (to: ID, params?: ForwardMessagesParams) => Promise<this["msg"]>;
|
|
68
|
-
/**
|
|
54
|
+
/** Context-aware alias for `client.pinMessage()`. */
|
|
69
55
|
pin: (params?: PinMessageParams) => Promise<void>;
|
|
70
|
-
/**
|
|
56
|
+
/** Context-aware alias for `client.unpinMessage()`. */
|
|
71
57
|
unpin: (params?: PinMessageParams) => Promise<void>;
|
|
72
|
-
/**
|
|
58
|
+
/** Context-aware alias for `client.banChatMember()`. */
|
|
73
59
|
banSender: (params?: BanChatMemberParams) => Promise<void>;
|
|
74
|
-
/**
|
|
60
|
+
/** Context-aware alias for `client.kickChatMember()`. */
|
|
75
61
|
kickSender: () => Promise<void>;
|
|
76
|
-
/**
|
|
62
|
+
/** Context-aware alias for `client.setChatMemberRights()`. */
|
|
77
63
|
setSenderRights: (params?: SetChatMemberRightsParams) => Promise<void>;
|
|
78
|
-
/**
|
|
64
|
+
/** Context-aware alias for `client.getChatAdministrators()`. */
|
|
79
65
|
getChatAdministrators: () => Promise<ChatMember[]>;
|
|
80
|
-
/**
|
|
66
|
+
/** Context-aware alias for `client.setReactions()`. */
|
|
81
67
|
react: (reactions: Reaction[], params?: SetReactionsParams) => Promise<void>;
|
|
82
|
-
/**
|
|
68
|
+
/** Context-aware alias for `client.sendChatAction()`. */
|
|
83
69
|
sendChatAction: (action: ChatAction, params?: {
|
|
84
70
|
messageThreadId?: number;
|
|
85
71
|
}) => Promise<void>;
|
|
72
|
+
/** Context-aware alias for `client.editInlineMessageText()`. */
|
|
86
73
|
editInlineMessageText: (text: string, params?: EditMessageParams) => Promise<void>;
|
|
74
|
+
/** Context-aware alias for `client.editInlineMessageReplyMarkup()`. */
|
|
87
75
|
editInlineMessageReplyMarkup: (params?: EditMessageReplyMarkupParams) => Promise<void>;
|
|
88
|
-
/**
|
|
76
|
+
/** Context-aware alias for `client.editMessageText()`. */
|
|
89
77
|
editMessageText: (messageId: number, text: string, params?: EditMessageParams) => Promise<MessageText>;
|
|
90
|
-
/**
|
|
78
|
+
/** Context-aware alias for `client.editMessageReplyMarkup()`. */
|
|
91
79
|
editMessageReplyMarkup: (messageId: number, params?: EditMessageReplyMarkupParams) => Promise<Message>;
|
|
92
|
-
/**
|
|
80
|
+
/** Context-aware alias for `client.answerCallbackQuery()`. */
|
|
93
81
|
answerCallbackQuery: (params?: AnswerCallbackQueryParams) => Promise<void>;
|
|
94
|
-
/**
|
|
82
|
+
/** Context-aware alias for `client.answerInlineQuery()`. */
|
|
95
83
|
answerInlineQuery: (results: InlineQueryResult[], params?: AnswerInlineQueryParams) => Promise<void>;
|
|
96
|
-
/**
|
|
84
|
+
/** Context-aware alias for `client.getMessage()`. */
|
|
97
85
|
getMessage: (messageId: number) => Promise<Message | null>;
|
|
98
|
-
/**
|
|
86
|
+
/** Context-aware alias for `client.getMessages()`. */
|
|
99
87
|
getMessages: (messageIds: number[]) => Promise<Message[]>;
|
|
100
|
-
/**
|
|
88
|
+
/** Context-aware alias for `client.forwardMessage()`. */
|
|
101
89
|
forwardMessage: (to: ID, messageId: number, params?: ForwardMessagesParams) => Promise<Message>;
|
|
102
|
-
/**
|
|
90
|
+
/** Context-aware alias for `client.forwardMessages()`. */
|
|
103
91
|
forwardMessages: (to: ID, messageIds: number[], params?: ForwardMessagesParams) => Promise<Message[]>;
|
|
104
|
-
/**
|
|
92
|
+
/** Context-aware alias for `client.deleteMessage()`. */
|
|
105
93
|
deleteMessage: (messageId: number, params?: DeleteMessagesParams) => Promise<void>;
|
|
106
|
-
/**
|
|
94
|
+
/** Context-aware alias for `client.deleteMessages()`. */
|
|
107
95
|
deleteMessages: (messageIds: number[], params?: DeleteMessagesParams) => Promise<void>;
|
|
108
|
-
/**
|
|
96
|
+
/** Context-aware alias for `client.pinMessage()`. */
|
|
109
97
|
pinMessage: (messageId: number, params?: PinMessageParams) => Promise<void>;
|
|
110
|
-
/**
|
|
98
|
+
/** Context-aware alias for `client.unpinMessage()`. */
|
|
111
99
|
unpinMessage: (messageId: number) => Promise<void>;
|
|
112
|
-
/**
|
|
113
|
-
unpinMessages: (
|
|
114
|
-
/**
|
|
100
|
+
/** Context-aware alias for `client.unpinMessages()`. */
|
|
101
|
+
unpinMessages: () => Promise<void>;
|
|
102
|
+
/** Context-aware alias for `client.setAvailableReactions()`. */
|
|
115
103
|
setAvailableReactions: (availableReactions: "none" | "all" | Reaction[]) => Promise<void>;
|
|
116
|
-
/**
|
|
104
|
+
/** Context-aware alias for `client.addReaction()`. */
|
|
117
105
|
addReaction: (messageId: number, reaction: Reaction, params?: AddReactionParams) => Promise<void>;
|
|
118
|
-
/**
|
|
106
|
+
/** Context-aware alias for `client.removeReaction()`. */
|
|
119
107
|
removeReaction: (messageId: number, reaction: Reaction) => Promise<void>;
|
|
120
|
-
/**
|
|
108
|
+
/** Context-aware alias for `client.setReactions()`. */
|
|
121
109
|
setReactions: (messageId: number, reactions: Reaction[], params?: SetReactionsParams) => Promise<void>;
|
|
122
|
-
/**
|
|
110
|
+
/** Context-aware alias for `client.setChatPhoto()`. */
|
|
123
111
|
setChatPhoto: (photo: FileSource, params?: SetChatPhotoParams) => Promise<void>;
|
|
124
|
-
/**
|
|
112
|
+
/** Context-aware alias for `client.deleteChatPhoto()`. */
|
|
125
113
|
deleteChatPhoto: () => Promise<void>;
|
|
126
|
-
/**
|
|
114
|
+
/** Context-aware alias for `client.banChatMember()`. */
|
|
127
115
|
banChatMember: (memberId: ID, params?: BanChatMemberParams) => Promise<void>;
|
|
128
|
-
/**
|
|
116
|
+
/** Context-aware alias for `client.unbanChatMember()`. */
|
|
129
117
|
unbanChatMember: (memberId: ID) => Promise<void>;
|
|
130
|
-
/**
|
|
118
|
+
/** Context-aware alias for `client.kickChatMember()`. */
|
|
131
119
|
kickChatMember: (memberId: ID) => Promise<void>;
|
|
132
|
-
/**
|
|
120
|
+
/** Context-aware alias for `client.setChatMemberRights()`. */
|
|
133
121
|
setChatMemberRights: (memberId: ID, params?: SetChatMemberRightsParams) => Promise<void>;
|
|
134
|
-
/**
|
|
122
|
+
/** Context-aware alias for `client.deleteChatMemberMessages()`. */
|
|
135
123
|
deleteChatMemberMessages: (userId: ID) => Promise<void>;
|
|
136
|
-
/**
|
|
124
|
+
/** Context-aware alias for `client.searchMessages()`. */
|
|
137
125
|
searchMessages: (query: string, params?: SearchMessagesParams) => Promise<Message[]>;
|
|
138
|
-
/**
|
|
126
|
+
/** Context-aware alias for `client.setBoostsRequiredToCircumventRestrictions()`. */
|
|
139
127
|
setBoostsRequiredToCircumventRestrictions: (boosts: number) => Promise<void>;
|
|
140
|
-
/**
|
|
128
|
+
/** Context-aware alias for `client.createInviteLink()`. */
|
|
141
129
|
createInviteLink: (params?: CreateInviteLinkParams) => Promise<InviteLink>;
|
|
142
|
-
/**
|
|
130
|
+
/** Context-aware alias for `client.getCreatedInviteLinks()`. */
|
|
143
131
|
getCreatedInviteLinks: (params?: GetCreatedInviteLinksParams) => Promise<InviteLink[]>;
|
|
144
|
-
/**
|
|
132
|
+
/** Context-aware alias for `client.leaveChat()`. */
|
|
145
133
|
leave: () => Promise<void>;
|
|
146
|
-
/**
|
|
134
|
+
/** Context-aware alias for `client.blockUser()`. */
|
|
147
135
|
block: () => Promise<void>;
|
|
148
|
-
/**
|
|
136
|
+
/** Context-aware alias for `client.unblockUser()`. */
|
|
149
137
|
unblock: () => Promise<void>;
|
|
138
|
+
/** Context-aware alias for `client.getChatMember()`. */
|
|
139
|
+
getChatMember: (userId: ID) => Promise<ChatMember>;
|
|
140
|
+
/** Context-aware alias for `client.setChatStickerSet()`. */
|
|
141
|
+
setChatStickerSet: (setName: string) => Promise<void>;
|
|
142
|
+
/** Context-aware alias for `client.deleteChatStickerSet()`. */
|
|
143
|
+
deleteChatStickerSet: () => Promise<void>;
|
|
150
144
|
toJSON: () => Update;
|
|
151
145
|
}
|
|
152
|
-
export declare
|
|
146
|
+
export declare class Composer<C extends Context = Context> extends Composer_<C> {
|
|
147
|
+
}
|
|
148
|
+
export interface InvokeErrorHandler<C> {
|
|
149
|
+
(ctx: {
|
|
150
|
+
client: C;
|
|
151
|
+
error: unknown;
|
|
152
|
+
function: types.Type | functions.Function<unknown>;
|
|
153
|
+
n: number;
|
|
154
|
+
}, next: NextFunction<boolean>): MaybePromise<boolean>;
|
|
155
|
+
}
|
|
153
156
|
export declare const restartAuth: unique symbol;
|
|
157
|
+
export declare const handleMigrationError: unique symbol;
|
|
158
|
+
declare const getEntity: unique symbol;
|
|
154
159
|
export interface ClientParams extends ClientPlainParams {
|
|
155
160
|
/** A parse mode to use when the `parseMode` parameter is not specified when sending or editing messages. Defauls to `ParseMode.None`. */
|
|
156
161
|
parseMode?: ParseMode;
|
|
@@ -166,8 +171,6 @@ export interface ClientParams extends ClientPlainParams {
|
|
|
166
171
|
systemLangCode?: string;
|
|
167
172
|
/** The system_version parameter to be passed to initConnection when calling `authorize`. The default varies by the current runtime. */
|
|
168
173
|
systemVersion?: string;
|
|
169
|
-
/** Whether to automatically call `start` with no parameters in the first `invoke` call. Defaults to `true`. */
|
|
170
|
-
autoStart?: boolean;
|
|
171
174
|
/** Whether to use default handlers. Defaults to `true`. */
|
|
172
175
|
defaultHandlers?: boolean;
|
|
173
176
|
/** Whether to ignore outgoing messages. Defaults to `true` for bots, and `false` for users. */
|
|
@@ -181,7 +184,10 @@ export interface ClientParams extends ClientPlainParams {
|
|
|
181
184
|
/** Whether to store messages. Defaults to `false`. */
|
|
182
185
|
storeMessages?: boolean;
|
|
183
186
|
}
|
|
184
|
-
|
|
187
|
+
/**
|
|
188
|
+
* An MTKruto client.
|
|
189
|
+
*/
|
|
190
|
+
export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
185
191
|
#private;
|
|
186
192
|
readonly apiId: number | null;
|
|
187
193
|
readonly apiHash: string | null;
|
|
@@ -196,13 +202,14 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
196
202
|
/**
|
|
197
203
|
* Constructs the client.
|
|
198
204
|
*
|
|
199
|
-
* @param storage The storage provider to use. Defaults to memory storage. Passing a string constructs a memory storage with the string being the string
|
|
205
|
+
* @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.
|
|
200
206
|
* @param apiId App's API ID from [my.telegram.org](https://my.telegram.org/apps). Defaults to 0 (unset).
|
|
201
207
|
* @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps). Defaults to empty string (unset).
|
|
202
208
|
*/
|
|
203
209
|
constructor(storage?: Storage | string | null, apiId?: number | null, apiHash?: string | null, params?: ClientParams);
|
|
210
|
+
get connected(): boolean;
|
|
211
|
+
get disconnected(): boolean;
|
|
204
212
|
api: Api;
|
|
205
|
-
protected stateChangeHandler: (connected: boolean) => void;
|
|
206
213
|
/**
|
|
207
214
|
* Sets the DC and resets the auth key stored in the session provider
|
|
208
215
|
* if the stored DC was not the same as the `dc` parameter.
|
|
@@ -216,6 +223,7 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
216
223
|
* Before establishing the connection, the session is saved.
|
|
217
224
|
*/
|
|
218
225
|
connect(): Promise<void>;
|
|
226
|
+
reconnect(dc: DC): Promise<void>;
|
|
219
227
|
[handleMigrationError](err: Migrate): Promise<void>;
|
|
220
228
|
disconnect(): Promise<void>;
|
|
221
229
|
/**
|
|
@@ -258,22 +266,28 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
258
266
|
send<T extends (functions.Function<unknown> | types.Type) = functions.Function<unknown>>(function_: T): Promise<void>;
|
|
259
267
|
exportAuthString(): Promise<string>;
|
|
260
268
|
importAuthString(authString: string): Promise<void>;
|
|
269
|
+
/**
|
|
270
|
+
* Get a chat's inputPeer. Useful when calling API functions directly.
|
|
271
|
+
*
|
|
272
|
+
* @param id The identifier of the chat.
|
|
273
|
+
*/
|
|
261
274
|
getInputPeer(id: ID): Promise<enums.InputPeer>;
|
|
275
|
+
/**
|
|
276
|
+
* Get a channel or a supergroup's inputChannel. Useful when calling API functions directly.
|
|
277
|
+
*
|
|
278
|
+
* @param id The identifier of the channel or the supergroup.
|
|
279
|
+
*/
|
|
262
280
|
getInputChannel(id: ID): Promise<types.InputChannel>;
|
|
281
|
+
/**
|
|
282
|
+
* Get a user's inputUser. Useful when calling API functions directly.
|
|
283
|
+
*
|
|
284
|
+
* @param id The identifier of the user.
|
|
285
|
+
*/
|
|
263
286
|
getInputUser(id: ID): Promise<types.InputUser>;
|
|
264
287
|
private [getEntity];
|
|
265
288
|
private [getEntity];
|
|
266
289
|
private [getEntity];
|
|
267
290
|
private [getEntity];
|
|
268
|
-
use(...middleware: Middleware<UpdateIntersection<C>>[]): Composer<C>;
|
|
269
|
-
branch(predicate: (ctx: UpdateIntersection<C>) => MaybePromise<boolean>, trueHandler_: Middleware<UpdateIntersection<C>>, falseHandler_: Middleware<UpdateIntersection<C>>): Composer<C>;
|
|
270
|
-
filter<D extends C>(predicate: (ctx: UpdateIntersection<C>) => ctx is D, ...middleware: Middleware<D>[]): Composer<D>;
|
|
271
|
-
filter(predicate: (ctx: UpdateIntersection<C>) => MaybePromise<boolean>, ...middleware: Middleware<UpdateIntersection<C>>[]): Composer<C>;
|
|
272
|
-
on<Q extends FilterQuery>(filter: Q, ...middleware: Middleware<WithFilter<C, Q>>[]): Composer<UpdateIntersection<WithFilter<C, Q>>>;
|
|
273
|
-
command(commands: string | RegExp | (string | RegExp)[] | {
|
|
274
|
-
names: string | RegExp | (string | RegExp)[];
|
|
275
|
-
prefixes: string | string[];
|
|
276
|
-
}, ...middleware: Middleware<WithFilter<C, "message:text">>[]): Composer<WithFilter<C, "message:text">>;
|
|
277
291
|
/**
|
|
278
292
|
* Send a text message.
|
|
279
293
|
*
|
|
@@ -294,7 +308,7 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
294
308
|
*/
|
|
295
309
|
editMessageText(chatId: ID, messageId: number, text: string, params?: EditMessageParams): Promise<MessageText>;
|
|
296
310
|
/**
|
|
297
|
-
* Edit an inline message's text.
|
|
311
|
+
* Edit an inline message's text. Bot-only.
|
|
298
312
|
*
|
|
299
313
|
* @method ms
|
|
300
314
|
* @param inlineMessageId The inline message's identifier.
|
|
@@ -311,7 +325,7 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
311
325
|
*/
|
|
312
326
|
editMessageReplyMarkup(chatId: ID, messageId: number, params?: EditMessageReplyMarkupParams): Promise<Message>;
|
|
313
327
|
/**
|
|
314
|
-
* Edit an inline message's reply markup.
|
|
328
|
+
* Edit an inline message's reply markup. Bot-only.
|
|
315
329
|
*
|
|
316
330
|
* @method ms
|
|
317
331
|
* @param inlineMessageId The inline message's identifier.
|
|
@@ -643,9 +657,9 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
643
657
|
* @param id Identifier of one or more of custom emojis.
|
|
644
658
|
* @returns The custom emoji documents.
|
|
645
659
|
*/
|
|
646
|
-
|
|
660
|
+
getCustomEmojiStickers(id: string | string[]): Promise<Sticker[]>;
|
|
647
661
|
/**
|
|
648
|
-
* Set a chat's available reactions.
|
|
662
|
+
* Set a chat's available reactions. User-only.
|
|
649
663
|
*
|
|
650
664
|
* @method ch
|
|
651
665
|
* @param chatId The identifier of the chat.
|
|
@@ -695,7 +709,7 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
695
709
|
*/
|
|
696
710
|
deleteChatPhoto(chatId: number): Promise<void>;
|
|
697
711
|
/**
|
|
698
|
-
* Delete all messages sent by a specific member of a chat.
|
|
712
|
+
* Delete all messages sent by a specific member of a chat. User-only.
|
|
699
713
|
*
|
|
700
714
|
* @method ms
|
|
701
715
|
* @param chatId The identifier of the chat. Must be a supergroup.
|
|
@@ -892,7 +906,7 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
892
906
|
*/
|
|
893
907
|
getInactiveChats(): Promise<InactiveChat[]>;
|
|
894
908
|
/**
|
|
895
|
-
* Search the messages of a chat.
|
|
909
|
+
* Search the messages of a chat. User-only.
|
|
896
910
|
*
|
|
897
911
|
* @method ms
|
|
898
912
|
* @param chatId The identifier of the chat to search the messages in.
|
|
@@ -900,7 +914,7 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
900
914
|
*/
|
|
901
915
|
searchMessages(chatId: ID, query: string, params?: SearchMessagesParams): Promise<Message[]>;
|
|
902
916
|
/**
|
|
903
|
-
* Set the number of boosts required to circument a chat's default restrictions.
|
|
917
|
+
* Set the number of boosts required to circument a chat's default restrictions. User-only.
|
|
904
918
|
*
|
|
905
919
|
* @method ch
|
|
906
920
|
* @param chatId The identifier of the chat.
|
|
@@ -951,5 +965,28 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
951
965
|
* @param userId The identifier of the user to unblock.
|
|
952
966
|
*/
|
|
953
967
|
unblockUser(userId: ID): Promise<void>;
|
|
968
|
+
/**
|
|
969
|
+
* Get information on a user's chat membership.
|
|
970
|
+
*
|
|
971
|
+
* @method ch
|
|
972
|
+
* @param chatId The identifier of a chat that includes the user.
|
|
973
|
+
* @param userId The identifier of the user.
|
|
974
|
+
*/
|
|
975
|
+
getChatMember(chatId: ID, userId: ID): Promise<ChatMember>;
|
|
976
|
+
/**
|
|
977
|
+
* Set a chat's sticker set.
|
|
978
|
+
*
|
|
979
|
+
* @method ch
|
|
980
|
+
* @param chatId The identifier of the chat. Must be a supergroup.
|
|
981
|
+
* @param setName The name of the set.
|
|
982
|
+
*/
|
|
983
|
+
setChatStickerSet(chatId: ID, setName: string): Promise<void>;
|
|
984
|
+
/**
|
|
985
|
+
* Delete a chat's sticker set.
|
|
986
|
+
*
|
|
987
|
+
* @method ch
|
|
988
|
+
* @param chatId The identifier of the chat. Must be a supergroup.
|
|
989
|
+
*/
|
|
990
|
+
deleteChatStickerSet(chatId: ID): Promise<void>;
|
|
954
991
|
}
|
|
955
992
|
export {};
|