@mtkruto/node 0.1.124 → 0.1.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/0_deps.d.ts +4 -3
- package/esm/0_deps.js +4 -3
- package/esm/1_utilities.d.ts +1 -1
- package/esm/1_utilities.js +1 -1
- package/esm/3_types.d.ts +2 -1
- package/esm/3_types.js +2 -1
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/1_client_abstract.d.ts +1 -1
- package/esm/client/3_types.d.ts +79 -2
- package/esm/client/3_types.js +11 -1
- package/esm/client/5_client.d.ts +31 -2
- package/esm/client/5_client.js +473 -67
- package/esm/connection/0_connection.d.ts +4 -0
- package/esm/connection/0_connection.js +6 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.d.ts +6 -5
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +5 -6
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert.js +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
- package/esm/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
- package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
- package/esm/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_false.js +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.js +48 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
- package/esm/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
- package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_not_strict_equals.d.ts +3 -1
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
- package/esm/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
- package/esm/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
- package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_strict_equals.d.ts +6 -11
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
- package/esm/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
- package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.js +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
- package/esm/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
- package/esm/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
- package/esm/deps/deno.land/std@0.209.0/media_types/_db.d.ts +5 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/_db.js +33 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/_util.d.ts +21 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/_util.js +122 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/content_type.d.ts +38 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/content_type.js +55 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/format_media_type.d.ts +16 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/format_media_type.js +61 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/get_charset.d.ts +15 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/get_charset.js +37 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/parse_media_type.d.ts +37 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/parse_media_type.js +122 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +24 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.d.ts +8518 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.js +8555 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
- package/esm/storage/0_storage.d.ts +26 -2
- package/esm/storage/0_storage.js +60 -5
- package/esm/storage/0_utilities.d.ts +2 -0
- package/esm/storage/0_utilities.js +33 -0
- package/esm/storage/1_storage_indexed_db.d.ts +8 -4
- package/esm/storage/1_storage_indexed_db.js +42 -11
- package/esm/storage/1_storage_local_storage.d.ts +7 -4
- package/esm/storage/1_storage_local_storage.js +23 -6
- package/esm/storage/1_storage_memory.d.ts +7 -2
- package/esm/storage/1_storage_memory.js +37 -6
- package/esm/storage/1_storage_session_storage.d.ts +6 -2
- package/esm/storage/1_storage_session_storage.js +23 -6
- package/esm/tl/0_tl_raw_writer.d.ts +1 -0
- package/esm/tl/0_tl_raw_writer.js +6 -0
- package/esm/tl/1_tl_object.js +6 -1
- package/esm/tl/3_deserialize.js +1 -1
- package/esm/transport/0_transport.d.ts +1 -1
- package/esm/transport/0_transport.js +0 -6
- package/esm/transport/1_transport_abridged.d.ts +1 -0
- package/esm/transport/1_transport_abridged.js +9 -5
- package/esm/transport/1_transport_intermediate.d.ts +1 -0
- package/esm/transport/1_transport_intermediate.js +8 -4
- package/esm/types/{1_chat.d.ts → 1_chat_p.d.ts} +7 -20
- package/esm/types/{1_chat.js → 1_chat_p.js} +4 -15
- package/esm/types/1_user.js +4 -2
- package/esm/types/3_message.d.ts +9 -8
- package/esm/types/3_message.js +20 -15
- package/esm/types/4_chat.d.ts +33 -0
- package/esm/types/4_chat.js +117 -0
- package/esm/utilities/{0_base64.js → 1_base64.js} +2 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -3
- package/script/0_deps.js +6 -4
- package/script/1_utilities.d.ts +1 -1
- package/script/1_utilities.js +1 -1
- package/script/3_types.d.ts +2 -1
- package/script/3_types.js +2 -1
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/1_client_abstract.d.ts +1 -1
- package/script/client/3_types.d.ts +79 -2
- package/script/client/3_types.js +13 -0
- package/script/client/5_client.d.ts +31 -2
- package/script/client/5_client.js +471 -65
- package/script/connection/0_connection.d.ts +4 -0
- package/script/connection/0_connection.js +6 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.d.ts +6 -5
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +23 -24
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert.js +11 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
- package/script/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
- package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
- package/script/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_false.js +11 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_is_error.js +24 -5
- package/script/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
- package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_not_strict_equals.d.ts +3 -1
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
- package/script/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
- package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_strict_equals.d.ts +6 -11
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
- package/script/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
- package/script/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assertion_error.js +13 -7
- package/script/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
- package/script/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
- package/script/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
- package/script/deps/deno.land/std@0.209.0/media_types/_db.d.ts +5 -0
- package/script/deps/deno.land/std@0.209.0/media_types/_db.js +39 -0
- package/script/deps/deno.land/std@0.209.0/media_types/_util.d.ts +21 -0
- package/script/deps/deno.land/std@0.209.0/media_types/_util.js +132 -0
- package/script/deps/deno.land/std@0.209.0/media_types/content_type.d.ts +38 -0
- package/script/deps/deno.land/std@0.209.0/media_types/content_type.js +59 -0
- package/script/deps/deno.land/std@0.209.0/media_types/format_media_type.d.ts +16 -0
- package/script/deps/deno.land/std@0.209.0/media_types/format_media_type.js +65 -0
- package/script/deps/deno.land/std@0.209.0/media_types/get_charset.d.ts +15 -0
- package/script/deps/deno.land/std@0.209.0/media_types/get_charset.js +41 -0
- package/script/deps/deno.land/std@0.209.0/media_types/parse_media_type.d.ts +37 -0
- package/script/deps/deno.land/std@0.209.0/media_types/parse_media_type.js +126 -0
- package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
- package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +28 -0
- package/script/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.d.ts +8518 -0
- package/script/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.js +8557 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
- package/script/storage/0_storage.d.ts +26 -2
- package/script/storage/0_storage.js +60 -5
- package/script/storage/0_utilities.d.ts +2 -0
- package/script/storage/0_utilities.js +36 -1
- package/script/storage/1_storage_indexed_db.d.ts +8 -4
- package/script/storage/1_storage_indexed_db.js +41 -10
- package/script/storage/1_storage_local_storage.d.ts +7 -4
- package/script/storage/1_storage_local_storage.js +22 -5
- package/script/storage/1_storage_memory.d.ts +7 -2
- package/script/storage/1_storage_memory.js +36 -5
- package/script/storage/1_storage_session_storage.d.ts +6 -2
- package/script/storage/1_storage_session_storage.js +22 -5
- package/script/tl/0_tl_raw_writer.d.ts +1 -0
- package/script/tl/0_tl_raw_writer.js +6 -0
- package/script/tl/1_tl_object.js +6 -1
- package/script/tl/3_deserialize.js +1 -1
- package/script/transport/0_transport.d.ts +1 -1
- package/script/transport/0_transport.js +0 -6
- package/script/transport/1_transport_abridged.d.ts +1 -0
- package/script/transport/1_transport_abridged.js +9 -5
- package/script/transport/1_transport_intermediate.d.ts +1 -0
- package/script/transport/1_transport_intermediate.js +8 -4
- package/script/types/{1_chat.d.ts → 1_chat_p.d.ts} +7 -20
- package/script/types/{1_chat.js → 1_chat_p.js} +6 -17
- package/script/types/1_user.js +4 -2
- package/script/types/3_message.d.ts +9 -8
- package/script/types/3_message.js +20 -15
- package/script/types/4_chat.d.ts +33 -0
- package/script/types/4_chat.js +124 -0
- package/script/utilities/{0_base64.js → 1_base64.js} +2 -1
- package/esm/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
- package/esm/deps/deno.land/std@0.208.0/assert/assert.js +0 -8
- package/esm/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
- package/esm/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
- package/esm/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
- package/esm/deps/deno.land/std@0.208.0/assert/assert_false.js +0 -8
- package/esm/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
- package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
- package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.js +0 -29
- package/esm/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
- package/esm/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
- package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.js +0 -12
- package/esm/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
- package/esm/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
- package/esm/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
- package/esm/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
- package/script/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
- package/script/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
- package/script/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
- package/script/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
- package/script/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
- package/script/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
- package/script/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
- package/script/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
- package/script/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
- package/script/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
- package/script/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
- package/script/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
- /package/esm/utilities/{0_base64.d.ts → 1_base64.d.ts} +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/utilities/{0_base64.d.ts → 1_base64.d.ts} +0 -0
|
@@ -9,27 +9,28 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _TransportAbridged_connection, _TransportAbridged_obfuscated;
|
|
12
|
+
var _TransportAbridged_initialized, _TransportAbridged_connection, _TransportAbridged_obfuscated;
|
|
13
13
|
import { bufferFromBigInt, concat } from "../1_utilities.js";
|
|
14
14
|
import { getObfuscationParameters } from "./0_obfuscation.js";
|
|
15
15
|
import { Transport } from "./0_transport.js";
|
|
16
16
|
export class TransportAbridged extends Transport {
|
|
17
17
|
constructor(connection, obfuscated = false) {
|
|
18
18
|
super();
|
|
19
|
+
_TransportAbridged_initialized.set(this, false);
|
|
19
20
|
_TransportAbridged_connection.set(this, void 0);
|
|
20
21
|
_TransportAbridged_obfuscated.set(this, void 0);
|
|
21
22
|
__classPrivateFieldSet(this, _TransportAbridged_connection, connection, "f");
|
|
22
23
|
__classPrivateFieldSet(this, _TransportAbridged_obfuscated, obfuscated, "f");
|
|
23
24
|
}
|
|
24
25
|
async initialize() {
|
|
25
|
-
if (!this
|
|
26
|
+
if (!__classPrivateFieldGet(this, _TransportAbridged_initialized, "f")) {
|
|
26
27
|
if (__classPrivateFieldGet(this, _TransportAbridged_obfuscated, "f")) {
|
|
27
28
|
this.obfuscationParameters = await getObfuscationParameters(0xEFEFEFEF, __classPrivateFieldGet(this, _TransportAbridged_connection, "f"));
|
|
28
29
|
}
|
|
29
30
|
else {
|
|
30
31
|
await __classPrivateFieldGet(this, _TransportAbridged_connection, "f").write(new Uint8Array([0xEF]));
|
|
31
32
|
}
|
|
32
|
-
this
|
|
33
|
+
__classPrivateFieldSet(this, _TransportAbridged_initialized, true, "f");
|
|
33
34
|
}
|
|
34
35
|
else {
|
|
35
36
|
throw new Error("Transport already initialized");
|
|
@@ -70,7 +71,10 @@ export class TransportAbridged extends Transport {
|
|
|
70
71
|
await __classPrivateFieldGet(this, _TransportAbridged_connection, "f").write(data);
|
|
71
72
|
}
|
|
72
73
|
deinitialize() {
|
|
73
|
-
this
|
|
74
|
+
__classPrivateFieldSet(this, _TransportAbridged_initialized, false, "f");
|
|
75
|
+
}
|
|
76
|
+
get initialized() {
|
|
77
|
+
return __classPrivateFieldGet(this, _TransportAbridged_initialized, "f");
|
|
74
78
|
}
|
|
75
79
|
}
|
|
76
|
-
_TransportAbridged_connection = new WeakMap(), _TransportAbridged_obfuscated = new WeakMap();
|
|
80
|
+
_TransportAbridged_initialized = new WeakMap(), _TransportAbridged_connection = new WeakMap(), _TransportAbridged_obfuscated = new WeakMap();
|
|
@@ -9,7 +9,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _TransportIntermediate_connection, _TransportIntermediate_obfuscated;
|
|
12
|
+
var _TransportIntermediate_connection, _TransportIntermediate_initialized, _TransportIntermediate_obfuscated;
|
|
13
13
|
import { bufferFromBigInt, concat } from "../1_utilities.js";
|
|
14
14
|
import { getObfuscationParameters } from "./0_obfuscation.js";
|
|
15
15
|
import { Transport } from "./0_transport.js";
|
|
@@ -17,6 +17,7 @@ export class TransportIntermediate extends Transport {
|
|
|
17
17
|
constructor(connection, obfuscated = false) {
|
|
18
18
|
super();
|
|
19
19
|
_TransportIntermediate_connection.set(this, void 0);
|
|
20
|
+
_TransportIntermediate_initialized.set(this, false);
|
|
20
21
|
_TransportIntermediate_obfuscated.set(this, void 0);
|
|
21
22
|
__classPrivateFieldSet(this, _TransportIntermediate_connection, connection, "f");
|
|
22
23
|
__classPrivateFieldSet(this, _TransportIntermediate_obfuscated, obfuscated, "f");
|
|
@@ -29,7 +30,7 @@ export class TransportIntermediate extends Transport {
|
|
|
29
30
|
else {
|
|
30
31
|
await __classPrivateFieldGet(this, _TransportIntermediate_connection, "f").write(new Uint8Array([0xEE, 0xEE, 0xEE, 0xEE]));
|
|
31
32
|
}
|
|
32
|
-
this
|
|
33
|
+
__classPrivateFieldSet(this, _TransportIntermediate_initialized, true, "f");
|
|
33
34
|
}
|
|
34
35
|
else {
|
|
35
36
|
throw new Error("Transport already initialized");
|
|
@@ -59,7 +60,10 @@ export class TransportIntermediate extends Transport {
|
|
|
59
60
|
await __classPrivateFieldGet(this, _TransportIntermediate_connection, "f").write(data);
|
|
60
61
|
}
|
|
61
62
|
deinitialize() {
|
|
62
|
-
this
|
|
63
|
+
__classPrivateFieldSet(this, _TransportIntermediate_initialized, false, "f");
|
|
64
|
+
}
|
|
65
|
+
get initialized() {
|
|
66
|
+
return __classPrivateFieldGet(this, _TransportIntermediate_initialized, "f");
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
|
-
_TransportIntermediate_connection = new WeakMap(), _TransportIntermediate_obfuscated = new WeakMap();
|
|
69
|
+
_TransportIntermediate_connection = new WeakMap(), _TransportIntermediate_initialized = new WeakMap(), _TransportIntermediate_obfuscated = new WeakMap();
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { types } from "../2_tl.js";
|
|
2
|
-
import { ChatPhoto } from "./0_chat_photo.js";
|
|
3
2
|
import { RestrictionReason } from "./0_restriction_reason.js";
|
|
4
3
|
export type ChatType = "private" | "group" | "supergroup" | "channel";
|
|
5
|
-
export declare namespace
|
|
4
|
+
export declare namespace ChatP {
|
|
6
5
|
interface Base {
|
|
7
|
-
/** The type of the chat. */
|
|
8
|
-
type: ChatType;
|
|
9
6
|
/** The identifier of the chat. */
|
|
10
7
|
id: number;
|
|
8
|
+
/** The type of the chat. */
|
|
9
|
+
type: ChatType;
|
|
11
10
|
/** Identifier of a color that can be displayed instead of the chat's photo. */
|
|
12
11
|
color: number;
|
|
13
|
-
/** The chat's photo. */
|
|
14
|
-
photo?: ChatPhoto;
|
|
15
12
|
}
|
|
16
13
|
interface Private extends Base {
|
|
17
14
|
type: "private";
|
|
@@ -23,10 +20,6 @@ export declare namespace Chat {
|
|
|
23
20
|
lastName?: string;
|
|
24
21
|
/** The user's main username. */
|
|
25
22
|
username?: string;
|
|
26
|
-
/** The user's other usernames. */
|
|
27
|
-
also?: string[];
|
|
28
|
-
/** The user's profile photo. */
|
|
29
|
-
photo?: ChatPhoto.User;
|
|
30
23
|
/** Whether the user has been identified as scam. */
|
|
31
24
|
isScam: boolean;
|
|
32
25
|
/** Whether the user has been identified as an impersonator. */
|
|
@@ -44,8 +37,6 @@ export declare namespace Chat {
|
|
|
44
37
|
type: "group";
|
|
45
38
|
/** The title of the chat. */
|
|
46
39
|
title: string;
|
|
47
|
-
/** The chat's photo. */
|
|
48
|
-
photo?: ChatPhoto.Chat;
|
|
49
40
|
/** Whether the current user is the owner of the chat. */
|
|
50
41
|
isCreator: boolean;
|
|
51
42
|
}
|
|
@@ -54,10 +45,6 @@ export declare namespace Chat {
|
|
|
54
45
|
title: string;
|
|
55
46
|
/** The main username of the chat or channel. */
|
|
56
47
|
username?: string;
|
|
57
|
-
/** The other usernames of the chat or channel. */
|
|
58
|
-
also?: string[];
|
|
59
|
-
/** The chat or channel's photo. */
|
|
60
|
-
photo?: ChatPhoto.Chat;
|
|
61
48
|
/** Whether the chat or channel has been identified as scam. */
|
|
62
49
|
isScam: boolean;
|
|
63
50
|
/** Whether the chat or channel has been identified as an impersonator. */
|
|
@@ -79,7 +66,7 @@ export declare namespace Chat {
|
|
|
79
66
|
}
|
|
80
67
|
}
|
|
81
68
|
/** This object represents a chat. */
|
|
82
|
-
export type
|
|
83
|
-
export declare function
|
|
84
|
-
export declare function
|
|
85
|
-
export declare function
|
|
69
|
+
export type ChatP = ChatP.Private | ChatP.Group | ChatP.Supergroup | ChatP.Channel;
|
|
70
|
+
export declare function constructChatP(chat: types.User): ChatP.Private;
|
|
71
|
+
export declare function constructChatP(chat: types.Chat): ChatP.Group;
|
|
72
|
+
export declare function constructChatP(chat: types.Channel): ChatP.Supergroup | ChatP.Channel;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { cleanObject, getColorFromPeerId, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
2
2
|
import { types } from "../2_tl.js";
|
|
3
|
-
import { constructChatPhoto } from "./0_chat_photo.js";
|
|
4
3
|
import { constructRestrictionReason } from "./0_restriction_reason.js";
|
|
5
|
-
export function
|
|
4
|
+
export function constructChatP(chat) {
|
|
6
5
|
if (chat instanceof types.User) {
|
|
7
6
|
const id = Number(chat.id);
|
|
8
7
|
const chat_ = {
|
|
8
|
+
id,
|
|
9
9
|
type: "private",
|
|
10
10
|
isBot: chat.bot || false,
|
|
11
|
-
id,
|
|
12
11
|
color: chat.color?.color !== undefined ? chat.color.color : getColorFromPeerId(id),
|
|
13
12
|
firstName: chat.first_name || "",
|
|
14
13
|
lastName: chat.last_name,
|
|
@@ -21,23 +20,17 @@ export function constructChat(chat) {
|
|
|
21
20
|
chat_.isRestricted = chat.restricted || false;
|
|
22
21
|
chat_.restrictionReason = chat.restriction_reason;
|
|
23
22
|
}
|
|
24
|
-
if (chat.photo instanceof types.UserProfilePhoto) {
|
|
25
|
-
chat_.photo = constructChatPhoto(chat.photo, chat_.id, chat.access_hash ?? 0n);
|
|
26
|
-
}
|
|
27
23
|
return cleanObject(chat_);
|
|
28
24
|
}
|
|
29
25
|
else if (chat instanceof types.Chat) {
|
|
30
26
|
const id = Number(-chat.id);
|
|
31
27
|
const chat_ = {
|
|
32
|
-
type: "group",
|
|
33
28
|
id,
|
|
29
|
+
type: "group",
|
|
34
30
|
color: getColorFromPeerId(id),
|
|
35
31
|
title: chat.title,
|
|
36
32
|
isCreator: chat.creator || false,
|
|
37
33
|
};
|
|
38
|
-
if (chat.photo instanceof types.ChatPhoto) {
|
|
39
|
-
chat_.photo = constructChatPhoto(chat.photo, chat_.id, 0n);
|
|
40
|
-
}
|
|
41
34
|
return cleanObject(chat_);
|
|
42
35
|
}
|
|
43
36
|
else if (chat instanceof types.Channel) {
|
|
@@ -70,14 +63,10 @@ export function constructChat(chat) {
|
|
|
70
63
|
isRestricted,
|
|
71
64
|
};
|
|
72
65
|
}
|
|
73
|
-
chat_.username = chat.username;
|
|
74
|
-
chat_.also = chat.usernames?.map((v) => v.username);
|
|
66
|
+
chat_.username = chat.username ?? chat.usernames?.[0].username;
|
|
75
67
|
if (chat_.isRestricted) {
|
|
76
68
|
chat_.restrictionReason = (chat.restriction_reason ?? []).map(constructRestrictionReason);
|
|
77
69
|
}
|
|
78
|
-
if (chat.photo instanceof types.ChatPhoto) {
|
|
79
|
-
chat_.photo = constructChatPhoto(chat.photo, chat_.id, chat.access_hash ?? 0n);
|
|
80
|
-
}
|
|
81
70
|
return cleanObject(chat_);
|
|
82
71
|
}
|
|
83
72
|
else {
|
package/esm/types/1_user.js
CHANGED
|
@@ -3,14 +3,16 @@ import { types } from "../2_tl.js";
|
|
|
3
3
|
import { constructChatPhoto } from "./0_chat_photo.js";
|
|
4
4
|
export function constructUser(user_) {
|
|
5
5
|
const id = Number(user_.id);
|
|
6
|
+
const usernames = user_.usernames?.map((v) => v.username);
|
|
7
|
+
const username = user_.username ?? usernames?.shift();
|
|
6
8
|
const user = {
|
|
7
9
|
id,
|
|
8
10
|
color: user_.color?.color !== undefined ? user_.color.color : getColorFromPeerId(id),
|
|
9
11
|
isBot: user_.bot || false,
|
|
10
12
|
firstName: user_.first_name || "",
|
|
11
13
|
lastName: user_.last_name,
|
|
12
|
-
username:
|
|
13
|
-
also:
|
|
14
|
+
username: username,
|
|
15
|
+
also: usernames?.filter((v) => v != username),
|
|
14
16
|
languageCode: user_.lang_code,
|
|
15
17
|
isScam: user_.scam || false,
|
|
16
18
|
isFake: user_.fake || false,
|
package/esm/types/3_message.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { Venue } from "./0_venue.js";
|
|
|
11
11
|
import { Voice } from "./0_voice.js";
|
|
12
12
|
import { EntityGetter } from "./1__getters.js";
|
|
13
13
|
import { Animation } from "./1_animation.js";
|
|
14
|
-
import {
|
|
14
|
+
import { ChatP } from "./1_chat_p.js";
|
|
15
15
|
import { Document } from "./1_document.js";
|
|
16
16
|
import { Photo } from "./1_photo.js";
|
|
17
17
|
import { Poll } from "./1_poll.js";
|
|
@@ -33,17 +33,17 @@ export interface Message {
|
|
|
33
33
|
/** Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. */
|
|
34
34
|
from?: User;
|
|
35
35
|
/** Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. */
|
|
36
|
-
senderChat?:
|
|
36
|
+
senderChat?: ChatP;
|
|
37
37
|
/** Date the message was sent in Unix time */
|
|
38
|
-
date
|
|
38
|
+
date: Date;
|
|
39
39
|
/** Conversation the message belongs to */
|
|
40
|
-
chat:
|
|
40
|
+
chat: ChatP;
|
|
41
41
|
/** A link to the message */
|
|
42
42
|
link?: string;
|
|
43
43
|
/** For forwarded messages, sender of the original message */
|
|
44
44
|
forwardFrom?: User;
|
|
45
45
|
/** For messages forwarded from channels or from anonymous administrators, information about the original sender chat */
|
|
46
|
-
forwardFromChat?:
|
|
46
|
+
forwardFromChat?: ChatP;
|
|
47
47
|
/** For messages forwarded from channels, identifier of the original message in the channel */
|
|
48
48
|
forwardId?: number;
|
|
49
49
|
/** For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present */
|
|
@@ -57,7 +57,8 @@ export interface Message {
|
|
|
57
57
|
/** True, if the message is a channel post that was automatically forwarded to the connected discussion group */
|
|
58
58
|
isAutomaticForward?: boolean;
|
|
59
59
|
/** For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply. */
|
|
60
|
-
replyToMessage?: Omit<Message, "
|
|
60
|
+
replyToMessage?: Omit<Message, "replyToMessage">;
|
|
61
|
+
replyToMessageId?: number;
|
|
61
62
|
/** Bot through which the message was sent */
|
|
62
63
|
viaBot?: User;
|
|
63
64
|
/** Date the message was last edited in Unix time */
|
|
@@ -172,8 +173,8 @@ export interface Message {
|
|
|
172
173
|
};
|
|
173
174
|
}
|
|
174
175
|
export interface MessageGetter<O extends keyof Message | null = null> {
|
|
175
|
-
(chatId: number, messageId: number): MaybePromise<(O extends
|
|
176
|
+
(chatId: number, messageId: number): MaybePromise<(O extends keyof Message ? Omit<Message, O> : Message) | null>;
|
|
176
177
|
}
|
|
177
178
|
type Message_MessageGetter = MessageGetter<"replyToMessage"> | null;
|
|
178
|
-
export declare function constructMessage(message_: enums.Message, getEntity: EntityGetter, getMessage: Message_MessageGetter, getStickerSetName: StickerSetNameGetter): Promise<Message>;
|
|
179
|
+
export declare function constructMessage(message_: enums.Message, getEntity: EntityGetter, getMessage: Message_MessageGetter, getStickerSetName: StickerSetNameGetter, getReply_?: boolean): Promise<Message>;
|
|
179
180
|
export {};
|
package/esm/types/3_message.js
CHANGED
|
@@ -12,7 +12,7 @@ import { constructReplyKeyboardRemove } from "./0_reply_keyboard_remove.js";
|
|
|
12
12
|
import { constructVenue } from "./0_venue.js";
|
|
13
13
|
import { constructVoice } from "./0_voice.js";
|
|
14
14
|
import { constructAnimation } from "./1_animation.js";
|
|
15
|
-
import {
|
|
15
|
+
import { constructChatP } from "./1_chat_p.js";
|
|
16
16
|
import { constructDocument } from "./1_document.js";
|
|
17
17
|
import { constructPhoto } from "./1_photo.js";
|
|
18
18
|
import { constructPoll } from "./1_poll.js";
|
|
@@ -37,7 +37,7 @@ async function getSender(message_, getEntity) {
|
|
|
37
37
|
else if (message_.from_id instanceof types.PeerChannel) {
|
|
38
38
|
const entity = await getEntity(message_.from_id);
|
|
39
39
|
if (entity) {
|
|
40
|
-
return { senderChat:
|
|
40
|
+
return { senderChat: constructChatP(entity) };
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
43
|
UNREACHABLE();
|
|
@@ -50,15 +50,15 @@ async function getReply(message_, chat, getMessage) {
|
|
|
50
50
|
if (message_.reply_to.forum_topic) {
|
|
51
51
|
isTopicMessage = true;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
return {
|
|
53
|
+
const replyToMessage = await getMessage(chat.id, message_.reply_to.reply_to_msg_id);
|
|
54
|
+
if (replyToMessage) {
|
|
55
|
+
return { replyToMessage, threadId: message_.reply_to.reply_to_top_id, isTopicMessage };
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
58
58
|
d("couldn't get replied message");
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
return {
|
|
61
|
+
return { replyToMessage: undefined, threadId: undefined, isTopicMessage: undefined };
|
|
62
62
|
}
|
|
63
63
|
async function constructServiceMessage(message_, chat, getEntity, getMessage) {
|
|
64
64
|
const message = {
|
|
@@ -133,8 +133,8 @@ async function constructServiceMessage(message_, chat, getEntity, getMessage) {
|
|
|
133
133
|
message.chatMigratedFrom = Number(-message_.action.chat_id);
|
|
134
134
|
}
|
|
135
135
|
else if (message_.action instanceof types.MessageActionPinMessage) {
|
|
136
|
-
const {
|
|
137
|
-
message.pinnedMessage =
|
|
136
|
+
const { replyToMessage } = await getReply(message_, chat, getMessage);
|
|
137
|
+
message.pinnedMessage = replyToMessage;
|
|
138
138
|
}
|
|
139
139
|
else if (message_.action instanceof types.MessageActionRequestedPeer) {
|
|
140
140
|
const user = message_.action.peer[as](types.PeerUser);
|
|
@@ -181,7 +181,7 @@ async function constructServiceMessage(message_, chat, getEntity, getMessage) {
|
|
|
181
181
|
}
|
|
182
182
|
return cleanObject(message);
|
|
183
183
|
}
|
|
184
|
-
export async function constructMessage(message_, getEntity, getMessage, getStickerSetName) {
|
|
184
|
+
export async function constructMessage(message_, getEntity, getMessage, getStickerSetName, getReply_ = true) {
|
|
185
185
|
if (!(message_ instanceof types.Message) && !(message_ instanceof types.MessageService)) {
|
|
186
186
|
UNREACHABLE();
|
|
187
187
|
}
|
|
@@ -190,7 +190,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
|
|
|
190
190
|
if (message_.peer_id instanceof types.PeerUser) {
|
|
191
191
|
const entity = await getEntity(message_.peer_id);
|
|
192
192
|
if (entity) {
|
|
193
|
-
chat_ =
|
|
193
|
+
chat_ = constructChatP(entity);
|
|
194
194
|
}
|
|
195
195
|
else {
|
|
196
196
|
UNREACHABLE();
|
|
@@ -199,7 +199,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
|
|
|
199
199
|
else if (message_.peer_id instanceof types.PeerChat) {
|
|
200
200
|
const entity = await getEntity(message_.peer_id);
|
|
201
201
|
if (entity) {
|
|
202
|
-
chat_ =
|
|
202
|
+
chat_ = constructChatP(entity);
|
|
203
203
|
}
|
|
204
204
|
else {
|
|
205
205
|
UNREACHABLE();
|
|
@@ -209,7 +209,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
|
|
|
209
209
|
link = `https://t.me/c/${message_.peer_id.channel_id}/${message_.id}`;
|
|
210
210
|
const entity = await getEntity(message_.peer_id);
|
|
211
211
|
if (entity) {
|
|
212
|
-
chat_ =
|
|
212
|
+
chat_ = constructChatP(entity);
|
|
213
213
|
}
|
|
214
214
|
else {
|
|
215
215
|
UNREACHABLE();
|
|
@@ -231,7 +231,12 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
|
|
|
231
231
|
isTopicMessage: false,
|
|
232
232
|
hasProtectedContent: message_.noforwards || false,
|
|
233
233
|
};
|
|
234
|
-
|
|
234
|
+
if (message_.reply_to instanceof types.MessageReplyHeader && message_.reply_to.reply_to_msg_id) {
|
|
235
|
+
message.replyToMessageId = message_.reply_to.reply_to_msg_id;
|
|
236
|
+
}
|
|
237
|
+
if (getReply_) {
|
|
238
|
+
Object.assign(message, await getReply(message_, chat_, getMessage));
|
|
239
|
+
}
|
|
235
240
|
Object.assign(message, await getSender(message_, getEntity));
|
|
236
241
|
if (message_.media instanceof types.MessageMediaPhoto || message_.media instanceof types.MessageMediaDocument) {
|
|
237
242
|
message.hasMediaSpoiler = message_.media.spoiler || false;
|
|
@@ -305,7 +310,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
|
|
|
305
310
|
else if (message_.fwd_from.from_id instanceof types.PeerChat) {
|
|
306
311
|
const entity = await getEntity(message_.fwd_from.from_id);
|
|
307
312
|
if (entity) {
|
|
308
|
-
message.forwardFromChat =
|
|
313
|
+
message.forwardFromChat = constructChatP(entity);
|
|
309
314
|
}
|
|
310
315
|
else {
|
|
311
316
|
UNREACHABLE();
|
|
@@ -314,7 +319,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
|
|
|
314
319
|
else if (message_.fwd_from.from_id instanceof types.PeerChannel) {
|
|
315
320
|
const entity = await getEntity(message_.fwd_from.from_id);
|
|
316
321
|
if (entity) {
|
|
317
|
-
message.forwardFromChat =
|
|
322
|
+
message.forwardFromChat = constructChatP(entity);
|
|
318
323
|
}
|
|
319
324
|
else {
|
|
320
325
|
UNREACHABLE();
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { enums, types } from "../2_tl.js";
|
|
2
|
+
import { ChatP } from "./1_chat_p.js";
|
|
3
|
+
import { ChatPhoto } from "./0_chat_photo.js";
|
|
4
|
+
import { Message, MessageGetter } from "./3_message.js";
|
|
5
|
+
import { StickerSetNameGetter } from "./1_sticker.js";
|
|
6
|
+
import { EntityGetter } from "./1__getters.js";
|
|
7
|
+
export declare namespace Chat {
|
|
8
|
+
interface Base {
|
|
9
|
+
order: string;
|
|
10
|
+
lastMessage?: Message;
|
|
11
|
+
pinned: number;
|
|
12
|
+
}
|
|
13
|
+
interface Channel extends Base, ChatP.Channel {
|
|
14
|
+
also?: string[];
|
|
15
|
+
photo?: ChatPhoto.Chat;
|
|
16
|
+
}
|
|
17
|
+
interface Supergroup extends Base, ChatP.Supergroup {
|
|
18
|
+
also?: string[];
|
|
19
|
+
photo?: ChatPhoto.Chat;
|
|
20
|
+
}
|
|
21
|
+
interface Group extends Base, ChatP.Group {
|
|
22
|
+
photo?: ChatPhoto.Chat;
|
|
23
|
+
}
|
|
24
|
+
interface Private extends Base, ChatP.Private {
|
|
25
|
+
also?: string[];
|
|
26
|
+
photo?: ChatPhoto.User;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export type Chat = Chat.Channel | Chat.Supergroup | Chat.Group | Chat.Private;
|
|
30
|
+
export declare function getChatOrder(lastMessage: Message | undefined, pinned: number): string;
|
|
31
|
+
export declare function constructChat(dialog: enums.Dialog, dialogs: types.messages.Dialogs | types.messages.DialogsSlice, pinnedChats: number[], getEntity: EntityGetter, getMessage: MessageGetter<"replyToMessage">, getStickerSetName: StickerSetNameGetter): Promise<Chat>;
|
|
32
|
+
export declare function constructChat2(chatId: number, pinned: number, lastMessage: Message | undefined, getEntity: EntityGetter): Promise<Chat | null>;
|
|
33
|
+
export declare function constructChat3(chatId: number, pinned: number, lastMessageId: number, getEntity: EntityGetter, getMessage: MessageGetter<"replyToMessage">): Promise<Chat | null>;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { cleanObject, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
2
|
+
import { peerToChatId, types } from "../2_tl.js";
|
|
3
|
+
import { constructChatP } from "./1_chat_p.js";
|
|
4
|
+
import { constructChatPhoto } from "./0_chat_photo.js";
|
|
5
|
+
import { constructMessage } from "./3_message.js";
|
|
6
|
+
function getChatPAlsoPhoto(entity) {
|
|
7
|
+
let chatP;
|
|
8
|
+
let also = undefined;
|
|
9
|
+
if (entity instanceof types.User) {
|
|
10
|
+
chatP = constructChatP(entity);
|
|
11
|
+
also = "usernames" in entity ? entity.usernames?.map((v) => v.username).filter((v) => v != ("username" in chatP ? chatP.username : "")) : undefined;
|
|
12
|
+
}
|
|
13
|
+
else if (entity instanceof types.Chat) {
|
|
14
|
+
chatP = constructChatP(entity);
|
|
15
|
+
}
|
|
16
|
+
else if (entity instanceof types.Channel) {
|
|
17
|
+
chatP = constructChatP(entity);
|
|
18
|
+
also = "usernames" in entity ? entity.usernames?.map((v) => v.username).filter((v) => v != ("username" in chatP ? chatP.username : "")) : undefined;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
UNREACHABLE();
|
|
22
|
+
}
|
|
23
|
+
let photo = undefined;
|
|
24
|
+
if (entity.photo instanceof types.UserProfilePhoto) {
|
|
25
|
+
photo = constructChatPhoto(entity.photo, chatP.id, "access_hash" in entity ? entity.access_hash ?? 0n : 0n);
|
|
26
|
+
}
|
|
27
|
+
else if (entity.photo instanceof types.ChatPhoto) {
|
|
28
|
+
photo = constructChatPhoto(entity.photo, chatP.id, "access_hash" in entity ? entity.access_hash ?? 0n : 0n);
|
|
29
|
+
}
|
|
30
|
+
return { chatP, also, photo };
|
|
31
|
+
}
|
|
32
|
+
export function getChatOrder(lastMessage, pinned) {
|
|
33
|
+
const p = pinned == -1 ? "" : `P${100 - pinned}`;
|
|
34
|
+
if (!lastMessage) {
|
|
35
|
+
return p + "0";
|
|
36
|
+
}
|
|
37
|
+
return p + String((BigInt(Math.floor(lastMessage.date.getTime())) << 32n) + BigInt(lastMessage.id));
|
|
38
|
+
}
|
|
39
|
+
export async function constructChat(dialog, dialogs, pinnedChats, getEntity, getMessage, getStickerSetName) {
|
|
40
|
+
const topMessage_ = dialogs.messages.find((v) => "id" in v && v.id == dialog.top_message);
|
|
41
|
+
if (!topMessage_) {
|
|
42
|
+
UNREACHABLE();
|
|
43
|
+
}
|
|
44
|
+
const pinned = pinnedChats.indexOf(peerToChatId(dialog.peer));
|
|
45
|
+
const lastMessage = await constructMessage(topMessage_, getEntity, getMessage, getStickerSetName, false);
|
|
46
|
+
const order = getChatOrder(lastMessage, pinned);
|
|
47
|
+
const userId = "user_id" in dialog.peer ? dialog.peer.user_id : null;
|
|
48
|
+
const chatId = "chat_id" in dialog.peer ? dialog.peer.chat_id : null;
|
|
49
|
+
const channelId = "channel_id" in dialog.peer ? dialog.peer.channel_id : null;
|
|
50
|
+
const chat__ = chatId != null ? dialogs.chats.find((v) => v instanceof types.Chat && v.id == chatId) : channelId != null ? dialogs.chats.find((v) => v instanceof types.Channel && v.id == channelId) : userId != null ? dialogs.users.find((v) => v instanceof types.User && v.id == userId) : UNREACHABLE();
|
|
51
|
+
if (!chat__) {
|
|
52
|
+
UNREACHABLE();
|
|
53
|
+
}
|
|
54
|
+
const chat_ = chat__;
|
|
55
|
+
const { chatP, also, photo } = getChatPAlsoPhoto(chat_);
|
|
56
|
+
if (chatP.type == "group") {
|
|
57
|
+
return cleanObject({ ...chatP, order, lastMessage, photo, pinned });
|
|
58
|
+
}
|
|
59
|
+
else if (chatP.type == "supergroup") {
|
|
60
|
+
return cleanObject({ ...chatP, order, lastMessage, also, photo, pinned });
|
|
61
|
+
}
|
|
62
|
+
else if (chatP.type == "channel") {
|
|
63
|
+
return cleanObject({ ...chatP, order, lastMessage, also, photo, pinned });
|
|
64
|
+
}
|
|
65
|
+
else if (chatP.type == "private") {
|
|
66
|
+
return cleanObject({ ...chatP, order, lastMessage, also, photo: photo, pinned });
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
UNREACHABLE();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export async function constructChat2(chatId, pinned, lastMessage, getEntity) {
|
|
73
|
+
let chatPAlsoPhoto = null;
|
|
74
|
+
if (chatId < ZERO_CHANNEL_ID) {
|
|
75
|
+
const entity = await getEntity(new types.PeerChannel({ channel_id: BigInt(Math.abs(chatId - ZERO_CHANNEL_ID)) }));
|
|
76
|
+
if (entity != null) {
|
|
77
|
+
chatPAlsoPhoto = getChatPAlsoPhoto(entity);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
else if (chatId < 0) {
|
|
81
|
+
const entity = await getEntity(new types.PeerChat({ chat_id: BigInt(Math.abs(chatId)) }));
|
|
82
|
+
if (entity != null) {
|
|
83
|
+
chatPAlsoPhoto = getChatPAlsoPhoto(entity);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
const entity = await getEntity(new types.PeerUser({ user_id: BigInt(chatId) }));
|
|
88
|
+
if (entity != null) {
|
|
89
|
+
chatPAlsoPhoto = getChatPAlsoPhoto(entity);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (chatPAlsoPhoto == null) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
const order = getChatOrder(lastMessage, pinned);
|
|
96
|
+
const { also, photo, chatP } = chatPAlsoPhoto;
|
|
97
|
+
if (chatP.type == "group") {
|
|
98
|
+
return cleanObject({ ...chatP, order, lastMessage, photo, pinned });
|
|
99
|
+
}
|
|
100
|
+
else if (chatP.type == "supergroup") {
|
|
101
|
+
return cleanObject({ ...chatP, order, lastMessage, also, photo, pinned });
|
|
102
|
+
}
|
|
103
|
+
else if (chatP.type == "channel") {
|
|
104
|
+
return cleanObject({ ...chatP, order, lastMessage, also, photo, pinned });
|
|
105
|
+
}
|
|
106
|
+
else if (chatP.type == "private") {
|
|
107
|
+
return cleanObject({ ...chatP, order, lastMessage, also, photo: photo, pinned });
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
UNREACHABLE();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export async function constructChat3(chatId, pinned, lastMessageId, getEntity, getMessage) {
|
|
114
|
+
const lastMessage_ = lastMessageId > 0 ? await getMessage(chatId, lastMessageId) : null;
|
|
115
|
+
const lastMessage = lastMessage_ == null ? undefined : lastMessage_;
|
|
116
|
+
return await constructChat2(chatId, pinned, lastMessage, getEntity);
|
|
117
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { decodeBase64, encodeBase64 } from "../0_deps.js";
|
|
2
|
+
import { mod } from "./0_bigint.js";
|
|
2
3
|
export function base64EncodeUrlSafe(data) {
|
|
3
4
|
return encodeBase64(data).replace(/=*$/, "").replaceAll("+", "-").replaceAll("/", "_");
|
|
4
5
|
}
|
|
5
6
|
export function base64DecodeUrlSafe(data) {
|
|
6
7
|
data = data.replaceAll("_", "/").replaceAll("-", "+");
|
|
7
8
|
if (data.length != 4) {
|
|
8
|
-
data += "=".repeat(
|
|
9
|
+
data += "=".repeat(mod(-data.length, 4));
|
|
9
10
|
}
|
|
10
11
|
return decodeBase64(data);
|
|
11
12
|
}
|
package/package.json
CHANGED
package/script/0_deps.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from "./deps/deno.land/std@0.
|
|
2
|
-
export * as path from "./deps/deno.land/std@0.
|
|
3
|
-
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.
|
|
1
|
+
export * from "./deps/deno.land/std@0.209.0/assert/mod.js";
|
|
2
|
+
export * as path from "./deps/deno.land/std@0.209.0/path/mod.js";
|
|
3
|
+
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.209.0/encoding/base64.js";
|
|
4
|
+
export { contentType } from "./deps/deno.land/std@0.209.0/media_types/content_type.js";
|
|
4
5
|
export { ctr256, factorize, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.3.3/mod.js";
|
|
5
6
|
export { gunzip, gzip } from "./deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.js";
|
|
6
7
|
export { Mutex, type MutexInterface } from "async-mutex";
|
package/script/0_deps.js
CHANGED
|
@@ -26,12 +26,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.debug = exports.Parser = exports.Mutex = exports.gzip = exports.gunzip = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.factorize = exports.ctr256 = exports.encodeBase64 = exports.decodeBase64 = exports.path = void 0;
|
|
30
|
-
__exportStar(require("./deps/deno.land/std@0.
|
|
31
|
-
exports.path = __importStar(require("./deps/deno.land/std@0.
|
|
32
|
-
var base64_js_1 = require("./deps/deno.land/std@0.
|
|
29
|
+
exports.debug = exports.Parser = exports.Mutex = exports.gzip = exports.gunzip = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.factorize = exports.ctr256 = exports.contentType = exports.encodeBase64 = exports.decodeBase64 = exports.path = void 0;
|
|
30
|
+
__exportStar(require("./deps/deno.land/std@0.209.0/assert/mod.js"), exports);
|
|
31
|
+
exports.path = __importStar(require("./deps/deno.land/std@0.209.0/path/mod.js"));
|
|
32
|
+
var base64_js_1 = require("./deps/deno.land/std@0.209.0/encoding/base64.js");
|
|
33
33
|
Object.defineProperty(exports, "decodeBase64", { enumerable: true, get: function () { return base64_js_1.decodeBase64; } });
|
|
34
34
|
Object.defineProperty(exports, "encodeBase64", { enumerable: true, get: function () { return base64_js_1.encodeBase64; } });
|
|
35
|
+
var content_type_js_1 = require("./deps/deno.land/std@0.209.0/media_types/content_type.js");
|
|
36
|
+
Object.defineProperty(exports, "contentType", { enumerable: true, get: function () { return content_type_js_1.contentType; } });
|
|
35
37
|
var mod_js_1 = require("./deps/deno.land/x/tgcrypto@0.3.3/mod.js");
|
|
36
38
|
Object.defineProperty(exports, "ctr256", { enumerable: true, get: function () { return mod_js_1.ctr256; } });
|
|
37
39
|
Object.defineProperty(exports, "factorize", { enumerable: true, get: function () { return mod_js_1.factorize; } });
|
package/script/1_utilities.d.ts
CHANGED
package/script/1_utilities.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./utilities/
|
|
17
|
+
__exportStar(require("./utilities/1_base64.js"), exports);
|
|
18
18
|
__exportStar(require("./utilities/0_bigint.js"), exports);
|
|
19
19
|
__exportStar(require("./utilities/0_buffer.js"), exports);
|
|
20
20
|
__exportStar(require("./utilities/0_color.js"), exports);
|
package/script/3_types.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export * from "./types/0_voice.js";
|
|
|
27
27
|
export * from "./types/0_web_app_info.js";
|
|
28
28
|
export * from "./types/1_animation.js";
|
|
29
29
|
export * from "./types/1_bot_command_scope.js";
|
|
30
|
-
export * from "./types/
|
|
30
|
+
export * from "./types/1_chat_p.js";
|
|
31
31
|
export * from "./types/1_document.js";
|
|
32
32
|
export * from "./types/1__getters.js";
|
|
33
33
|
export * from "./types/1_inline_query_result_button.js";
|
|
@@ -49,6 +49,7 @@ export * from "./types/2_reply_keyboard_markup.js";
|
|
|
49
49
|
export * from "./types/3_inline_keyboard_markup.js";
|
|
50
50
|
export * from "./types/3_message.js";
|
|
51
51
|
export * from "./types/4_callback_query.js";
|
|
52
|
+
export * from "./types/4_chat.js";
|
|
52
53
|
export * from "./types/4_inline_query_result_article.js";
|
|
53
54
|
export * from "./types/4_inline_query_result_audio.js";
|
|
54
55
|
export * from "./types/4_inline_query_result_cached_audio.js";
|