@mtkruto/node 0.1.303 → 0.1.500
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 +6 -1
- package/esm/3_types.js +6 -1
- package/esm/client/0_markdown.d.ts +19 -0
- package/esm/client/0_markdown.js +19 -1
- package/esm/client/0_message.js +11 -11
- package/esm/client/0_params.d.ts +12 -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 +2 -45
- 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_callback_query_manager.d.ts +2 -1
- package/esm/client/3_callback_query_manager.js +33 -5
- package/esm/client/3_inline_query_manager.d.ts +3 -2
- package/esm/client/3_inline_query_manager.js +20 -4
- package/esm/client/3_story_manager.js +4 -6
- package/esm/client/4_client.d.ts +41 -4
- package/esm/client/4_client.js +120 -49
- package/esm/connection/1_connection_web_socket.js +3 -3
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_almost_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_array_includes.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_exists.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_false.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater_or_equal.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_instance_of.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_is_error.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less_or_equal.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_match.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_instance_of.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_match.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_strict_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_object_match.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_rejects.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_strict_equals.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_string_includes.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_throws.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assertion_error.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/equal.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/fail.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/mod.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unimplemented.js +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unreachable.js +1 -0
- package/esm/deps/deno.land/std@0.223.0/bytes/concat.d.ts +13 -0
- package/esm/deps/deno.land/std@0.223.0/bytes/concat.js +27 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/base64.d.ts +8 -2
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/base64.js +19 -2
- package/{script/deps/deno.land/std@0.221.0 → esm/deps/deno.land/std@0.223.0}/media_types/_util.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/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/storage/0_storage.d.ts +10 -0
- package/esm/storage/0_storage.js +42 -0
- 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_callback_query_answer.d.ts +30 -0
- package/esm/types/0_callback_query_answer.js +26 -0
- package/esm/types/0_callback_query_question.d.ts +49 -0
- package/esm/types/0_callback_query_question.js +31 -0
- 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_message_content.d.ts → 1_message_content.d.ts} +6 -6
- package/esm/types/1_message_content.js +20 -0
- package/esm/types/1_photo.d.ts +4 -0
- package/esm/types/1_photo.js +12 -26
- package/esm/types/4_inline_query_result.d.ts +52 -49
- package/esm/types/4_inline_query_result.js +225 -44
- package/esm/types/5_inline_query_answer.d.ts +31 -0
- package/esm/types/5_inline_query_answer.js +28 -0
- package/esm/types/_file_id.d.ts +5 -0
- package/esm/types/_file_id.js +32 -1
- 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 +6 -1
- package/script/3_types.js +6 -1
- package/script/client/0_markdown.d.ts +19 -0
- package/script/client/0_markdown.js +19 -1
- package/script/client/0_message.js +9 -9
- package/script/client/0_params.d.ts +12 -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 +3 -70
- 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_callback_query_manager.d.ts +2 -1
- package/script/client/3_callback_query_manager.js +30 -2
- package/script/client/3_inline_query_manager.d.ts +3 -2
- package/script/client/3_inline_query_manager.js +18 -2
- package/script/client/3_story_manager.js +3 -5
- package/script/client/4_client.d.ts +41 -4
- package/script/client/4_client.js +119 -48
- package/script/connection/1_connection_web_socket.js +1 -1
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_almost_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_array_includes.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_exists.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_false.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater_or_equal.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_instance_of.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_is_error.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less_or_equal.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_match.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_instance_of.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_match.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_strict_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_object_match.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_rejects.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_strict_equals.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_string_includes.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_throws.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assertion_error.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/equal.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/fail.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/mod.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unimplemented.js +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unreachable.js +1 -0
- package/script/deps/deno.land/std@0.223.0/bytes/concat.d.ts +13 -0
- package/script/deps/deno.land/std@0.223.0/bytes/concat.js +31 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/base64.d.ts +8 -2
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/base64.js +19 -2
- package/{esm/deps/deno.land/std@0.221.0 → script/deps/deno.land/std@0.223.0}/media_types/_util.d.ts +1 -0
- package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/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/storage/0_storage.d.ts +10 -0
- package/script/storage/0_storage.js +42 -0
- 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_callback_query_answer.d.ts +30 -0
- package/script/types/0_callback_query_answer.js +30 -0
- package/script/types/0_callback_query_question.d.ts +49 -0
- package/script/types/0_callback_query_question.js +35 -0
- 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_message_content.d.ts → 1_message_content.d.ts} +6 -6
- package/script/types/1_message_content.js +21 -0
- package/script/types/1_photo.d.ts +4 -0
- package/script/types/1_photo.js +14 -27
- package/script/types/4_inline_query_result.d.ts +52 -49
- package/script/types/4_inline_query_result.js +224 -42
- package/script/types/5_inline_query_answer.d.ts +31 -0
- package/script/types/5_inline_query_answer.js +32 -0
- package/script/types/_file_id.d.ts +5 -0
- package/script/types/_file_id.js +33 -1
- 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.223.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/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/esm/types/{1_input_message_content.js → 1_input_media.js} +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/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
- /package/script/types/{1_input_message_content.js → 1_input_media.js} +0 -0
|
@@ -19,11 +19,193 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.inlineQueryResultToTlObject = void 0;
|
|
22
|
+
exports.inlineQueryResultToTlObject = exports.constructInlineQueryResult = void 0;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
26
|
const _file_id_js_1 = require("./_file_id.js");
|
|
27
|
+
const _0_message_entity_js_1 = require("./0_message_entity.js");
|
|
28
|
+
const _1_photo_js_1 = require("./1_photo.js");
|
|
26
29
|
const _3_reply_markup_js_1 = require("./3_reply_markup.js");
|
|
30
|
+
const _0_thumbnail_js_1 = require("./0_thumbnail.js");
|
|
31
|
+
function constructInlineQueryResult(result) {
|
|
32
|
+
const id = result.id, title = result.title ?? "", type = result.type, description = result.description;
|
|
33
|
+
if (result.send_message instanceof _2_tl_js_1.types.BotInlineMessageMediaGeo) {
|
|
34
|
+
const geoPoint = result.send_message.geo;
|
|
35
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
36
|
+
type: "location",
|
|
37
|
+
id,
|
|
38
|
+
title,
|
|
39
|
+
latitude: geoPoint.lat,
|
|
40
|
+
longitude: geoPoint.long,
|
|
41
|
+
horizontalAccuracy: geoPoint.accuracy_radius,
|
|
42
|
+
livePeriod: result.send_message.period,
|
|
43
|
+
heading: result.send_message.heading,
|
|
44
|
+
proximityAlertRadius: result.send_message.proximity_notification_radius,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
else if (result.send_message instanceof _2_tl_js_1.types.BotInlineMessageMediaVenue) {
|
|
48
|
+
const geoPoint = result.send_message.geo;
|
|
49
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
50
|
+
type: "venue",
|
|
51
|
+
id,
|
|
52
|
+
title,
|
|
53
|
+
latitude: geoPoint.lat,
|
|
54
|
+
longitude: geoPoint.long,
|
|
55
|
+
address: result.send_message.address,
|
|
56
|
+
foursquareId: result.send_message.venue_id,
|
|
57
|
+
foursquareType: result.send_message.venue_type,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
else if (result.send_message instanceof _2_tl_js_1.types.BotInlineMessageMediaWebPage || result.send_message instanceof _2_tl_js_1.types.BotInlineMessageText) {
|
|
61
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
62
|
+
type: "article",
|
|
63
|
+
id,
|
|
64
|
+
title,
|
|
65
|
+
description,
|
|
66
|
+
messageContent: (0, _1_utilities_js_1.cleanObject)({
|
|
67
|
+
messageText: result.send_message.message,
|
|
68
|
+
entities: (result.send_message.entities ?? []).map(_0_message_entity_js_1.constructMessageEntity).filter((v) => v != null),
|
|
69
|
+
linkPreview: result.send_message instanceof _2_tl_js_1.types.InputBotInlineMessageMediaWebPage ? { url: result.send_message.url, smallMedia: result.send_message.force_small_media, largeMedia: result.send_message.force_large_media, aboveText: result.send_message.invert_media } : undefined,
|
|
70
|
+
}),
|
|
71
|
+
replyMarkup: result.send_message.reply_markup ? (0, _3_reply_markup_js_1.constructReplyMarkup)(result.send_message.reply_markup) : undefined,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
else if (result.send_message instanceof _2_tl_js_1.types.BotInlineMessageMediaAuto) {
|
|
75
|
+
let ref;
|
|
76
|
+
let attributes;
|
|
77
|
+
const thumbnailUrl = "thumb" in result ? result.thumb?.url : undefined;
|
|
78
|
+
let photoSizes;
|
|
79
|
+
let photo;
|
|
80
|
+
if (result instanceof _2_tl_js_1.types.BotInlineMediaResult) {
|
|
81
|
+
if (result.photo) {
|
|
82
|
+
photo = result.photo[_2_tl_js_1.as](_2_tl_js_1.types.Photo);
|
|
83
|
+
ref = { fileId: (0, _file_id_js_1.getPhotoFileId)(photo).fileId };
|
|
84
|
+
const { largest } = photoSizes = (0, _1_photo_js_1.getPhotoSizes)(photo);
|
|
85
|
+
attributes = [new _2_tl_js_1.types.DocumentAttributeImageSize({ w: largest.w, h: largest.h })];
|
|
86
|
+
}
|
|
87
|
+
else if (result.document) {
|
|
88
|
+
const document = result.document[_2_tl_js_1.as](_2_tl_js_1.types.Document);
|
|
89
|
+
ref = {
|
|
90
|
+
fileId: (0, _file_id_js_1.serializeFileId)({
|
|
91
|
+
type: _file_id_js_1.FileType.Document,
|
|
92
|
+
dcId: document.dc_id,
|
|
93
|
+
fileReference: document.file_reference,
|
|
94
|
+
location: { type: "common", id: document.id, accessHash: document.access_hash },
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
attributes = document.attributes;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
(0, _0_deps_js_1.unreachable)();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
else if (result.content) {
|
|
104
|
+
ref = { url: result.content.url };
|
|
105
|
+
attributes = result.content.attributes;
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
(0, _0_deps_js_1.unreachable)();
|
|
109
|
+
}
|
|
110
|
+
const messageContent = result.send_message.message
|
|
111
|
+
? {
|
|
112
|
+
messageText: result.send_message.message,
|
|
113
|
+
entities: (result.send_message.entities ?? []).map(_0_message_entity_js_1.constructMessageEntity).filter((v) => v != null),
|
|
114
|
+
}
|
|
115
|
+
: undefined;
|
|
116
|
+
const replyMarkup = result.send_message.reply_markup ? (0, _3_reply_markup_js_1.constructReplyMarkup)(result.send_message.reply_markup) : undefined;
|
|
117
|
+
switch (type) {
|
|
118
|
+
case "audio": {
|
|
119
|
+
const a = attributes?.find((v) => v instanceof _2_tl_js_1.types.DocumentAttributeAudio);
|
|
120
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
121
|
+
id,
|
|
122
|
+
type,
|
|
123
|
+
title,
|
|
124
|
+
...ref,
|
|
125
|
+
messageContent,
|
|
126
|
+
replyMarkup,
|
|
127
|
+
performer: a?.performer,
|
|
128
|
+
audioDuration: a?.duration,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
case "gif":
|
|
132
|
+
case "mpeg4Gif": {
|
|
133
|
+
const a = attributes.find((v) => v instanceof _2_tl_js_1.types.DocumentAttributeVideo);
|
|
134
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
135
|
+
id,
|
|
136
|
+
type,
|
|
137
|
+
title,
|
|
138
|
+
...ref,
|
|
139
|
+
messageContent,
|
|
140
|
+
replyMarkup,
|
|
141
|
+
thumbnailUrl,
|
|
142
|
+
width: a?.w,
|
|
143
|
+
height: a?.h,
|
|
144
|
+
duration: a?.duration,
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
case "photo": {
|
|
148
|
+
const a = attributes.find((v) => v instanceof _2_tl_js_1.types.DocumentAttributeImageSize);
|
|
149
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
150
|
+
id,
|
|
151
|
+
type,
|
|
152
|
+
title,
|
|
153
|
+
description,
|
|
154
|
+
...ref,
|
|
155
|
+
messageContent,
|
|
156
|
+
replyMarkup,
|
|
157
|
+
thumbnailUrl: thumbnailUrl,
|
|
158
|
+
thumbnails: photo ? photoSizes?.sizes.slice(0, -1).map((v) => (0, _0_thumbnail_js_1.constructThumbnail)(v, photo)) : undefined,
|
|
159
|
+
width: a?.w,
|
|
160
|
+
height: a?.h,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
case "video": {
|
|
164
|
+
const a = attributes.find((v) => v instanceof _2_tl_js_1.types.DocumentAttributeVideo);
|
|
165
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
166
|
+
id,
|
|
167
|
+
type,
|
|
168
|
+
title,
|
|
169
|
+
description,
|
|
170
|
+
...ref,
|
|
171
|
+
messageContent,
|
|
172
|
+
replyMarkup,
|
|
173
|
+
mimeType: "content" in result && result.content ? result.content.mime_type : "video/mp4",
|
|
174
|
+
thumbnailUrl: thumbnailUrl,
|
|
175
|
+
width: a?.w,
|
|
176
|
+
height: a?.h,
|
|
177
|
+
videoDuration: a?.duration,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
case "voice": {
|
|
181
|
+
const a = attributes.find((v) => v instanceof _2_tl_js_1.types.DocumentAttributeAudio);
|
|
182
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
183
|
+
id,
|
|
184
|
+
type,
|
|
185
|
+
title,
|
|
186
|
+
...ref,
|
|
187
|
+
messageContent,
|
|
188
|
+
replyMarkup,
|
|
189
|
+
thumbnailUrl,
|
|
190
|
+
voiceDuration: a?.duration,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
case "document":
|
|
194
|
+
case "file": // Does it really return this?
|
|
195
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
196
|
+
type: "document",
|
|
197
|
+
id,
|
|
198
|
+
title: result.title ?? "",
|
|
199
|
+
...ref,
|
|
200
|
+
messageContent,
|
|
201
|
+
replyMarkup,
|
|
202
|
+
thumbnailUrl,
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
(0, _0_deps_js_1.unreachable)();
|
|
207
|
+
}
|
|
208
|
+
exports.constructInlineQueryResult = constructInlineQueryResult;
|
|
27
209
|
// deno-lint-ignore no-explicit-any
|
|
28
210
|
async function inlineQueryResultToTlObject(result_, parseText, usernameResolver) {
|
|
29
211
|
let document = null;
|
|
@@ -31,9 +213,9 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
31
213
|
let fileId_ = null;
|
|
32
214
|
switch (result_.type) {
|
|
33
215
|
case "audio":
|
|
34
|
-
if ("
|
|
216
|
+
if ("url" in result_) {
|
|
35
217
|
document = new _2_tl_js_1.types.InputWebDocument({
|
|
36
|
-
url: result_.
|
|
218
|
+
url: result_.url,
|
|
37
219
|
size: 0,
|
|
38
220
|
mime_type: "audio/mpeg",
|
|
39
221
|
attributes: [
|
|
@@ -46,101 +228,101 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
46
228
|
});
|
|
47
229
|
}
|
|
48
230
|
else {
|
|
49
|
-
fileId_ = result_.
|
|
231
|
+
fileId_ = result_.fileId;
|
|
50
232
|
}
|
|
51
233
|
break;
|
|
52
234
|
case "video":
|
|
53
|
-
if ("
|
|
235
|
+
if ("url" in result_) {
|
|
54
236
|
document = new _2_tl_js_1.types.InputWebDocument({
|
|
55
|
-
url: result_.
|
|
237
|
+
url: result_.url,
|
|
56
238
|
size: 0,
|
|
57
239
|
mime_type: result_.mimeType ?? "video/mp4",
|
|
58
240
|
attributes: [
|
|
59
241
|
new _2_tl_js_1.types.DocumentAttributeVideo({
|
|
60
242
|
duration: result_.videoDuration ?? 0,
|
|
61
|
-
h: result_.
|
|
62
|
-
w: result_.
|
|
243
|
+
h: result_.height ?? 0,
|
|
244
|
+
w: result_.width ?? 0,
|
|
63
245
|
}),
|
|
64
246
|
],
|
|
65
247
|
});
|
|
66
248
|
}
|
|
67
249
|
else {
|
|
68
|
-
fileId_ = result_.
|
|
250
|
+
fileId_ = result_.fileId;
|
|
69
251
|
}
|
|
70
252
|
break;
|
|
71
253
|
case "document":
|
|
72
|
-
if ("
|
|
254
|
+
if ("url" in result_) {
|
|
73
255
|
document = new _2_tl_js_1.types.InputWebDocument({
|
|
74
|
-
url: result_.
|
|
256
|
+
url: result_.url,
|
|
75
257
|
mime_type: "application/octet-stream",
|
|
76
258
|
attributes: [],
|
|
77
259
|
size: 0,
|
|
78
260
|
});
|
|
79
261
|
}
|
|
80
262
|
else {
|
|
81
|
-
fileId_ = result_.
|
|
263
|
+
fileId_ = result_.fileId;
|
|
82
264
|
}
|
|
83
265
|
break;
|
|
84
266
|
case "gif":
|
|
85
|
-
if ("
|
|
267
|
+
if ("url" in result_) {
|
|
86
268
|
document = new _2_tl_js_1.types.InputWebDocument({
|
|
87
|
-
url: result_.
|
|
269
|
+
url: result_.url,
|
|
88
270
|
size: 0,
|
|
89
271
|
mime_type: "image/gif",
|
|
90
272
|
attributes: [
|
|
91
273
|
new _2_tl_js_1.types.DocumentAttributeVideo({
|
|
92
|
-
duration: result_.
|
|
93
|
-
|
|
94
|
-
|
|
274
|
+
duration: result_.duration ?? 0,
|
|
275
|
+
w: result_.width ?? 0,
|
|
276
|
+
h: result_.height ?? 0,
|
|
95
277
|
}),
|
|
96
278
|
],
|
|
97
279
|
});
|
|
98
280
|
}
|
|
99
281
|
else {
|
|
100
|
-
fileId_ = result_.
|
|
282
|
+
fileId_ = result_.fileId;
|
|
101
283
|
}
|
|
102
284
|
break;
|
|
103
285
|
case "mpeg4Gif":
|
|
104
|
-
if ("
|
|
286
|
+
if ("url" in result_) {
|
|
105
287
|
document = new _2_tl_js_1.types.InputWebDocument({
|
|
106
|
-
url: result_.
|
|
288
|
+
url: result_.url,
|
|
107
289
|
size: 0,
|
|
108
290
|
mime_type: "video/mp4",
|
|
109
291
|
attributes: [
|
|
110
292
|
new _2_tl_js_1.types.DocumentAttributeVideo({
|
|
111
293
|
nosound: true,
|
|
112
|
-
duration: result_.
|
|
113
|
-
w: result_.
|
|
114
|
-
h: result_.
|
|
294
|
+
duration: result_.duration ?? 0,
|
|
295
|
+
w: result_.width ?? 0,
|
|
296
|
+
h: result_.height ?? 0,
|
|
115
297
|
supports_streaming: true,
|
|
116
298
|
}),
|
|
117
299
|
],
|
|
118
300
|
});
|
|
119
301
|
}
|
|
120
302
|
else {
|
|
121
|
-
fileId_ = result_.
|
|
303
|
+
fileId_ = result_.fileId;
|
|
122
304
|
}
|
|
123
305
|
break;
|
|
124
306
|
case "photo":
|
|
125
|
-
if ("
|
|
307
|
+
if ("url" in result_) {
|
|
126
308
|
document = new _2_tl_js_1.types.InputWebDocument({
|
|
127
|
-
url: result_.
|
|
309
|
+
url: result_.url,
|
|
128
310
|
size: 0,
|
|
129
311
|
mime_type: "image/jpeg",
|
|
130
|
-
attributes: [new _2_tl_js_1.types.DocumentAttributeImageSize({ w: result_.
|
|
312
|
+
attributes: [new _2_tl_js_1.types.DocumentAttributeImageSize({ w: result_.width ?? 0, h: result_.height ?? 0 })],
|
|
131
313
|
});
|
|
132
314
|
}
|
|
133
315
|
else {
|
|
134
|
-
fileId_ = result_.
|
|
316
|
+
fileId_ = result_.fileId;
|
|
135
317
|
}
|
|
136
318
|
break;
|
|
137
319
|
case "sticker":
|
|
138
|
-
fileId_ = result_.
|
|
320
|
+
fileId_ = result_.fileId;
|
|
139
321
|
break;
|
|
140
322
|
case "voice":
|
|
141
|
-
if ("
|
|
323
|
+
if ("url" in result_) {
|
|
142
324
|
document = new _2_tl_js_1.types.InputWebDocument({
|
|
143
|
-
url: result_.
|
|
325
|
+
url: result_.url,
|
|
144
326
|
size: 0,
|
|
145
327
|
mime_type: "audio/mpeg",
|
|
146
328
|
attributes: [
|
|
@@ -152,7 +334,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
152
334
|
});
|
|
153
335
|
}
|
|
154
336
|
else {
|
|
155
|
-
fileId_ = result_.
|
|
337
|
+
fileId_ = result_.fileId;
|
|
156
338
|
}
|
|
157
339
|
break;
|
|
158
340
|
}
|
|
@@ -244,18 +426,18 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
244
426
|
});
|
|
245
427
|
}
|
|
246
428
|
else if (result_.type == "article") {
|
|
247
|
-
if (!("messageText" in result_.
|
|
429
|
+
if (!("messageText" in result_.messageContent)) {
|
|
248
430
|
(0, _0_deps_js_1.unreachable)();
|
|
249
431
|
}
|
|
250
|
-
const [message, entities] = await parseText(result_.
|
|
251
|
-
const noWebpage = result_.
|
|
252
|
-
const invertMedia = result_.
|
|
432
|
+
const [message, entities] = await parseText(result_.messageContent.messageText, { entities: result_.messageContent.entities, parseMode: result_.messageContent.parseMode });
|
|
433
|
+
const noWebpage = result_.messageContent?.linkPreview?.disable ? true : undefined;
|
|
434
|
+
const invertMedia = result_.messageContent?.linkPreview?.aboveText ? true : undefined;
|
|
253
435
|
let sendMessage;
|
|
254
|
-
if (result_.
|
|
436
|
+
if (result_.messageContent.linkPreview?.url) {
|
|
255
437
|
sendMessage = new _2_tl_js_1.types.InputBotInlineMessageMediaWebPage({
|
|
256
|
-
url: result_.
|
|
257
|
-
force_large_media: result_.
|
|
258
|
-
force_small_media: result_.
|
|
438
|
+
url: result_.messageContent.linkPreview.url,
|
|
439
|
+
force_large_media: result_.messageContent.linkPreview.largeMedia ? true : undefined,
|
|
440
|
+
force_small_media: result_.messageContent.linkPreview.smallMedia ? true : undefined,
|
|
259
441
|
optional: message.length ? undefined : true,
|
|
260
442
|
message,
|
|
261
443
|
entities,
|
|
@@ -282,7 +464,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
282
464
|
});
|
|
283
465
|
}
|
|
284
466
|
else if (result_.type == "venue") {
|
|
285
|
-
if (!result_.
|
|
467
|
+
if (!result_.foursquareId || !result_.foursquareType) {
|
|
286
468
|
(0, _0_deps_js_1.unreachable)();
|
|
287
469
|
}
|
|
288
470
|
return new _2_tl_js_1.types.InputBotInlineResult({
|
|
@@ -296,7 +478,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
296
478
|
address: result_.address,
|
|
297
479
|
provider: "foursquare",
|
|
298
480
|
title: result_.title,
|
|
299
|
-
venue_id: result_.
|
|
481
|
+
venue_id: result_.foursquareId,
|
|
300
482
|
venue_type: result_.foursquareType,
|
|
301
483
|
reply_markup: replyMarkup,
|
|
302
484
|
}),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import { types } from "../2_tl.js";
|
|
21
|
+
import { InlineQueryResult } from "./4_inline_query_result.js";
|
|
22
|
+
/** An answer to an inline query. */
|
|
23
|
+
export interface InlineQueryAnswer {
|
|
24
|
+
/** The ID of the inline query that yielded these results. */
|
|
25
|
+
id: string;
|
|
26
|
+
/** The inline query results. */
|
|
27
|
+
results: InlineQueryResult[];
|
|
28
|
+
/** A parameter that can be passed to next queries with the same text to yield more results. */
|
|
29
|
+
nextOffset?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function constructInlineQueryAnswer(results: types.messages.BotResults): InlineQueryAnswer;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
4
|
+
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
5
|
+
*
|
|
6
|
+
* This file is part of MTKruto.
|
|
7
|
+
*
|
|
8
|
+
* This program is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU Lesser General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
19
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.constructInlineQueryAnswer = void 0;
|
|
23
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
|
+
const _4_inline_query_result_js_1 = require("./4_inline_query_result.js");
|
|
25
|
+
function constructInlineQueryAnswer(results) {
|
|
26
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
27
|
+
id: results.query_id + "",
|
|
28
|
+
results: results.results.map(_4_inline_query_result_js_1.constructInlineQueryResult),
|
|
29
|
+
nextOffset: results.next_offset,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
exports.constructInlineQueryAnswer = constructInlineQueryAnswer;
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* You should have received a copy of the GNU Lesser General Public License
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
|
+
import { types } from "../2_tl.js";
|
|
20
21
|
export declare enum FileType {
|
|
21
22
|
Thumbnail = 0,
|
|
22
23
|
ProfilePhoto = 1,
|
|
@@ -118,4 +119,8 @@ export interface FileId {
|
|
|
118
119
|
export declare function deserializeFileId(fileId: string): FileId;
|
|
119
120
|
export declare function serializeFileId(fileId: FileId): string;
|
|
120
121
|
export declare function toUniqueFileId(fileId: FileId): string;
|
|
122
|
+
export declare function getPhotoFileId(photo: types.Photo): {
|
|
123
|
+
fileId: string;
|
|
124
|
+
fileUniqueId: string;
|
|
125
|
+
};
|
|
121
126
|
export {};
|
package/script/types/_file_id.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.toUniqueFileId = exports.serializeFileId = exports.deserializeFileId = exports.PhotoSourceType = exports.FileType = void 0;
|
|
22
|
+
exports.getPhotoFileId = exports.toUniqueFileId = exports.serializeFileId = exports.deserializeFileId = exports.PhotoSourceType = exports.FileType = void 0;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _0_errors_js_1 = require("../0_errors.js");
|
|
25
25
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
@@ -327,3 +327,35 @@ function toUniqueFileId(fileId) {
|
|
|
327
327
|
return (0, _1_utilities_js_1.base64EncodeUrlSafe)((0, _1_utilities_js_1.rleEncode)(writer.buffer));
|
|
328
328
|
}
|
|
329
329
|
exports.toUniqueFileId = toUniqueFileId;
|
|
330
|
+
function getPhotoFileId(photo) {
|
|
331
|
+
const sizes = photo.sizes
|
|
332
|
+
.map((v) => {
|
|
333
|
+
if (v instanceof _2_tl_js_1.types.PhotoSizeProgressive) {
|
|
334
|
+
return new _2_tl_js_1.types.PhotoSize({ type: v.type, w: v.w, h: v.h, size: Math.max(...v.sizes) });
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
return v;
|
|
338
|
+
}
|
|
339
|
+
})
|
|
340
|
+
.filter((v) => v instanceof _2_tl_js_1.types.PhotoSize)
|
|
341
|
+
.sort((a, b) => a.size - b.size);
|
|
342
|
+
const largest = sizes.slice(-1)[0];
|
|
343
|
+
const { dc_id: dcId, id, access_hash: accessHash, file_reference: fileReference } = photo;
|
|
344
|
+
const fileId = {
|
|
345
|
+
type: FileType.Photo,
|
|
346
|
+
dcId,
|
|
347
|
+
fileReference,
|
|
348
|
+
location: {
|
|
349
|
+
type: "photo",
|
|
350
|
+
id,
|
|
351
|
+
accessHash,
|
|
352
|
+
source: {
|
|
353
|
+
type: PhotoSourceType.Thumbnail,
|
|
354
|
+
fileType: FileType.Photo,
|
|
355
|
+
thumbnailType: largest.type.charCodeAt(0),
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
return { fileId: serializeFileId(fileId), fileUniqueId: toUniqueFileId(fileId) };
|
|
360
|
+
}
|
|
361
|
+
exports.getPhotoFileId = getPhotoFileId;
|
|
@@ -17,5 +17,4 @@
|
|
|
17
17
|
* You should have received a copy of the GNU Lesser General Public License
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
|
-
export declare function concat(...buffers: [Uint8Array, Uint8Array, ...Uint8Array[]]): Uint8Array;
|
|
21
20
|
export declare function bufferFromBigInt(int: bigint | number, byteCount: number, littleEndian?: boolean, signed?: boolean): Uint8Array;
|
|
@@ -19,21 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.bufferFromBigInt =
|
|
23
|
-
function concat(...buffers) {
|
|
24
|
-
let length = 0;
|
|
25
|
-
for (const b of buffers) {
|
|
26
|
-
length += b.length;
|
|
27
|
-
}
|
|
28
|
-
const buffer = new Uint8Array(length);
|
|
29
|
-
let offset = 0;
|
|
30
|
-
for (const b of buffers) {
|
|
31
|
-
buffer.set(b, offset);
|
|
32
|
-
offset += b.length;
|
|
33
|
-
}
|
|
34
|
-
return buffer;
|
|
35
|
-
}
|
|
36
|
-
exports.concat = concat;
|
|
22
|
+
exports.bufferFromBigInt = void 0;
|
|
37
23
|
const bufferFromHexString = (hexString) => Uint8Array.from(hexString.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)));
|
|
38
24
|
function bufferFromBigInt(int, byteCount, littleEndian = true, signed = false) {
|
|
39
25
|
const actualByteCount = Math.ceil(int.toString(2).length / 8);
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
export declare class CTR {
|
|
21
|
-
|
|
22
|
-
iv: Uint8Array;
|
|
23
|
-
state: Uint8Array;
|
|
21
|
+
#private;
|
|
24
22
|
constructor(key: Uint8Array, iv: Uint8Array);
|
|
23
|
+
/** This must not be called after destroying. */
|
|
25
24
|
call(data: Uint8Array): void;
|
|
25
|
+
destroy(): void;
|
|
26
26
|
}
|
|
@@ -18,32 +18,35 @@
|
|
|
18
18
|
* You should have received a copy of the GNU Lesser General Public License
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
22
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
23
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
24
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
25
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
26
|
+
};
|
|
27
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
28
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
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
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
31
|
+
};
|
|
32
|
+
var _CTR_key, _CTR_state;
|
|
21
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
34
|
exports.CTR = void 0;
|
|
23
35
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
36
|
class CTR {
|
|
25
37
|
constructor(key, iv) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
value: key
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(this, "iv", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
configurable: true,
|
|
35
|
-
writable: true,
|
|
36
|
-
value: iv
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(this, "state", {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
configurable: true,
|
|
41
|
-
writable: true,
|
|
42
|
-
value: new Uint8Array(1)
|
|
43
|
-
});
|
|
38
|
+
_CTR_key.set(this, void 0);
|
|
39
|
+
_CTR_state.set(this, void 0);
|
|
40
|
+
__classPrivateFieldSet(this, _CTR_state, (0, _0_deps_js_1.createCtr256State)(iv), "f");
|
|
41
|
+
__classPrivateFieldSet(this, _CTR_key, key, "f");
|
|
44
42
|
}
|
|
43
|
+
/** This must not be called after destroying. */
|
|
45
44
|
call(data) {
|
|
46
|
-
(0, _0_deps_js_1.ctr256)(data, this
|
|
45
|
+
(0, _0_deps_js_1.ctr256)(data, __classPrivateFieldGet(this, _CTR_key, "f"), __classPrivateFieldGet(this, _CTR_state, "f"));
|
|
46
|
+
}
|
|
47
|
+
destroy() {
|
|
48
|
+
(0, _0_deps_js_1.destroyCtr256State)(__classPrivateFieldGet(this, _CTR_state, "f"));
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
exports.CTR = CTR;
|
|
52
|
+
_CTR_key = new WeakMap(), _CTR_state = new WeakMap();
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
export interface Part {
|
|
21
|
+
small: boolean;
|
|
22
|
+
part: number;
|
|
23
|
+
totalParts: number;
|
|
24
|
+
bytes: Uint8Array;
|
|
25
|
+
}
|
|
26
|
+
export declare class PartStream extends TransformStream<Uint8Array, Part> {
|
|
27
|
+
#private;
|
|
28
|
+
constructor(chunkSize: number);
|
|
29
|
+
}
|