@mtkruto/node 0.1.150 → 0.1.152
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 +9 -0
- package/esm/3_types.js +9 -0
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_params.d.ts +14 -5
- package/esm/client/0_types.d.ts +3 -2
- package/esm/client/1_update_manager.js +65 -29
- package/esm/client/2_message_manager.d.ts +41 -3
- package/esm/client/2_message_manager.js +101 -40
- package/esm/client/3_story_manager.d.ts +28 -0
- package/esm/client/3_story_manager.js +143 -0
- package/esm/client/4_client.d.ts +148 -60
- package/esm/client/4_client.js +185 -59
- package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/fmt/colors.d.ts +3 -0
- package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/fmt/colors.js +3 -0
- package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.d.ts +1 -0
- package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/mod.d.ts +0 -9
- package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/mod.js +0 -10
- package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/normalize_glob.d.ts +1 -0
- package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/posix/join_globs.d.ts +1 -0
- package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/posix/mod.d.ts +0 -9
- package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/mod.js +0 -9
- package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/posix/normalize_glob.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.214.0/path/posix → std@0.216.0/path/windows}/mod.d.ts +0 -9
- package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/mod.js +0 -9
- package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.d.ts +1 -0
- package/esm/tl/3_utilities.d.ts +7 -1
- package/esm/tl/3_utilities.js +3 -3
- package/esm/types/0_id.d.ts +2 -2
- package/esm/types/0_link_preview.d.ts +15 -0
- package/esm/types/0_link_preview.js +9 -0
- package/esm/types/0_story_reference.d.ts +5 -0
- package/esm/types/0_story_reference.js +1 -0
- package/esm/types/0_venue.d.ts +1 -1
- package/esm/types/1__getters.d.ts +2 -2
- package/esm/types/1_input_message_content.d.ts +6 -1
- package/esm/types/1_input_story_content.d.ts +15 -0
- package/esm/types/1_input_story_content.js +1 -0
- package/esm/types/1_story_interactive_area.d.ts +41 -0
- package/esm/types/1_story_interactive_area.js +98 -0
- package/esm/types/1_story_privacy.d.ts +22 -0
- package/esm/types/1_story_privacy.js +57 -0
- package/esm/types/1_story_reaction.d.ts +12 -0
- package/esm/types/1_story_reaction.js +7 -0
- package/esm/types/2_message_interactions.d.ts +1 -1
- package/esm/types/2_story_content.d.ts +18 -0
- package/esm/types/2_story_content.js +35 -0
- package/esm/types/2_story_interactions.d.ts +10 -0
- package/esm/types/2_story_interactions.js +8 -0
- package/esm/types/3_story.d.ts +24 -0
- package/esm/types/3_story.js +37 -0
- package/esm/types/4_inline_query_result.js +25 -6
- package/esm/types/4_message.d.ts +74 -2
- package/esm/types/4_message.js +15 -6
- package/esm/types/6_update.d.ts +20 -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 +9 -0
- package/script/3_types.js +9 -0
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_params.d.ts +14 -5
- package/script/client/0_types.d.ts +3 -2
- package/script/client/1_update_manager.js +65 -29
- package/script/client/2_message_manager.d.ts +41 -3
- package/script/client/2_message_manager.js +101 -40
- package/script/client/3_story_manager.d.ts +28 -0
- package/script/client/3_story_manager.js +147 -0
- package/script/client/4_client.d.ts +148 -60
- package/script/client/4_client.js +185 -59
- package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/fmt/colors.d.ts +3 -0
- package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/fmt/colors.js +3 -0
- package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.d.ts +1 -0
- package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.d.ts +1 -0
- package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/mod.d.ts +0 -9
- package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/mod.js +1 -11
- package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/normalize_glob.d.ts +1 -0
- package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/posix/join_globs.d.ts +1 -0
- package/script/deps/deno.land/{std@0.214.0/path/windows → std@0.216.0/path/posix}/mod.d.ts +0 -9
- package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/mod.js +0 -10
- package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/posix/normalize_glob.d.ts +1 -0
- package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.d.ts +1 -0
- package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/windows/mod.d.ts +0 -9
- package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/mod.js +0 -10
- package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.d.ts +1 -0
- package/script/tl/3_utilities.d.ts +7 -1
- package/script/tl/3_utilities.js +3 -3
- package/script/types/0_id.d.ts +2 -2
- package/script/types/0_link_preview.d.ts +15 -0
- package/script/types/0_link_preview.js +13 -0
- package/script/types/0_story_reference.d.ts +5 -0
- package/script/types/0_story_reference.js +2 -0
- package/script/types/0_venue.d.ts +1 -1
- package/script/types/1__getters.d.ts +2 -2
- package/script/types/1_input_message_content.d.ts +6 -1
- package/script/types/1_input_story_content.d.ts +15 -0
- package/script/types/1_input_story_content.js +2 -0
- package/script/types/1_story_interactive_area.d.ts +41 -0
- package/script/types/1_story_interactive_area.js +103 -0
- package/script/types/1_story_privacy.d.ts +22 -0
- package/script/types/1_story_privacy.js +62 -0
- package/script/types/1_story_reaction.d.ts +12 -0
- package/script/types/1_story_reaction.js +11 -0
- package/script/types/2_message_interactions.d.ts +1 -1
- package/script/types/2_story_content.d.ts +18 -0
- package/script/types/2_story_content.js +39 -0
- package/script/types/2_story_interactions.d.ts +10 -0
- package/script/types/2_story_interactions.js +12 -0
- package/script/types/3_story.d.ts +24 -0
- package/script/types/3_story.js +41 -0
- package/script/types/4_inline_query_result.js +25 -6
- package/script/types/4_message.d.ts +74 -2
- package/script/types/4_message.js +15 -6
- package/script/types/6_update.d.ts +20 -2
- package/esm/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +0 -8
- package/esm/deps/deno.land/std@0.214.0/path/posix/separator.js +0 -10
- package/esm/deps/deno.land/std@0.214.0/path/separator.d.ts +0 -8
- package/esm/deps/deno.land/std@0.214.0/path/separator.js +0 -11
- package/esm/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +0 -8
- package/esm/deps/deno.land/std@0.214.0/path/windows/separator.js +0 -10
- package/script/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +0 -8
- package/script/deps/deno.land/std@0.214.0/path/posix/separator.js +0 -13
- package/script/deps/deno.land/std@0.214.0/path/separator.d.ts +0 -8
- package/script/deps/deno.land/std@0.214.0/path/separator.js +0 -14
- package/script/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +0 -8
- package/script/deps/deno.land/std@0.214.0/path/windows/separator.js +0 -13
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.js +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { UNREACHABLE } from "../1_utilities.js";
|
|
2
|
+
import { as, types } from "../2_tl.js";
|
|
3
|
+
import { FileID, FileType, FileUniqueID, FileUniqueType } from "./0__file_id.js";
|
|
4
|
+
import { constructPhoto } from "./1_photo.js";
|
|
5
|
+
import { constructVideo } from "./1_video.js";
|
|
6
|
+
export function constructStoryContent(media) {
|
|
7
|
+
if (media instanceof types.MessageMediaPhoto) {
|
|
8
|
+
if (!media.photo) {
|
|
9
|
+
UNREACHABLE();
|
|
10
|
+
}
|
|
11
|
+
const photo = constructPhoto(media.photo[as](types.Photo));
|
|
12
|
+
return { photo };
|
|
13
|
+
}
|
|
14
|
+
else if (media instanceof types.MessageMediaDocument) {
|
|
15
|
+
const document = media.document;
|
|
16
|
+
if (!(document instanceof types.Document)) {
|
|
17
|
+
UNREACHABLE();
|
|
18
|
+
}
|
|
19
|
+
const video = document.attributes.find((v) => v instanceof types.DocumentAttributeVideo);
|
|
20
|
+
if (!video) {
|
|
21
|
+
UNREACHABLE();
|
|
22
|
+
}
|
|
23
|
+
const fileUniqueId = new FileUniqueID(FileUniqueType.Document, { mediaId: document.id }).encode();
|
|
24
|
+
const fileId = new FileID(null, null, FileType.Video, document.dc_id, {
|
|
25
|
+
mediaId: document.id,
|
|
26
|
+
accessHash: document.access_hash,
|
|
27
|
+
fileReference: document.file_reference,
|
|
28
|
+
}).encode();
|
|
29
|
+
const video_ = constructVideo(document, video, undefined, fileId, fileUniqueId);
|
|
30
|
+
return { video: video_ };
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
UNREACHABLE();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { types } from "../2_tl.js";
|
|
2
|
+
import { StoryReaction } from "./1_story_reaction.js";
|
|
3
|
+
/** The interactions made with a story. */
|
|
4
|
+
export interface StoryInteractions {
|
|
5
|
+
reactions?: StoryReaction[];
|
|
6
|
+
reactionCount?: number;
|
|
7
|
+
views: number;
|
|
8
|
+
forwards: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function constructStoryInteractions(views_: types.StoryViews): StoryInteractions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { constructStoryReaction } from "./1_story_reaction.js";
|
|
2
|
+
export function constructStoryInteractions(views_) {
|
|
3
|
+
const views = views_.views_count;
|
|
4
|
+
const forwards = views_.forwards_count ?? 0;
|
|
5
|
+
const reactionCount = views_.reactions_count;
|
|
6
|
+
const reactions = views_.reactions ? views_.reactions.map(constructStoryReaction) : undefined;
|
|
7
|
+
return { reactions, reactionCount, views, forwards };
|
|
8
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { types } from "../2_tl.js";
|
|
2
|
+
import { MessageEntity } from "./0_message_entity.js";
|
|
3
|
+
import { EntityGetter } from "./1__getters.js";
|
|
4
|
+
import { ChatP } from "./1_chat_p.js";
|
|
5
|
+
import { StoryInteractiveArea } from "./1_story_interactive_area.js";
|
|
6
|
+
import { StoryPrivacy } from "./1_story_privacy.js";
|
|
7
|
+
import { StoryContent } from "./2_story_content.js";
|
|
8
|
+
import { StoryInteractions } from "./2_story_interactions.js";
|
|
9
|
+
/** A story. */
|
|
10
|
+
export interface Story {
|
|
11
|
+
out: boolean;
|
|
12
|
+
id: number;
|
|
13
|
+
chat: ChatP;
|
|
14
|
+
date: Date;
|
|
15
|
+
edited: boolean;
|
|
16
|
+
content: StoryContent;
|
|
17
|
+
interactiveAreas: StoryInteractiveArea[];
|
|
18
|
+
highlighted: boolean;
|
|
19
|
+
interactions?: StoryInteractions;
|
|
20
|
+
privacy?: StoryPrivacy;
|
|
21
|
+
caption?: string;
|
|
22
|
+
captionEntities?: MessageEntity[];
|
|
23
|
+
}
|
|
24
|
+
export declare function constructStory(story: types.StoryItem, peer: types.PeerUser | types.PeerChat | types.PeerChannel, getEntity: EntityGetter): Promise<Story>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { cleanObject, fromUnixTimestamp, UNREACHABLE } from "../1_utilities.js";
|
|
2
|
+
import { constructMessageEntity } from "./0_message_entity.js";
|
|
3
|
+
import { constructChatP } from "./1_chat_p.js";
|
|
4
|
+
import { constructStoryInteractiveArea } from "./1_story_interactive_area.js";
|
|
5
|
+
import { constructStoryPrivacy } from "./1_story_privacy.js";
|
|
6
|
+
import { constructStoryContent } from "./2_story_content.js";
|
|
7
|
+
import { constructStoryInteractions } from "./2_story_interactions.js";
|
|
8
|
+
export async function constructStory(story, peer, getEntity) {
|
|
9
|
+
const id = story.id;
|
|
10
|
+
const entity = await getEntity(peer);
|
|
11
|
+
if (!entity) {
|
|
12
|
+
UNREACHABLE();
|
|
13
|
+
}
|
|
14
|
+
const chat = constructChatP(entity);
|
|
15
|
+
const date = fromUnixTimestamp(story.date);
|
|
16
|
+
const interactiveAreas = (story.media_areas ?? []).map(constructStoryInteractiveArea);
|
|
17
|
+
const highlighted = story.pinned ? true : false;
|
|
18
|
+
const content = constructStoryContent(story.media);
|
|
19
|
+
const caption = story.caption;
|
|
20
|
+
const captionEntities = story.entities?.map(constructMessageEntity).filter((v) => !!v);
|
|
21
|
+
const privacy = story.privacy ? constructStoryPrivacy(story.privacy) : undefined;
|
|
22
|
+
const interactions = story.views ? constructStoryInteractions(story.views) : undefined;
|
|
23
|
+
return cleanObject({
|
|
24
|
+
out: story.out ? true : false,
|
|
25
|
+
id,
|
|
26
|
+
chat,
|
|
27
|
+
date,
|
|
28
|
+
content,
|
|
29
|
+
edited: story.edited ? true : false,
|
|
30
|
+
interactiveAreas,
|
|
31
|
+
highlighted,
|
|
32
|
+
interactions,
|
|
33
|
+
privacy,
|
|
34
|
+
caption,
|
|
35
|
+
captionEntities,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -224,17 +224,36 @@ export async function inlineQueryResultToTlObject(result_, parseText, usernameRe
|
|
|
224
224
|
UNREACHABLE();
|
|
225
225
|
}
|
|
226
226
|
const [message, entities] = await parseText(result_.inputMessageContent.messageText, { entities: result_.inputMessageContent.entities, parseMode: result_.inputMessageContent.parseMode });
|
|
227
|
+
const noWebpage = result_.inputMessageContent?.linkPreview?.disable ? true : undefined;
|
|
228
|
+
const invertMedia = result_.inputMessageContent?.linkPreview?.aboveText ? true : undefined;
|
|
229
|
+
let sendMessage;
|
|
230
|
+
if (result_.inputMessageContent.linkPreview?.url) {
|
|
231
|
+
sendMessage = new types.InputBotInlineMessageMediaWebPage({
|
|
232
|
+
url: result_.inputMessageContent.linkPreview.url,
|
|
233
|
+
force_large_media: result_.inputMessageContent.linkPreview.largeMedia ? true : undefined,
|
|
234
|
+
force_small_media: result_.inputMessageContent.linkPreview.smallMedia ? true : undefined,
|
|
235
|
+
optional: message.length ? undefined : true,
|
|
236
|
+
message,
|
|
237
|
+
entities,
|
|
238
|
+
invert_media: invertMedia,
|
|
239
|
+
reply_markup: replyMarkup,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
sendMessage = new types.InputBotInlineMessageText({
|
|
244
|
+
message,
|
|
245
|
+
entities,
|
|
246
|
+
no_webpage: noWebpage,
|
|
247
|
+
invert_media: invertMedia,
|
|
248
|
+
reply_markup: replyMarkup,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
227
251
|
return new types.InputBotInlineResult({
|
|
228
252
|
id,
|
|
229
253
|
type,
|
|
230
254
|
title,
|
|
231
255
|
description,
|
|
232
|
-
send_message:
|
|
233
|
-
message,
|
|
234
|
-
entities,
|
|
235
|
-
no_webpage: result_.inputMessageContent.disableWebPagePreview ? true : undefined,
|
|
236
|
-
reply_markup: replyMarkup,
|
|
237
|
-
}),
|
|
256
|
+
send_message: sendMessage,
|
|
238
257
|
});
|
|
239
258
|
}
|
|
240
259
|
else if (result_.type == "venue") {
|
package/esm/types/4_message.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { MaybePromise } from "../1_utilities.js";
|
|
|
2
2
|
import { enums } from "../2_tl.js";
|
|
3
3
|
import { Contact } from "./0_contact.js";
|
|
4
4
|
import { Dice } from "./0_dice.js";
|
|
5
|
+
import { LinkPreview } from "./0_link_preview.js";
|
|
5
6
|
import { Location } from "./0_location.js";
|
|
6
7
|
import { MessageEntity } from "./0_message_entity.js";
|
|
7
8
|
import { Venue } from "./0_venue.js";
|
|
@@ -102,6 +103,17 @@ export interface MessageText extends _MessageBase {
|
|
|
102
103
|
text: string;
|
|
103
104
|
/** Entities of the text. */
|
|
104
105
|
entities: MessageEntity[];
|
|
106
|
+
/** The message's link preview. */
|
|
107
|
+
linkPreview?: LinkPreview;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A message with a link preview only.
|
|
111
|
+
* @unlisted
|
|
112
|
+
*/
|
|
113
|
+
export interface MessageLink extends _MessageBase {
|
|
114
|
+
linkPreview: LinkPreview & {
|
|
115
|
+
url: NonNullable<LinkPreview["url"]>;
|
|
116
|
+
};
|
|
105
117
|
}
|
|
106
118
|
/** @unlisted */
|
|
107
119
|
export interface MessagePhoto extends _MessageMediaBase {
|
|
@@ -405,6 +417,7 @@ export interface MessageUnsupported extends _MessageBase {
|
|
|
405
417
|
/** @unlisted */
|
|
406
418
|
export interface MessageTypes {
|
|
407
419
|
text: MessageText;
|
|
420
|
+
link: MessageLink;
|
|
408
421
|
photo: MessagePhoto;
|
|
409
422
|
document: MessageDocument;
|
|
410
423
|
video: MessageVideo;
|
|
@@ -445,11 +458,70 @@ export interface MessageTypes {
|
|
|
445
458
|
}
|
|
446
459
|
export declare function assertMessageType<T extends keyof MessageTypes>(message: Message, type: T): MessageTypes[T];
|
|
447
460
|
/** Any type of message. */
|
|
448
|
-
export type Message = MessageText | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported;
|
|
461
|
+
export type Message = MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported;
|
|
449
462
|
/** @unlisted */
|
|
450
463
|
export interface MessageGetter {
|
|
451
464
|
(chatId: number, messageId: number): MaybePromise<Message | null>;
|
|
452
465
|
}
|
|
453
466
|
type Message_MessageGetter = MessageGetter | null;
|
|
454
|
-
export declare function constructMessage(message_: enums.Message, getEntity: EntityGetter, getMessage: Message_MessageGetter, getStickerSetName: StickerSetNameGetter, getReply_?: boolean): Promise<
|
|
467
|
+
export declare function constructMessage(message_: enums.Message, getEntity: EntityGetter, getMessage: Message_MessageGetter, getStickerSetName: StickerSetNameGetter, getReply_?: boolean): Promise<MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | {
|
|
468
|
+
text: string;
|
|
469
|
+
entities: NonNullable<MessageEntity | null>[];
|
|
470
|
+
/** Whether the message is outgoing (sent by the current user). */
|
|
471
|
+
out: boolean;
|
|
472
|
+
/** The identifier of the message. */
|
|
473
|
+
id: number;
|
|
474
|
+
/** The identifier of the message's thread. */
|
|
475
|
+
threadId?: number | undefined;
|
|
476
|
+
/** The user who sent the message. */
|
|
477
|
+
from?: User | undefined;
|
|
478
|
+
/** The chat which the message was sent on behalf of. */
|
|
479
|
+
senderChat?: ChatP | undefined;
|
|
480
|
+
/** The point of time in which the message was sent. */
|
|
481
|
+
date: Date;
|
|
482
|
+
/** The chat where the message was sent to. */
|
|
483
|
+
chat: ChatP;
|
|
484
|
+
/** A link to the message. */
|
|
485
|
+
link?: string | undefined;
|
|
486
|
+
/** The original sender of the message. */
|
|
487
|
+
forwardFrom?: User | undefined;
|
|
488
|
+
/** The original chat of the message. */
|
|
489
|
+
forwardFromChat?: ChatP | undefined;
|
|
490
|
+
/** The original identifier of the message. */
|
|
491
|
+
forwardId?: number | undefined;
|
|
492
|
+
/** The original signature of the message. */
|
|
493
|
+
forwardSignature?: string | undefined;
|
|
494
|
+
/** The name of the original sender of the message. */
|
|
495
|
+
forwardSenderName?: string | undefined;
|
|
496
|
+
/** The point of time in which the original message was sent. */
|
|
497
|
+
forwardDate?: Date | undefined;
|
|
498
|
+
/** Whether the message was sent in a topic thread. */
|
|
499
|
+
isTopicMessage: boolean;
|
|
500
|
+
/** Whether the message is an automatic forward. */
|
|
501
|
+
isAutomaticForward?: boolean | undefined;
|
|
502
|
+
/** The message that is being replied to. Not always available even if a message is being replied to. */
|
|
503
|
+
replyToMessage?: Message | undefined;
|
|
504
|
+
/** The identifier of the message that is being replied to. */
|
|
505
|
+
replyToMessageId?: number | undefined;
|
|
506
|
+
/** The reactions of the message. */
|
|
507
|
+
reactions?: MessageReaction[] | undefined;
|
|
508
|
+
/** The part of the message that is being replied to. */
|
|
509
|
+
replyQuote?: ReplyQuote | undefined;
|
|
510
|
+
/** The inline bot that was used to send this message. */
|
|
511
|
+
viaBot?: User | undefined;
|
|
512
|
+
/** The point of time in which the message's last edit was made. */
|
|
513
|
+
editDate?: Date | undefined;
|
|
514
|
+
/** Whether the contents of the message is protected. */
|
|
515
|
+
hasProtectedContent?: boolean | undefined;
|
|
516
|
+
/** The identifier of the message's media group. */
|
|
517
|
+
mediaGroupId?: string | undefined;
|
|
518
|
+
/** The signature of the message. */
|
|
519
|
+
authorSignature?: string | undefined;
|
|
520
|
+
/** The number of times the message was viewed. */
|
|
521
|
+
views?: number | undefined;
|
|
522
|
+
/** The number of times the message was forwarded. */
|
|
523
|
+
forwards?: number | undefined;
|
|
524
|
+
/** The message's reply markup. */
|
|
525
|
+
replyMarkup?: ReplyMarkup | undefined;
|
|
526
|
+
}>;
|
|
455
527
|
export {};
|
package/esm/types/4_message.js
CHANGED
|
@@ -4,6 +4,7 @@ import { as, types } from "../2_tl.js";
|
|
|
4
4
|
import { FileID, FileType, FileUniqueID, FileUniqueType } from "./0__file_id.js";
|
|
5
5
|
import { constructContact } from "./0_contact.js";
|
|
6
6
|
import { constructDice } from "./0_dice.js";
|
|
7
|
+
import { constructLinkPreview } from "./0_link_preview.js";
|
|
7
8
|
import { constructLocation } from "./0_location.js";
|
|
8
9
|
import { constructMessageEntity } from "./0_message_entity.js";
|
|
9
10
|
import { constructVenue } from "./0_venue.js";
|
|
@@ -26,6 +27,7 @@ import { constructReplyMarkup } from "./3_reply_markup.js";
|
|
|
26
27
|
const d = debug("types/Message");
|
|
27
28
|
const keys = {
|
|
28
29
|
text: ["text"],
|
|
30
|
+
link: ["linkPreview"],
|
|
29
31
|
photo: ["photo"],
|
|
30
32
|
document: ["document"],
|
|
31
33
|
video: ["video"],
|
|
@@ -357,12 +359,13 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
|
|
|
357
359
|
if (message_.edit_date != undefined) {
|
|
358
360
|
message.editDate = fromUnixTimestamp(message_.edit_date);
|
|
359
361
|
}
|
|
362
|
+
const messageText = {
|
|
363
|
+
...message,
|
|
364
|
+
text: message_.message,
|
|
365
|
+
entities: message_.entities?.map(constructMessageEntity).filter((v) => !!v) ?? [],
|
|
366
|
+
};
|
|
360
367
|
if (message_.message && message_.media === undefined) {
|
|
361
|
-
return
|
|
362
|
-
...message,
|
|
363
|
-
text: message_.message,
|
|
364
|
-
entities: message_.entities?.map(constructMessageEntity).filter((v) => !!v) ?? [],
|
|
365
|
-
};
|
|
368
|
+
return messageText;
|
|
366
369
|
}
|
|
367
370
|
const messageMedia = {
|
|
368
371
|
...message,
|
|
@@ -457,7 +460,13 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
|
|
|
457
460
|
m = { ...message, location };
|
|
458
461
|
}
|
|
459
462
|
else if (message_.media instanceof types.MessageMediaWebPage) {
|
|
460
|
-
|
|
463
|
+
const linkPreview = constructLinkPreview(message_.media, message_.invert_media);
|
|
464
|
+
if (message_.message) {
|
|
465
|
+
m = { ...messageText, linkPreview };
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
m = { ...message, linkPreview: { ...linkPreview, url: linkPreview.url ? linkPreview.url : UNREACHABLE() } };
|
|
469
|
+
}
|
|
461
470
|
}
|
|
462
471
|
else if (message_.media instanceof types.MessageMediaGiveaway) {
|
|
463
472
|
const giveaway = constructGiveaway(message_.media);
|
package/esm/types/6_update.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { AuthorizationState } from "./0_authorization_state.js";
|
|
2
2
|
import { ConnectionState } from "./0_connection_state.js";
|
|
3
3
|
import { MessageReference } from "./0_message_reference.js";
|
|
4
|
+
import { StoryReference } from "./0_story_reference.js";
|
|
4
5
|
import { ChosenInlineResult } from "./2_chosen_inline_result.js";
|
|
5
6
|
import { InlineQuery } from "./2_inline_query.js";
|
|
6
7
|
import { MessageInteractions } from "./2_message_interactions.js";
|
|
7
8
|
import { MessageReactionCount } from "./2_message_reaction_count.js";
|
|
8
9
|
import { MessageReactions } from "./2_message_reactions.js";
|
|
9
10
|
import { ChatMemberUpdated } from "./3_chat_member_updated.js";
|
|
11
|
+
import { Story } from "./3_story.js";
|
|
10
12
|
import { Message } from "./4_message.js";
|
|
11
13
|
import { CallbackQuery } from "./5_callback_query.js";
|
|
12
14
|
import { Chat } from "./5_chat.js";
|
|
@@ -198,6 +200,20 @@ export interface UpdateChatMember {
|
|
|
198
200
|
export interface UpdateMyChatMember {
|
|
199
201
|
myChatMember: ChatMemberUpdated;
|
|
200
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* A story was deleted.
|
|
205
|
+
* @unlisted
|
|
206
|
+
*/
|
|
207
|
+
export interface UpdateDeletedStory {
|
|
208
|
+
deletedStory: StoryReference;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* A story was posted.
|
|
212
|
+
* @unlisted
|
|
213
|
+
*/
|
|
214
|
+
export interface UpdateNewStory {
|
|
215
|
+
story: Story;
|
|
216
|
+
}
|
|
201
217
|
/** @unlisted */
|
|
202
218
|
export interface UpdateMap {
|
|
203
219
|
message: UpdateNewMessage;
|
|
@@ -216,8 +232,10 @@ export interface UpdateMap {
|
|
|
216
232
|
messageReactions: UpdateMessageReactions;
|
|
217
233
|
chatMember: UpdateChatMember;
|
|
218
234
|
myChatMember: UpdateMyChatMember;
|
|
235
|
+
deletedStory: UpdateDeletedStory;
|
|
236
|
+
story: UpdateNewStory;
|
|
219
237
|
}
|
|
220
238
|
/** @unlisted */
|
|
221
|
-
export type UpdateIntersection<T> = T & Partial<UpdateConnectionState & UpdateAuthorizationState & UpdateNewMessage & UpdateEditedMessage & UpdateDeletedMessages & UpdateCallbackQuery & UpdateInlineQuery & UpdateChosenInlineResult & UpdateNewChat & UpdateEditedChat & UpdateDeletedChat & UpdateMessageInteractions & UpdateMessageReactionCount & UpdateMessageReactions & UpdateChatMember & UpdateMyChatMember>;
|
|
239
|
+
export type UpdateIntersection<T> = T & Partial<UpdateConnectionState & UpdateAuthorizationState & UpdateNewMessage & UpdateEditedMessage & UpdateDeletedMessages & UpdateCallbackQuery & UpdateInlineQuery & UpdateChosenInlineResult & UpdateNewChat & UpdateEditedChat & UpdateDeletedChat & UpdateMessageInteractions & UpdateMessageReactionCount & UpdateMessageReactions & UpdateChatMember & UpdateMyChatMember & UpdateDeletedStory & UpdateNewStory>;
|
|
222
240
|
/** An incoming update. */
|
|
223
|
-
export type Update = UpdateConnectionState | UpdateAuthorizationState | UpdateNewMessage | UpdateEditedMessage | UpdateDeletedMessages | UpdateCallbackQuery | UpdateInlineQuery | UpdateChosenInlineResult | UpdateNewChat | UpdateEditedChat | UpdateDeletedChat | UpdateMessageInteractions | UpdateMessageReactionCount | UpdateMessageReactions | UpdateChatMember | UpdateMyChatMember;
|
|
241
|
+
export type Update = UpdateConnectionState | UpdateAuthorizationState | UpdateNewMessage | UpdateEditedMessage | UpdateDeletedMessages | UpdateCallbackQuery | UpdateInlineQuery | UpdateChosenInlineResult | UpdateNewChat | UpdateEditedChat | UpdateDeletedChat | UpdateMessageInteractions | UpdateMessageReactionCount | UpdateMessageReactions | UpdateChatMember | UpdateMyChatMember | UpdateDeletedStory | UpdateNewStory;
|
package/package.json
CHANGED
package/script/0_deps.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./deps/deno.land/std@0.
|
|
2
|
-
export * as path from "./deps/deno.land/std@0.
|
|
3
|
-
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.
|
|
4
|
-
export { contentType } from "./deps/deno.land/std@0.
|
|
1
|
+
export * from "./deps/deno.land/std@0.216.0/assert/mod.js";
|
|
2
|
+
export * as path from "./deps/deno.land/std@0.216.0/path/mod.js";
|
|
3
|
+
export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.216.0/encoding/base64.js";
|
|
4
|
+
export { contentType } from "./deps/deno.land/std@0.216.0/media_types/content_type.js";
|
|
5
5
|
export declare function extension(mimeType: string): string;
|
|
6
6
|
export { ctr256, factorize, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.3.3/mod.js";
|
|
7
7
|
export { gunzip, gzip } from "./deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.js";
|
package/script/0_deps.js
CHANGED
|
@@ -27,14 +27,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.debug = exports.Parser = exports.Mutex = exports.gzip = exports.gunzip = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.factorize = exports.ctr256 = exports.extension = exports.contentType = exports.encodeBase64 = exports.decodeBase64 = exports.path = void 0;
|
|
30
|
-
__exportStar(require("./deps/deno.land/std@0.
|
|
31
|
-
exports.path = __importStar(require("./deps/deno.land/std@0.
|
|
32
|
-
var base64_js_1 = require("./deps/deno.land/std@0.
|
|
30
|
+
__exportStar(require("./deps/deno.land/std@0.216.0/assert/mod.js"), exports);
|
|
31
|
+
exports.path = __importStar(require("./deps/deno.land/std@0.216.0/path/mod.js"));
|
|
32
|
+
var base64_js_1 = require("./deps/deno.land/std@0.216.0/encoding/base64.js");
|
|
33
33
|
Object.defineProperty(exports, "decodeBase64", { enumerable: true, get: function () { return base64_js_1.decodeBase64; } });
|
|
34
34
|
Object.defineProperty(exports, "encodeBase64", { enumerable: true, get: function () { return base64_js_1.encodeBase64; } });
|
|
35
|
-
var content_type_js_1 = require("./deps/deno.land/std@0.
|
|
35
|
+
var content_type_js_1 = require("./deps/deno.land/std@0.216.0/media_types/content_type.js");
|
|
36
36
|
Object.defineProperty(exports, "contentType", { enumerable: true, get: function () { return content_type_js_1.contentType; } });
|
|
37
|
-
const extension_js_1 = require("./deps/deno.land/std@0.
|
|
37
|
+
const extension_js_1 = require("./deps/deno.land/std@0.216.0/media_types/extension.js");
|
|
38
38
|
function extension(mimeType) {
|
|
39
39
|
if (mimeType == "application/x-tgsticker") {
|
|
40
40
|
return "tgs";
|
package/script/3_types.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./types/0_file_source.js";
|
|
|
12
12
|
export * from "./types/0_giveaway_parameters.js";
|
|
13
13
|
export * from "./types/0_id.js";
|
|
14
14
|
export * from "./types/0_keyboard_button_poll_type.js";
|
|
15
|
+
export * from "./types/0_link_preview.js";
|
|
15
16
|
export * from "./types/0_location.js";
|
|
16
17
|
export * from "./types/0_login_url.js";
|
|
17
18
|
export * from "./types/0_mask_position.js";
|
|
@@ -24,6 +25,7 @@ export * from "./types/0_poll_option.js";
|
|
|
24
25
|
export * from "./types/0_price_tag.js";
|
|
25
26
|
export * from "./types/0_reaction.js";
|
|
26
27
|
export * from "./types/0_restriction_reason.js";
|
|
28
|
+
export * from "./types/0_story_reference.js";
|
|
27
29
|
export * from "./types/0_thumbnail.js";
|
|
28
30
|
export * from "./types/0_venue.js";
|
|
29
31
|
export * from "./types/0_voice.js";
|
|
@@ -36,6 +38,7 @@ export * from "./types/1__getters.js";
|
|
|
36
38
|
export * from "./types/1_giveaway.js";
|
|
37
39
|
export * from "./types/1_inline_query_result_button.js";
|
|
38
40
|
export * from "./types/1_input_message_content.js";
|
|
41
|
+
export * from "./types/1_input_story_content.js";
|
|
39
42
|
export * from "./types/1_keyboard_button.js";
|
|
40
43
|
export * from "./types/1_message_reaction.js";
|
|
41
44
|
export * from "./types/1_network_statistics.js";
|
|
@@ -44,6 +47,9 @@ export * from "./types/1_poll.js";
|
|
|
44
47
|
export * from "./types/1_reaction_count.js";
|
|
45
48
|
export * from "./types/1_reply_quote.js";
|
|
46
49
|
export * from "./types/1_sticker.js";
|
|
50
|
+
export * from "./types/1_story_interactive_area.js";
|
|
51
|
+
export * from "./types/1_story_privacy.js";
|
|
52
|
+
export * from "./types/1_story_reaction.js";
|
|
47
53
|
export * from "./types/1_user.js";
|
|
48
54
|
export * from "./types/1_video_note.js";
|
|
49
55
|
export * from "./types/1_video.js";
|
|
@@ -56,8 +62,11 @@ export * from "./types/2_invite_link.js";
|
|
|
56
62
|
export * from "./types/2_message_interactions.js";
|
|
57
63
|
export * from "./types/2_message_reaction_count.js";
|
|
58
64
|
export * from "./types/2_message_reactions.js";
|
|
65
|
+
export * from "./types/2_story_content.js";
|
|
66
|
+
export * from "./types/2_story_interactions.js";
|
|
59
67
|
export * from "./types/3_chat_member_updated.js";
|
|
60
68
|
export * from "./types/3_reply_markup.js";
|
|
69
|
+
export * from "./types/3_story.js";
|
|
61
70
|
export * from "./types/4_inline_query_result.js";
|
|
62
71
|
export * from "./types/4_message.js";
|
|
63
72
|
export * from "./types/5_callback_query.js";
|
package/script/3_types.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./types/0_file_source.js"), exports);
|
|
|
28
28
|
__exportStar(require("./types/0_giveaway_parameters.js"), exports);
|
|
29
29
|
__exportStar(require("./types/0_id.js"), exports);
|
|
30
30
|
__exportStar(require("./types/0_keyboard_button_poll_type.js"), exports);
|
|
31
|
+
__exportStar(require("./types/0_link_preview.js"), exports);
|
|
31
32
|
__exportStar(require("./types/0_location.js"), exports);
|
|
32
33
|
__exportStar(require("./types/0_login_url.js"), exports);
|
|
33
34
|
__exportStar(require("./types/0_mask_position.js"), exports);
|
|
@@ -40,6 +41,7 @@ __exportStar(require("./types/0_poll_option.js"), exports);
|
|
|
40
41
|
__exportStar(require("./types/0_price_tag.js"), exports);
|
|
41
42
|
__exportStar(require("./types/0_reaction.js"), exports);
|
|
42
43
|
__exportStar(require("./types/0_restriction_reason.js"), exports);
|
|
44
|
+
__exportStar(require("./types/0_story_reference.js"), exports);
|
|
43
45
|
__exportStar(require("./types/0_thumbnail.js"), exports);
|
|
44
46
|
__exportStar(require("./types/0_venue.js"), exports);
|
|
45
47
|
__exportStar(require("./types/0_voice.js"), exports);
|
|
@@ -52,6 +54,7 @@ __exportStar(require("./types/1__getters.js"), exports);
|
|
|
52
54
|
__exportStar(require("./types/1_giveaway.js"), exports);
|
|
53
55
|
__exportStar(require("./types/1_inline_query_result_button.js"), exports);
|
|
54
56
|
__exportStar(require("./types/1_input_message_content.js"), exports);
|
|
57
|
+
__exportStar(require("./types/1_input_story_content.js"), exports);
|
|
55
58
|
__exportStar(require("./types/1_keyboard_button.js"), exports);
|
|
56
59
|
__exportStar(require("./types/1_message_reaction.js"), exports);
|
|
57
60
|
__exportStar(require("./types/1_network_statistics.js"), exports);
|
|
@@ -60,6 +63,9 @@ __exportStar(require("./types/1_poll.js"), exports);
|
|
|
60
63
|
__exportStar(require("./types/1_reaction_count.js"), exports);
|
|
61
64
|
__exportStar(require("./types/1_reply_quote.js"), exports);
|
|
62
65
|
__exportStar(require("./types/1_sticker.js"), exports);
|
|
66
|
+
__exportStar(require("./types/1_story_interactive_area.js"), exports);
|
|
67
|
+
__exportStar(require("./types/1_story_privacy.js"), exports);
|
|
68
|
+
__exportStar(require("./types/1_story_reaction.js"), exports);
|
|
63
69
|
__exportStar(require("./types/1_user.js"), exports);
|
|
64
70
|
__exportStar(require("./types/1_video_note.js"), exports);
|
|
65
71
|
__exportStar(require("./types/1_video.js"), exports);
|
|
@@ -72,8 +78,11 @@ __exportStar(require("./types/2_invite_link.js"), exports);
|
|
|
72
78
|
__exportStar(require("./types/2_message_interactions.js"), exports);
|
|
73
79
|
__exportStar(require("./types/2_message_reaction_count.js"), exports);
|
|
74
80
|
__exportStar(require("./types/2_message_reactions.js"), exports);
|
|
81
|
+
__exportStar(require("./types/2_story_content.js"), exports);
|
|
82
|
+
__exportStar(require("./types/2_story_interactions.js"), exports);
|
|
75
83
|
__exportStar(require("./types/3_chat_member_updated.js"), exports);
|
|
76
84
|
__exportStar(require("./types/3_reply_markup.js"), exports);
|
|
85
|
+
__exportStar(require("./types/3_story.js"), exports);
|
|
77
86
|
__exportStar(require("./types/4_inline_query_result.js"), exports);
|
|
78
87
|
__exportStar(require("./types/4_message.js"), exports);
|
|
79
88
|
__exportStar(require("./types/5_callback_query.js"), exports);
|
package/script/4_constants.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type PublicKeys = readonly [bigint, [bigint, bigint]][];
|
|
|
4
4
|
export declare const PUBLIC_KEYS: PublicKeys;
|
|
5
5
|
export declare const INITIAL_DC: DC;
|
|
6
6
|
export declare const LAYER = 173;
|
|
7
|
-
export declare const APP_VERSION = "MTKruto 0.1.
|
|
7
|
+
export declare const APP_VERSION = "MTKruto 0.1.152";
|
|
8
8
|
export declare const DEVICE_MODEL: string;
|
|
9
9
|
export declare const LANG_CODE: string;
|
|
10
10
|
export declare const LANG_PACK = "";
|
package/script/4_constants.js
CHANGED
|
@@ -79,7 +79,7 @@ exports.PUBLIC_KEYS = Object.freeze([
|
|
|
79
79
|
]);
|
|
80
80
|
exports.INITIAL_DC = "2";
|
|
81
81
|
exports.LAYER = 173;
|
|
82
|
-
exports.APP_VERSION = "MTKruto 0.1.
|
|
82
|
+
exports.APP_VERSION = "MTKruto 0.1.152";
|
|
83
83
|
// @ts-ignore: lib
|
|
84
84
|
exports.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;
|
|
85
85
|
exports.LANG_CODE = typeof navigator === "undefined" ? "en" : navigator.language.split("-")[0];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MaybePromise } from "../1_utilities.js";
|
|
2
|
-
import { BotCommandScope, Chat, ChatMemberRights, FileSource, ID, InlineQueryResultButton, Message, MessageEntity, ParseMode, ReplyMarkup, ReplyQuote } from "../3_types.js";
|
|
2
|
+
import { BotCommandScope, Chat, ChatMemberRights, FileSource, ID, InlineQueryResultButton, LinkPreview, Message, MessageEntity, ParseMode, ReplyMarkup, ReplyQuote, StoryInteractiveArea } from "../3_types.js";
|
|
3
|
+
import { StoryPrivacy } from "../types/1_story_privacy.js";
|
|
3
4
|
export interface AnswerCallbackQueryParams {
|
|
4
5
|
/** A text to be shown to the user. */
|
|
5
6
|
text?: string;
|
|
@@ -36,16 +37,16 @@ export interface SendMessageParams extends _SendCommon {
|
|
|
36
37
|
parseMode?: ParseMode;
|
|
37
38
|
/** The message's entities. */
|
|
38
39
|
entities?: MessageEntity[];
|
|
39
|
-
/**
|
|
40
|
-
|
|
40
|
+
/** The message's link preview. */
|
|
41
|
+
linkPreview?: LinkPreview;
|
|
41
42
|
}
|
|
42
43
|
export interface EditMessageParams {
|
|
43
44
|
/** The parse mode to use. If not provided, the default parse mode will be used. */
|
|
44
45
|
parseMode?: ParseMode;
|
|
45
46
|
/** The message's entities. */
|
|
46
47
|
entities?: MessageEntity[];
|
|
47
|
-
/**
|
|
48
|
-
|
|
48
|
+
/** The message's link preview. */
|
|
49
|
+
linkPreview?: LinkPreview;
|
|
49
50
|
/** The reply markup of the message. Bot-only. */
|
|
50
51
|
replyMarkup?: ReplyMarkup;
|
|
51
52
|
}
|
|
@@ -260,3 +261,11 @@ export interface SetChatMemberRightsParams {
|
|
|
260
261
|
/** A point of time in the future to automatically withdraw the restrictions. */
|
|
261
262
|
untilDate?: Date;
|
|
262
263
|
}
|
|
264
|
+
export interface CreateStoryParams extends _CaptionCommon, _UploadCommon {
|
|
265
|
+
interactiveAreas?: StoryInteractiveArea[];
|
|
266
|
+
privacy?: StoryPrivacy;
|
|
267
|
+
activeFor?: number;
|
|
268
|
+
from?: number;
|
|
269
|
+
highlight?: boolean;
|
|
270
|
+
protectContent?: boolean;
|
|
271
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { functions, types } from "../2_tl.js";
|
|
1
|
+
import { enums, functions, types } from "../2_tl.js";
|
|
2
2
|
import { Storage } from "../3_storage.js";
|
|
3
3
|
import { ConnectionState, EntityGetter, ID, ParseMode, Update } from "../3_types.js";
|
|
4
4
|
type Functions = typeof functions;
|
|
@@ -29,7 +29,8 @@ export interface C {
|
|
|
29
29
|
setConnectionState: (connectionState: ConnectionState) => void;
|
|
30
30
|
resetConnectionState: () => void;
|
|
31
31
|
getSelfId: () => Promise<number>;
|
|
32
|
-
getInputPeer: (id: ID) => Promise<
|
|
32
|
+
getInputPeer: (id: ID) => Promise<enums.InputPeer>;
|
|
33
|
+
getInputChannel: (id: ID) => Promise<types.InputChannel>;
|
|
33
34
|
getEntity: EntityGetter;
|
|
34
35
|
handleUpdate: (update: Update) => void;
|
|
35
36
|
parseMode: ParseMode;
|