@mtkruto/node 0.1.303 → 0.1.400
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 +6 -5
- package/esm/0_deps.js +7 -6
- package/esm/1_utilities.d.ts +2 -0
- package/esm/1_utilities.js +2 -0
- package/esm/3_types.d.ts +2 -0
- package/esm/3_types.js +2 -0
- package/esm/client/0_message.js +11 -11
- package/esm/client/0_params.d.ts +8 -1
- package/esm/client/0_password.js +14 -6
- package/esm/client/0_types.d.ts +18 -7
- package/esm/client/0_utilities.d.ts +19 -2
- package/esm/client/0_utilities.js +1 -44
- package/esm/client/1_client_plain.js +6 -6
- package/esm/client/1_file_manager.d.ts +3 -21
- package/esm/client/1_file_manager.js +244 -104
- package/esm/client/2_message_manager.d.ts +4 -1
- package/esm/client/2_message_manager.js +166 -23
- package/esm/client/3_story_manager.js +4 -6
- package/esm/client/4_client.d.ts +20 -2
- package/esm/client/4_client.js +97 -49
- package/esm/connection/1_connection_web_socket.js +3 -3
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_almost_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_array_includes.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_exists.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_false.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater_or_equal.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_instance_of.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_is_error.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less_or_equal.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_match.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_instance_of.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_match.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_strict_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_object_match.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_rejects.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_strict_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_string_includes.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_throws.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assertion_error.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/equal.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/fail.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/mod.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unimplemented.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unreachable.js +1 -0
- package/esm/deps/deno.land/std@0.222.1/bytes/concat.d.ts +13 -0
- package/esm/deps/deno.land/std@0.222.1/bytes/concat.js +27 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/base64.d.ts +8 -2
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/base64.js +19 -2
- package/{script/deps/deno.land/std@0.221.0 → esm/deps/deno.land/std@0.222.1}/media_types/_util.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_util.js +1 -1
- package/{script/deps/deno.land/x/tgcrypto@0.4.0 → esm/deps/deno.land/x/tgcrypto@0.4.1}/mod.d.ts +14 -2
- package/esm/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/mod.js +56 -42
- package/esm/tl/0_tl_raw_writer.js +3 -2
- package/esm/transport/0_obfuscation.js +4 -3
- package/esm/transport/0_transport.d.ts +1 -1
- package/esm/transport/0_transport.js +7 -0
- package/esm/transport/1_transport_abridged.js +4 -2
- package/esm/transport/1_transport_intermediate.js +4 -2
- package/esm/types/0_file_source.d.ts +2 -2
- package/esm/types/0_self_destruct_option.d.ts +25 -0
- package/esm/types/0_self_destruct_option.js +39 -0
- package/esm/types/1_input_media.d.ts +108 -0
- package/esm/types/1_input_media.js +20 -0
- package/esm/utilities/0_buffer.d.ts +0 -1
- package/esm/utilities/0_buffer.js +0 -13
- package/esm/utilities/0_crypto.d.ts +3 -3
- package/esm/utilities/0_crypto.js +23 -20
- package/esm/utilities/0_part_stream.d.ts +29 -0
- package/esm/utilities/0_part_stream.js +65 -0
- package/esm/utilities/0_units.d.ts +25 -0
- package/esm/utilities/0_units.js +25 -0
- package/esm/utilities/1_auth.js +5 -5
- package/esm/utilities/1_misc.d.ts +1 -0
- package/esm/utilities/1_misc.js +17 -2
- package/package.json +1 -1
- package/script/0_deps.d.ts +6 -5
- package/script/0_deps.js +11 -7
- package/script/1_utilities.d.ts +2 -0
- package/script/1_utilities.js +2 -0
- package/script/3_types.d.ts +2 -0
- package/script/3_types.js +2 -0
- package/script/client/0_message.js +9 -9
- package/script/client/0_params.d.ts +8 -1
- package/script/client/0_password.js +13 -5
- package/script/client/0_types.d.ts +18 -7
- package/script/client/0_utilities.d.ts +19 -2
- package/script/client/0_utilities.js +2 -69
- package/script/client/1_client_plain.js +4 -4
- package/script/client/1_file_manager.d.ts +3 -21
- package/script/client/1_file_manager.js +266 -103
- package/script/client/2_message_manager.d.ts +4 -1
- package/script/client/2_message_manager.js +164 -21
- package/script/client/3_story_manager.js +3 -5
- package/script/client/4_client.d.ts +20 -2
- package/script/client/4_client.js +96 -48
- package/script/connection/1_connection_web_socket.js +1 -1
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_almost_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_array_includes.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_exists.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_false.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater_or_equal.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_instance_of.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_is_error.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less_or_equal.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_match.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_instance_of.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_match.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_strict_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_object_match.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_rejects.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_strict_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_string_includes.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_throws.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assertion_error.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/equal.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/fail.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/mod.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unimplemented.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unreachable.js +1 -0
- package/script/deps/deno.land/std@0.222.1/bytes/concat.d.ts +13 -0
- package/script/deps/deno.land/std@0.222.1/bytes/concat.js +31 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/base64.d.ts +8 -2
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/base64.js +19 -2
- package/{esm/deps/deno.land/std@0.221.0 → script/deps/deno.land/std@0.222.1}/media_types/_util.d.ts +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_util.js +2 -1
- package/{esm/deps/deno.land/x/tgcrypto@0.4.0 → script/deps/deno.land/x/tgcrypto@0.4.1}/mod.d.ts +14 -2
- package/script/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/mod.js +61 -43
- package/script/tl/0_tl_raw_writer.js +2 -1
- package/script/transport/0_obfuscation.js +3 -2
- package/script/transport/0_transport.d.ts +1 -1
- package/script/transport/0_transport.js +7 -0
- package/script/transport/1_transport_abridged.js +3 -1
- package/script/transport/1_transport_intermediate.js +3 -1
- package/script/types/0_file_source.d.ts +2 -2
- package/script/types/0_self_destruct_option.d.ts +25 -0
- package/script/types/0_self_destruct_option.js +43 -0
- package/script/types/1_input_media.d.ts +108 -0
- package/script/types/1_input_media.js +21 -0
- package/script/utilities/0_buffer.d.ts +0 -1
- package/script/utilities/0_buffer.js +1 -15
- package/script/utilities/0_crypto.d.ts +3 -3
- package/script/utilities/0_crypto.js +22 -19
- package/script/utilities/0_part_stream.d.ts +29 -0
- package/script/utilities/0_part_stream.js +69 -0
- package/script/utilities/0_units.d.ts +25 -0
- package/script/utilities/0_units.js +28 -0
- package/script/utilities/1_auth.js +3 -3
- package/script/utilities/1_misc.d.ts +1 -0
- package/script/utilities/1_misc.js +19 -3
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.d.ts +0 -0
- /package/esm/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.d.ts +0 -0
- /package/script/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.js +0 -0
|
@@ -29,7 +29,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
29
29
|
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");
|
|
30
30
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
31
31
|
};
|
|
32
|
-
var _MessageManager_instances, _MessageManager_c, _MessageManager_LresolveFileId, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_sendReaction, _MessageManager_toggleJoinRequests;
|
|
32
|
+
var _MessageManager_instances, _MessageManager_c, _MessageManager_LresolveFileId, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_resolveInputMediaInner, _MessageManager_resolveInputMedia, _MessageManager_sendReaction, _MessageManager_toggleJoinRequests;
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
34
|
exports.MessageManager = void 0;
|
|
35
35
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -441,23 +441,32 @@ class MessageManager {
|
|
|
441
441
|
async sendPhoto(chatId, photo, params) {
|
|
442
442
|
let media = null;
|
|
443
443
|
const spoiler = params?.hasSpoiler ? true : undefined;
|
|
444
|
+
const ttl_seconds = params && "selfDestruct" in params && params.selfDestruct !== undefined ? (0, _3_types_js_1.selfDestructOptionToInt)(params.selfDestruct) : undefined;
|
|
444
445
|
if (typeof photo === "string") {
|
|
445
446
|
const fileId = this.resolveFileId(photo, [_3_types_js_2.FileType.Photo, _3_types_js_2.FileType.ProfilePhoto]);
|
|
446
447
|
if (fileId != null) {
|
|
447
448
|
media = new _2_tl_js_1.types.InputMediaPhoto({
|
|
448
449
|
id: new _2_tl_js_1.types.InputPhoto(fileId),
|
|
449
450
|
spoiler,
|
|
451
|
+
ttl_seconds,
|
|
450
452
|
});
|
|
451
453
|
}
|
|
452
454
|
}
|
|
453
455
|
if (media == null) {
|
|
454
456
|
if (typeof photo === "string" && (0, _0_utilities_js_3.isHttpUrl)(photo)) {
|
|
455
|
-
media = new _2_tl_js_1.types.InputMediaPhotoExternal({
|
|
457
|
+
media = new _2_tl_js_1.types.InputMediaPhotoExternal({
|
|
458
|
+
url: photo,
|
|
459
|
+
spoiler,
|
|
460
|
+
ttl_seconds: (params && "selfDestruct" in params && params.selfDestruct !== undefined) ? (0, _3_types_js_1.selfDestructOptionToInt)(params.selfDestruct) : undefined,
|
|
461
|
+
});
|
|
456
462
|
}
|
|
457
463
|
else {
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
|
|
464
|
+
const file = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(photo, params, null, false);
|
|
465
|
+
media = new _2_tl_js_1.types.InputMediaUploadedPhoto({
|
|
466
|
+
file,
|
|
467
|
+
spoiler,
|
|
468
|
+
ttl_seconds: (params && "selfDestruct" in params && params.selfDestruct !== undefined) ? (0, _3_types_js_1.selfDestructOptionToInt)(params.selfDestruct) : undefined,
|
|
469
|
+
});
|
|
461
470
|
}
|
|
462
471
|
}
|
|
463
472
|
const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendMedia).call(this, chatId, media, params);
|
|
@@ -600,6 +609,32 @@ class MessageManager {
|
|
|
600
609
|
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
601
610
|
});
|
|
602
611
|
}
|
|
612
|
+
async editMessageMedia(chatId, messageId, media, params) {
|
|
613
|
+
const message = await this.getMessage(chatId, messageId);
|
|
614
|
+
if (!message) {
|
|
615
|
+
throw new _0_errors_js_1.InputError("Message not found.");
|
|
616
|
+
}
|
|
617
|
+
if (!("animation" in message) && !("audio" in message) && !("document" in message) && !("photo" in message) && !("video" in message)) {
|
|
618
|
+
throw new _0_errors_js_1.InputError("Unexpected message type.");
|
|
619
|
+
}
|
|
620
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
|
|
621
|
+
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
622
|
+
id: messageId,
|
|
623
|
+
media: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveInputMedia).call(this, media),
|
|
624
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
625
|
+
});
|
|
626
|
+
const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
627
|
+
return message_;
|
|
628
|
+
}
|
|
629
|
+
async editInlineMessageMedia(inlineMessageId, media, params) {
|
|
630
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertBot("editInlineMessageMedia");
|
|
631
|
+
const id = (0, _3_types_js_2.deserializeInlineMessageId)(inlineMessageId);
|
|
632
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
|
|
633
|
+
id,
|
|
634
|
+
media: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveInputMedia).call(this, media),
|
|
635
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
636
|
+
});
|
|
637
|
+
}
|
|
603
638
|
async deleteMessages(chatId, messageIds, params) {
|
|
604
639
|
(0, _0_utilities_js_2.checkArray)(messageIds, _0_utilities_js_1.checkMessageId);
|
|
605
640
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
@@ -813,8 +848,7 @@ class MessageManager {
|
|
|
813
848
|
if (!(peer instanceof _2_tl_js_1.types.InputPeerChannel) && !(peer instanceof _2_tl_js_1.types.InputPeerChat)) {
|
|
814
849
|
(0, _0_deps_js_1.unreachable)();
|
|
815
850
|
}
|
|
816
|
-
const
|
|
817
|
-
const file = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(contents, { fileName: params?.fileName ?? fileName, chunkSize: params?.chunkSize, signal: params?.signal });
|
|
851
|
+
const file = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(photo, params);
|
|
818
852
|
const photo_ = new _2_tl_js_1.types.InputChatUploadedPhoto({ file });
|
|
819
853
|
if (peer instanceof _2_tl_js_1.types.InputPeerChannel) {
|
|
820
854
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.editPhoto({ channel: new _2_tl_js_1.types.InputChannel(peer), photo: photo_ });
|
|
@@ -1168,6 +1202,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1168
1202
|
}, _MessageManager_sendDocumentInner = async function _MessageManager_sendDocumentInner(chatId, document, params, fileType, otherAttribs, urlSupported = false, expectedMimeTypes) {
|
|
1169
1203
|
let media = null;
|
|
1170
1204
|
const spoiler = params?.hasSpoiler ? true : undefined;
|
|
1205
|
+
const ttl_seconds = params && "selfDestruct" in params && typeof params.selfDestruct !== undefined ? (0, _3_types_js_1.selfDestructOptionToInt)(params.selfDestruct) : undefined;
|
|
1171
1206
|
if (typeof document === "string") {
|
|
1172
1207
|
const fileId = this.resolveFileId(document, fileType);
|
|
1173
1208
|
if (fileId != null) {
|
|
@@ -1175,6 +1210,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1175
1210
|
id: new _2_tl_js_1.types.InputDocument(fileId),
|
|
1176
1211
|
spoiler,
|
|
1177
1212
|
query: otherAttribs.find((v) => v instanceof _2_tl_js_1.types.DocumentAttributeSticker)?.alt || undefined,
|
|
1213
|
+
ttl_seconds,
|
|
1178
1214
|
});
|
|
1179
1215
|
}
|
|
1180
1216
|
}
|
|
@@ -1183,31 +1219,32 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1183
1219
|
if (!urlSupported) {
|
|
1184
1220
|
throw new _0_errors_js_1.InputError("URL not supported.");
|
|
1185
1221
|
}
|
|
1186
|
-
media = new _2_tl_js_1.types.InputMediaDocumentExternal({ url: document, spoiler });
|
|
1222
|
+
media = new _2_tl_js_1.types.InputMediaDocumentExternal({ url: document, spoiler, ttl_seconds });
|
|
1187
1223
|
}
|
|
1188
1224
|
else {
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1225
|
+
let mimeType;
|
|
1226
|
+
const file = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(document, params, (name) => {
|
|
1227
|
+
mimeType = params?.mimeType ?? (0, _0_deps_js_1.contentType)(name.split(".").slice(-1)[0]) ?? FALLBACK_MIME_TYPE;
|
|
1228
|
+
if (expectedMimeTypes && !expectedMimeTypes.includes(mimeType)) {
|
|
1229
|
+
(0, _0_deps_js_1.unreachable)();
|
|
1230
|
+
}
|
|
1231
|
+
if (name.endsWith(".tgs") && fileType == _3_types_js_2.FileType.Document) {
|
|
1232
|
+
name += "-";
|
|
1233
|
+
}
|
|
1234
|
+
return name;
|
|
1235
|
+
});
|
|
1199
1236
|
let thumb = undefined;
|
|
1200
1237
|
if (params?.thumbnail) {
|
|
1201
|
-
|
|
1202
|
-
thumb = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(thumbContents, { fileName: fileName__, chunkSize: params?.chunkSize, signal: params?.signal });
|
|
1238
|
+
thumb = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(params.thumbnail, { chunkSize: params?.chunkSize, signal: params?.signal });
|
|
1203
1239
|
}
|
|
1204
1240
|
media = new _2_tl_js_1.types.InputMediaUploadedDocument({
|
|
1205
1241
|
file,
|
|
1206
1242
|
thumb,
|
|
1207
1243
|
spoiler,
|
|
1208
|
-
attributes: [new _2_tl_js_1.types.DocumentAttributeFilename({ file_name:
|
|
1244
|
+
attributes: [new _2_tl_js_1.types.DocumentAttributeFilename({ file_name: file.name }), ...otherAttribs],
|
|
1209
1245
|
mime_type: mimeType,
|
|
1210
1246
|
force_file: fileType == _3_types_js_2.FileType.Document ? true : undefined,
|
|
1247
|
+
ttl_seconds,
|
|
1211
1248
|
});
|
|
1212
1249
|
}
|
|
1213
1250
|
}
|
|
@@ -1237,6 +1274,112 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1237
1274
|
entities: captionEntities,
|
|
1238
1275
|
}), params?.businessConnectionId);
|
|
1239
1276
|
return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result, params?.businessConnectionId).then((v) => v[0]);
|
|
1277
|
+
}, _MessageManager_resolveInputMediaInner = async function _MessageManager_resolveInputMediaInner(document, media, fileType, otherAttribs) {
|
|
1278
|
+
let media_ = null;
|
|
1279
|
+
const spoiler = "hasSpoiler" in media && media.hasSpoiler ? true : undefined;
|
|
1280
|
+
if (typeof document === "string") {
|
|
1281
|
+
const fileId = this.resolveFileId(document, fileType);
|
|
1282
|
+
if (fileId != null) {
|
|
1283
|
+
media_ = new _2_tl_js_1.types.InputMediaDocument({
|
|
1284
|
+
id: new _2_tl_js_1.types.InputDocument(fileId),
|
|
1285
|
+
spoiler,
|
|
1286
|
+
query: otherAttribs.find((v) => v instanceof _2_tl_js_1.types.DocumentAttributeSticker)?.alt || undefined,
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
if (media_ == null) {
|
|
1291
|
+
if (typeof document === "string" && (0, _0_utilities_js_3.isHttpUrl)(document)) {
|
|
1292
|
+
media_ = new _2_tl_js_1.types.InputMediaDocumentExternal({ url: document, spoiler });
|
|
1293
|
+
}
|
|
1294
|
+
else {
|
|
1295
|
+
let mimeType;
|
|
1296
|
+
const file = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(document, media, (name) => {
|
|
1297
|
+
mimeType = media?.mimeType ?? (0, _0_deps_js_1.contentType)(name.split(".").slice(-1)[0]) ?? FALLBACK_MIME_TYPE;
|
|
1298
|
+
if (name.endsWith(".tgs") && fileType == _3_types_js_2.FileType.Document) {
|
|
1299
|
+
name += "-";
|
|
1300
|
+
}
|
|
1301
|
+
return name;
|
|
1302
|
+
});
|
|
1303
|
+
let thumb = undefined;
|
|
1304
|
+
if ("thumbnail" in media && media.thumbnail) {
|
|
1305
|
+
thumb = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(media.thumbnail, { chunkSize: media?.chunkSize, signal: media?.signal });
|
|
1306
|
+
}
|
|
1307
|
+
media_ = new _2_tl_js_1.types.InputMediaUploadedDocument({
|
|
1308
|
+
file,
|
|
1309
|
+
thumb,
|
|
1310
|
+
spoiler,
|
|
1311
|
+
attributes: [new _2_tl_js_1.types.DocumentAttributeFilename({ file_name: file.name }), ...otherAttribs],
|
|
1312
|
+
mime_type: mimeType,
|
|
1313
|
+
force_file: fileType == _3_types_js_2.FileType.Document ? true : undefined,
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
return media_;
|
|
1318
|
+
}, _MessageManager_resolveInputMedia = async function _MessageManager_resolveInputMedia(media) {
|
|
1319
|
+
if ("animation" in media) {
|
|
1320
|
+
return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveInputMediaInner).call(this, media.animation, media, _3_types_js_2.FileType.Animation, [
|
|
1321
|
+
new _2_tl_js_1.types.DocumentAttributeAnimated(),
|
|
1322
|
+
new _2_tl_js_1.types.DocumentAttributeVideo({
|
|
1323
|
+
supports_streaming: true,
|
|
1324
|
+
w: media?.width ?? 0,
|
|
1325
|
+
h: media?.height ?? 0,
|
|
1326
|
+
duration: media?.duration ?? 0,
|
|
1327
|
+
}),
|
|
1328
|
+
]);
|
|
1329
|
+
}
|
|
1330
|
+
else if ("audio" in media) {
|
|
1331
|
+
return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveInputMediaInner).call(this, media.audio, media, _3_types_js_2.FileType.Audio, [
|
|
1332
|
+
new _2_tl_js_1.types.DocumentAttributeAudio({
|
|
1333
|
+
duration: media?.duration ?? 0,
|
|
1334
|
+
performer: media?.performer,
|
|
1335
|
+
title: media?.title,
|
|
1336
|
+
}),
|
|
1337
|
+
]);
|
|
1338
|
+
}
|
|
1339
|
+
else if ("document" in media) {
|
|
1340
|
+
return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveInputMediaInner).call(this, media.document, media, _3_types_js_2.FileType.Document, []);
|
|
1341
|
+
}
|
|
1342
|
+
else if ("photo" in media) {
|
|
1343
|
+
let media_ = null;
|
|
1344
|
+
const spoiler = media.hasSpoiler ? true : undefined;
|
|
1345
|
+
const ttl_seconds = "selfDestruct" in media && media.selfDestruct !== undefined ? (0, _3_types_js_1.selfDestructOptionToInt)(media.selfDestruct) : undefined;
|
|
1346
|
+
if (typeof media.photo === "string") {
|
|
1347
|
+
const fileId = this.resolveFileId(media.photo, [_3_types_js_2.FileType.Photo, _3_types_js_2.FileType.ProfilePhoto]);
|
|
1348
|
+
if (fileId != null) {
|
|
1349
|
+
media_ = new _2_tl_js_1.types.InputMediaPhoto({
|
|
1350
|
+
id: new _2_tl_js_1.types.InputPhoto(fileId),
|
|
1351
|
+
spoiler,
|
|
1352
|
+
ttl_seconds,
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
if (media_ == null) {
|
|
1357
|
+
if (typeof media.photo === "string" && (0, _0_utilities_js_3.isHttpUrl)(media.photo)) {
|
|
1358
|
+
media_ = new _2_tl_js_1.types.InputMediaPhotoExternal({ url: media.photo, spoiler });
|
|
1359
|
+
}
|
|
1360
|
+
else {
|
|
1361
|
+
const file = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(media.photo, media, null, false);
|
|
1362
|
+
media_ = new _2_tl_js_1.types.InputMediaUploadedPhoto({ file, spoiler, ttl_seconds });
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
return media_;
|
|
1366
|
+
}
|
|
1367
|
+
else if ("video" in media) {
|
|
1368
|
+
const ttl_seconds = "selfDestruct" in media && media.selfDestruct !== undefined ? (0, _3_types_js_1.selfDestructOptionToInt)(media.selfDestruct) : undefined;
|
|
1369
|
+
const media_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveInputMediaInner).call(this, media.video, media, _3_types_js_2.FileType.Video, [
|
|
1370
|
+
new _2_tl_js_1.types.DocumentAttributeVideo({
|
|
1371
|
+
supports_streaming: media?.supportsStreaming ? true : undefined,
|
|
1372
|
+
w: media?.width ?? 0,
|
|
1373
|
+
h: media?.height ?? 0,
|
|
1374
|
+
duration: media?.duration ?? 0,
|
|
1375
|
+
}),
|
|
1376
|
+
]);
|
|
1377
|
+
media_.ttl_seconds = ttl_seconds;
|
|
1378
|
+
return media_;
|
|
1379
|
+
}
|
|
1380
|
+
else {
|
|
1381
|
+
(0, _0_deps_js_1.unreachable)();
|
|
1382
|
+
}
|
|
1240
1383
|
}, _MessageManager_sendReaction = async function _MessageManager_sendReaction(chatId, messageId, reactions, params) {
|
|
1241
1384
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendReaction({
|
|
1242
1385
|
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
@@ -61,14 +61,12 @@ class StoryManager {
|
|
|
61
61
|
throw new _0_errors_js_1.InputError("URL not supported.");
|
|
62
62
|
}
|
|
63
63
|
else {
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
const mimeType = (0, _0_deps_js_1.contentType)(fileName.split(".").slice(-1)[0]) ?? "application/octet-stream";
|
|
67
|
-
const file = await __classPrivateFieldGet(this, _StoryManager_c, "f").fileManager.upload(contents, { fileName, chunkSize: params?.chunkSize, signal: params?.signal });
|
|
64
|
+
const file = await __classPrivateFieldGet(this, _StoryManager_c, "f").fileManager.upload(source, params, null, "video" in content);
|
|
65
|
+
const mimeType = (0, _0_deps_js_1.contentType)(file.name.split(".").slice(-1)[0]) ?? "application/octet-stream";
|
|
68
66
|
if ("video" in content) {
|
|
69
67
|
media = new _2_tl_js_1.types.InputMediaUploadedDocument({
|
|
70
68
|
file,
|
|
71
|
-
attributes: [new _2_tl_js_1.types.DocumentAttributeFilename({ file_name:
|
|
69
|
+
attributes: [new _2_tl_js_1.types.DocumentAttributeFilename({ file_name: file.name }), new _2_tl_js_1.types.DocumentAttributeVideo({ w: 720, h: 1280, duration: content.duration })],
|
|
72
70
|
mime_type: mimeType,
|
|
73
71
|
});
|
|
74
72
|
}
|
|
@@ -21,9 +21,9 @@ import { MaybePromise } from "../1_utilities.js";
|
|
|
21
21
|
import { enums, functions, types } from "../2_tl.js";
|
|
22
22
|
import { Storage } from "../3_storage.js";
|
|
23
23
|
import { DC } from "../3_transport.js";
|
|
24
|
-
import { BotCommand, BusinessConnection, Chat, ChatAction, ChatMember, ChatP, FileSource, ID, InactiveChat, InlineQueryResult, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Poll, Reaction, Sticker, Story, Update, User } from "../3_types.js";
|
|
24
|
+
import { BotCommand, BusinessConnection, Chat, ChatAction, ChatMember, ChatP, FileSource, ID, InactiveChat, InlineQueryResult, InputMedia, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Poll, Reaction, Sticker, Story, Update, User } from "../3_types.js";
|
|
25
25
|
import { Migrate } from "../4_errors.js";
|
|
26
|
-
import { AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeleteMessageParams, DeleteMessagesParams, DownloadParams, EditMessageLiveLocationParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, PinMessageParams, ReplyParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, StopPollParams } from "./0_params.js";
|
|
26
|
+
import { AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeleteMessageParams, DeleteMessagesParams, DownloadParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, PinMessageParams, ReplyParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, StopPollParams } from "./0_params.js";
|
|
27
27
|
import { Api } from "./0_types.js";
|
|
28
28
|
import { ClientPlainParams } from "./1_client_plain.js";
|
|
29
29
|
import { Composer as Composer_, NextFunction } from "./1_composer.js";
|
|
@@ -498,6 +498,24 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
498
498
|
* @returns The edited text message.
|
|
499
499
|
*/
|
|
500
500
|
editMessageText(chatId: ID, messageId: number, text: string, params?: EditMessageParams): Promise<MessageText>;
|
|
501
|
+
/**
|
|
502
|
+
* Edit a message's media.
|
|
503
|
+
*
|
|
504
|
+
* @method ms
|
|
505
|
+
* @param chatId The identifier of the chat that contains the message.
|
|
506
|
+
* @param messageId The message's identifier.
|
|
507
|
+
* @param media The new media of the message.
|
|
508
|
+
* @returns The edited message.
|
|
509
|
+
*/
|
|
510
|
+
editMessageMedia(chatId: ID, messageId: number, media: InputMedia, params?: EditMessageMediaParams): Promise<Message>;
|
|
511
|
+
/**
|
|
512
|
+
* Edit an inline message's media.
|
|
513
|
+
*
|
|
514
|
+
* @method ms
|
|
515
|
+
* @param inlineMessageId The inline message's identifier.
|
|
516
|
+
* @param media The new media of the message.
|
|
517
|
+
*/
|
|
518
|
+
editInlineMessageMedia(inlineMessageId: string, media: InputMedia, params?: EditMessageMediaParams): Promise<void>;
|
|
501
519
|
/**
|
|
502
520
|
* Edit an inline message's text. Bot-only.
|
|
503
521
|
*
|
|
@@ -29,7 +29,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
29
29
|
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");
|
|
30
30
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
31
31
|
};
|
|
32
|
-
var _Client_instances, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_ignoreOutgoing, _Client_storeMessages, _Client_Lauthorize, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_namespaceProxies, _Client_getApiId, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_pingLoopStarted, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
|
|
32
|
+
var _Client_instances, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_ignoreOutgoing, _Client_storeMessages, _Client_Lauthorize, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_namespaceProxies, _Client_getApiId, _Client_getCdnConnectionPool, _Client_getCdnConnection, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_pingLoopStarted, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
34
|
exports.Client = exports.handleMigrationError = exports.restartAuth = exports.Composer = void 0;
|
|
35
35
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -579,7 +579,7 @@ class Client extends Composer {
|
|
|
579
579
|
_Client_lastPropagatedAuthorizationState.set(this, null);
|
|
580
580
|
_Client_pingLoopStarted.set(this, false);
|
|
581
581
|
_Client_pingLoopAbortController.set(this, null);
|
|
582
|
-
_Client_pingInterval.set(this,
|
|
582
|
+
_Client_pingInterval.set(this, 1 * _1_utilities_js_1.minute);
|
|
583
583
|
_Client_lastUpdates.set(this, new Date());
|
|
584
584
|
_Client_handleInvokeError.set(this, skipInvoke());
|
|
585
585
|
/**
|
|
@@ -689,48 +689,8 @@ class Client extends Composer {
|
|
|
689
689
|
getEntity: this[getEntity].bind(this),
|
|
690
690
|
handleUpdate: __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).bind(this),
|
|
691
691
|
parseMode: __classPrivateFieldGet(this, _Client_parseMode, "f"),
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider,
|
|
695
|
-
appVersion: this.appVersion,
|
|
696
|
-
deviceModel: this.deviceModel,
|
|
697
|
-
langCode: this.langCode,
|
|
698
|
-
langPack: this.langPack,
|
|
699
|
-
systemLangCode: this.systemLangCode,
|
|
700
|
-
systemVersion: this.systemVersion,
|
|
701
|
-
cdn: true,
|
|
702
|
-
});
|
|
703
|
-
__classPrivateFieldGet(client, _Client_client, "f").serverSalt = __classPrivateFieldGet(this, _Client_client, "f").serverSalt;
|
|
704
|
-
client.invoke.use(async (ctx, next) => {
|
|
705
|
-
if (ctx.error instanceof _4_errors_js_1.AuthKeyUnregistered && dcId) {
|
|
706
|
-
try {
|
|
707
|
-
const exportedAuth = await this.api.auth.exportAuthorization({ dc_id: dcId });
|
|
708
|
-
await client.api.auth.importAuthorization(exportedAuth);
|
|
709
|
-
return true;
|
|
710
|
-
}
|
|
711
|
-
catch (err) {
|
|
712
|
-
throw err;
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
else {
|
|
716
|
-
return await next();
|
|
717
|
-
}
|
|
718
|
-
});
|
|
719
|
-
return {
|
|
720
|
-
api: client.api,
|
|
721
|
-
connect: async () => {
|
|
722
|
-
await client.connect();
|
|
723
|
-
if (dcId && dcId != __classPrivateFieldGet(this, _Client_client, "f").dcId) {
|
|
724
|
-
let dc = String(dcId);
|
|
725
|
-
if (__classPrivateFieldGet(this, _Client_client, "f").dcId < 0) {
|
|
726
|
-
dc += "-test";
|
|
727
|
-
}
|
|
728
|
-
await client.setDc(dc);
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
disconnect: client.disconnect.bind(client),
|
|
732
|
-
};
|
|
733
|
-
},
|
|
692
|
+
getCdnConnection: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getCdnConnection).bind(this),
|
|
693
|
+
getCdnConnectionPool: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getCdnConnectionPool).bind(this),
|
|
734
694
|
cdn: params?.cdn ?? false,
|
|
735
695
|
ignoreOutgoing: __classPrivateFieldGet(this, _Client_ignoreOutgoing, "f"),
|
|
736
696
|
dropPendingUpdates: params?.dropPendingUpdates,
|
|
@@ -774,7 +734,7 @@ class Client extends Composer {
|
|
|
774
734
|
catch (err) {
|
|
775
735
|
L.debug(`failed to reconnect, retrying in ${delay}:`, err);
|
|
776
736
|
}
|
|
777
|
-
await new Promise((r) => setTimeout(r, delay *
|
|
737
|
+
await new Promise((r) => setTimeout(r, delay * _1_utilities_js_1.second));
|
|
778
738
|
if (delay < 15) {
|
|
779
739
|
delay += 5;
|
|
780
740
|
}
|
|
@@ -861,6 +821,72 @@ class Client extends Composer {
|
|
|
861
821
|
throw new Error("apiId not set");
|
|
862
822
|
}
|
|
863
823
|
return apiId;
|
|
824
|
+
}, _Client_getCdnConnectionPool = function _Client_getCdnConnectionPool(connectionCount, dcId) {
|
|
825
|
+
const connections = new Array();
|
|
826
|
+
for (let i = 0; i < connectionCount; ++i) {
|
|
827
|
+
connections.push(__classPrivateFieldGet(this, _Client_instances, "m", _Client_getCdnConnection).call(this, dcId));
|
|
828
|
+
}
|
|
829
|
+
let prev = 0;
|
|
830
|
+
return {
|
|
831
|
+
size: connectionCount,
|
|
832
|
+
api: () => {
|
|
833
|
+
if (prev + 1 > connections.length)
|
|
834
|
+
prev = 0;
|
|
835
|
+
const connection = connections[prev++];
|
|
836
|
+
return connection.api;
|
|
837
|
+
},
|
|
838
|
+
connect: async () => {
|
|
839
|
+
for await (const connection of connections) {
|
|
840
|
+
await connection.connect();
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
disconnect: async () => {
|
|
844
|
+
for await (const connection of connections) {
|
|
845
|
+
await connection.disconnect();
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
};
|
|
849
|
+
}, _Client_getCdnConnection = function _Client_getCdnConnection(dcId) {
|
|
850
|
+
const client = new _a((!dcId || dcId == __classPrivateFieldGet(this, _Client_client, "f").dcId) ? this.storage : this.storage.branch(`download_client_${dcId}`), this.apiId, this.apiHash, {
|
|
851
|
+
transportProvider: __classPrivateFieldGet(this, _Client_client, "f").transportProvider,
|
|
852
|
+
appVersion: this.appVersion,
|
|
853
|
+
deviceModel: this.deviceModel,
|
|
854
|
+
langCode: this.langCode,
|
|
855
|
+
langPack: this.langPack,
|
|
856
|
+
systemLangCode: this.systemLangCode,
|
|
857
|
+
systemVersion: this.systemVersion,
|
|
858
|
+
cdn: true,
|
|
859
|
+
});
|
|
860
|
+
__classPrivateFieldGet(client, _Client_client, "f").serverSalt = __classPrivateFieldGet(this, _Client_client, "f").serverSalt;
|
|
861
|
+
client.invoke.use(async (ctx, next) => {
|
|
862
|
+
if (ctx.error instanceof _4_errors_js_1.AuthKeyUnregistered && dcId) {
|
|
863
|
+
try {
|
|
864
|
+
const exportedAuth = await this.api.auth.exportAuthorization({ dc_id: dcId });
|
|
865
|
+
await client.api.auth.importAuthorization(exportedAuth);
|
|
866
|
+
return true;
|
|
867
|
+
}
|
|
868
|
+
catch (err) {
|
|
869
|
+
throw err;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
else {
|
|
873
|
+
return await next();
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
return {
|
|
877
|
+
api: client.api,
|
|
878
|
+
connect: async () => {
|
|
879
|
+
await client.connect();
|
|
880
|
+
if (dcId && dcId != __classPrivateFieldGet(this, _Client_client, "f").dcId) {
|
|
881
|
+
let dc = String(dcId);
|
|
882
|
+
if (__classPrivateFieldGet(this, _Client_client, "f").dcId < 0) {
|
|
883
|
+
dc += "-test";
|
|
884
|
+
}
|
|
885
|
+
await client.setDc(dc);
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
disconnect: client.disconnect.bind(client),
|
|
889
|
+
};
|
|
864
890
|
}, _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
|
|
865
891
|
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
|
|
866
892
|
__classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
|
|
@@ -1146,8 +1172,8 @@ class Client extends Composer {
|
|
|
1146
1172
|
continue;
|
|
1147
1173
|
}
|
|
1148
1174
|
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
|
|
1149
|
-
await this.api.ping_delay_disconnect({ ping_id: (0, _1_utilities_js_1.getRandomId)(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") /
|
|
1150
|
-
if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 *
|
|
1175
|
+
await this.api.ping_delay_disconnect({ ping_id: (0, _1_utilities_js_1.getRandomId)(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") / _1_utilities_js_1.second + 15 });
|
|
1176
|
+
if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 * _1_utilities_js_1.minute) {
|
|
1151
1177
|
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("lastUpdates"));
|
|
1152
1178
|
}
|
|
1153
1179
|
}
|
|
@@ -1524,6 +1550,28 @@ class Client extends Composer {
|
|
|
1524
1550
|
async editMessageText(chatId, messageId, text, params) {
|
|
1525
1551
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
|
|
1526
1552
|
}
|
|
1553
|
+
/**
|
|
1554
|
+
* Edit a message's media.
|
|
1555
|
+
*
|
|
1556
|
+
* @method ms
|
|
1557
|
+
* @param chatId The identifier of the chat that contains the message.
|
|
1558
|
+
* @param messageId The message's identifier.
|
|
1559
|
+
* @param media The new media of the message.
|
|
1560
|
+
* @returns The edited message.
|
|
1561
|
+
*/
|
|
1562
|
+
async editMessageMedia(chatId, messageId, media, params) {
|
|
1563
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageMedia(chatId, messageId, media, params);
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* Edit an inline message's media.
|
|
1567
|
+
*
|
|
1568
|
+
* @method ms
|
|
1569
|
+
* @param inlineMessageId The inline message's identifier.
|
|
1570
|
+
* @param media The new media of the message.
|
|
1571
|
+
*/
|
|
1572
|
+
async editInlineMessageMedia(inlineMessageId, media, params) {
|
|
1573
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageMedia(inlineMessageId, media, params);
|
|
1574
|
+
}
|
|
1527
1575
|
/**
|
|
1528
1576
|
* Edit an inline message's text. Bot-only.
|
|
1529
1577
|
*
|
|
@@ -2225,7 +2273,7 @@ class Client extends Composer {
|
|
|
2225
2273
|
}
|
|
2226
2274
|
}
|
|
2227
2275
|
exports.Client = Client;
|
|
2228
|
-
_Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
2276
|
+
_a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
2229
2277
|
await this.middleware()(await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, update), _0_utilities_js_1.resolve);
|
|
2230
2278
|
}, _Client_queueHandleCtxUpdate = function _Client_queueHandleCtxUpdate(update) {
|
|
2231
2279
|
__classPrivateFieldGet(this, _Client_updateManager, "f").getHandleUpdateQueue(_1_update_manager_js_1.UpdateManager.MAIN_BOX_ID).add(async () => {
|
|
@@ -163,7 +163,7 @@ _ConnectionWebSocket_webSocket = new WeakMap(), _ConnectionWebSocket_rMutex = ne
|
|
|
163
163
|
}
|
|
164
164
|
const unlock = await mutex.lock();
|
|
165
165
|
const data = new Uint8Array(await new Blob([e.data].map((v) => v instanceof Blob || v instanceof Uint8Array ? v : v instanceof ArrayBuffer ? v : (0, _0_deps_js_1.unreachable)())).arrayBuffer());
|
|
166
|
-
__classPrivateFieldSet(this, _ConnectionWebSocket_buffer, (0,
|
|
166
|
+
__classPrivateFieldSet(this, _ConnectionWebSocket_buffer, (0, _0_deps_js_1.concat)([__classPrivateFieldGet(this, _ConnectionWebSocket_buffer, "f"), data]), "f");
|
|
167
167
|
if (__classPrivateFieldGet(this, _ConnectionWebSocket_nextResolve, "f") != null && __classPrivateFieldGet(this, _ConnectionWebSocket_buffer, "f").length >= __classPrivateFieldGet(this, _ConnectionWebSocket_nextResolve, "f")[0]) {
|
|
168
168
|
__classPrivateFieldGet(this, _ConnectionWebSocket_nextResolve, "f")[1].resolve();
|
|
169
169
|
__classPrivateFieldSet(this, _ConnectionWebSocket_nextResolve, null, "f");
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assert = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
6
7
|
/**
|
|
7
8
|
* Make an assertion, error will be thrown if `expr` does not have truthy value.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertAlmostEquals = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
6
7
|
/**
|
|
7
8
|
* Make an assertion that `actual` and `expected` are almost equal numbers
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertArrayIncludes = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const equal_js_1 = require("./equal.js");
|
|
6
7
|
const _format_js_1 = require("./_format.js");
|
|
7
8
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertEquals = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const equal_js_1 = require("./equal.js");
|
|
6
7
|
const _format_js_1 = require("./_format.js");
|
|
7
8
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertExists = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
6
7
|
/**
|
|
7
8
|
* Make an assertion that actual is not null or undefined.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertFalse = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
6
7
|
/**
|
|
7
8
|
* Make an assertion, error will be thrown if `expr` have truthy value.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertGreater = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const _format_js_1 = require("./_format.js");
|
|
6
7
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
8
|
/**
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertGreaterOrEqual = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const _format_js_1 = require("./_format.js");
|
|
6
7
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
8
|
/**
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertInstanceOf = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
6
7
|
/**
|
|
7
8
|
* Make an assertion that `obj` is an instance of `type`.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertIsError = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
6
7
|
const colors_js_1 = require("../fmt/colors.js");
|
|
7
8
|
/**
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertLess = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
5
6
|
const _format_js_1 = require("./_format.js");
|
|
6
7
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
8
|
/**
|