@mtkruto/node 0.1.113 → 0.1.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/0_deps.d.ts +3 -2
- package/esm/0_deps.js +3 -2
- package/esm/1_utilities.d.ts +1 -0
- package/esm/1_utilities.js +1 -0
- package/esm/3_types.d.ts +0 -1
- package/esm/3_types.js +0 -1
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_utilities.d.ts +6 -0
- package/esm/client/0_utilities.js +53 -0
- package/esm/client/3_types.d.ts +56 -2
- package/esm/client/5_client.d.ts +43 -5
- package/esm/client/5_client.js +137 -4
- package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.d.ts +2 -2
- package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.js +2 -2
- package/{script/deps/deno.land/std@0.204.0 → esm/deps/deno.land/std@0.207.0}/fmt/colors.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/fmt/colors.js +1 -1
- package/esm/deps/deno.land/std@0.207.0/path/_common/assert_path.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/assert_path.js +7 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/basename.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/basename.js +40 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/common.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/common.js +23 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/constants.d.ts +39 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/constants.js +46 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/dirname.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/dirname.js +8 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/format.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/format.js +19 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/from_file_url.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/from_file_url.js +9 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.d.ts +27 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.js +235 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/normalize.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/normalize.js +8 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/normalize_string.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/normalize_string.js +77 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/relative.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/relative.js +9 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/to_file_url.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/_common/to_file_url.js +15 -0
- package/esm/deps/deno.land/std@0.207.0/path/_interface.d.ts +26 -0
- package/esm/deps/deno.land/std@0.207.0/path/_interface.js +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/_os.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/_os.js +18 -0
- package/esm/deps/deno.land/std@0.207.0/path/basename.d.ts +8 -0
- package/esm/deps/deno.land/std@0.207.0/path/basename.js +17 -0
- package/esm/deps/deno.land/std@0.207.0/path/common.d.ts +13 -0
- package/esm/deps/deno.land/std@0.207.0/path/common.js +19 -0
- package/esm/deps/deno.land/std@0.207.0/path/dirname.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/dirname.js +12 -0
- package/esm/deps/deno.land/std@0.207.0/path/extname.d.ts +6 -0
- package/esm/deps/deno.land/std@0.207.0/path/extname.js +13 -0
- package/esm/deps/deno.land/std@0.207.0/path/format.d.ts +6 -0
- package/esm/deps/deno.land/std@0.207.0/path/format.js +12 -0
- package/esm/deps/deno.land/std@0.207.0/path/from_file_url.d.ts +17 -0
- package/esm/deps/deno.land/std@0.207.0/path/from_file_url.js +24 -0
- package/esm/deps/deno.land/std@0.207.0/path/glob_to_regexp.d.ts +61 -0
- package/esm/deps/deno.land/std@0.207.0/path/glob_to_regexp.js +65 -0
- package/esm/deps/deno.land/std@0.207.0/path/is_absolute.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/is_absolute.js +12 -0
- package/esm/deps/deno.land/std@0.207.0/path/is_glob.d.ts +2 -0
- package/esm/deps/deno.land/std@0.207.0/path/is_glob.js +28 -0
- package/esm/deps/deno.land/std@0.207.0/path/join.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/join.js +12 -0
- package/esm/deps/deno.land/std@0.207.0/path/join_globs.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/join_globs.js +11 -0
- package/esm/deps/deno.land/std@0.207.0/path/mod.d.ts +28 -0
- package/esm/deps/deno.land/std@0.207.0/path/mod.js +63 -0
- package/esm/deps/deno.land/std@0.207.0/path/normalize.d.ts +7 -0
- package/esm/deps/deno.land/std@0.207.0/path/normalize.js +14 -0
- package/esm/deps/deno.land/std@0.207.0/path/normalize_glob.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/normalize_glob.js +11 -0
- package/esm/deps/deno.land/std@0.207.0/path/parse.d.ts +6 -0
- package/esm/deps/deno.land/std@0.207.0/path/parse.js +12 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/_util.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/_util.js +8 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/basename.d.ts +8 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/basename.js +18 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/common.d.ts +13 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/common.js +19 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/dirname.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/dirname.js +36 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/extname.d.ts +6 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/extname.js +59 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/format.d.ts +6 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/format.js +11 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/from_file_url.d.ts +11 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/from_file_url.js +17 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.d.ts +57 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.js +69 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/is_absolute.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/is_absolute.js +12 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/is_glob.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/is_glob.js +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/join.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/join.js +26 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/join_globs.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/join_globs.js +26 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/mod.d.ts +40 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/mod.js +44 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/normalize.d.ts +7 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/normalize.js +25 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/normalize_glob.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/normalize_glob.js +16 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/parse.d.ts +6 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/parse.js +98 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/relative.d.ts +7 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/relative.js +94 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/resolve.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/resolve.js +48 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/separator.d.ts +2 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/separator.js +4 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/to_file_url.d.ts +11 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/to_file_url.js +22 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.js +10 -0
- package/esm/deps/deno.land/std@0.207.0/path/relative.d.ts +12 -0
- package/esm/deps/deno.land/std@0.207.0/path/relative.js +19 -0
- package/esm/deps/deno.land/std@0.207.0/path/resolve.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/resolve.js +14 -0
- package/esm/deps/deno.land/std@0.207.0/path/separator.d.ts +2 -0
- package/esm/deps/deno.land/std@0.207.0/path/separator.js +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/to_file_url.d.ts +17 -0
- package/esm/deps/deno.land/std@0.207.0/path/to_file_url.js +24 -0
- package/esm/deps/deno.land/std@0.207.0/path/to_namespaced_path.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/to_namespaced_path.js +14 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/_util.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/_util.js +15 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/basename.d.ts +8 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/basename.js +30 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/common.d.ts +13 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/common.js +19 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/dirname.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/dirname.js +98 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/extname.d.ts +6 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/extname.js +68 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/format.d.ts +6 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/format.js +11 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/from_file_url.d.ts +13 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/from_file_url.js +26 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.d.ts +57 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.js +69 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/is_absolute.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/is_absolute.js +27 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/is_glob.d.ts +1 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/is_glob.js +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/join.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/join.js +72 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/join_globs.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/join_globs.js +26 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/mod.d.ts +40 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/mod.js +44 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/normalize.d.ts +7 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/normalize.js +130 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/normalize_glob.d.ts +3 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/normalize_glob.js +16 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/parse.d.ts +6 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/parse.js +159 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/relative.d.ts +12 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/relative.js +121 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/resolve.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/resolve.js +143 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/separator.d.ts +2 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/separator.js +4 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/to_file_url.d.ts +13 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/to_file_url.js +31 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.d.ts +5 -0
- package/esm/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.js +38 -0
- package/esm/mod.d.ts +1 -1
- package/esm/mod.js +1 -1
- package/esm/types/1_chat.d.ts +2 -3
- package/esm/types/1_chat.js +4 -5
- package/esm/types/1_user.d.ts +2 -3
- package/esm/types/1_user.js +2 -3
- package/esm/utilities/0_color.d.ts +3 -0
- package/esm/utilities/0_color.js +55 -0
- package/package.json +1 -1
- package/script/0_deps.d.ts +3 -2
- package/script/0_deps.js +18 -5
- package/script/1_utilities.d.ts +1 -0
- package/script/1_utilities.js +1 -0
- package/script/3_types.d.ts +0 -1
- package/script/3_types.js +0 -1
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_utilities.d.ts +6 -0
- package/script/client/0_utilities.js +79 -1
- package/script/client/3_types.d.ts +56 -2
- package/script/client/5_client.d.ts +43 -5
- package/script/client/5_client.js +136 -3
- package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.d.ts +2 -2
- package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/base64.js +2 -2
- package/{esm/deps/deno.land/std@0.204.0 → script/deps/deno.land/std@0.207.0}/fmt/colors.d.ts +1 -1
- package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/fmt/colors.js +1 -1
- package/script/deps/deno.land/std@0.207.0/path/_common/assert_path.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/assert_path.js +11 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/basename.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/basename.js +46 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/common.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/common.js +27 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/constants.d.ts +39 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/constants.js +49 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/dirname.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/dirname.js +12 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/format.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/format.js +24 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/from_file_url.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/from_file_url.js +13 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.d.ts +27 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/glob_to_reg_exp.js +239 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/normalize.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/normalize.js +12 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/normalize_string.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/normalize_string.js +81 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/relative.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/relative.js +13 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/strip_trailing_separators.js +23 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/to_file_url.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/_common/to_file_url.js +19 -0
- package/script/deps/deno.land/std@0.207.0/path/_interface.d.ts +26 -0
- package/script/deps/deno.land/std@0.207.0/path/_interface.js +4 -0
- package/script/deps/deno.land/std@0.207.0/path/_os.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/_os.js +44 -0
- package/script/deps/deno.land/std@0.207.0/path/basename.d.ts +8 -0
- package/script/deps/deno.land/std@0.207.0/path/basename.js +21 -0
- package/script/deps/deno.land/std@0.207.0/path/common.d.ts +13 -0
- package/script/deps/deno.land/std@0.207.0/path/common.js +23 -0
- package/script/deps/deno.land/std@0.207.0/path/dirname.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/dirname.js +16 -0
- package/script/deps/deno.land/std@0.207.0/path/extname.d.ts +6 -0
- package/script/deps/deno.land/std@0.207.0/path/extname.js +17 -0
- package/script/deps/deno.land/std@0.207.0/path/format.d.ts +6 -0
- package/script/deps/deno.land/std@0.207.0/path/format.js +16 -0
- package/script/deps/deno.land/std@0.207.0/path/from_file_url.d.ts +17 -0
- package/script/deps/deno.land/std@0.207.0/path/from_file_url.js +28 -0
- package/script/deps/deno.land/std@0.207.0/path/glob_to_regexp.d.ts +61 -0
- package/script/deps/deno.land/std@0.207.0/path/glob_to_regexp.js +69 -0
- package/script/deps/deno.land/std@0.207.0/path/is_absolute.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/is_absolute.js +16 -0
- package/script/deps/deno.land/std@0.207.0/path/is_glob.d.ts +2 -0
- package/script/deps/deno.land/std@0.207.0/path/is_glob.js +32 -0
- package/script/deps/deno.land/std@0.207.0/path/join.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/join.js +16 -0
- package/script/deps/deno.land/std@0.207.0/path/join_globs.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/join_globs.js +15 -0
- package/script/deps/deno.land/std@0.207.0/path/mod.d.ts +28 -0
- package/script/deps/deno.land/std@0.207.0/path/mod.js +92 -0
- package/script/deps/deno.land/std@0.207.0/path/normalize.d.ts +7 -0
- package/script/deps/deno.land/std@0.207.0/path/normalize.js +18 -0
- package/script/deps/deno.land/std@0.207.0/path/normalize_glob.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/normalize_glob.js +15 -0
- package/script/deps/deno.land/std@0.207.0/path/parse.d.ts +6 -0
- package/script/deps/deno.land/std@0.207.0/path/parse.js +16 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/_util.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/_util.js +12 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/basename.d.ts +8 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/basename.js +22 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/common.d.ts +13 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/common.js +23 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/dirname.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/dirname.js +40 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/extname.d.ts +6 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/extname.js +63 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/format.d.ts +6 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/format.js +15 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/from_file_url.d.ts +11 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/from_file_url.js +21 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.d.ts +57 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/glob_to_regexp.js +73 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/is_absolute.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/is_absolute.js +16 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/is_glob.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/is_glob.js +7 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/join.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/join.js +30 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/join_globs.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/join_globs.js +30 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/mod.d.ts +40 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/mod.js +61 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/normalize.d.ts +7 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/normalize.js +29 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/normalize_glob.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/normalize_glob.js +20 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/parse.d.ts +6 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/parse.js +102 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/relative.d.ts +7 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/relative.js +98 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/resolve.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/resolve.js +75 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/separator.d.ts +2 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/separator.js +7 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/to_file_url.d.ts +11 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/to_file_url.js +26 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/posix/to_namespaced_path.js +14 -0
- package/script/deps/deno.land/std@0.207.0/path/relative.d.ts +12 -0
- package/script/deps/deno.land/std@0.207.0/path/relative.js +23 -0
- package/script/deps/deno.land/std@0.207.0/path/resolve.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/resolve.js +18 -0
- package/script/deps/deno.land/std@0.207.0/path/separator.d.ts +2 -0
- package/script/deps/deno.land/std@0.207.0/path/separator.js +8 -0
- package/script/deps/deno.land/std@0.207.0/path/to_file_url.d.ts +17 -0
- package/script/deps/deno.land/std@0.207.0/path/to_file_url.js +28 -0
- package/script/deps/deno.land/std@0.207.0/path/to_namespaced_path.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/to_namespaced_path.js +18 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/_util.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/_util.js +21 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/basename.d.ts +8 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/basename.js +34 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/common.d.ts +13 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/common.js +23 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/dirname.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/dirname.js +102 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/extname.d.ts +6 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/extname.js +72 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/format.d.ts +6 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/format.js +15 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/from_file_url.d.ts +13 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/from_file_url.js +30 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.d.ts +57 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/glob_to_regexp.js +73 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/is_absolute.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/is_absolute.js +31 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/is_glob.d.ts +1 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/is_glob.js +7 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/join.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/join.js +76 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/join_globs.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/join_globs.js +30 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/mod.d.ts +40 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/mod.js +61 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/normalize.d.ts +7 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/normalize.js +134 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/normalize_glob.d.ts +3 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/normalize_glob.js +20 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/parse.d.ts +6 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/parse.js +163 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/relative.d.ts +12 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/relative.js +125 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/resolve.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/resolve.js +170 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/separator.d.ts +2 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/separator.js +7 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/to_file_url.d.ts +13 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/to_file_url.js +35 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.d.ts +5 -0
- package/script/deps/deno.land/std@0.207.0/path/windows/to_namespaced_path.js +42 -0
- package/script/mod.d.ts +1 -1
- package/script/mod.js +3 -1
- package/script/types/1_chat.d.ts +2 -3
- package/script/types/1_chat.js +4 -5
- package/script/types/1_user.d.ts +2 -3
- package/script/types/1_user.js +1 -2
- package/script/utilities/0_color.d.ts +3 -0
- package/script/utilities/0_color.js +60 -0
- package/esm/types/0_color.d.ts +0 -3
- package/esm/types/0_color.js +0 -36
- package/script/types/0_color.d.ts +0 -3
- package/script/types/0_color.js +0 -41
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.204.0 → std@0.207.0}/encoding/_util.js +0 -0
package/esm/0_deps.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from "./deps/deno.land/std@0.
|
|
1
|
+
export * from "./deps/deno.land/std@0.207.0/assert/mod.js";
|
|
2
|
+
export * as path from "./deps/deno.land/std@0.207.0/path/mod.js";
|
|
3
|
+
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.207.0/encoding/base64.js";
|
|
2
4
|
export { ctr256, factorize, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.3.3/mod.js";
|
|
3
5
|
export { gunzip, gzip } from "./deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.js";
|
|
4
6
|
export { Mutex, type MutexInterface } from "async-mutex";
|
|
5
7
|
export { Parser } from "./deps/deno.land/x/html_parser@v0.1.3/src/mod.js";
|
|
6
8
|
import { debug as debug_ } from "./deps/raw.githubusercontent.com/MTKruto/debug/main/mod.js";
|
|
7
9
|
export declare const debug: typeof debug_;
|
|
8
|
-
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.204.0/encoding/base64.js";
|
package/esm/0_deps.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from "./deps/deno.land/std@0.
|
|
1
|
+
export * from "./deps/deno.land/std@0.207.0/assert/mod.js";
|
|
2
|
+
export * as path from "./deps/deno.land/std@0.207.0/path/mod.js";
|
|
3
|
+
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.207.0/encoding/base64.js";
|
|
2
4
|
export { ctr256, factorize, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.3.3/mod.js";
|
|
3
5
|
export { gunzip, gzip } from "./deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.js";
|
|
4
6
|
export { Mutex } from "async-mutex";
|
|
5
7
|
export { Parser } from "./deps/deno.land/x/html_parser@v0.1.3/src/mod.js";
|
|
6
8
|
import { debug as debug_ } from "./deps/raw.githubusercontent.com/MTKruto/debug/main/mod.js";
|
|
7
9
|
export const debug = (v) => debug_(v);
|
|
8
|
-
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.204.0/encoding/base64.js";
|
package/esm/1_utilities.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./utilities/0_base64.js";
|
|
2
2
|
export * from "./utilities/0_bigint.js";
|
|
3
3
|
export * from "./utilities/0_buffer.js";
|
|
4
|
+
export * from "./utilities/0_color.js";
|
|
4
5
|
export * from "./utilities/0_control.js";
|
|
5
6
|
export * from "./utilities/0_crypto.js";
|
|
6
7
|
export * from "./utilities/0_hash.js";
|
package/esm/1_utilities.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./utilities/0_base64.js";
|
|
2
2
|
export * from "./utilities/0_bigint.js";
|
|
3
3
|
export * from "./utilities/0_buffer.js";
|
|
4
|
+
export * from "./utilities/0_color.js";
|
|
4
5
|
export * from "./utilities/0_control.js";
|
|
5
6
|
export * from "./utilities/0_crypto.js";
|
|
6
7
|
export * from "./utilities/0_hash.js";
|
package/esm/3_types.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from "./types/0_chat_action.js";
|
|
|
4
4
|
export * from "./types/0_chat_administrator_rights.js";
|
|
5
5
|
export * from "./types/0_chat_id.js";
|
|
6
6
|
export * from "./types/0_chat_photo.js";
|
|
7
|
-
export * from "./types/0_color.js";
|
|
8
7
|
export * from "./types/0_contact.js";
|
|
9
8
|
export * from "./types/0_dice.js";
|
|
10
9
|
export * from "./types/0__file_id.js";
|
package/esm/3_types.js
CHANGED
|
@@ -4,7 +4,6 @@ export * from "./types/0_chat_action.js";
|
|
|
4
4
|
export * from "./types/0_chat_administrator_rights.js";
|
|
5
5
|
export * from "./types/0_chat_id.js";
|
|
6
6
|
export * from "./types/0_chat_photo.js";
|
|
7
|
-
export * from "./types/0_color.js";
|
|
8
7
|
export * from "./types/0_contact.js";
|
|
9
8
|
export * from "./types/0_dice.js";
|
|
10
9
|
export * from "./types/0__file_id.js";
|
package/esm/4_constants.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const PUBLIC_KEYS: PublicKeys;
|
|
|
5
5
|
export declare const VECTOR_CONSTRUCTOR = 481674261;
|
|
6
6
|
export declare const INITIAL_DC: DC;
|
|
7
7
|
export declare const LAYER = 166;
|
|
8
|
-
export declare const APP_VERSION = "MTKruto 0.1.
|
|
8
|
+
export declare const APP_VERSION = "MTKruto 0.1.114";
|
|
9
9
|
export declare const DEVICE_MODEL: string;
|
|
10
10
|
export declare const LANG_CODE: string;
|
|
11
11
|
export declare const LANG_PACK = "";
|
package/esm/4_constants.js
CHANGED
|
@@ -54,7 +54,7 @@ export const PUBLIC_KEYS = Object.freeze([
|
|
|
54
54
|
export const VECTOR_CONSTRUCTOR = 0x1CB5C415;
|
|
55
55
|
export const INITIAL_DC = "2";
|
|
56
56
|
export const LAYER = 166;
|
|
57
|
-
export const APP_VERSION = "MTKruto 0.1.
|
|
57
|
+
export const APP_VERSION = "MTKruto 0.1.114";
|
|
58
58
|
// @ts-ignore: lib
|
|
59
59
|
export const DEVICE_MODEL = typeof dntShim.Deno === "undefined" ? typeof navigator === "undefined" ? typeof process === "undefined" ? "Unknown" : process.platform + "-" + process.arch : navigator.userAgent.split(" ")[0] : dntShim.Deno.build.os + "-" + dntShim.Deno.build.arch;
|
|
60
60
|
export const LANG_CODE = typeof navigator === "undefined" ? "en" : navigator.language.split("-")[0];
|
|
@@ -3,3 +3,9 @@ export declare const resolve: () => Promise<void>;
|
|
|
3
3
|
export type With<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
4
4
|
export declare function isPtsUpdate(v: types.TypeUpdate | types.TypeUpdates): v is types.UpdateShortMessage | types.UpdateShortChatMessage | types.UpdateShortSentMessage | types.UpdateNewMessage | types.UpdateDeleteMessages | types.UpdateReadHistoryInbox | types.UpdateReadHistoryOutbox | types.UpdatePinnedChannelMessages | types.UpdatePinnedMessages | types.UpdateFolderPeers | types.UpdateChannelWebPage | types.UpdateEditMessage | types.UpdateReadMessagesContents | types.UpdateWebPage;
|
|
5
5
|
export declare function isChannelPtsUpdate(v: types.TypeUpdate | types.TypeUpdates): v is types.UpdateNewChannelMessage | types.UpdateEditChannelMessage | types.UpdateDeleteChannelMessages;
|
|
6
|
+
/**
|
|
7
|
+
* Source to a file. Can be a file ID, file path, URL, or `Uint8Array`.
|
|
8
|
+
*/
|
|
9
|
+
export type FileSource = string | URL | Uint8Array;
|
|
10
|
+
export declare function getFileContents(source: FileSource, fileName?: string): Promise<readonly [Uint8Array, string]>;
|
|
11
|
+
export declare function isHttpUrl(string: string): boolean;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as dntShim from "../_dnt.shims.js";
|
|
2
|
+
import { path } from "../0_deps.js";
|
|
3
|
+
import { UNREACHABLE } from "../1_utilities.js";
|
|
1
4
|
import { types } from "../2_tl.js";
|
|
2
5
|
export const resolve = () => Promise.resolve();
|
|
3
6
|
export function isPtsUpdate(v) {
|
|
@@ -21,3 +24,53 @@ export function isChannelPtsUpdate(v) {
|
|
|
21
24
|
v instanceof types.UpdateEditChannelMessage ||
|
|
22
25
|
v instanceof types.UpdateDeleteChannelMessages;
|
|
23
26
|
}
|
|
27
|
+
export async function getFileContents(source, fileName = "") {
|
|
28
|
+
fileName = fileName.trim() || "file";
|
|
29
|
+
let contents;
|
|
30
|
+
if (source instanceof Uint8Array) {
|
|
31
|
+
contents = source;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
let url;
|
|
35
|
+
try {
|
|
36
|
+
url = new URL(source).toString();
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
if (typeof source === "string") {
|
|
40
|
+
let path_;
|
|
41
|
+
if (path.isAbsolute(source)) {
|
|
42
|
+
path_ = source;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
// @ts-ignore: lib
|
|
46
|
+
path_ = path.join(dntShim.Deno.cwd(), source);
|
|
47
|
+
}
|
|
48
|
+
url = path.toFileUrl(path_).toString();
|
|
49
|
+
fileName = path.basename(path_);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
UNREACHABLE();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const res = await fetch(url);
|
|
56
|
+
if (fileName == "file") {
|
|
57
|
+
const contentType = res.headers.get("content-type");
|
|
58
|
+
if (contentType?.includes("image/png")) {
|
|
59
|
+
fileName += ".png";
|
|
60
|
+
}
|
|
61
|
+
else if (contentType?.includes("image/jpeg")) {
|
|
62
|
+
fileName += ".jpg";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
contents = await res.arrayBuffer().then((v) => new Uint8Array(v));
|
|
66
|
+
}
|
|
67
|
+
return [contents, fileName];
|
|
68
|
+
}
|
|
69
|
+
export function isHttpUrl(string) {
|
|
70
|
+
try {
|
|
71
|
+
return new URL(string).protocol.startsWith("http");
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
}
|
package/esm/client/3_types.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export interface AuthorizeUserParams<S = string> {
|
|
|
57
57
|
code: S | (() => MaybePromise<S>);
|
|
58
58
|
password: S | ((hint: string | null) => MaybePromise<S>);
|
|
59
59
|
}
|
|
60
|
-
export interface
|
|
60
|
+
export interface SendMessageParams {
|
|
61
61
|
/**
|
|
62
62
|
* The parse mode to use. If not provided, the default parse mode will be used.
|
|
63
63
|
*/
|
|
@@ -226,11 +226,65 @@ export interface SetMyCommandsParams {
|
|
|
226
226
|
scope?: BotCommandScope;
|
|
227
227
|
}
|
|
228
228
|
export type GetMyCommandsParams = SetMyCommandsParams;
|
|
229
|
+
export interface DeleteMessagesParams {
|
|
230
|
+
/** Whether to delete the messages only for this side. */
|
|
231
|
+
onlyForMe?: boolean;
|
|
232
|
+
}
|
|
233
|
+
export interface DeleteMessageParams {
|
|
234
|
+
/** Whether to delete the message only for this side. */
|
|
235
|
+
onlyForMe?: boolean;
|
|
236
|
+
}
|
|
237
|
+
export interface SendPhotoParams {
|
|
238
|
+
/** The file name to assign. */
|
|
239
|
+
fileName?: string;
|
|
240
|
+
/** Size of each upload chunk in bytes. */
|
|
241
|
+
chunkSize?: number;
|
|
242
|
+
/** Upload abort signal. */
|
|
243
|
+
signal?: AbortSignal | null;
|
|
244
|
+
/** The caption of the photo. */
|
|
245
|
+
caption?: string;
|
|
246
|
+
/**
|
|
247
|
+
* The caption's entities.
|
|
248
|
+
*/
|
|
249
|
+
captionEntities?: MessageEntity[];
|
|
250
|
+
/**
|
|
251
|
+
* The parse mode to use for the caption. If not provided, the default parse mode will be used.
|
|
252
|
+
*/
|
|
253
|
+
parseMode?: ParseMode;
|
|
254
|
+
/**
|
|
255
|
+
* Whether to mark the photo as a spoiler.
|
|
256
|
+
*/
|
|
257
|
+
hasSpoiler?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Whether to send the message in a silent way without making a sound on the recipients' clients.
|
|
260
|
+
*/
|
|
261
|
+
disableNotification?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Whether to protect the contents of the message from copying and forwarding.
|
|
264
|
+
*/
|
|
265
|
+
protectContent?: boolean;
|
|
266
|
+
/**
|
|
267
|
+
* The identifier of a message to reply to.
|
|
268
|
+
*/
|
|
269
|
+
replyToMessageId?: number;
|
|
270
|
+
/**
|
|
271
|
+
* The identifier of a thread to send the message to.
|
|
272
|
+
*/
|
|
273
|
+
messageThreadId?: number;
|
|
274
|
+
/**
|
|
275
|
+
* The identifier of the chat to send the message on behalf of. User-only.
|
|
276
|
+
*/
|
|
277
|
+
sendAs?: ChatID;
|
|
278
|
+
/**
|
|
279
|
+
* The reply markup of the message. Bot-only.
|
|
280
|
+
*/
|
|
281
|
+
replyMarkup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
282
|
+
}
|
|
229
283
|
export type ConnectionState = "notConnected" | "updating" | "ready";
|
|
230
284
|
export type AuthorizationState = {
|
|
231
285
|
authorized: boolean;
|
|
232
286
|
};
|
|
233
|
-
export interface ReplyParams
|
|
287
|
+
export interface ReplyParams {
|
|
234
288
|
/** Whether to quote the message that is to be replied. Enabled by default for non-private chats. */
|
|
235
289
|
quote?: boolean;
|
|
236
290
|
}
|
package/esm/client/5_client.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { Storage } from "../3_storage.js";
|
|
|
4
4
|
import { DC } from "../3_transport.js";
|
|
5
5
|
import { BotCommand, CallbackQuery, ChatAction, ChatID, InlineQuery, InlineQueryResult, Message, ParseMode, User } from "../3_types.js";
|
|
6
6
|
import { Migrate } from "../4_errors.js";
|
|
7
|
-
import { With } from "./0_utilities.js";
|
|
7
|
+
import { FileSource, With } from "./0_utilities.js";
|
|
8
8
|
import { ClientAbstract } from "./1_client_abstract.js";
|
|
9
|
-
import { AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, ClientParams, DownloadParams, EditMessageParams, FilterableUpdates, FilterUpdate, ForwardMessagesParams, GetMyCommandsParams, InvokeErrorHandler, ReplyParams,
|
|
9
|
+
import { AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, ClientParams, DeleteMessageParams, DeleteMessagesParams, DownloadParams, EditMessageParams, FilterableUpdates, FilterUpdate, ForwardMessagesParams, GetMyCommandsParams, InvokeErrorHandler, ReplyParams, SendMessageParams, SendPhotoParams, SendPollParams, SetMyCommandsParams, Update, UploadParams } from "./3_types.js";
|
|
10
10
|
import { Composer, Middleware } from "./4_composer.js";
|
|
11
11
|
declare const getEntity: unique symbol;
|
|
12
12
|
declare const getStickerSetName: unique symbol;
|
|
@@ -24,9 +24,15 @@ export interface Context extends Update {
|
|
|
24
24
|
/** Resolves to `effectiveMessage?.senderChat`. */
|
|
25
25
|
senderChat: this["msg"] extends never ? never : this["msg"]["senderChat"];
|
|
26
26
|
/** Reply the received message with a text message. */
|
|
27
|
-
reply: (text: string, params?: ReplyParams) => Promise<With<Message, "text">>;
|
|
27
|
+
reply: (text: string, params?: Omit<SendMessageParams, "replyToMessageId"> & ReplyParams) => Promise<With<Message, "text">>;
|
|
28
28
|
/** Reply the received message with a poll. */
|
|
29
|
-
replyPoll: (question: string, options: [string, string, ...string[]], params?: SendPollParams) => Promise<With<Message, "poll">>;
|
|
29
|
+
replyPoll: (question: string, options: [string, string, ...string[]], params?: Omit<SendPollParams, "replyToMessageId"> & ReplyParams) => Promise<With<Message, "poll">>;
|
|
30
|
+
/** Reply the received message with a photo. */
|
|
31
|
+
replyPhoto: (photo: FileSource, params?: Omit<SendPhotoParams, "replyToMessageId"> & ReplyParams) => Promise<With<Message, "photo">>;
|
|
32
|
+
/** Delete the received message. */
|
|
33
|
+
delete: () => Promise<void>;
|
|
34
|
+
/** Forward the received message. */
|
|
35
|
+
forward: (to: ChatID, params?: ForwardMessagesParams) => Promise<this["msg"]>;
|
|
30
36
|
/** Send a chat action to the chat which the message was received from. */
|
|
31
37
|
sendChatAction: (action: ChatAction, params?: {
|
|
32
38
|
messageThreadId?: number;
|
|
@@ -41,6 +47,14 @@ export interface Context extends Update {
|
|
|
41
47
|
getMessage: (messageId: number) => Promise<Omit<Message, "replyToMessage"> | null>;
|
|
42
48
|
/** Retrieve multiple messages of the chat which the message was received from. */
|
|
43
49
|
getMessages: (messageIds: number[]) => Promise<Omit<Message, "replyToMessage">[]>;
|
|
50
|
+
/** Forward a message of the chat which the message was received from. */
|
|
51
|
+
forwardMessage: (to: ChatID, messageId: number, params?: ForwardMessagesParams) => Promise<Message>;
|
|
52
|
+
/** Forward multiple messages of the chat which the message was received from. */
|
|
53
|
+
forwardMessages: (to: ChatID, messageIds: number[], params?: ForwardMessagesParams) => Promise<Message[]>;
|
|
54
|
+
/** Delete a message in the chat which the message was received from. */
|
|
55
|
+
deleteMessage: (messageId: number, params?: DeleteMessagesParams) => Promise<void>;
|
|
56
|
+
/** Delete multiple messages in the chat which the message was received from. */
|
|
57
|
+
deleteMessages: (messageIds: number[], params?: DeleteMessagesParams) => Promise<void>;
|
|
44
58
|
toJSON: () => Update;
|
|
45
59
|
}
|
|
46
60
|
export declare function skipInvoke<C extends Context>(): InvokeErrorHandler<Client<C>>;
|
|
@@ -136,7 +150,7 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
136
150
|
* @param text The message's text.
|
|
137
151
|
* @returns The sent text message.
|
|
138
152
|
*/
|
|
139
|
-
sendMessage(chatId: ChatID, text: string, params?:
|
|
153
|
+
sendMessage(chatId: ChatID, text: string, params?: SendMessageParams): Promise<With<Message, "text">>;
|
|
140
154
|
/**
|
|
141
155
|
* Edit a message's text.
|
|
142
156
|
*
|
|
@@ -322,5 +336,29 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
322
336
|
getMyShortDescription(params?: {
|
|
323
337
|
languageCode?: string;
|
|
324
338
|
}): Promise<string>;
|
|
339
|
+
/**
|
|
340
|
+
* Delete multiple messages.
|
|
341
|
+
*
|
|
342
|
+
* @method
|
|
343
|
+
* @param chatId The chat that contains the messages.
|
|
344
|
+
* @param messageIds The identifier of the messages to delete.
|
|
345
|
+
*/
|
|
346
|
+
deleteMessages(chatId: ChatID, messageIds: number[], params?: DeleteMessagesParams): Promise<void>;
|
|
347
|
+
/**
|
|
348
|
+
* Delete a single message.
|
|
349
|
+
*
|
|
350
|
+
* @method
|
|
351
|
+
* @param chatId The chat that contains the message.
|
|
352
|
+
* @param messageId The identifier of the message to delete.
|
|
353
|
+
*/
|
|
354
|
+
deleteMessage(chatId: ChatID, messageId: number, params?: DeleteMessageParams): Promise<void>;
|
|
355
|
+
/**
|
|
356
|
+
* Send a photo.
|
|
357
|
+
*
|
|
358
|
+
* @method
|
|
359
|
+
* @param chatId The chat to send the photo to.
|
|
360
|
+
* @param photo The photo to send.
|
|
361
|
+
*/
|
|
362
|
+
sendPhoto(chatId: ChatID, photo: FileSource, params?: SendPhotoParams): Promise<With<Message, "photo">>;
|
|
325
363
|
}
|
|
326
364
|
export {};
|
package/esm/client/5_client.js
CHANGED
|
@@ -20,7 +20,7 @@ import { AuthKeyUnregistered, FloodWait, Migrate, PasswordHashInvalid, PhoneNumb
|
|
|
20
20
|
import { parseHtml } from "./0_html.js";
|
|
21
21
|
import { decryptMessage, encryptMessage, getMessageId } from "./0_message.js";
|
|
22
22
|
import { checkPassword } from "./0_password.js";
|
|
23
|
-
import { isChannelPtsUpdate, isPtsUpdate, resolve } from "./0_utilities.js";
|
|
23
|
+
import { getFileContents, isChannelPtsUpdate, isHttpUrl, isPtsUpdate, resolve } from "./0_utilities.js";
|
|
24
24
|
import { ClientAbstract } from "./1_client_abstract.js";
|
|
25
25
|
import { ClientPlain } from "./2_client_plain.js";
|
|
26
26
|
import { Composer, concat, flatten, skip } from "./4_composer.js";
|
|
@@ -132,6 +132,11 @@ export class Client extends ClientAbstract {
|
|
|
132
132
|
const chat = msg?.chat;
|
|
133
133
|
const from = update.callbackQuery?.from ?? update.inlineQuery?.from ?? update.message?.from ?? update.editedMessage?.from;
|
|
134
134
|
const senderChat = msg?.senderChat;
|
|
135
|
+
const getReplyToMessageId = (quote, effectiveMessage) => {
|
|
136
|
+
const shouldQuote = quote === undefined ? effectiveMessage.chat.type != "private" : quote;
|
|
137
|
+
const replyToMessageId = shouldQuote ? effectiveMessage.id : undefined;
|
|
138
|
+
return replyToMessageId;
|
|
139
|
+
};
|
|
135
140
|
return {
|
|
136
141
|
...update,
|
|
137
142
|
client: this,
|
|
@@ -141,12 +146,26 @@ export class Client extends ClientAbstract {
|
|
|
141
146
|
senderChat,
|
|
142
147
|
reply: (text, params) => {
|
|
143
148
|
const effectiveMessage = mustGetMsg();
|
|
144
|
-
const
|
|
145
|
-
return this.sendMessage(effectiveMessage.chat.id, text, { ...params, replyToMessageId
|
|
149
|
+
const replyToMessageId = getReplyToMessageId(params?.quote, effectiveMessage);
|
|
150
|
+
return this.sendMessage(effectiveMessage.chat.id, text, { ...params, replyToMessageId });
|
|
146
151
|
},
|
|
147
152
|
replyPoll: (question, options, params) => {
|
|
148
153
|
const effectiveMessage = mustGetMsg();
|
|
149
|
-
|
|
154
|
+
const replyToMessageId = getReplyToMessageId(params?.quote, effectiveMessage);
|
|
155
|
+
return this.sendPoll(effectiveMessage.chat.id, question, options, { ...params, replyToMessageId });
|
|
156
|
+
},
|
|
157
|
+
replyPhoto: (photo, params) => {
|
|
158
|
+
const effectiveMessage = mustGetMsg();
|
|
159
|
+
const replyToMessageId = getReplyToMessageId(params?.quote, effectiveMessage);
|
|
160
|
+
return this.sendPhoto(effectiveMessage.chat.id, photo, { ...params, replyToMessageId });
|
|
161
|
+
},
|
|
162
|
+
delete: () => {
|
|
163
|
+
const effectiveMessage = mustGetMsg();
|
|
164
|
+
return this.deleteMessage(effectiveMessage.chat.id, effectiveMessage.id);
|
|
165
|
+
},
|
|
166
|
+
forward: (to, params) => {
|
|
167
|
+
const effectiveMessage = mustGetMsg();
|
|
168
|
+
return this.forwardMessage(effectiveMessage.chat.id, to, effectiveMessage.id, params);
|
|
150
169
|
},
|
|
151
170
|
answerCallbackQuery: (params) => {
|
|
152
171
|
const { callbackQuery } = update;
|
|
@@ -178,6 +197,22 @@ export class Client extends ClientAbstract {
|
|
|
178
197
|
const effectiveMessage = mustGetMsg();
|
|
179
198
|
return this.getMessages(effectiveMessage.chat.id, messageIds);
|
|
180
199
|
},
|
|
200
|
+
forwardMessage: (to, messageId, params) => {
|
|
201
|
+
const effectiveMessage = mustGetMsg();
|
|
202
|
+
return this.forwardMessage(effectiveMessage.chat.id, to, messageId, params);
|
|
203
|
+
},
|
|
204
|
+
forwardMessages: (to, messageIds, params) => {
|
|
205
|
+
const effectiveMessage = mustGetMsg();
|
|
206
|
+
return this.forwardMessages(effectiveMessage.chat.id, to, messageIds, params);
|
|
207
|
+
},
|
|
208
|
+
deleteMessage: (messageId, params) => {
|
|
209
|
+
const effectiveMessage = mustGetMsg();
|
|
210
|
+
return this.deleteMessage(effectiveMessage.chat.id, messageId, params);
|
|
211
|
+
},
|
|
212
|
+
deleteMessages: (messageIds, params) => {
|
|
213
|
+
const effectiveMessage = mustGetMsg();
|
|
214
|
+
return this.deleteMessages(effectiveMessage.chat.id, messageIds, params);
|
|
215
|
+
},
|
|
181
216
|
get toJSON() {
|
|
182
217
|
return () => update;
|
|
183
218
|
},
|
|
@@ -1910,6 +1945,104 @@ export class Client extends ClientAbstract {
|
|
|
1910
1945
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_assertBot).call(this, "getMyShortDescription");
|
|
1911
1946
|
return await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMyInfo).call(this, params?.languageCode).then((v) => v.about);
|
|
1912
1947
|
}
|
|
1948
|
+
/**
|
|
1949
|
+
* Delete multiple messages.
|
|
1950
|
+
*
|
|
1951
|
+
* @method
|
|
1952
|
+
* @param chatId The chat that contains the messages.
|
|
1953
|
+
* @param messageIds The identifier of the messages to delete.
|
|
1954
|
+
*/
|
|
1955
|
+
async deleteMessages(chatId, messageIds, params) {
|
|
1956
|
+
const peer = await this.getInputPeer(chatId);
|
|
1957
|
+
if (peer instanceof types.InputPeerChannel) {
|
|
1958
|
+
await this.invoke(new functions.ChannelsDeleteMessages({ channel: new types.InputChannel(peer), id: messageIds }));
|
|
1959
|
+
}
|
|
1960
|
+
else {
|
|
1961
|
+
await this.invoke(new functions.MessagesDeleteMessages({ id: messageIds, revoke: params?.onlyForMe ? undefined : true }));
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
/**
|
|
1965
|
+
* Delete a single message.
|
|
1966
|
+
*
|
|
1967
|
+
* @method
|
|
1968
|
+
* @param chatId The chat that contains the message.
|
|
1969
|
+
* @param messageId The identifier of the message to delete.
|
|
1970
|
+
*/
|
|
1971
|
+
async deleteMessage(chatId, messageId, params) {
|
|
1972
|
+
await this.deleteMessages(chatId, [messageId], params);
|
|
1973
|
+
}
|
|
1974
|
+
/**
|
|
1975
|
+
* Send a photo.
|
|
1976
|
+
*
|
|
1977
|
+
* @method
|
|
1978
|
+
* @param chatId The chat to send the photo to.
|
|
1979
|
+
* @param photo The photo to send.
|
|
1980
|
+
*/
|
|
1981
|
+
async sendPhoto(chatId, photo, params) {
|
|
1982
|
+
let media = null;
|
|
1983
|
+
const spoiler = params?.hasSpoiler ? true : undefined;
|
|
1984
|
+
if (typeof photo === "string") {
|
|
1985
|
+
let fileId = null;
|
|
1986
|
+
try {
|
|
1987
|
+
fileId = FileID.decode(photo);
|
|
1988
|
+
}
|
|
1989
|
+
catch (err) {
|
|
1990
|
+
d("fileId: %o", err);
|
|
1991
|
+
}
|
|
1992
|
+
if (fileId != null) {
|
|
1993
|
+
if (fileId.fileType != FileType.Photo) {
|
|
1994
|
+
UNREACHABLE();
|
|
1995
|
+
}
|
|
1996
|
+
if (fileId.params.mediaId == undefined || fileId.params.accessHash == undefined || fileId.params.fileReference == undefined) {
|
|
1997
|
+
UNREACHABLE();
|
|
1998
|
+
}
|
|
1999
|
+
media = new types.InputMediaPhoto({
|
|
2000
|
+
id: new types.InputPhoto({
|
|
2001
|
+
id: fileId.params.mediaId,
|
|
2002
|
+
accessHash: fileId.params.accessHash,
|
|
2003
|
+
fileReference: fileId.params.fileReference,
|
|
2004
|
+
}),
|
|
2005
|
+
spoiler,
|
|
2006
|
+
});
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
if (media == null) {
|
|
2010
|
+
if (typeof photo === "string" && isHttpUrl(photo)) {
|
|
2011
|
+
media = new types.InputMediaPhotoExternal({ url: photo, spoiler });
|
|
2012
|
+
}
|
|
2013
|
+
else {
|
|
2014
|
+
const [contents, fileName] = await getFileContents(photo);
|
|
2015
|
+
const file = await this.upload(contents, { fileName, chunkSize: params?.chunkSize, signal: params?.signal });
|
|
2016
|
+
media = new types.InputMediaUploadedPhoto({ file, spoiler });
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
const peer = await this.getInputPeer(chatId);
|
|
2020
|
+
const randomId = getRandomId();
|
|
2021
|
+
const silent = params?.disableNotification ? true : undefined;
|
|
2022
|
+
const noforwards = params?.protectContent ? true : undefined;
|
|
2023
|
+
const replyToMsgId = params?.replyToMessageId;
|
|
2024
|
+
const topMsgId = params?.messageThreadId;
|
|
2025
|
+
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2026
|
+
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2027
|
+
const caption_ = params?.caption;
|
|
2028
|
+
const parseResult = caption_ !== undefined ? __classPrivateFieldGet(this, _Client_instances, "m", _Client_parseText).call(this, caption_, { parseMode: params?.parseMode, entities: params?.captionEntities }) : undefined;
|
|
2029
|
+
const caption = parseResult === undefined ? undefined : parseResult[0];
|
|
2030
|
+
const captionEntities = parseResult === undefined ? undefined : parseResult[1];
|
|
2031
|
+
const result = await this.invoke(new functions.MessagesSendMedia({
|
|
2032
|
+
peer,
|
|
2033
|
+
randomId,
|
|
2034
|
+
silent,
|
|
2035
|
+
noforwards,
|
|
2036
|
+
replyMarkup,
|
|
2037
|
+
replyTo: replyToMsgId !== undefined ? new types.InputReplyToMessage({ replyToMsgId, topMsgId }) : undefined,
|
|
2038
|
+
sendAs,
|
|
2039
|
+
media,
|
|
2040
|
+
message: caption ?? "",
|
|
2041
|
+
entities: captionEntities,
|
|
2042
|
+
}));
|
|
2043
|
+
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
2044
|
+
return __classPrivateFieldGet(Client, _a, "m", _Client_assertMsgHas).call(Client, message, "photo");
|
|
2045
|
+
}
|
|
1913
2046
|
}
|
|
1914
2047
|
_a = Client, _Client_handleUpdate =
|
|
1915
2048
|
// TODO: log errors
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated (will be removed in 0.210.0) Use
|
|
2
|
+
* @deprecated (will be removed in 0.210.0) Use {@linkcode encodeBase64} instead.
|
|
3
3
|
*
|
|
4
4
|
* CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727
|
|
5
5
|
* Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const encode: typeof encodeBase64;
|
|
9
9
|
/**
|
|
10
|
-
* @deprecated (will be removed in 0.210.0) Use
|
|
10
|
+
* @deprecated (will be removed in 0.210.0) Use {@linkcode decodeBase64} instead.
|
|
11
11
|
*
|
|
12
12
|
* Decodes a given RFC4648 base64 encoded string
|
|
13
13
|
* @param b64
|
|
@@ -93,7 +93,7 @@ const base64abc = [
|
|
|
93
93
|
"/",
|
|
94
94
|
];
|
|
95
95
|
/**
|
|
96
|
-
* @deprecated (will be removed in 0.210.0) Use
|
|
96
|
+
* @deprecated (will be removed in 0.210.0) Use {@linkcode encodeBase64} instead.
|
|
97
97
|
*
|
|
98
98
|
* CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727
|
|
99
99
|
* Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation
|
|
@@ -101,7 +101,7 @@ const base64abc = [
|
|
|
101
101
|
*/
|
|
102
102
|
export const encode = encodeBase64;
|
|
103
103
|
/**
|
|
104
|
-
* @deprecated (will be removed in 0.210.0) Use
|
|
104
|
+
* @deprecated (will be removed in 0.210.0) Use {@linkcode decodeBase64} instead.
|
|
105
105
|
*
|
|
106
106
|
* Decodes a given RFC4648 base64 encoded string
|
|
107
107
|
* @param b64
|
package/{script/deps/deno.land/std@0.204.0 → esm/deps/deno.land/std@0.207.0}/fmt/colors.d.ts
RENAMED
|
@@ -263,7 +263,7 @@ export declare function rgb24(str: string, color: number | Rgb): string;
|
|
|
263
263
|
*/
|
|
264
264
|
export declare function bgRgb24(str: string, color: number | Rgb): string;
|
|
265
265
|
/**
|
|
266
|
-
* @deprecated (will be removed in 1.0.0) Use
|
|
266
|
+
* @deprecated (will be removed in 1.0.0) Use {@linkcode stripAnsiCode} instead.
|
|
267
267
|
*
|
|
268
268
|
* Remove ANSI escape codes from the string.
|
|
269
269
|
* @param string to remove ANSI escape codes from
|
|
@@ -466,7 +466,7 @@ const ANSI_PATTERN = new RegExp([
|
|
|
466
466
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TXZcf-nq-uy=><~]))",
|
|
467
467
|
].join("|"), "g");
|
|
468
468
|
/**
|
|
469
|
-
* @deprecated (will be removed in 1.0.0) Use
|
|
469
|
+
* @deprecated (will be removed in 1.0.0) Use {@linkcode stripAnsiCode} instead.
|
|
470
470
|
*
|
|
471
471
|
* Remove ANSI escape codes from the string.
|
|
472
472
|
* @param string to remove ANSI escape codes from
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function assertPath(path: string): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// Copyright the Browserify authors. MIT License.
|
|
3
|
+
export function assertPath(path) {
|
|
4
|
+
if (typeof path !== "string") {
|
|
5
|
+
throw new TypeError(`Path must be a string. Received ${JSON.stringify(path)}`);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function stripSuffix(name: string, suffix: string): string;
|
|
2
|
+
export declare function lastPathSegment(path: string, isSep: (char: number) => boolean, start?: number): string;
|
|
3
|
+
export declare function assertArgs(path: string, suffix: string): string | undefined;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { assertPath } from "./assert_path.js";
|
|
4
|
+
export function stripSuffix(name, suffix) {
|
|
5
|
+
if (suffix.length >= name.length) {
|
|
6
|
+
return name;
|
|
7
|
+
}
|
|
8
|
+
const lenDiff = name.length - suffix.length;
|
|
9
|
+
for (let i = suffix.length - 1; i >= 0; --i) {
|
|
10
|
+
if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
|
|
11
|
+
return name;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return name.slice(0, -suffix.length);
|
|
15
|
+
}
|
|
16
|
+
export function lastPathSegment(path, isSep, start = 0) {
|
|
17
|
+
let matchedNonSeparator = false;
|
|
18
|
+
let end = path.length;
|
|
19
|
+
for (let i = path.length - 1; i >= start; --i) {
|
|
20
|
+
if (isSep(path.charCodeAt(i))) {
|
|
21
|
+
if (matchedNonSeparator) {
|
|
22
|
+
start = i + 1;
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else if (!matchedNonSeparator) {
|
|
27
|
+
matchedNonSeparator = true;
|
|
28
|
+
end = i + 1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return path.slice(start, end);
|
|
32
|
+
}
|
|
33
|
+
export function assertArgs(path, suffix) {
|
|
34
|
+
assertPath(path);
|
|
35
|
+
if (path.length === 0)
|
|
36
|
+
return path;
|
|
37
|
+
if (typeof suffix !== "string") {
|
|
38
|
+
throw new TypeError(`Suffix must be a string. Received ${JSON.stringify(suffix)}`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function _common(paths: string[], sep: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
export function _common(paths, sep) {
|
|
4
|
+
const [first = "", ...remaining] = paths;
|
|
5
|
+
if (first === "" || remaining.length === 0) {
|
|
6
|
+
return first.substring(0, first.lastIndexOf(sep) + 1);
|
|
7
|
+
}
|
|
8
|
+
const parts = first.split(sep);
|
|
9
|
+
let endOfPrefix = parts.length;
|
|
10
|
+
for (const path of remaining) {
|
|
11
|
+
const compare = path.split(sep);
|
|
12
|
+
for (let i = 0; i < endOfPrefix; i++) {
|
|
13
|
+
if (compare[i] !== parts[i]) {
|
|
14
|
+
endOfPrefix = i;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
if (endOfPrefix === 0) {
|
|
18
|
+
return "";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const prefix = parts.slice(0, endOfPrefix).join(sep);
|
|
22
|
+
return prefix.endsWith(sep) ? prefix : `${prefix}${sep}`;
|
|
23
|
+
}
|