@mtkruto/node 0.1.143 → 0.1.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/0_deps.d.ts +4 -4
- package/esm/0_deps.js +5 -5
- package/esm/3_types.d.ts +1 -0
- package/esm/3_types.js +1 -0
- package/esm/4_constants.d.ts +2 -2
- package/esm/4_constants.js +2 -2
- package/esm/client/0_message.js +9 -9
- package/esm/client/0_types.d.ts +1 -0
- package/esm/client/1_file_manager.js +1 -1
- package/esm/client/1_update_manager.js +33 -13
- package/esm/client/2_client_plain.js +4 -4
- package/esm/client/2_message_manager.d.ts +3 -2
- package/esm/client/2_message_manager.js +52 -36
- package/esm/client/4_client.d.ts +12 -1
- package/esm/client/4_client.js +24 -12
- package/esm/deps/deno.land/std@0.212.0/assert/_constants.js +2 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.js +39 -18
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.js +1 -1
- package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.212.0}/fmt/colors.d.ts +16 -11
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/fmt/colors.js +14 -11
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.js +8 -6
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.js +2 -2
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.js +1 -1
- package/esm/deps/deno.land/std@0.212.0/path/_interface.js +3 -0
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/common.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/common.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.js +1 -1
- package/{script/deps/deno.land/std@0.210.0/path → esm/deps/deno.land/std@0.212.0/path/posix}/common.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/common.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.js +2 -2
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join_globs.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.js +2 -2
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/common.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/common.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.js +1 -1
- package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.212.0}/path/windows/from_file_url.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/from_file_url.js +2 -2
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join_globs.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize_glob.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.js +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.js +2 -2
- package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.js +1 -1
- package/esm/storage/0_storage.d.ts +3 -6
- package/esm/storage/0_storage.js +17 -17
- package/esm/tl/0_tl_raw_reader.js +3 -2
- package/esm/tl/0_tl_raw_writer.js +3 -3
- package/esm/tl/2_types.d.ts +218 -4
- package/esm/tl/2_types.js +632 -19
- package/esm/tl/3_functions.d.ts +232 -0
- package/esm/tl/3_functions.js +608 -4
- package/esm/transport/0_obfuscation.js +2 -2
- package/esm/transport/1_transport_abridged.js +1 -1
- package/esm/transport/1_transport_intermediate.js +1 -1
- package/esm/types/0__file_id.js +2 -2
- package/esm/types/0_chat_member_rights.d.ts +3 -0
- package/esm/types/0_chat_member_rights.js +45 -1
- package/esm/types/0_message_entity.d.ts +2 -1
- package/esm/types/0_message_entity.js +27 -4
- package/esm/types/1_chat_p.js +1 -1
- package/esm/types/2_chat_member.d.ts +46 -0
- package/esm/types/2_chat_member.js +89 -0
- package/esm/types/4_inline_query_result.d.ts +1 -1
- package/esm/types/4_inline_query_result.js +2 -2
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -4
- package/script/0_deps.js +5 -5
- package/script/3_types.d.ts +1 -0
- package/script/3_types.js +1 -0
- package/script/4_constants.d.ts +2 -2
- package/script/4_constants.js +2 -2
- package/script/client/0_message.js +9 -9
- package/script/client/0_types.d.ts +1 -0
- package/script/client/1_file_manager.js +1 -1
- package/script/client/1_update_manager.js +33 -13
- package/script/client/2_client_plain.js +4 -4
- package/script/client/2_message_manager.d.ts +3 -2
- package/script/client/2_message_manager.js +51 -35
- package/script/client/4_client.d.ts +12 -1
- package/script/client/4_client.js +24 -12
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_constants.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.js +39 -18
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.js +1 -1
- package/{esm/deps/deno.land/std@0.210.0 → script/deps/deno.land/std@0.212.0}/fmt/colors.d.ts +16 -11
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/fmt/colors.js +14 -11
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.js +8 -6
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.js +2 -2
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_interface.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.js +1 -1
- package/{esm/deps/deno.land/std@0.210.0/path/windows → script/deps/deno.land/std@0.212.0/path}/common.d.ts +2 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/common.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.js +1 -1
- package/script/deps/deno.land/std@0.212.0/path/posix/common.d.ts +14 -0
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/common.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.d.ts +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.js +2 -2
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.js +1 -1
- package/script/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/is_glob.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.js +1 -1
- package/script/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/join_globs.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.js +1 -1
- package/script/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/normalize_glob.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.d.ts +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.js +2 -2
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.js +1 -1
- package/script/deps/deno.land/std@0.212.0/path/windows/common.d.ts +14 -0
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/common.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.js +1 -1
- package/{esm/deps/deno.land/std@0.210.0 → script/deps/deno.land/std@0.212.0}/path/windows/from_file_url.d.ts +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/from_file_url.js +2 -2
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.js +1 -1
- package/script/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/is_glob.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.js +1 -1
- package/script/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/join_globs.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.js +1 -1
- package/script/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/normalize_glob.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.js +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.d.ts +1 -1
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.js +2 -2
- package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.js +1 -1
- package/script/storage/0_storage.d.ts +3 -6
- package/script/storage/0_storage.js +17 -17
- package/script/tl/0_tl_raw_reader.js +3 -2
- package/script/tl/0_tl_raw_writer.js +3 -3
- package/script/tl/2_types.d.ts +218 -4
- package/script/tl/2_types.js +674 -44
- package/script/tl/3_functions.d.ts +232 -0
- package/script/tl/3_functions.js +629 -14
- package/script/transport/0_obfuscation.js +2 -2
- package/script/transport/1_transport_abridged.js +1 -1
- package/script/transport/1_transport_intermediate.js +1 -1
- package/script/types/0__file_id.js +2 -2
- package/script/types/0_chat_member_rights.d.ts +3 -0
- package/script/types/0_chat_member_rights.js +48 -0
- package/script/types/0_message_entity.d.ts +2 -1
- package/script/types/0_message_entity.js +27 -4
- package/script/types/1_chat_p.js +1 -1
- package/script/types/2_chat_member.d.ts +46 -0
- package/script/types/2_chat_member.js +93 -0
- package/script/types/4_inline_query_result.d.ts +1 -1
- package/script/types/4_inline_query_result.js +2 -2
- package/esm/deps/deno.land/std@0.210.0/assert/_constants.js +0 -2
- package/esm/deps/deno.land/std@0.210.0/path/_interface.js +0 -3
- package/script/deps/deno.land/std@0.210.0/path/posix/common.d.ts +0 -13
- package/script/deps/deno.land/std@0.210.0/path/windows/common.d.ts +0 -13
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.d.ts +0 -0
|
@@ -33,7 +33,7 @@ async function getObfuscationParameters(protocol, connection) {
|
|
|
33
33
|
if (init[0] == 0xEF) {
|
|
34
34
|
continue;
|
|
35
35
|
}
|
|
36
|
-
const dataView = new DataView(init.buffer);
|
|
36
|
+
const dataView = new DataView(init.buffer, init.byteOffset, init.byteLength);
|
|
37
37
|
const firstInt = dataView.getInt32(0);
|
|
38
38
|
if ([0x44414548, 0x54534F50, 0x20544547, 0x4954504F, 0x02010316, 0xDDDDDDDD, 0xEEEEEEEE].includes(firstInt)) {
|
|
39
39
|
continue;
|
|
@@ -53,7 +53,7 @@ async function getObfuscationParameters(protocol, connection) {
|
|
|
53
53
|
const decryptKey = initRev.slice(8, 8 + 32);
|
|
54
54
|
const decryptIv = initRev.slice(40, 40 + 16);
|
|
55
55
|
const decryptionCTR = new _1_utilities_js_1.CTR(decryptKey, decryptIv);
|
|
56
|
-
await connection.write((0, _1_utilities_js_1.concat)(init.
|
|
56
|
+
await connection.write((0, _1_utilities_js_1.concat)(init.subarray(0, 56), encryptedInit.subarray(56, 56 + 8)));
|
|
57
57
|
return { encryptionCTR, decryptionCTR };
|
|
58
58
|
}
|
|
59
59
|
exports.getObfuscationParameters = getObfuscationParameters;
|
|
@@ -52,7 +52,7 @@ class TransportAbridged extends _0_transport_js_1.Transport {
|
|
|
52
52
|
const buffer = new Uint8Array(3);
|
|
53
53
|
await __classPrivateFieldGet(this, _TransportAbridged_connection, "f").read(buffer);
|
|
54
54
|
this.decrypt(buffer);
|
|
55
|
-
const dataView = new DataView(buffer.buffer);
|
|
55
|
+
const dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
56
56
|
length = dataView.getUint16(0, true);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -45,7 +45,7 @@ class TransportIntermediate extends _0_transport_js_1.Transport {
|
|
|
45
45
|
const buffer = new Uint8Array(4);
|
|
46
46
|
await __classPrivateFieldGet(this, _TransportIntermediate_connection, "f").read(buffer);
|
|
47
47
|
this.decrypt(buffer);
|
|
48
|
-
const dataView = new DataView(buffer.buffer);
|
|
48
|
+
const dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
49
49
|
length = dataView.getUint32(0, true);
|
|
50
50
|
}
|
|
51
51
|
const buffer = new Uint8Array(length);
|
|
@@ -89,11 +89,11 @@ class FileID {
|
|
|
89
89
|
let buffer;
|
|
90
90
|
if (major < 4) {
|
|
91
91
|
minor = 0;
|
|
92
|
-
buffer = decoded.
|
|
92
|
+
buffer = decoded.subarray(0, -1);
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
95
95
|
minor = decoded[decoded.length - 2];
|
|
96
|
-
buffer = decoded.
|
|
96
|
+
buffer = decoded.subarray(0, -2);
|
|
97
97
|
}
|
|
98
98
|
const reader = new _2_tl_js_1.TLReader(buffer);
|
|
99
99
|
let fileType = reader.readInt32();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { types } from "../2_tl.js";
|
|
1
2
|
/** The rights of a chat member. */
|
|
2
3
|
export interface ChatMemberRights {
|
|
3
4
|
/** Whether messages are allowed to be sent. */
|
|
@@ -35,3 +36,5 @@ export interface ChatMemberRights {
|
|
|
35
36
|
/** Whether it is allowed to manage topics. */
|
|
36
37
|
canManageTopics?: boolean;
|
|
37
38
|
}
|
|
39
|
+
export declare function constructChatMemberRights(rights: types.ChatBannedRights): ChatMemberRights;
|
|
40
|
+
export declare function chatMemberRightsToTlObject(rights?: ChatMemberRights, untilDate?: Date): import("../tl/2_types.js").ChatBannedRights_;
|
|
@@ -1,2 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chatMemberRightsToTlObject = exports.constructChatMemberRights = void 0;
|
|
4
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
5
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
6
|
+
function constructChatMemberRights(rights) {
|
|
7
|
+
return {
|
|
8
|
+
canSendMessages: rights.send_messages ? true : false,
|
|
9
|
+
canSendAudio: rights.send_audios ? true : false,
|
|
10
|
+
canSendDocuments: rights.send_docs ? true : false,
|
|
11
|
+
canSendPhotos: rights.send_photos ? true : false,
|
|
12
|
+
canSendVideos: rights.send_messages ? true : false,
|
|
13
|
+
canSendVideoNotes: rights.send_roundvideos ? true : false,
|
|
14
|
+
canSendVoice: rights.send_voices ? true : false,
|
|
15
|
+
canSendPolls: rights.send_polls ? true : false,
|
|
16
|
+
canSendStickers: rights.send_stickers ? true : false,
|
|
17
|
+
canSendAnimations: rights.send_gifs ? true : undefined,
|
|
18
|
+
canSendGames: rights.send_games ? true : undefined,
|
|
19
|
+
canSendInlineBotResults: rights.send_inline ? true : undefined,
|
|
20
|
+
canAddWebPagePreviews: rights.embed_links ? true : undefined,
|
|
21
|
+
canChangeInfo: rights.change_info ? true : undefined,
|
|
22
|
+
canInviteUsers: rights.invite_users ? true : undefined,
|
|
23
|
+
canPinMessages: rights.pin_messages ? true : undefined,
|
|
24
|
+
canManageTopics: rights.manage_topics ? true : undefined,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.constructChatMemberRights = constructChatMemberRights;
|
|
28
|
+
function chatMemberRightsToTlObject(rights, untilDate) {
|
|
29
|
+
return new _2_tl_js_1.types.ChatBannedRights({
|
|
30
|
+
until_date: untilDate ? (0, _1_utilities_js_1.toUnixTimestamp)(untilDate) : 0,
|
|
31
|
+
send_messages: rights?.canSendMessages ? true : undefined,
|
|
32
|
+
send_audios: rights?.canSendAudio ? true : undefined,
|
|
33
|
+
send_docs: rights?.canSendDocuments ? true : undefined,
|
|
34
|
+
send_photos: rights?.canSendPhotos ? true : undefined,
|
|
35
|
+
send_videos: rights?.canSendVideos ? true : undefined,
|
|
36
|
+
send_roundvideos: rights?.canSendVideoNotes ? true : undefined,
|
|
37
|
+
send_voices: rights?.canSendVoice ? true : undefined,
|
|
38
|
+
send_polls: rights?.canSendPolls ? true : undefined,
|
|
39
|
+
send_stickers: rights?.canSendStickers ? true : undefined,
|
|
40
|
+
send_gifs: rights?.canSendAnimations ? true : undefined,
|
|
41
|
+
send_games: rights?.canSendGames ? true : undefined,
|
|
42
|
+
send_inline: rights?.canSendInlineBotResults ? true : undefined,
|
|
43
|
+
embed_links: rights?.canAddWebPagePreviews ? true : undefined,
|
|
44
|
+
change_info: rights?.canChangeInfo ? true : undefined,
|
|
45
|
+
invite_users: rights?.canInviteUsers ? true : undefined,
|
|
46
|
+
pin_messages: rights?.canPinMessages ? true : undefined,
|
|
47
|
+
manage_topics: rights?.canManageTopics ? true : undefined,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
exports.chatMemberRightsToTlObject = chatMemberRightsToTlObject;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { enums } from "../2_tl.js";
|
|
2
|
+
import { EntityGetter } from "./1__getters.js";
|
|
2
3
|
/** @unlisted */
|
|
3
4
|
export type MessageEntityType = "mention" | "hashtag" | "botCommand" | "url" | "email" | "bold" | "italic" | "code" | "pre" | "textLink" | "textMention" | "cashtag" | "phoneNumber" | "underline" | "strikethrough" | "blockquote" | "bankCard" | "spoiler" | "customEmoji";
|
|
4
5
|
/** @unlisted */
|
|
@@ -94,4 +95,4 @@ export interface MessageEntityCustomEmoji extends _MessageEntityBase {
|
|
|
94
95
|
/** A single entity of a message's text or caption. */
|
|
95
96
|
export type MessageEntity = MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji;
|
|
96
97
|
export declare function constructMessageEntity(obj: enums.MessageEntity): MessageEntity | null;
|
|
97
|
-
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").
|
|
98
|
+
export declare function messageEntityToTlObject(entity: MessageEntity, getEntity: EntityGetter): Promise<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").InputMessageEntityMentionName_ | 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_>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.messageEntityToTlObject = exports.constructMessageEntity = void 0;
|
|
4
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
4
5
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
5
6
|
function constructMessageEntity(obj) {
|
|
6
7
|
if (obj instanceof _2_tl_js_1.types.MessageEntityMention) {
|
|
@@ -65,7 +66,7 @@ function constructMessageEntity(obj) {
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
exports.constructMessageEntity = constructMessageEntity;
|
|
68
|
-
function messageEntityToTlObject(entity) {
|
|
69
|
+
async function messageEntityToTlObject(entity, getEntity) {
|
|
69
70
|
const { offset, length } = entity;
|
|
70
71
|
switch (entity.type) {
|
|
71
72
|
case "mention":
|
|
@@ -86,10 +87,32 @@ function messageEntityToTlObject(entity) {
|
|
|
86
87
|
return new _2_tl_js_1.types.MessageEntityCode({ offset, length });
|
|
87
88
|
case "pre":
|
|
88
89
|
return new _2_tl_js_1.types.MessageEntityPre({ offset, length, language: entity.language });
|
|
89
|
-
case "textLink":
|
|
90
|
+
case "textLink": {
|
|
91
|
+
try {
|
|
92
|
+
const url = new URL(entity.url);
|
|
93
|
+
if (url.protocol == "tg:" && url.hostname == "user" && (url.pathname == "/" || url.pathname == "")) {
|
|
94
|
+
const id = Number(url.searchParams.get("id"));
|
|
95
|
+
if (!isNaN(id)) {
|
|
96
|
+
const entity_ = await getEntity(new _2_tl_js_1.types.PeerUser({ user_id: BigInt(id) }));
|
|
97
|
+
if (!entity_) {
|
|
98
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
99
|
+
}
|
|
100
|
+
return new _2_tl_js_1.types.InputMessageEntityMentionName({ offset, length, user_id: new _2_tl_js_1.types.InputUser({ user_id: entity_.id, access_hash: entity_.access_hash ?? 0n }) });
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
catch {
|
|
105
|
+
//
|
|
106
|
+
}
|
|
90
107
|
return new _2_tl_js_1.types.MessageEntityTextUrl({ offset, length, url: entity.url });
|
|
91
|
-
|
|
92
|
-
|
|
108
|
+
}
|
|
109
|
+
case "textMention": {
|
|
110
|
+
const entity_ = await getEntity(new _2_tl_js_1.types.PeerUser({ user_id: BigInt(entity.userId) }));
|
|
111
|
+
if (!entity_) {
|
|
112
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
113
|
+
}
|
|
114
|
+
return new _2_tl_js_1.types.InputMessageEntityMentionName({ offset, length, user_id: new _2_tl_js_1.types.InputUser({ user_id: entity_.id, access_hash: entity_.access_hash ?? 0n }) });
|
|
115
|
+
}
|
|
93
116
|
case "cashtag":
|
|
94
117
|
return new _2_tl_js_1.types.MessageEntityCashtag({ offset, length });
|
|
95
118
|
case "phoneNumber":
|
package/script/types/1_chat_p.js
CHANGED
|
@@ -39,7 +39,7 @@ function constructChatP(chat) {
|
|
|
39
39
|
}
|
|
40
40
|
return (0, _1_utilities_js_1.cleanObject)(chat_);
|
|
41
41
|
}
|
|
42
|
-
else if (chat instanceof _2_tl_js_1.types.Channel || _2_tl_js_1.types.ChannelForbidden) {
|
|
42
|
+
else if (chat instanceof _2_tl_js_1.types.Channel || chat instanceof _2_tl_js_1.types.ChannelForbidden) {
|
|
43
43
|
let chat_;
|
|
44
44
|
const id = _1_utilities_js_1.ZERO_CHANNEL_ID + -Number(chat.id);
|
|
45
45
|
if (chat instanceof _2_tl_js_1.types.ChannelForbidden) {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { enums } from "../2_tl.js";
|
|
2
|
+
import { ChatAdministratorRights } from "./0_chat_administrator_rights.js";
|
|
3
|
+
import { ChatMemberRights } from "./0_chat_member_rights.js";
|
|
4
|
+
import { EntityGetter } from "./1__getters.js";
|
|
5
|
+
import { User } from "./1_user.js";
|
|
6
|
+
/** @unlisted */
|
|
7
|
+
export type ChatMemberStatus = "creator" | "administrator" | "member" | "restricted" | "left" | "banned";
|
|
8
|
+
/** @unlisted */
|
|
9
|
+
export interface ChatMemberBase {
|
|
10
|
+
status: ChatMemberStatus;
|
|
11
|
+
user: User;
|
|
12
|
+
}
|
|
13
|
+
/** @unlisted */
|
|
14
|
+
export interface ChatMemberCreator extends ChatMemberBase {
|
|
15
|
+
status: "creator";
|
|
16
|
+
isAnonymous: boolean;
|
|
17
|
+
title?: string;
|
|
18
|
+
}
|
|
19
|
+
/** @unlisted */
|
|
20
|
+
export interface ChatMemberAdministrator extends ChatMemberBase {
|
|
21
|
+
status: "administrator";
|
|
22
|
+
rights: ChatAdministratorRights;
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
/** @unlisted */
|
|
26
|
+
export interface ChatMemberMember extends ChatMemberBase {
|
|
27
|
+
status: "member";
|
|
28
|
+
}
|
|
29
|
+
/** @unlisted */
|
|
30
|
+
export interface ChatMemberRestricted extends ChatMemberBase {
|
|
31
|
+
status: "restricted";
|
|
32
|
+
isMember: boolean;
|
|
33
|
+
rights: ChatMemberRights;
|
|
34
|
+
untilDate?: Date;
|
|
35
|
+
}
|
|
36
|
+
/** @unlisted */
|
|
37
|
+
export interface ChatMemberLeft extends ChatMemberBase {
|
|
38
|
+
status: "left";
|
|
39
|
+
}
|
|
40
|
+
/** @unlisted */
|
|
41
|
+
export interface ChatMemberBanned extends ChatMemberBase {
|
|
42
|
+
status: "banned";
|
|
43
|
+
untilDate?: Date;
|
|
44
|
+
}
|
|
45
|
+
export type ChatMember = ChatMemberCreator | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned;
|
|
46
|
+
export declare function constructChatMember(participant: enums.ChannelParticipant | enums.ChatParticipant, getEntity: EntityGetter): Promise<ChatMember>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.constructChatMember = void 0;
|
|
4
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
5
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
6
|
+
const _0_chat_administrator_rights_js_1 = require("./0_chat_administrator_rights.js");
|
|
7
|
+
const _0_chat_member_rights_js_1 = require("./0_chat_member_rights.js");
|
|
8
|
+
const _1_user_js_1 = require("./1_user.js");
|
|
9
|
+
async function constructChatMember(participant, getEntity) {
|
|
10
|
+
const user_ = "user_id" in participant ? await getEntity(new _2_tl_js_1.types.PeerUser(participant)) : "peer" in participant ? participant.peer instanceof _2_tl_js_1.types.PeerUser ? await getEntity(participant.peer) : (0, _1_utilities_js_1.UNREACHABLE)() : (0, _1_utilities_js_1.UNREACHABLE)(); // TODO: support other peer types
|
|
11
|
+
if (user_ == null)
|
|
12
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
13
|
+
const user = (0, _1_user_js_1.constructUser)(user_);
|
|
14
|
+
if (participant instanceof _2_tl_js_1.types.ChannelParticipant || participant instanceof _2_tl_js_1.types.ChatParticipant) {
|
|
15
|
+
return {
|
|
16
|
+
status: "member",
|
|
17
|
+
user,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
else if (participant instanceof _2_tl_js_1.types.ChannelParticipantCreator) {
|
|
21
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
22
|
+
status: "creator",
|
|
23
|
+
user,
|
|
24
|
+
isAnonymous: participant.admin_rights.anonymous ? true : false,
|
|
25
|
+
title: participant.rank,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
else if (participant instanceof _2_tl_js_1.types.ChannelParticipantAdmin) {
|
|
29
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
30
|
+
status: "administrator",
|
|
31
|
+
user,
|
|
32
|
+
rights: (0, _0_chat_administrator_rights_js_1.constructChatAdministratorRights)(participant.admin_rights),
|
|
33
|
+
title: participant.rank,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
else if (participant instanceof _2_tl_js_1.types.ChannelParticipantBanned) {
|
|
37
|
+
const untilDate = participant.banned_rights.until_date ? (0, _1_utilities_js_1.fromUnixTimestamp)(participant.banned_rights.until_date) : undefined;
|
|
38
|
+
if (!participant.banned_rights.view_messages) {
|
|
39
|
+
participant.peer;
|
|
40
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
41
|
+
status: "banned",
|
|
42
|
+
user,
|
|
43
|
+
untilDate,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const isMember = participant.left ? true : false;
|
|
47
|
+
const rights = (0, _0_chat_member_rights_js_1.constructChatMemberRights)(participant.banned_rights);
|
|
48
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
49
|
+
status: "restricted",
|
|
50
|
+
user,
|
|
51
|
+
isMember,
|
|
52
|
+
rights,
|
|
53
|
+
untilDate,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
else if (participant instanceof _2_tl_js_1.types.ChannelParticipantSelf) {
|
|
57
|
+
(0, _1_utilities_js_1.UNREACHABLE)(); // TODO: implement
|
|
58
|
+
}
|
|
59
|
+
else if (participant instanceof _2_tl_js_1.types.ChannelParticipantLeft) {
|
|
60
|
+
return { status: "left", user };
|
|
61
|
+
}
|
|
62
|
+
else if (participant instanceof _2_tl_js_1.types.ChatParticipantAdmin) {
|
|
63
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
64
|
+
status: "administrator",
|
|
65
|
+
user,
|
|
66
|
+
rights: {
|
|
67
|
+
isAnonymous: false,
|
|
68
|
+
canManageChat: true,
|
|
69
|
+
canDeleteMessages: true,
|
|
70
|
+
canManageVideoChats: false,
|
|
71
|
+
canRestrictMembers: true,
|
|
72
|
+
canPromoteMembers: false,
|
|
73
|
+
canChangeInfo: true,
|
|
74
|
+
canInviteUsers: true,
|
|
75
|
+
canPostMessages: false,
|
|
76
|
+
canEditMessages: false,
|
|
77
|
+
canPinMessages: true,
|
|
78
|
+
canManageTopics: false,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
else if (participant instanceof _2_tl_js_1.types.ChatParticipantCreator) {
|
|
83
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
84
|
+
status: "creator",
|
|
85
|
+
user,
|
|
86
|
+
isAnonymous: false,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.constructChatMember = constructChatMember;
|
|
@@ -189,5 +189,5 @@ export type InlineQueryResult = InlineQueryResultCachedAudio | InlineQueryResult
|
|
|
189
189
|
export declare function inlineQueryResultToTlObject(result_: InlineQueryResult, parseText: (text: string, params?: {
|
|
190
190
|
parseMode?: ParseMode;
|
|
191
191
|
entities?: MessageEntity[];
|
|
192
|
-
}) => readonly [string, any[] | undefined]
|
|
192
|
+
}) => Promise<readonly [string, any[] | undefined]>, usernameResolver: UsernameResolver): Promise<import("../tl/2_types.js").InputBotInlineResult_ | import("../tl/2_types.js").InputBotInlineResultDocument_>;
|
|
193
193
|
export {};
|
|
@@ -151,7 +151,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
151
151
|
}
|
|
152
152
|
let ret = ["", []];
|
|
153
153
|
if ("caption" in result_ && result_.caption) {
|
|
154
|
-
ret = parseText(result_.caption, { parseMode: result_.parseMode, entities: result_.captionEntities });
|
|
154
|
+
ret = await parseText(result_.caption, { parseMode: result_.parseMode, entities: result_.captionEntities });
|
|
155
155
|
}
|
|
156
156
|
const { type, id } = result_;
|
|
157
157
|
const [message, entities] = ret;
|
|
@@ -226,7 +226,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
226
226
|
if (!("messageText" in result_.inputMessageContent)) {
|
|
227
227
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
228
228
|
}
|
|
229
|
-
const [message, entities] = parseText(result_.inputMessageContent.messageText, { entities: result_.inputMessageContent.entities, parseMode: result_.inputMessageContent.parseMode });
|
|
229
|
+
const [message, entities] = await parseText(result_.inputMessageContent.messageText, { entities: result_.inputMessageContent.entities, parseMode: result_.inputMessageContent.parseMode });
|
|
230
230
|
return new _2_tl_js_1.types.InputBotInlineResult({
|
|
231
231
|
id,
|
|
232
232
|
type,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Determines the common path from a set of paths, using an optional separator,
|
|
2
|
-
* which defaults to the OS default separator.
|
|
3
|
-
*
|
|
4
|
-
* ```ts
|
|
5
|
-
* import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
6
|
-
* const p = common([
|
|
7
|
-
* "./deno/std/path/mod.ts",
|
|
8
|
-
* "./deno/std/fs/mod.ts",
|
|
9
|
-
* ]);
|
|
10
|
-
* console.log(p); // "./deno/std/"
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export declare function common(paths: string[], sep?: string): string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Determines the common path from a set of paths, using an optional separator,
|
|
2
|
-
* which defaults to the OS default separator.
|
|
3
|
-
*
|
|
4
|
-
* ```ts
|
|
5
|
-
* import { common } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
6
|
-
* const p = common([
|
|
7
|
-
* "./deno/std/path/mod.ts",
|
|
8
|
-
* "./deno/std/fs/mod.ts",
|
|
9
|
-
* ]);
|
|
10
|
-
* console.log(p); // "./deno/std/"
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export declare function common(paths: string[], sep?: string): string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|