@mtkruto/node 0.1.118 → 0.1.121
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 +3 -3
- package/esm/0_deps.js +3 -3
- package/esm/2_tl.d.ts +3 -3
- package/esm/2_tl.js +3 -3
- package/esm/3_errors.d.ts +509 -509
- package/esm/3_errors.js +509 -509
- package/esm/4_constants.d.ts +2 -2
- package/esm/4_constants.js +2 -2
- package/esm/4_errors.d.ts +7 -7
- package/esm/4_errors.js +6 -6
- package/esm/_dnt.shims.js +0 -1
- package/esm/client/0_password.d.ts +2 -2
- package/esm/client/0_password.js +4 -4
- package/esm/client/0_utilities.d.ts +3 -3
- package/esm/client/0_utilities.js +1 -2
- package/esm/client/2_client_plain.js +20 -20
- package/esm/client/3_types.d.ts +4 -0
- package/esm/client/4_composer.d.ts +5 -1
- package/esm/client/4_composer.js +37 -13
- package/esm/client/5_client.d.ts +24 -7
- package/esm/client/5_client.js +381 -258
- package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_strict_equals.js +1 -1
- package/esm/storage/0_storage.d.ts +5 -5
- package/esm/tl/1_tl_object.d.ts +4 -0
- package/esm/tl/1_tl_object.js +13 -4
- package/esm/tl/2_types.d.ts +11384 -6448
- package/esm/tl/2_types.js +16321 -10139
- package/esm/tl/3_functions.d.ts +6773 -2401
- package/esm/tl/3_functions.js +9440 -3368
- package/esm/tl/3_utilities.d.ts +2 -2
- package/esm/tl/3_utilities.js +4 -4
- package/esm/tl/6_message.d.ts +1 -1
- package/esm/tl/6_message.js +1 -1
- package/esm/types/0__file_id.js +1 -2
- package/esm/types/0_audio.js +1 -1
- package/esm/types/0_chat_administrator_rights.d.ts +3 -3
- package/esm/types/0_chat_administrator_rights.js +20 -20
- package/esm/types/0_chat_photo.js +8 -8
- package/esm/types/0_contact.js +4 -4
- package/esm/types/0_force_reply.d.ts +1 -1
- package/esm/types/0_location.js +4 -4
- package/esm/types/0_mask_position.d.ts +2 -2
- package/esm/types/0_message_entity.d.ts +3 -3
- package/esm/types/0_message_entity.js +8 -8
- package/esm/types/0_poll_option.d.ts +2 -2
- package/esm/types/0_reply_keyboard_remove.d.ts +1 -1
- package/esm/types/0_restriction_reason.d.ts +2 -2
- package/esm/types/0_thumbnail.js +3 -3
- package/esm/types/0_venue.js +3 -3
- package/esm/types/0_voice.js +1 -1
- package/esm/types/1_animation.js +2 -2
- package/esm/types/1_bot_command_scope.d.ts +1 -2
- package/esm/types/1_bot_command_scope.js +1 -1
- package/esm/types/1_chat.js +9 -9
- package/esm/types/1_document.js +2 -2
- package/esm/types/1_input_invoice_message_content.d.ts +1 -1
- package/esm/types/1_keyboard_button.d.ts +3 -3
- package/esm/types/1_keyboard_button.js +35 -35
- package/esm/types/1_photo.js +1 -1
- package/esm/types/1_poll.js +6 -6
- package/esm/types/1_sticker.js +3 -3
- package/esm/types/1_user.js +6 -6
- package/esm/types/1_video.js +1 -1
- package/esm/types/2_game.js +3 -3
- package/esm/types/2_inline_keyboard_button.d.ts +3 -3
- package/esm/types/2_inline_keyboard_button.js +9 -9
- package/esm/types/2_inline_query.js +8 -8
- package/esm/types/2_reply_keyboard_markup.d.ts +1 -1
- package/esm/types/2_reply_keyboard_markup.js +2 -2
- package/esm/types/3_inline_keyboard_markup.d.ts +1 -1
- package/esm/types/3_message.d.ts +4 -4
- package/esm/types/3_message.js +64 -64
- package/esm/types/4_callback_query.js +6 -6
- package/esm/types/4_reply_markup.d.ts +1 -1
- package/esm/types/5_inline_query_result.d.ts +1 -2
- package/esm/types/5_inline_query_result.js +30 -30
- package/package.json +13 -12
- package/script/0_deps.d.ts +3 -3
- package/script/0_deps.js +3 -3
- package/script/2_tl.d.ts +3 -3
- package/script/2_tl.js +5 -15
- package/script/3_errors.d.ts +509 -509
- package/script/3_errors.js +509 -509
- package/script/4_constants.d.ts +2 -2
- package/script/4_constants.js +2 -2
- package/script/4_errors.d.ts +7 -7
- package/script/4_errors.js +6 -6
- package/script/_dnt.shims.js +0 -1
- package/script/client/0_password.d.ts +2 -2
- package/script/client/0_password.js +4 -4
- package/script/client/0_utilities.d.ts +3 -3
- package/script/client/0_utilities.js +1 -2
- package/script/client/2_client_plain.js +20 -20
- package/script/client/3_types.d.ts +4 -0
- package/script/client/4_composer.d.ts +5 -1
- package/script/client/4_composer.js +37 -13
- package/script/client/5_client.d.ts +24 -7
- package/script/client/5_client.js +380 -257
- package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_diff.js +1 -1
- package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_strict_equals.js +1 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +1 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +3 -3
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +1 -1
- package/script/storage/0_storage.d.ts +5 -5
- package/script/storage/0_utilities.js +1 -1
- package/script/tl/1_tl_object.d.ts +4 -0
- package/script/tl/1_tl_object.js +14 -5
- package/script/tl/2_types.d.ts +11384 -6448
- package/script/tl/2_types.js +18030 -11825
- package/script/tl/3_functions.d.ts +6773 -2401
- package/script/tl/3_functions.js +10051 -3994
- package/script/tl/3_utilities.d.ts +2 -2
- package/script/tl/3_utilities.js +7 -30
- package/script/tl/6_message.d.ts +1 -1
- package/script/tl/6_message.js +4 -4
- package/script/types/0__file_id.js +4 -4
- package/script/types/0_audio.js +1 -1
- package/script/types/0_chat_administrator_rights.d.ts +3 -3
- package/script/types/0_chat_administrator_rights.js +20 -20
- package/script/types/0_chat_photo.js +8 -8
- package/script/types/0_contact.js +4 -4
- package/script/types/0_force_reply.d.ts +1 -1
- package/script/types/0_location.js +4 -4
- package/script/types/0_mask_position.d.ts +2 -2
- package/script/types/0_message_entity.d.ts +3 -3
- package/script/types/0_message_entity.js +8 -8
- package/script/types/0_poll_option.d.ts +2 -2
- package/script/types/0_reply_keyboard_remove.d.ts +1 -1
- package/script/types/0_restriction_reason.d.ts +2 -2
- package/script/types/0_thumbnail.js +3 -3
- package/script/types/0_venue.js +3 -3
- package/script/types/0_voice.js +1 -1
- package/script/types/1_animation.js +2 -2
- package/script/types/1_bot_command_scope.d.ts +1 -2
- package/script/types/1_bot_command_scope.js +1 -1
- package/script/types/1_chat.js +9 -9
- package/script/types/1_document.js +2 -2
- package/script/types/1_input_invoice_message_content.d.ts +1 -1
- package/script/types/1_keyboard_button.d.ts +3 -3
- package/script/types/1_keyboard_button.js +35 -35
- package/script/types/1_photo.js +1 -1
- package/script/types/1_poll.js +6 -6
- package/script/types/1_sticker.js +3 -3
- package/script/types/1_user.js +6 -6
- package/script/types/1_video.js +1 -1
- package/script/types/2_game.js +3 -3
- package/script/types/2_inline_keyboard_button.d.ts +3 -3
- package/script/types/2_inline_keyboard_button.js +9 -9
- package/script/types/2_inline_query.js +8 -8
- package/script/types/2_reply_keyboard_markup.d.ts +1 -1
- package/script/types/2_reply_keyboard_markup.js +2 -2
- package/script/types/3_inline_keyboard_markup.d.ts +1 -1
- package/script/types/3_message.d.ts +4 -4
- package/script/types/3_message.js +64 -64
- package/script/types/4_callback_query.js +6 -6
- package/script/types/4_reply_markup.d.ts +1 -1
- package/script/types/5_inline_query_result.d.ts +1 -2
- package/script/types/5_inline_query_result.js +30 -30
- package/esm/_dnt.test_shims.d.ts +0 -10
- package/esm/client/0_password_test.d.ts +0 -1
- package/esm/client/0_utilities_test.d.ts +0 -1
- package/esm/storage/0_utilities_test.d.ts +0 -1
- package/esm/tl/0_tl_raw_reader_test.d.ts +0 -1
- package/esm/tl/0_tl_raw_writer_test.d.ts +0 -1
- package/esm/tl/1_tl_object_test.d.ts +0 -1
- package/esm/tl/2_types_test.d.ts +0 -1
- package/esm/tl/3_deserialize_test.d.ts +0 -1
- package/esm/tl/3_functions_test.d.ts +0 -1
- package/esm/tl/6_message_test.d.ts +0 -1
- package/esm/utilities/0_base64_test.d.ts +0 -1
- package/esm/utilities/0_bigint_test.d.ts +0 -1
- package/esm/utilities/0_buffer_test.d.ts +0 -1
- package/esm/utilities/0_rle_test.d.ts +0 -1
- package/script/_dnt.test_shims.d.ts +0 -10
- package/script/client/0_password_test.d.ts +0 -1
- package/script/client/0_utilities_test.d.ts +0 -1
- package/script/storage/0_utilities_test.d.ts +0 -1
- package/script/tl/0_tl_raw_reader_test.d.ts +0 -1
- package/script/tl/0_tl_raw_writer_test.d.ts +0 -1
- package/script/tl/1_tl_object_test.d.ts +0 -1
- package/script/tl/2_types_test.d.ts +0 -1
- package/script/tl/3_deserialize_test.d.ts +0 -1
- package/script/tl/3_functions_test.d.ts +0 -1
- package/script/tl/6_message_test.d.ts +0 -1
- package/script/utilities/0_base64_test.d.ts +0 -1
- package/script/utilities/0_bigint_test.d.ts +0 -1
- package/script/utilities/0_buffer_test.d.ts +0 -1
- package/script/utilities/0_rle_test.d.ts +0 -1
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/encoding/base64.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/to_namespaced_path.js +0 -0
- /package/esm/tl/{5_rpc_result.d.ts → 4_rpc_result.d.ts} +0 -0
- /package/esm/tl/{5_rpc_result.js → 4_rpc_result.js} +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/encoding/base64.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.207.0 → std@0.208.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/tl/{5_rpc_result.d.ts → 4_rpc_result.d.ts} +0 -0
- /package/script/tl/{5_rpc_result.js → 4_rpc_result.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { enums } from "./2_types.js";
|
|
2
2
|
export declare function getChannelChatId(channelId: bigint): number;
|
|
3
|
-
export declare function peerToChatId(peer:
|
|
3
|
+
export declare function peerToChatId(peer: enums.Peer | enums.InputPeer): number;
|
package/script/tl/3_utilities.js
CHANGED
|
@@ -1,45 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.peerToChatId = exports.getChannelChatId = void 0;
|
|
27
4
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
28
5
|
const _4_constants_js_1 = require("../4_constants.js");
|
|
29
|
-
const
|
|
6
|
+
const _2_types_js_1 = require("./2_types.js");
|
|
30
7
|
function getChannelChatId(channelId) {
|
|
31
8
|
return _4_constants_js_1.ZERO_CHANNEL_ID + -Number(channelId);
|
|
32
9
|
}
|
|
33
10
|
exports.getChannelChatId = getChannelChatId;
|
|
34
11
|
function peerToChatId(peer) {
|
|
35
|
-
if (peer instanceof types.PeerUser || peer instanceof types.InputPeerUser) {
|
|
36
|
-
return Number(peer.
|
|
12
|
+
if (peer instanceof _2_types_js_1.types.PeerUser || peer instanceof _2_types_js_1.types.InputPeerUser) {
|
|
13
|
+
return Number(peer.user_id);
|
|
37
14
|
}
|
|
38
|
-
else if (peer instanceof types.PeerChat || peer instanceof types.InputPeerChat) {
|
|
39
|
-
return -Number(peer.
|
|
15
|
+
else if (peer instanceof _2_types_js_1.types.PeerChat || peer instanceof _2_types_js_1.types.InputPeerChat) {
|
|
16
|
+
return -Number(peer.chat_id);
|
|
40
17
|
}
|
|
41
|
-
else if (peer instanceof types.PeerChannel || peer instanceof types.InputPeerChannel) {
|
|
42
|
-
return getChannelChatId(peer.
|
|
18
|
+
else if (peer instanceof _2_types_js_1.types.PeerChannel || peer instanceof _2_types_js_1.types.InputPeerChannel) {
|
|
19
|
+
return getChannelChatId(peer.channel_id);
|
|
43
20
|
}
|
|
44
21
|
else {
|
|
45
22
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
package/script/tl/6_message.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReadObject, TLReader } from "./3_tl_reader.js";
|
|
2
|
-
import { RPCResult } from "./
|
|
2
|
+
import { RPCResult } from "./4_rpc_result.js";
|
|
3
3
|
export declare function calculateLength(object: ReadObject): number;
|
|
4
4
|
export declare class Message_ {
|
|
5
5
|
readonly id: bigint;
|
package/script/tl/6_message.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.Message_ = exports.calculateLength = void 0;
|
|
|
4
4
|
const _1_tl_object_js_1 = require("./1_tl_object.js");
|
|
5
5
|
const _3_tl_reader_js_1 = require("./3_tl_reader.js");
|
|
6
6
|
const _4_tl_writer_js_1 = require("./4_tl_writer.js");
|
|
7
|
-
const
|
|
7
|
+
const _4_rpc_result_js_1 = require("./4_rpc_result.js");
|
|
8
8
|
function calculateLength(object) {
|
|
9
9
|
let length = 0;
|
|
10
10
|
if (Array.isArray(object)) {
|
|
@@ -45,7 +45,7 @@ class Message_ {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
serialize() {
|
|
48
|
-
if (this.body instanceof
|
|
48
|
+
if (this.body instanceof _4_rpc_result_js_1.RPCResult) {
|
|
49
49
|
throw new Error("Not applicable");
|
|
50
50
|
}
|
|
51
51
|
return new _4_tl_writer_js_1.TLWriter()
|
|
@@ -63,8 +63,8 @@ class Message_ {
|
|
|
63
63
|
const cid = reader.readInt32(false);
|
|
64
64
|
let body;
|
|
65
65
|
{
|
|
66
|
-
if (cid ==
|
|
67
|
-
body =
|
|
66
|
+
if (cid == _4_rpc_result_js_1.RPCResult[_1_tl_object_js_1.id]) {
|
|
67
|
+
body = _4_rpc_result_js_1.RPCResult.deserialize(reader.buffer);
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
70
|
body = reader.readObject(cid);
|
|
@@ -23,7 +23,7 @@ var FileType;
|
|
|
23
23
|
FileType[FileType["Secure"] = 15] = "Secure";
|
|
24
24
|
FileType[FileType["Background"] = 16] = "Background";
|
|
25
25
|
FileType[FileType["DocumentAsFile"] = 17] = "DocumentAsFile";
|
|
26
|
-
})(FileType
|
|
26
|
+
})(FileType || (exports.FileType = FileType = {}));
|
|
27
27
|
const PHOTO_TYPES = [FileType.Thumbnail, FileType.ChatPhoto, FileType.Photo, FileType.EncryptedThumbnail];
|
|
28
28
|
const DOCUMENT_TYPES = Object.keys(FileType).map(Number).filter((v) => !isNaN(v)).filter((v) => !PHOTO_TYPES.includes(v));
|
|
29
29
|
var ThumbnailSource;
|
|
@@ -33,7 +33,7 @@ var ThumbnailSource;
|
|
|
33
33
|
ThumbnailSource[ThumbnailSource["ChatPhotoSmall"] = 2] = "ChatPhotoSmall";
|
|
34
34
|
ThumbnailSource[ThumbnailSource["ChatPhotoBig"] = 3] = "ChatPhotoBig";
|
|
35
35
|
ThumbnailSource[ThumbnailSource["StickerSetThumbnail"] = 4] = "StickerSetThumbnail";
|
|
36
|
-
})(ThumbnailSource
|
|
36
|
+
})(ThumbnailSource || (exports.ThumbnailSource = ThumbnailSource = {}));
|
|
37
37
|
const WEB_LOCATION_FLAG = 1 << 24;
|
|
38
38
|
const FILE_REFERENCE_FLAG = 1 << 25;
|
|
39
39
|
class FileID {
|
|
@@ -235,6 +235,7 @@ class FileID {
|
|
|
235
235
|
return (0, _1_utilities_js_1.base64EncodeUrlSafe)((0, _1_utilities_js_1.rleEncode)(writer.buffer));
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
+
exports.FileID = FileID;
|
|
238
239
|
Object.defineProperty(FileID, "MAJOR", {
|
|
239
240
|
enumerable: true,
|
|
240
241
|
configurable: true,
|
|
@@ -247,7 +248,6 @@ Object.defineProperty(FileID, "MINOR", {
|
|
|
247
248
|
writable: true,
|
|
248
249
|
value: 30
|
|
249
250
|
});
|
|
250
|
-
exports.FileID = FileID;
|
|
251
251
|
var FileUniqueType;
|
|
252
252
|
(function (FileUniqueType) {
|
|
253
253
|
FileUniqueType[FileUniqueType["Web"] = 0] = "Web";
|
|
@@ -256,7 +256,7 @@ var FileUniqueType;
|
|
|
256
256
|
FileUniqueType[FileUniqueType["Secure"] = 3] = "Secure";
|
|
257
257
|
FileUniqueType[FileUniqueType["Encrypted"] = 4] = "Encrypted";
|
|
258
258
|
FileUniqueType[FileUniqueType["Temp"] = 5] = "Temp";
|
|
259
|
-
})(FileUniqueType
|
|
259
|
+
})(FileUniqueType || (exports.FileUniqueType = FileUniqueType = {}));
|
|
260
260
|
class FileUniqueID {
|
|
261
261
|
constructor(fileUniqueType, params) {
|
|
262
262
|
Object.defineProperty(this, "fileUniqueType", {
|
package/script/types/0_audio.js
CHANGED
|
@@ -10,7 +10,7 @@ function constructAudio(document, audioAttribute, fileId, fileUniqueId) {
|
|
|
10
10
|
duration: audioAttribute?.duration ?? 0,
|
|
11
11
|
performer: audioAttribute?.performer,
|
|
12
12
|
title: audioAttribute?.title,
|
|
13
|
-
mimeType: document.
|
|
13
|
+
mimeType: document.mime_type,
|
|
14
14
|
fileSize: Number(document.size),
|
|
15
15
|
thumbnails: document.thumbs ? document.thumbs.map((v) => v instanceof _2_tl_js_1.types.PhotoSize ? (0, _0_thumbnail_js_1.constructThumbnail)(v, document) : null).filter((v) => v) : [],
|
|
16
16
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { enums } from "../2_tl.js";
|
|
2
2
|
/** The rights of a chat administrator. */
|
|
3
3
|
export interface ChatAdministratorRights {
|
|
4
4
|
/** Whether the admininistrator's presence in the chat is hidden. */
|
|
@@ -26,5 +26,5 @@ export interface ChatAdministratorRights {
|
|
|
26
26
|
/** Whether the administrator can manage topics. Only available for supergroups. */
|
|
27
27
|
canManageTopics?: boolean;
|
|
28
28
|
}
|
|
29
|
-
export declare function constructChatAdministratorRights(rights_:
|
|
30
|
-
export declare function chatAdministratorRightsToTlObject(rights: ChatAdministratorRights):
|
|
29
|
+
export declare function constructChatAdministratorRights(rights_: enums.ChatAdminRights): ChatAdministratorRights;
|
|
30
|
+
export declare function chatAdministratorRightsToTlObject(rights: ChatAdministratorRights): import("../tl/2_types.js").ChatAdminRights_;
|
|
@@ -6,24 +6,24 @@ function constructChatAdministratorRights(rights_) {
|
|
|
6
6
|
const rights = {
|
|
7
7
|
isAnonymous: rights_.anonymous || false,
|
|
8
8
|
canManageChat: rights_.other || false,
|
|
9
|
-
canDeleteMessages: rights_.
|
|
10
|
-
canManageVideoChats: rights_.
|
|
11
|
-
canRestrictMembers: rights_.
|
|
12
|
-
canPromoteMembers: rights_.
|
|
13
|
-
canChangeInfo: rights_.
|
|
14
|
-
canInviteUsers: rights_.
|
|
9
|
+
canDeleteMessages: rights_.delete_messages || false,
|
|
10
|
+
canManageVideoChats: rights_.manage_call || false,
|
|
11
|
+
canRestrictMembers: rights_.ban_users || false,
|
|
12
|
+
canPromoteMembers: rights_.add_admins || false,
|
|
13
|
+
canChangeInfo: rights_.change_info || false,
|
|
14
|
+
canInviteUsers: rights_.invite_users || false,
|
|
15
15
|
};
|
|
16
|
-
if (rights_.
|
|
17
|
-
rights.canPostMessages = rights_.
|
|
16
|
+
if (rights_.post_messages) {
|
|
17
|
+
rights.canPostMessages = rights_.post_messages;
|
|
18
18
|
}
|
|
19
|
-
if (rights_.
|
|
20
|
-
rights.canEditMessages = rights_.
|
|
19
|
+
if (rights_.edit_messages) {
|
|
20
|
+
rights.canEditMessages = rights_.edit_messages;
|
|
21
21
|
}
|
|
22
|
-
if (rights_.
|
|
23
|
-
rights.canPinMessages = rights_.
|
|
22
|
+
if (rights_.pin_messages) {
|
|
23
|
+
rights.canPinMessages = rights_.pin_messages;
|
|
24
24
|
}
|
|
25
|
-
if (rights_.
|
|
26
|
-
rights.canManageTopics = rights_.
|
|
25
|
+
if (rights_.manage_topics) {
|
|
26
|
+
rights.canManageTopics = rights_.manage_topics;
|
|
27
27
|
}
|
|
28
28
|
return rights;
|
|
29
29
|
}
|
|
@@ -32,12 +32,12 @@ function chatAdministratorRightsToTlObject(rights) {
|
|
|
32
32
|
return new _2_tl_js_1.types.ChatAdminRights({
|
|
33
33
|
anonymous: rights.isAnonymous || undefined,
|
|
34
34
|
other: rights.canManageChat || undefined,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
delete_messages: rights.canDeleteMessages || undefined,
|
|
36
|
+
manage_call: rights.canManageChat || undefined,
|
|
37
|
+
ban_users: rights.canRestrictMembers || undefined,
|
|
38
|
+
add_admins: rights.canPromoteMembers || undefined,
|
|
39
|
+
change_info: rights.canChangeInfo || undefined,
|
|
40
|
+
invite_users: rights.canInviteUsers || undefined,
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
exports.chatAdministratorRightsToTlObject = chatAdministratorRightsToTlObject;
|
|
@@ -4,8 +4,8 @@ exports.constructChatPhoto = void 0;
|
|
|
4
4
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
5
5
|
const _0__file_id_js_1 = require("./0__file_id.js");
|
|
6
6
|
function constructChatPhoto(photo, chatId, chatAccessHash) {
|
|
7
|
-
const smallFileId = new _0__file_id_js_1.FileID(null, null, _0__file_id_js_1.FileType.ChatPhoto, photo.
|
|
8
|
-
mediaId: photo.
|
|
7
|
+
const smallFileId = new _0__file_id_js_1.FileID(null, null, _0__file_id_js_1.FileType.ChatPhoto, photo.dc_id, {
|
|
8
|
+
mediaId: photo.photo_id,
|
|
9
9
|
thumbnailSource: _0__file_id_js_1.ThumbnailSource.ChatPhotoSmall,
|
|
10
10
|
chatId,
|
|
11
11
|
chatAccessHash,
|
|
@@ -13,9 +13,9 @@ function constructChatPhoto(photo, chatId, chatAccessHash) {
|
|
|
13
13
|
volumeId: 0n,
|
|
14
14
|
localId: 0,
|
|
15
15
|
}).encode();
|
|
16
|
-
const smallFileUniqueId = new _0__file_id_js_1.FileUniqueID(_0__file_id_js_1.FileUniqueType.Document, { mediaId: photo.
|
|
17
|
-
const bigFileId = new _0__file_id_js_1.FileID(null, null, _0__file_id_js_1.FileType.ChatPhoto, photo.
|
|
18
|
-
mediaId: photo.
|
|
16
|
+
const smallFileUniqueId = new _0__file_id_js_1.FileUniqueID(_0__file_id_js_1.FileUniqueType.Document, { mediaId: photo.photo_id }).encode();
|
|
17
|
+
const bigFileId = new _0__file_id_js_1.FileID(null, null, _0__file_id_js_1.FileType.ChatPhoto, photo.dc_id, {
|
|
18
|
+
mediaId: photo.photo_id,
|
|
19
19
|
thumbnailSource: _0__file_id_js_1.ThumbnailSource.ChatPhotoBig,
|
|
20
20
|
chatId,
|
|
21
21
|
chatAccessHash,
|
|
@@ -23,14 +23,14 @@ function constructChatPhoto(photo, chatId, chatAccessHash) {
|
|
|
23
23
|
volumeId: 0n,
|
|
24
24
|
localId: 0,
|
|
25
25
|
}).encode();
|
|
26
|
-
const bigFileUniqueId = new _0__file_id_js_1.FileUniqueID(_0__file_id_js_1.FileUniqueType.Document, { mediaId: photo.
|
|
26
|
+
const bigFileUniqueId = new _0__file_id_js_1.FileUniqueID(_0__file_id_js_1.FileUniqueType.Document, { mediaId: photo.photo_id }).encode();
|
|
27
27
|
if (photo instanceof _2_tl_js_1.types.ChatPhoto) {
|
|
28
28
|
return {
|
|
29
29
|
smallFileId,
|
|
30
30
|
smallFileUniqueId,
|
|
31
31
|
bigFileId,
|
|
32
32
|
bigFileUniqueId,
|
|
33
|
-
hasVideo: photo.
|
|
33
|
+
hasVideo: photo.has_video || false,
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
@@ -40,7 +40,7 @@ function constructChatPhoto(photo, chatId, chatAccessHash) {
|
|
|
40
40
|
smallFileUniqueId,
|
|
41
41
|
bigFileId,
|
|
42
42
|
bigFileUniqueId,
|
|
43
|
-
hasVideo: photo.
|
|
43
|
+
hasVideo: photo.has_video || false,
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.constructContact = void 0;
|
|
4
4
|
function constructContact(contact) {
|
|
5
5
|
return {
|
|
6
|
-
phoneNumber: contact.
|
|
7
|
-
firstName: contact.
|
|
8
|
-
lastName: contact.
|
|
9
|
-
userId: Number(contact.
|
|
6
|
+
phoneNumber: contact.phone_number,
|
|
7
|
+
firstName: contact.first_name,
|
|
8
|
+
lastName: contact.last_name || undefined,
|
|
9
|
+
userId: Number(contact.user_id) || undefined,
|
|
10
10
|
vcard: contact.vcard || undefined,
|
|
11
11
|
};
|
|
12
12
|
}
|
|
@@ -9,4 +9,4 @@ export interface ForceReply {
|
|
|
9
9
|
selective?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare function constructForceReply(replyMarkup_: types.ReplyKeyboardForceReply): ForceReply;
|
|
12
|
-
export declare function forceReplyToTlObject(replyMarkup: ForceReply):
|
|
12
|
+
export declare function forceReplyToTlObject(replyMarkup: ForceReply): import("../tl/2_types.js").ReplyKeyboardForceReply_;
|
|
@@ -8,7 +8,7 @@ function constructLocation(geo_) {
|
|
|
8
8
|
return {
|
|
9
9
|
latitude: geo.lat,
|
|
10
10
|
longitude: geo.long,
|
|
11
|
-
horizontalAccuracy: geo.
|
|
11
|
+
horizontalAccuracy: geo.accuracy_radius,
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
else if (geo_ instanceof _2_tl_js_1.types.MessageMediaGeoLive) {
|
|
@@ -17,17 +17,17 @@ function constructLocation(geo_) {
|
|
|
17
17
|
return {
|
|
18
18
|
latitude: geo.lat,
|
|
19
19
|
longitude: geo.long,
|
|
20
|
-
horizontalAccuracy: geo.
|
|
20
|
+
horizontalAccuracy: geo.accuracy_radius,
|
|
21
21
|
livePeriod: media.period,
|
|
22
22
|
heading: media.heading,
|
|
23
|
-
proximityAlertRadius: media.
|
|
23
|
+
proximityAlertRadius: media.proximity_notification_radius,
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
27
|
return {
|
|
28
28
|
latitude: geo_.lat,
|
|
29
29
|
longitude: geo_.long,
|
|
30
|
-
horizontalAccuracy: geo_.
|
|
30
|
+
horizontalAccuracy: geo_.accuracy_radius,
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { enums } from "../2_tl.js";
|
|
2
2
|
export interface MaskPosition {
|
|
3
3
|
/** The part of the face relative to which the mask should be placed. One of "forehead", "eyes", "mouth", or "chin". */
|
|
4
4
|
point: "forehead" | "eyes" | "mouth" | "chin";
|
|
@@ -9,4 +9,4 @@ export interface MaskPosition {
|
|
|
9
9
|
/** Mask scaling coefficient. For example, 2.0 means double size. */
|
|
10
10
|
scale: number;
|
|
11
11
|
}
|
|
12
|
-
export declare function constructMaskPosition({ n, x, y, zoom }:
|
|
12
|
+
export declare function constructMaskPosition({ n, x, y, zoom }: enums.MaskCoords): MaskPosition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { enums } from "../2_tl.js";
|
|
2
2
|
export type MessageEntityType = "mention" | "hashtag" | "botCommand" | "url" | "email" | "bold" | "italic" | "code" | "pre" | "textLink" | "textMention" | "cashtag" | "phoneNumber" | "underline" | "strikethrough" | "blockquote" | "bankCard" | "spoiler" | "customEmoji";
|
|
3
3
|
export declare namespace MessageEntity {
|
|
4
4
|
interface Base {
|
|
@@ -76,5 +76,5 @@ export declare namespace MessageEntity {
|
|
|
76
76
|
}
|
|
77
77
|
/** A single entity of a message's text or caption. */
|
|
78
78
|
export type MessageEntity = MessageEntity.Mention | MessageEntity.Hashtag | MessageEntity.BotCommand | MessageEntity.URL | MessageEntity.EmailAddress | MessageEntity.Bold | MessageEntity.Italic | MessageEntity.Code | MessageEntity.Pre | MessageEntity.TextLink | MessageEntity.TextMention | MessageEntity.Cashtag | MessageEntity.PhoneNumber | MessageEntity.Underline | MessageEntity.Strikethrough | MessageEntity.Blockquote | MessageEntity.BankCard | MessageEntity.Spoiler | MessageEntity.CustomEmoji;
|
|
79
|
-
export declare function constructMessageEntity(obj:
|
|
80
|
-
export declare function messageEntityToTlObject(entity: MessageEntity):
|
|
79
|
+
export declare function constructMessageEntity(obj: enums.MessageEntity): MessageEntity | null;
|
|
80
|
+
export declare function messageEntityToTlObject(entity: MessageEntity): import("../tl/2_types.js").MessageEntityMention_ | import("../tl/2_types.js").MessageEntityHashtag_ | import("../tl/2_types.js").MessageEntityBotCommand_ | import("../tl/2_types.js").MessageEntityUrl_ | import("../tl/2_types.js").MessageEntityEmail_ | import("../tl/2_types.js").MessageEntityBold_ | import("../tl/2_types.js").MessageEntityItalic_ | import("../tl/2_types.js").MessageEntityCode_ | import("../tl/2_types.js").MessageEntityPre_ | import("../tl/2_types.js").MessageEntityTextUrl_ | import("../tl/2_types.js").MessageEntityMentionName_ | import("../tl/2_types.js").MessageEntityPhone_ | import("../tl/2_types.js").MessageEntityCashtag_ | import("../tl/2_types.js").MessageEntityUnderline_ | import("../tl/2_types.js").MessageEntityStrike_ | import("../tl/2_types.js").MessageEntityBankCard_ | import("../tl/2_types.js").MessageEntitySpoiler_ | import("../tl/2_types.js").MessageEntityCustomEmoji_ | import("../tl/2_types.js").MessageEntityBlockquote_;
|
|
@@ -12,7 +12,7 @@ function constructMessageEntity(obj) {
|
|
|
12
12
|
else if (obj instanceof _2_tl_js_1.types.MessageEntityBotCommand) {
|
|
13
13
|
return { type: "botCommand", offset: obj.offset ?? 0, length: obj.length };
|
|
14
14
|
}
|
|
15
|
-
else if (obj instanceof _2_tl_js_1.types.
|
|
15
|
+
else if (obj instanceof _2_tl_js_1.types.MessageEntityUrl) {
|
|
16
16
|
return { type: "url", offset: obj.offset, length: obj.length };
|
|
17
17
|
}
|
|
18
18
|
else if (obj instanceof _2_tl_js_1.types.MessageEntityEmail) {
|
|
@@ -30,11 +30,11 @@ function constructMessageEntity(obj) {
|
|
|
30
30
|
else if (obj instanceof _2_tl_js_1.types.MessageEntityPre) {
|
|
31
31
|
return { type: "pre", offset: obj.offset, length: obj.length, language: obj.language };
|
|
32
32
|
}
|
|
33
|
-
else if (obj instanceof _2_tl_js_1.types.
|
|
33
|
+
else if (obj instanceof _2_tl_js_1.types.MessageEntityTextUrl) {
|
|
34
34
|
return { type: "textLink", offset: obj.offset, length: obj.length, url: obj.url };
|
|
35
35
|
}
|
|
36
36
|
else if (obj instanceof _2_tl_js_1.types.MessageEntityMentionName) {
|
|
37
|
-
return { type: "textMention", offset: obj.offset, length: obj.length, userId: Number(obj.
|
|
37
|
+
return { type: "textMention", offset: obj.offset, length: obj.length, userId: Number(obj.user_id) };
|
|
38
38
|
}
|
|
39
39
|
else if (obj instanceof _2_tl_js_1.types.MessageEntityCashtag) {
|
|
40
40
|
return { type: "cashtag", offset: obj.offset, length: obj.length };
|
|
@@ -58,7 +58,7 @@ function constructMessageEntity(obj) {
|
|
|
58
58
|
return { type: "spoiler", offset: obj.offset, length: obj.length };
|
|
59
59
|
}
|
|
60
60
|
else if (obj instanceof _2_tl_js_1.types.MessageEntityCustomEmoji) {
|
|
61
|
-
return { type: "customEmoji", offset: obj.offset, length: obj.length, customEmojiId: String(obj.
|
|
61
|
+
return { type: "customEmoji", offset: obj.offset, length: obj.length, customEmojiId: String(obj.document_id) };
|
|
62
62
|
}
|
|
63
63
|
else {
|
|
64
64
|
return null;
|
|
@@ -75,7 +75,7 @@ function messageEntityToTlObject(entity) {
|
|
|
75
75
|
case "botCommand":
|
|
76
76
|
return new _2_tl_js_1.types.MessageEntityBotCommand({ offset, length });
|
|
77
77
|
case "url":
|
|
78
|
-
return new _2_tl_js_1.types.
|
|
78
|
+
return new _2_tl_js_1.types.MessageEntityUrl({ offset, length });
|
|
79
79
|
case "email":
|
|
80
80
|
return new _2_tl_js_1.types.MessageEntityEmail({ offset, length });
|
|
81
81
|
case "bold":
|
|
@@ -87,9 +87,9 @@ function messageEntityToTlObject(entity) {
|
|
|
87
87
|
case "pre":
|
|
88
88
|
return new _2_tl_js_1.types.MessageEntityPre({ offset, length, language: entity.language });
|
|
89
89
|
case "textLink":
|
|
90
|
-
return new _2_tl_js_1.types.
|
|
90
|
+
return new _2_tl_js_1.types.MessageEntityTextUrl({ offset, length, url: entity.url });
|
|
91
91
|
case "textMention":
|
|
92
|
-
return new _2_tl_js_1.types.MessageEntityMentionName({ offset, length,
|
|
92
|
+
return new _2_tl_js_1.types.MessageEntityMentionName({ offset, length, user_id: BigInt(entity.userId) });
|
|
93
93
|
case "cashtag":
|
|
94
94
|
return new _2_tl_js_1.types.MessageEntityCashtag({ offset, length });
|
|
95
95
|
case "phoneNumber":
|
|
@@ -105,7 +105,7 @@ function messageEntityToTlObject(entity) {
|
|
|
105
105
|
case "spoiler":
|
|
106
106
|
return new _2_tl_js_1.types.MessageEntitySpoiler({ offset, length });
|
|
107
107
|
case "customEmoji":
|
|
108
|
-
return new _2_tl_js_1.types.MessageEntityCustomEmoji({ offset, length,
|
|
108
|
+
return new _2_tl_js_1.types.MessageEntityCustomEmoji({ offset, length, document_id: BigInt(entity.customEmojiId) });
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
exports.messageEntityToTlObject = messageEntityToTlObject;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { enums } from "../2_tl.js";
|
|
2
2
|
export interface PollOption {
|
|
3
3
|
/** The option's text (1-100 characters). */
|
|
4
4
|
text: string;
|
|
5
5
|
/** Number of users that voted this option. */
|
|
6
6
|
voterCount: number;
|
|
7
7
|
}
|
|
8
|
-
export declare function constructPollOption(option:
|
|
8
|
+
export declare function constructPollOption(option: enums.PollAnswer, results: Array<enums.PollAnswerVoters>): PollOption;
|
|
@@ -7,4 +7,4 @@ export interface ReplyKeyboardRemove {
|
|
|
7
7
|
selective?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare function constructReplyKeyboardRemove(replyMarkup_: types.ReplyKeyboardHide): ReplyKeyboardRemove;
|
|
10
|
-
export declare function replyKeyboardRemoveToTlObject(replyMarkup: ReplyKeyboardRemove):
|
|
10
|
+
export declare function replyKeyboardRemoveToTlObject(replyMarkup: ReplyKeyboardRemove): import("../tl/2_types.js").ReplyKeyboardHide_;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { enums } from "../2_tl.js";
|
|
2
2
|
export interface RestrictionReason {
|
|
3
3
|
platform: string;
|
|
4
4
|
reason: string;
|
|
5
5
|
text: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function constructRestrictionReason(rr:
|
|
7
|
+
export declare function constructRestrictionReason(rr: enums.RestrictionReason): RestrictionReason;
|
|
@@ -5,10 +5,10 @@ const _2_tl_js_1 = require("../2_tl.js");
|
|
|
5
5
|
const _0__file_id_js_1 = require("./0__file_id.js");
|
|
6
6
|
function constructThumbnail(size, file) {
|
|
7
7
|
const fileType = file instanceof _2_tl_js_1.types.Photo ? _0__file_id_js_1.FileType.Photo : _0__file_id_js_1.FileType.Document;
|
|
8
|
-
const fileId = new _0__file_id_js_1.FileID(null, null, fileType, file.
|
|
8
|
+
const fileId = new _0__file_id_js_1.FileID(null, null, fileType, file.dc_id, {
|
|
9
9
|
mediaId: file.id,
|
|
10
|
-
accessHash: file.
|
|
11
|
-
fileReference: file.
|
|
10
|
+
accessHash: file.access_hash,
|
|
11
|
+
fileReference: file.file_reference,
|
|
12
12
|
thumbnailFileType: fileType,
|
|
13
13
|
thumbnailSource: _0__file_id_js_1.ThumbnailSource.Thumbnail,
|
|
14
14
|
thumbnailSize: size.type,
|
package/script/types/0_venue.js
CHANGED
|
@@ -8,12 +8,12 @@ function constructVenue(media_) {
|
|
|
8
8
|
location: {
|
|
9
9
|
latitude: geo.lat,
|
|
10
10
|
longitude: geo.long,
|
|
11
|
-
horizontalAccuracy: geo.
|
|
11
|
+
horizontalAccuracy: geo.accuracy_radius,
|
|
12
12
|
},
|
|
13
13
|
title: media_.title,
|
|
14
14
|
address: media_.address,
|
|
15
|
-
foursquareId: media_.
|
|
16
|
-
foursquareType: media_.
|
|
15
|
+
foursquareId: media_.venue_id,
|
|
16
|
+
foursquareType: media_.venue_type,
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
exports.constructVenue = constructVenue;
|
package/script/types/0_voice.js
CHANGED
|
@@ -11,8 +11,8 @@ function constructAnimation(document, videoAttribute, fileAttribute, fileId, fil
|
|
|
11
11
|
height: videoAttribute?.h ?? 0,
|
|
12
12
|
duration: videoAttribute?.duration ?? 0,
|
|
13
13
|
thumbnails: document.thumbs ? document.thumbs.map((v) => v instanceof _2_tl_js_1.types.PhotoSize ? (0, _0_thumbnail_js_1.constructThumbnail)(v, document) : null).filter((v) => v) : [],
|
|
14
|
-
fileName: fileAttribute?.
|
|
15
|
-
mimeType: document.
|
|
14
|
+
fileName: fileAttribute?.file_name,
|
|
15
|
+
mimeType: document.mime_type,
|
|
16
16
|
fileSize: Number(document.size),
|
|
17
17
|
};
|
|
18
18
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { types } from "../2_tl.js";
|
|
2
1
|
import { ChatID } from "./0_chat_id.js";
|
|
3
2
|
import { InputPeerGetter } from "./1__getters.js";
|
|
4
3
|
export declare namespace BotCommandScope {
|
|
@@ -29,4 +28,4 @@ export declare namespace BotCommandScope {
|
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
export type BotCommandScope = BotCommandScope.Default | BotCommandScope.AllPrivateChats | BotCommandScope.AllGroupChats | BotCommandScope.AllChatAdministrators | BotCommandScope.Chat | BotCommandScope.ChatAdministrators | BotCommandScope.ChatMember;
|
|
32
|
-
export declare function botCommandScopeToTlObject(scope: BotCommandScope, getInputPeer: InputPeerGetter): Promise<
|
|
31
|
+
export declare function botCommandScopeToTlObject(scope: BotCommandScope, getInputPeer: InputPeerGetter): Promise<import("../tl/2_types.js").BotCommandScopeDefault_ | import("../tl/2_types.js").BotCommandScopeUsers_ | import("../tl/2_types.js").BotCommandScopeChats_ | import("../tl/2_types.js").BotCommandScopeChatAdmins_ | import("../tl/2_types.js").BotCommandScopePeer_ | import("../tl/2_types.js").BotCommandScopePeerAdmins_ | import("../tl/2_types.js").BotCommandScopePeerUser_>;
|
|
@@ -22,7 +22,7 @@ async function botCommandScopeToTlObject(scope, getInputPeer) {
|
|
|
22
22
|
if (!(user instanceof _2_tl_js_1.types.InputPeerUser)) {
|
|
23
23
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
24
24
|
}
|
|
25
|
-
return new _2_tl_js_1.types.BotCommandScopePeerUser({ peer: await getInputPeer(scope.chatId),
|
|
25
|
+
return new _2_tl_js_1.types.BotCommandScopePeerUser({ peer: await getInputPeer(scope.chatId), user_id: new _2_tl_js_1.types.InputUser({ user_id: user.user_id, access_hash: user.access_hash }) });
|
|
26
26
|
}
|
|
27
27
|
default:
|
|
28
28
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
package/script/types/1_chat.js
CHANGED
|
@@ -13,9 +13,9 @@ function constructChat(chat) {
|
|
|
13
13
|
type: "private",
|
|
14
14
|
isBot: chat.bot || false,
|
|
15
15
|
id,
|
|
16
|
-
color: chat.color !== undefined ? chat.color : (0, _1_utilities_js_1.getColorFromPeerId)(id),
|
|
17
|
-
firstName: chat.
|
|
18
|
-
lastName: chat.
|
|
16
|
+
color: chat.color?.color !== undefined ? chat.color.color : (0, _1_utilities_js_1.getColorFromPeerId)(id),
|
|
17
|
+
firstName: chat.first_name || "",
|
|
18
|
+
lastName: chat.last_name,
|
|
19
19
|
isScam: chat.scam || false,
|
|
20
20
|
isFake: chat.fake || false,
|
|
21
21
|
isSupport: chat.support || false,
|
|
@@ -23,10 +23,10 @@ function constructChat(chat) {
|
|
|
23
23
|
};
|
|
24
24
|
if (chat_.isBot) {
|
|
25
25
|
chat_.isRestricted = chat.restricted || false;
|
|
26
|
-
chat_.restrictionReason = chat.
|
|
26
|
+
chat_.restrictionReason = chat.restriction_reason;
|
|
27
27
|
}
|
|
28
28
|
if (chat.photo instanceof _2_tl_js_1.types.UserProfilePhoto) {
|
|
29
|
-
chat_.photo = (0, _0_chat_photo_js_1.constructChatPhoto)(chat.photo, chat_.id, chat.
|
|
29
|
+
chat_.photo = (0, _0_chat_photo_js_1.constructChatPhoto)(chat.photo, chat_.id, chat.access_hash ?? 0n);
|
|
30
30
|
}
|
|
31
31
|
return (0, _1_utilities_js_1.cleanObject)(chat_);
|
|
32
32
|
}
|
|
@@ -51,7 +51,7 @@ function constructChat(chat) {
|
|
|
51
51
|
if (chat.megagroup) {
|
|
52
52
|
chat_ = {
|
|
53
53
|
id,
|
|
54
|
-
color: chat.color !== undefined ? chat.color : (0, _1_utilities_js_1.getColorFromPeerId)(id),
|
|
54
|
+
color: chat.color?.color !== undefined ? chat.color.color : (0, _1_utilities_js_1.getColorFromPeerId)(id),
|
|
55
55
|
type: "supergroup",
|
|
56
56
|
title,
|
|
57
57
|
isScam,
|
|
@@ -65,7 +65,7 @@ function constructChat(chat) {
|
|
|
65
65
|
const id = _4_constants_js_1.ZERO_CHANNEL_ID + -Number(chat.id);
|
|
66
66
|
chat_ = {
|
|
67
67
|
id,
|
|
68
|
-
color: chat.color !== undefined ? chat.color : (0, _1_utilities_js_1.getColorFromPeerId)(id),
|
|
68
|
+
color: chat.color?.color !== undefined ? chat.color.color : (0, _1_utilities_js_1.getColorFromPeerId)(id),
|
|
69
69
|
type: "channel",
|
|
70
70
|
title,
|
|
71
71
|
isScam,
|
|
@@ -77,10 +77,10 @@ function constructChat(chat) {
|
|
|
77
77
|
chat_.username = chat.username;
|
|
78
78
|
chat_.also = chat.usernames?.map((v) => v.username);
|
|
79
79
|
if (chat_.isRestricted) {
|
|
80
|
-
chat_.restrictionReason = (chat.
|
|
80
|
+
chat_.restrictionReason = (chat.restriction_reason ?? []).map(_0_restriction_reason_js_1.constructRestrictionReason);
|
|
81
81
|
}
|
|
82
82
|
if (chat.photo instanceof _2_tl_js_1.types.ChatPhoto) {
|
|
83
|
-
chat_.photo = (0, _0_chat_photo_js_1.constructChatPhoto)(chat.photo, chat_.id, chat.
|
|
83
|
+
chat_.photo = (0, _0_chat_photo_js_1.constructChatPhoto)(chat.photo, chat_.id, chat.access_hash ?? 0n);
|
|
84
84
|
}
|
|
85
85
|
return (0, _1_utilities_js_1.cleanObject)(chat_);
|
|
86
86
|
}
|
|
@@ -8,8 +8,8 @@ function constructDocument(document, fileNameAttribute, fileId, fileUniqueId) {
|
|
|
8
8
|
fileId,
|
|
9
9
|
fileUniqueId,
|
|
10
10
|
thumbnails: document.thumbs ? document.thumbs.map((v) => v instanceof _2_tl_js_1.types.PhotoSize ? (0, _0_thumbnail_js_1.constructThumbnail)(v, document) : null).filter((v) => v) : [],
|
|
11
|
-
fileName: fileNameAttribute.
|
|
12
|
-
mimeType: document.
|
|
11
|
+
fileName: fileNameAttribute.file_name,
|
|
12
|
+
mimeType: document.mime_type,
|
|
13
13
|
fileSize: Number(document.size),
|
|
14
14
|
};
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { enums } from "../2_tl.js";
|
|
2
2
|
import { ChatAdministratorRights } from "./0_chat_administrator_rights.js";
|
|
3
3
|
import { KeyboardButtonPollType } from "./0_keyboard_button_poll_type.js";
|
|
4
4
|
import { WebAppInfo } from "./0_web_app_info.js";
|
|
@@ -60,5 +60,5 @@ export declare namespace KeyboardButton {
|
|
|
60
60
|
}
|
|
61
61
|
/** This object represents one button of the reply keyboard. For simple text buttons, _String_ can be used instead of this object to specify the button text. The optional fields _web_app_, _request_user_, _request_chat_, _request_contact_, _request_location_, and _request_poll_ are mutually exclusive. */
|
|
62
62
|
export type KeyboardButton = KeyboardButton.Text | KeyboardButton.RequestUser | KeyboardButton.RequestChat | KeyboardButton.RequestContact | KeyboardButton.RequestLocation | KeyboardButton.RequestPoll | KeyboardButton.WebApp;
|
|
63
|
-
export declare function constructKeyboardButton(button_:
|
|
64
|
-
export declare function keyboardButtonToTlObject(button: KeyboardButton):
|
|
63
|
+
export declare function constructKeyboardButton(button_: enums.KeyboardButton): KeyboardButton;
|
|
64
|
+
export declare function keyboardButtonToTlObject(button: KeyboardButton): import("../tl/2_types.js").KeyboardButton_ | import("../tl/2_types.js").KeyboardButtonRequestPhone_ | import("../tl/2_types.js").KeyboardButtonRequestGeoLocation_ | import("../tl/2_types.js").KeyboardButtonRequestPoll_ | import("../tl/2_types.js").KeyboardButtonWebView_ | import("../tl/2_types.js").KeyboardButtonRequestPeer_;
|