@mtkruto/node 0.1.151 → 0.1.153
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 +11 -0
- package/esm/3_types.js +11 -0
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_params.d.ts +20 -5
- package/esm/client/0_types.d.ts +3 -2
- package/esm/client/1_account_manager.d.ts +11 -0
- package/esm/client/1_account_manager.js +76 -0
- package/esm/client/1_update_manager.js +65 -29
- package/esm/client/2_message_manager.d.ts +43 -3
- package/esm/client/2_message_manager.js +130 -40
- package/esm/client/3_story_manager.d.ts +28 -0
- package/esm/client/3_story_manager.js +152 -0
- package/esm/client/4_client.d.ts +194 -60
- package/esm/client/4_client.js +245 -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_message_search_filter.d.ts +2 -0
- package/esm/types/0_message_search_filter.js +36 -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_inactive_chat.d.ts +7 -0
- package/esm/types/2_inactive_chat.js +13 -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 +11 -0
- package/script/3_types.js +11 -0
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_params.d.ts +20 -5
- package/script/client/0_types.d.ts +3 -2
- package/script/client/1_account_manager.d.ts +11 -0
- package/script/client/1_account_manager.js +80 -0
- package/script/client/1_update_manager.js +65 -29
- package/script/client/2_message_manager.d.ts +43 -3
- package/script/client/2_message_manager.js +130 -40
- package/script/client/3_story_manager.d.ts +28 -0
- package/script/client/3_story_manager.js +156 -0
- package/script/client/4_client.d.ts +194 -60
- package/script/client/4_client.js +245 -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_message_search_filter.d.ts +2 -0
- package/script/types/0_message_search_filter.js +40 -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_inactive_chat.d.ts +7 -0
- package/script/types/2_inactive_chat.js +17 -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
|
@@ -1,5 +1,5 @@
|
|
|
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, MessageSearchFilter, ParseMode, ReplyMarkup, ReplyQuote, StoryInteractiveArea, StoryPrivacy } from "../3_types.js";
|
|
3
3
|
export interface AnswerCallbackQueryParams {
|
|
4
4
|
/** A text to be shown to the user. */
|
|
5
5
|
text?: string;
|
|
@@ -36,16 +36,16 @@ export interface SendMessageParams extends _SendCommon {
|
|
|
36
36
|
parseMode?: ParseMode;
|
|
37
37
|
/** The message's entities. */
|
|
38
38
|
entities?: MessageEntity[];
|
|
39
|
-
/**
|
|
40
|
-
|
|
39
|
+
/** The message's link preview. */
|
|
40
|
+
linkPreview?: LinkPreview;
|
|
41
41
|
}
|
|
42
42
|
export interface EditMessageParams {
|
|
43
43
|
/** The parse mode to use. If not provided, the default parse mode will be used. */
|
|
44
44
|
parseMode?: ParseMode;
|
|
45
45
|
/** The message's entities. */
|
|
46
46
|
entities?: MessageEntity[];
|
|
47
|
-
/**
|
|
48
|
-
|
|
47
|
+
/** The message's link preview. */
|
|
48
|
+
linkPreview?: LinkPreview;
|
|
49
49
|
/** The reply markup of the message. Bot-only. */
|
|
50
50
|
replyMarkup?: ReplyMarkup;
|
|
51
51
|
}
|
|
@@ -260,3 +260,18 @@ export interface SetChatMemberRightsParams {
|
|
|
260
260
|
/** A point of time in the future to automatically withdraw the restrictions. */
|
|
261
261
|
untilDate?: Date;
|
|
262
262
|
}
|
|
263
|
+
export interface CreateStoryParams extends _CaptionCommon, _UploadCommon {
|
|
264
|
+
interactiveAreas?: StoryInteractiveArea[];
|
|
265
|
+
privacy?: StoryPrivacy;
|
|
266
|
+
activeFor?: number;
|
|
267
|
+
from?: number;
|
|
268
|
+
highlight?: boolean;
|
|
269
|
+
protectContent?: boolean;
|
|
270
|
+
}
|
|
271
|
+
export interface SearchMessagesParams {
|
|
272
|
+
from?: ID;
|
|
273
|
+
filter?: MessageSearchFilter;
|
|
274
|
+
after?: number;
|
|
275
|
+
messageThreadId?: number;
|
|
276
|
+
limit?: number;
|
|
277
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ID } from "../3_types.js";
|
|
2
|
+
import { C } from "./0_types.js";
|
|
3
|
+
export declare class AccountManager {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(c: C);
|
|
6
|
+
showUsername(id: ID, username: string): Promise<void>;
|
|
7
|
+
hideUsername(id: ID, username: string): Promise<void>;
|
|
8
|
+
reorderUsernames(id: ID, order: string[]): Promise<boolean>;
|
|
9
|
+
hideUsernames(id: ID): Promise<boolean>;
|
|
10
|
+
getInactiveChats(): Promise<import("../3_types.js").InactiveChat[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _AccountManager_instances, _AccountManager_c, _AccountManager_toggleUsername;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AccountManager = void 0;
|
|
16
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
17
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
18
|
+
const _3_types_js_1 = require("../3_types.js");
|
|
19
|
+
class AccountManager {
|
|
20
|
+
constructor(c) {
|
|
21
|
+
_AccountManager_instances.add(this);
|
|
22
|
+
_AccountManager_c.set(this, void 0);
|
|
23
|
+
__classPrivateFieldSet(this, _AccountManager_c, c, "f");
|
|
24
|
+
}
|
|
25
|
+
async showUsername(id, username) {
|
|
26
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").storage.assertUser("showUsername");
|
|
27
|
+
await __classPrivateFieldGet(this, _AccountManager_instances, "m", _AccountManager_toggleUsername).call(this, id, username, true);
|
|
28
|
+
}
|
|
29
|
+
async hideUsername(id, username) {
|
|
30
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").storage.assertUser("hideUsername");
|
|
31
|
+
await __classPrivateFieldGet(this, _AccountManager_instances, "m", _AccountManager_toggleUsername).call(this, id, username, false);
|
|
32
|
+
}
|
|
33
|
+
async reorderUsernames(id, order) {
|
|
34
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").storage.assertUser("reorderUsernames");
|
|
35
|
+
const peer = await __classPrivateFieldGet(this, _AccountManager_c, "f").getInputPeer(id);
|
|
36
|
+
if (peer instanceof _2_tl_js_1.types.InputPeerSelf) {
|
|
37
|
+
return await __classPrivateFieldGet(this, _AccountManager_c, "f").api.account.reorderUsernames({ order });
|
|
38
|
+
}
|
|
39
|
+
else if (peer instanceof _2_tl_js_1.types.InputPeerUser) {
|
|
40
|
+
return await __classPrivateFieldGet(this, _AccountManager_c, "f").api.bots.reorderUsernames({ bot: new _2_tl_js_1.types.InputUser(peer), order });
|
|
41
|
+
}
|
|
42
|
+
else if (peer instanceof _2_tl_js_1.types.InputPeerChannel) {
|
|
43
|
+
return await __classPrivateFieldGet(this, _AccountManager_c, "f").api.channels.reorderUsernames({ channel: new _2_tl_js_1.types.InputChannel(peer), order });
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async hideUsernames(id) {
|
|
50
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").storage.assertUser("hideUsernames");
|
|
51
|
+
const peer = await __classPrivateFieldGet(this, _AccountManager_c, "f").getInputPeer(id);
|
|
52
|
+
if (peer instanceof _2_tl_js_1.types.InputPeerChannel) {
|
|
53
|
+
return await __classPrivateFieldGet(this, _AccountManager_c, "f").api.channels.deactivateAllUsernames({ channel: new _2_tl_js_1.types.InputChannel(peer) });
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
async getInactiveChats() {
|
|
60
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").storage.assertUser("getInactiveChats");
|
|
61
|
+
const { chats, dates } = await __classPrivateFieldGet(this, _AccountManager_c, "f").api.channels.getInactiveChannels();
|
|
62
|
+
return chats.map((v, i) => (0, _3_types_js_1.constructInactiveChat)(v, dates[i]));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.AccountManager = AccountManager;
|
|
66
|
+
_AccountManager_c = new WeakMap(), _AccountManager_instances = new WeakSet(), _AccountManager_toggleUsername = async function _AccountManager_toggleUsername(id, username, active) {
|
|
67
|
+
const peer = await __classPrivateFieldGet(this, _AccountManager_c, "f").getInputPeer(id);
|
|
68
|
+
if (peer instanceof _2_tl_js_1.types.InputPeerSelf) {
|
|
69
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").api.account.toggleUsername({ username, active });
|
|
70
|
+
}
|
|
71
|
+
else if (peer instanceof _2_tl_js_1.types.InputPeerUser) {
|
|
72
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").api.bots.toggleUsername({ bot: new _2_tl_js_1.types.InputUser(peer), username, active });
|
|
73
|
+
}
|
|
74
|
+
else if (peer instanceof _2_tl_js_1.types.InputPeerChannel) {
|
|
75
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").api.channels.toggleUsername({ channel: new _2_tl_js_1.types.InputChannel(peer), username, active });
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
@@ -62,47 +62,83 @@ class UpdateManager {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
async processResult(result) {
|
|
65
|
-
if (result instanceof _2_tl_js_1.types.
|
|
66
|
-
result instanceof _2_tl_js_1.types.
|
|
67
|
-
result instanceof _2_tl_js_1.types.messages.Messages ||
|
|
68
|
-
result instanceof _2_tl_js_1.types.messages.MessagesSlice ||
|
|
69
|
-
result instanceof _2_tl_js_1.types.messages.ChannelMessages ||
|
|
70
|
-
result instanceof _2_tl_js_1.types.messages.ChatFull ||
|
|
71
|
-
result instanceof _2_tl_js_1.types.contacts.Found ||
|
|
65
|
+
if (result instanceof _2_tl_js_1.types.account.AuthorizationForm ||
|
|
66
|
+
result instanceof _2_tl_js_1.types.account.AutoSaveSettings ||
|
|
72
67
|
result instanceof _2_tl_js_1.types.account.PrivacyRules ||
|
|
73
|
-
result instanceof _2_tl_js_1.types.
|
|
74
|
-
result instanceof _2_tl_js_1.types.
|
|
68
|
+
result instanceof _2_tl_js_1.types.account.WebAuthorizations ||
|
|
69
|
+
result instanceof _2_tl_js_1.types.AttachMenuBots ||
|
|
70
|
+
result instanceof _2_tl_js_1.types.AttachMenuBotsBot ||
|
|
71
|
+
result instanceof _2_tl_js_1.types.channels.AdminLogResults ||
|
|
75
72
|
result instanceof _2_tl_js_1.types.channels.ChannelParticipant ||
|
|
76
|
-
result instanceof _2_tl_js_1.types.
|
|
73
|
+
result instanceof _2_tl_js_1.types.channels.ChannelParticipants ||
|
|
74
|
+
result instanceof _2_tl_js_1.types.channels.SendAsPeers ||
|
|
75
|
+
result instanceof _2_tl_js_1.types.ChatInvite ||
|
|
76
|
+
result instanceof _2_tl_js_1.types.chatlists.ChatlistInvite ||
|
|
77
|
+
result instanceof _2_tl_js_1.types.chatlists.ChatlistInviteAlready ||
|
|
78
|
+
result instanceof _2_tl_js_1.types.chatlists.ChatlistUpdates ||
|
|
79
|
+
result instanceof _2_tl_js_1.types.chatlists.ExportedInvites ||
|
|
80
|
+
result instanceof _2_tl_js_1.types.contacts.Blocked ||
|
|
81
|
+
result instanceof _2_tl_js_1.types.contacts.BlockedSlice ||
|
|
82
|
+
result instanceof _2_tl_js_1.types.contacts.Contacts ||
|
|
83
|
+
result instanceof _2_tl_js_1.types.contacts.Found ||
|
|
84
|
+
result instanceof _2_tl_js_1.types.contacts.ImportedContacts ||
|
|
85
|
+
result instanceof _2_tl_js_1.types.contacts.ResolvedPeer ||
|
|
77
86
|
result instanceof _2_tl_js_1.types.contacts.TopPeers ||
|
|
78
|
-
result instanceof _2_tl_js_1.types.
|
|
87
|
+
result instanceof _2_tl_js_1.types.help.PromoData ||
|
|
79
88
|
result instanceof _2_tl_js_1.types.help.RecentMeUrls ||
|
|
89
|
+
result instanceof _2_tl_js_1.types.messages.BotResults ||
|
|
90
|
+
result instanceof _2_tl_js_1.types.messages.ChannelMessages ||
|
|
91
|
+
result instanceof _2_tl_js_1.types.messages.ChatAdminsWithInvites ||
|
|
92
|
+
result instanceof _2_tl_js_1.types.messages.ChatFull ||
|
|
93
|
+
result instanceof _2_tl_js_1.types.messages.ChatInviteImporters ||
|
|
94
|
+
result instanceof _2_tl_js_1.types.messages.Chats ||
|
|
95
|
+
result instanceof _2_tl_js_1.types.messages.ChatsSlice ||
|
|
96
|
+
result instanceof _2_tl_js_1.types.messages.Dialogs ||
|
|
97
|
+
result instanceof _2_tl_js_1.types.messages.DialogsSlice ||
|
|
98
|
+
result instanceof _2_tl_js_1.types.messages.DiscussionMessage ||
|
|
99
|
+
result instanceof _2_tl_js_1.types.messages.ExportedChatInvite ||
|
|
100
|
+
result instanceof _2_tl_js_1.types.messages.ExportedChatInviteReplaced ||
|
|
101
|
+
result instanceof _2_tl_js_1.types.messages.ExportedChatInvites ||
|
|
102
|
+
result instanceof _2_tl_js_1.types.messages.ForumTopics ||
|
|
103
|
+
result instanceof _2_tl_js_1.types.messages.HighScores ||
|
|
80
104
|
result instanceof _2_tl_js_1.types.messages.InactiveChats ||
|
|
81
|
-
result instanceof _2_tl_js_1.types.
|
|
105
|
+
result instanceof _2_tl_js_1.types.messages.MessageReactionsList ||
|
|
106
|
+
result instanceof _2_tl_js_1.types.messages.Messages ||
|
|
107
|
+
result instanceof _2_tl_js_1.types.messages.MessagesSlice ||
|
|
82
108
|
result instanceof _2_tl_js_1.types.messages.MessageViews ||
|
|
83
|
-
result instanceof _2_tl_js_1.types.messages.
|
|
109
|
+
result instanceof _2_tl_js_1.types.messages.PeerDialogs ||
|
|
110
|
+
result instanceof _2_tl_js_1.types.messages.PeerSettings ||
|
|
111
|
+
result instanceof _2_tl_js_1.types.messages.SearchResultsCalendar ||
|
|
112
|
+
result instanceof _2_tl_js_1.types.messages.SponsoredMessages ||
|
|
113
|
+
result instanceof _2_tl_js_1.types.messages.VotesList ||
|
|
114
|
+
result instanceof _2_tl_js_1.types.messages.WebPage ||
|
|
115
|
+
result instanceof _2_tl_js_1.types.payments.CheckedGiftCode ||
|
|
116
|
+
result instanceof _2_tl_js_1.types.payments.PaymentForm ||
|
|
117
|
+
result instanceof _2_tl_js_1.types.payments.PaymentReceipt ||
|
|
84
118
|
result instanceof _2_tl_js_1.types.phone.GroupCall ||
|
|
85
119
|
result instanceof _2_tl_js_1.types.phone.GroupParticipants ||
|
|
86
120
|
result instanceof _2_tl_js_1.types.phone.JoinAsPeers ||
|
|
87
|
-
result instanceof _2_tl_js_1.types.
|
|
88
|
-
result instanceof _2_tl_js_1.types.
|
|
89
|
-
result instanceof _2_tl_js_1.types.
|
|
90
|
-
result instanceof _2_tl_js_1.types.
|
|
91
|
-
result instanceof _2_tl_js_1.types.
|
|
92
|
-
result instanceof _2_tl_js_1.types.
|
|
93
|
-
result instanceof _2_tl_js_1.types.
|
|
94
|
-
result instanceof _2_tl_js_1.types.
|
|
95
|
-
result instanceof _2_tl_js_1.types.
|
|
96
|
-
result instanceof _2_tl_js_1.types.
|
|
97
|
-
result instanceof _2_tl_js_1.types.
|
|
98
|
-
result instanceof _2_tl_js_1.types.
|
|
99
|
-
result instanceof _2_tl_js_1.types.
|
|
100
|
-
result instanceof _2_tl_js_1.types.
|
|
101
|
-
|
|
121
|
+
result instanceof _2_tl_js_1.types.phone.PhoneCall ||
|
|
122
|
+
result instanceof _2_tl_js_1.types.photos.Photo ||
|
|
123
|
+
result instanceof _2_tl_js_1.types.photos.Photos ||
|
|
124
|
+
result instanceof _2_tl_js_1.types.photos.PhotosSlice ||
|
|
125
|
+
result instanceof _2_tl_js_1.types.premium.BoostsList ||
|
|
126
|
+
result instanceof _2_tl_js_1.types.premium.MyBoosts ||
|
|
127
|
+
result instanceof _2_tl_js_1.types.stats.MegagroupStats ||
|
|
128
|
+
result instanceof _2_tl_js_1.types.stats.PublicForwards ||
|
|
129
|
+
result instanceof _2_tl_js_1.types.stories.AllStories ||
|
|
130
|
+
result instanceof _2_tl_js_1.types.stories.PeerStories ||
|
|
131
|
+
result instanceof _2_tl_js_1.types.stories.Stories ||
|
|
132
|
+
result instanceof _2_tl_js_1.types.stories.StoryViews ||
|
|
133
|
+
result instanceof _2_tl_js_1.types.stories.StoryViewsList ||
|
|
134
|
+
result instanceof _2_tl_js_1.types.users.UserFull) {
|
|
135
|
+
if ("chats" in result) {
|
|
136
|
+
await this.processChats(result.chats);
|
|
137
|
+
}
|
|
102
138
|
if ("users" in result) {
|
|
103
139
|
await this.processUsers(result.users);
|
|
104
140
|
}
|
|
105
|
-
if ("messages" in result) {
|
|
141
|
+
if ("messages" in result && Array.isArray(result.messages)) {
|
|
106
142
|
for (const message of result.messages) {
|
|
107
143
|
if (message instanceof _2_tl_js_1.types.Message || message instanceof _2_tl_js_1.types.MessageService) {
|
|
108
144
|
await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.setMessage((0, _2_tl_js_1.peerToChatId)(message.peer_id), message.id, message);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { enums, types } from "../2_tl.js";
|
|
2
|
-
import { ChatAction, ChatMember, FileSource, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
|
|
2
|
+
import { ChatAction, ChatMember, FileSource, FileType, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
|
|
3
3
|
import { BanChatMemberParams, DeleteMessagesParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetHistoryParams, PinMessageParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams } from "./0_params.js";
|
|
4
|
+
import { SearchMessagesParams } from "./0_params.js";
|
|
4
5
|
import { AddReactionParams, SetReactionsParams } from "./0_params.js";
|
|
5
6
|
import { C as C_ } from "./0_types.js";
|
|
6
7
|
import { FileManager } from "./1_file_manager.js";
|
|
@@ -19,7 +20,38 @@ export declare class MessageManager {
|
|
|
19
20
|
entities?: MessageEntity[];
|
|
20
21
|
}): Promise<readonly [string, (import("../tl/2_types.js").MessageEntityMention_ | import("../tl/2_types.js").MessageEntityHashtag_ | import("../tl/2_types.js").MessageEntityBotCommand_ | import("../tl/2_types.js").MessageEntityUrl_ | import("../tl/2_types.js").MessageEntityEmail_ | import("../tl/2_types.js").MessageEntityBold_ | import("../tl/2_types.js").MessageEntityItalic_ | import("../tl/2_types.js").MessageEntityCode_ | import("../tl/2_types.js").MessageEntityPre_ | import("../tl/2_types.js").MessageEntityTextUrl_ | import("../tl/2_types.js").InputMessageEntityMentionName_ | import("../tl/2_types.js").MessageEntityPhone_ | import("../tl/2_types.js").MessageEntityCashtag_ | import("../tl/2_types.js").MessageEntityUnderline_ | import("../tl/2_types.js").MessageEntityStrike_ | import("../tl/2_types.js").MessageEntityBankCard_ | import("../tl/2_types.js").MessageEntitySpoiler_ | import("../tl/2_types.js").MessageEntityCustomEmoji_ | import("../tl/2_types.js").MessageEntityBlockquote_)[] | undefined]>;
|
|
21
22
|
getStickerSetName(inputStickerSet: types.InputStickerSetID, hash?: number): Promise<string>;
|
|
22
|
-
constructMessage(message_: enums.Message, r?: boolean): Promise<
|
|
23
|
+
constructMessage(message_: enums.Message, r?: boolean): Promise<import("../3_types.js").MessageLink | import("../3_types.js").MessagePhoto | import("../3_types.js").MessageDocument | import("../3_types.js").MessageVideo | import("../3_types.js").MessageSticker | import("../3_types.js").MessageAnimation | import("../3_types.js").MessageVoice | import("../3_types.js").MessageAudio | import("../3_types.js").MessageDice | import("../3_types.js").MessageVideoNote | import("../3_types.js").MessageContact | import("../3_types.js").MessageGame | import("../3_types.js").MessagePoll | import("../3_types.js").MessageVenue | import("../3_types.js").MessageLocation | import("../3_types.js").MessageNewChatMembers | import("../3_types.js").MessageLeftChatMember | import("../3_types.js").MessageNewChatTitle | import("../3_types.js").MessageNewChatPhoto | import("../3_types.js").MessageDeletedChatPhoto | import("../3_types.js").MessageSupergroupCreated | import("../3_types.js").MessageChannelCreated | import("../3_types.js").MessageAutoDeleteTimerChanged | import("../3_types.js").MessageChatMigratedTo | import("../3_types.js").MessageChatMigratedFrom | import("../3_types.js").MessagePinnedMessage | import("../3_types.js").MessageUserShared | import("../3_types.js").MessageWriteAccessAllowed | import("../3_types.js").MessageForumTopicCreated | import("../3_types.js").MessageForumTopicEdited | import("../3_types.js").MessageForumTopicClosed | import("../3_types.js").MessageForumTopicReopened | import("../3_types.js").MessageVideoChatScheduled | import("../3_types.js").MessageVideoChatStarted | import("../3_types.js").MessageVideoChatEnded | import("../3_types.js").MessageGiveaway | import("../3_types.js").MessageUnsupported | {
|
|
24
|
+
text: string;
|
|
25
|
+
entities: NonNullable<MessageEntity | null>[];
|
|
26
|
+
out: boolean;
|
|
27
|
+
id: number;
|
|
28
|
+
threadId?: number | undefined;
|
|
29
|
+
from?: import("../3_types.js").User | undefined;
|
|
30
|
+
senderChat?: import("../3_types.js").ChatP | undefined;
|
|
31
|
+
date: Date;
|
|
32
|
+
chat: import("../3_types.js").ChatP;
|
|
33
|
+
link?: string | undefined;
|
|
34
|
+
forwardFrom?: import("../3_types.js").User | undefined;
|
|
35
|
+
forwardFromChat?: import("../3_types.js").ChatP | undefined;
|
|
36
|
+
forwardId?: number | undefined;
|
|
37
|
+
forwardSignature?: string | undefined;
|
|
38
|
+
forwardSenderName?: string | undefined;
|
|
39
|
+
forwardDate?: Date | undefined;
|
|
40
|
+
isTopicMessage: boolean;
|
|
41
|
+
isAutomaticForward?: boolean | undefined;
|
|
42
|
+
replyToMessage?: Message | undefined;
|
|
43
|
+
replyToMessageId?: number | undefined;
|
|
44
|
+
reactions?: import("../3_types.js").MessageReaction[] | undefined;
|
|
45
|
+
replyQuote?: import("../3_types.js").ReplyQuote | undefined;
|
|
46
|
+
viaBot?: import("../3_types.js").User | undefined;
|
|
47
|
+
editDate?: Date | undefined;
|
|
48
|
+
hasProtectedContent?: boolean | undefined;
|
|
49
|
+
mediaGroupId?: string | undefined;
|
|
50
|
+
authorSignature?: string | undefined;
|
|
51
|
+
views?: number | undefined;
|
|
52
|
+
forwards?: number | undefined;
|
|
53
|
+
replyMarkup?: import("../3_types.js").ReplyMarkup | undefined;
|
|
54
|
+
}>;
|
|
23
55
|
forwardMessages(from: ID, to: ID, messageIds: number[], params?: ForwardMessagesParams): Promise<Message[]>;
|
|
24
56
|
getHistory(chatId: ID, params?: GetHistoryParams): Promise<Message[]>;
|
|
25
57
|
usernameResolver: UsernameResolver;
|
|
@@ -35,8 +67,13 @@ export declare class MessageManager {
|
|
|
35
67
|
sendVideo(chatId: ID, video: FileSource, params?: SendVideoParams): Promise<import("../3_types.js").MessageVideo>;
|
|
36
68
|
sendDocument(chatId: ID, document: FileSource, params?: SendDocumentParams): Promise<import("../3_types.js").MessageDocument>;
|
|
37
69
|
sendPhoto(chatId: ID, photo: FileSource, params?: SendPhotoParams): Promise<import("../3_types.js").MessagePhoto>;
|
|
70
|
+
resolveFileId(maybeFileId: string, expectedFileType: FileType): {
|
|
71
|
+
id: bigint;
|
|
72
|
+
access_hash: bigint;
|
|
73
|
+
file_reference: Uint8Array;
|
|
74
|
+
} | null;
|
|
38
75
|
sendPoll(chatId: ID, question: string, options: [string, string, ...string[]], params?: SendPollParams): Promise<import("../3_types.js").MessagePoll>;
|
|
39
|
-
editMessageReplyMarkup(chatId: ID, messageId: number, params?: EditMessageReplyMarkupParams): Promise<import("../3_types.js").MessageText | import("../3_types.js").MessagePhoto | import("../3_types.js").MessageDocument | import("../3_types.js").MessageVideo | import("../3_types.js").MessageSticker | import("../3_types.js").MessageAnimation | import("../3_types.js").MessageVoice | import("../3_types.js").MessageAudio | import("../3_types.js").MessageDice | import("../3_types.js").MessageVideoNote | import("../3_types.js").MessageContact | import("../3_types.js").MessageGame | import("../3_types.js").MessagePoll | import("../3_types.js").MessageVenue | import("../3_types.js").MessageLocation | import("../3_types.js").MessageNewChatMembers | import("../3_types.js").MessageLeftChatMember | import("../3_types.js").MessageNewChatTitle | import("../3_types.js").MessageNewChatPhoto | import("../3_types.js").MessageDeletedChatPhoto | import("../3_types.js").MessageGroupCreated | import("../3_types.js").MessageSupergroupCreated | import("../3_types.js").MessageChannelCreated | import("../3_types.js").MessageAutoDeleteTimerChanged | import("../3_types.js").MessageChatMigratedTo | import("../3_types.js").MessageChatMigratedFrom | import("../3_types.js").MessagePinnedMessage | import("../3_types.js").MessageUserShared | import("../3_types.js").MessageWriteAccessAllowed | import("../3_types.js").MessageForumTopicCreated | import("../3_types.js").MessageForumTopicEdited | import("../3_types.js").MessageForumTopicClosed | import("../3_types.js").MessageForumTopicReopened | import("../3_types.js").MessageVideoChatScheduled | import("../3_types.js").MessageVideoChatStarted | import("../3_types.js").MessageVideoChatEnded | import("../3_types.js").MessageGiveaway | import("../3_types.js").MessageUnsupported>;
|
|
76
|
+
editMessageReplyMarkup(chatId: ID, messageId: number, params?: EditMessageReplyMarkupParams): Promise<import("../3_types.js").MessageText | import("../3_types.js").MessageLink | import("../3_types.js").MessagePhoto | import("../3_types.js").MessageDocument | import("../3_types.js").MessageVideo | import("../3_types.js").MessageSticker | import("../3_types.js").MessageAnimation | import("../3_types.js").MessageVoice | import("../3_types.js").MessageAudio | import("../3_types.js").MessageDice | import("../3_types.js").MessageVideoNote | import("../3_types.js").MessageContact | import("../3_types.js").MessageGame | import("../3_types.js").MessagePoll | import("../3_types.js").MessageVenue | import("../3_types.js").MessageLocation | import("../3_types.js").MessageNewChatMembers | import("../3_types.js").MessageLeftChatMember | import("../3_types.js").MessageNewChatTitle | import("../3_types.js").MessageNewChatPhoto | import("../3_types.js").MessageDeletedChatPhoto | import("../3_types.js").MessageGroupCreated | import("../3_types.js").MessageSupergroupCreated | import("../3_types.js").MessageChannelCreated | import("../3_types.js").MessageAutoDeleteTimerChanged | import("../3_types.js").MessageChatMigratedTo | import("../3_types.js").MessageChatMigratedFrom | import("../3_types.js").MessagePinnedMessage | import("../3_types.js").MessageUserShared | import("../3_types.js").MessageWriteAccessAllowed | import("../3_types.js").MessageForumTopicCreated | import("../3_types.js").MessageForumTopicEdited | import("../3_types.js").MessageForumTopicClosed | import("../3_types.js").MessageForumTopicReopened | import("../3_types.js").MessageVideoChatScheduled | import("../3_types.js").MessageVideoChatStarted | import("../3_types.js").MessageVideoChatEnded | import("../3_types.js").MessageGiveaway | import("../3_types.js").MessageUnsupported>;
|
|
40
77
|
editInlineMessageReplyMarkup(inlineMessageId: string, params?: EditMessageReplyMarkupParams): Promise<void>;
|
|
41
78
|
editMessageText(chatId: ID, messageId: number, text: string, params?: EditMessageParams): Promise<import("../3_types.js").MessageText>;
|
|
42
79
|
editInlineMessageText(inlineMessageId: string, text: string, params?: EditMessageParams): Promise<void>;
|
|
@@ -60,5 +97,8 @@ export declare class MessageManager {
|
|
|
60
97
|
unbanChatMember(chatId: ID, memberId: ID): Promise<void>;
|
|
61
98
|
setChatMemberRights(chatId: ID, memberId: ID, params?: SetChatMemberRightsParams): Promise<void>;
|
|
62
99
|
getChatAdministrators(chatId: ID): Promise<ChatMember[]>;
|
|
100
|
+
enableJoinRequests(chatId: ID): Promise<void>;
|
|
101
|
+
disableJoinRequests(chatId: ID): Promise<void>;
|
|
102
|
+
searchMessages(chatId: ID, query: string, params?: SearchMessagesParams): Promise<Message[]>;
|
|
63
103
|
}
|
|
64
104
|
export {};
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _MessageManager_instances, _MessageManager_c, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia,
|
|
13
|
+
var _MessageManager_instances, _MessageManager_c, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_sendReaction, _MessageManager_toggleJoinRequests;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.MessageManager = void 0;
|
|
16
16
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -19,6 +19,7 @@ const _2_tl_js_1 = require("../2_tl.js");
|
|
|
19
19
|
const _3_types_js_1 = require("../3_types.js");
|
|
20
20
|
const _3_types_js_2 = require("../3_types.js");
|
|
21
21
|
const _4_constants_js_1 = require("../4_constants.js");
|
|
22
|
+
const _0_message_search_filter_js_1 = require("../types/0_message_search_filter.js");
|
|
22
23
|
const _0_html_js_1 = require("./0_html.js");
|
|
23
24
|
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
24
25
|
const d = (0, _0_deps_js_1.debug)("MessageManager");
|
|
@@ -138,6 +139,7 @@ class MessageManager {
|
|
|
138
139
|
return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, to, result);
|
|
139
140
|
}
|
|
140
141
|
async getHistory(chatId, params) {
|
|
142
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("getHistory");
|
|
141
143
|
let limit = params?.limit ?? 100;
|
|
142
144
|
if (limit <= 0) {
|
|
143
145
|
limit = 1;
|
|
@@ -178,22 +180,47 @@ class MessageManager {
|
|
|
178
180
|
const replyMarkup = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params);
|
|
179
181
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
180
182
|
const randomId = (0, _1_utilities_js_1.getRandomId)();
|
|
181
|
-
const noWebpage = params?.
|
|
183
|
+
const noWebpage = params?.linkPreview?.disable ? true : undefined;
|
|
184
|
+
const invertMedia = params?.linkPreview?.aboveText ? true : undefined;
|
|
182
185
|
const silent = params?.disableNotification ? true : undefined;
|
|
183
186
|
const noforwards = params?.protectContent ? true : undefined;
|
|
184
187
|
const sendAs = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveSendAs).call(this, params);
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
188
|
+
let result;
|
|
189
|
+
if (!noWebpage && params?.linkPreview?.url) {
|
|
190
|
+
result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMedia({
|
|
191
|
+
peer,
|
|
192
|
+
random_id: randomId,
|
|
193
|
+
media: new _2_tl_js_1.types.InputMediaWebPage({
|
|
194
|
+
url: params.linkPreview.url,
|
|
195
|
+
force_large_media: params.linkPreview.largeMedia ? true : undefined,
|
|
196
|
+
force_small_media: params.linkPreview.smallMedia ? true : undefined,
|
|
197
|
+
optional: message.length ? undefined : true,
|
|
198
|
+
}),
|
|
199
|
+
message,
|
|
200
|
+
invert_media: invertMedia,
|
|
201
|
+
silent,
|
|
202
|
+
noforwards,
|
|
203
|
+
reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
|
|
204
|
+
send_as: sendAs,
|
|
205
|
+
entities,
|
|
206
|
+
reply_markup: replyMarkup,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMessage({
|
|
211
|
+
peer,
|
|
212
|
+
random_id: randomId,
|
|
213
|
+
message,
|
|
214
|
+
no_webpage: noWebpage,
|
|
215
|
+
invert_media: invertMedia,
|
|
216
|
+
silent,
|
|
217
|
+
noforwards,
|
|
218
|
+
reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
|
|
219
|
+
send_as: sendAs,
|
|
220
|
+
entities,
|
|
221
|
+
reply_markup: replyMarkup,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
197
224
|
const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
198
225
|
return (0, _3_types_js_2.assertMessageType)(message_, "text");
|
|
199
226
|
}
|
|
@@ -376,7 +403,7 @@ class MessageManager {
|
|
|
376
403
|
let media = null;
|
|
377
404
|
const spoiler = params?.hasSpoiler ? true : undefined;
|
|
378
405
|
if (typeof photo === "string") {
|
|
379
|
-
const fileId =
|
|
406
|
+
const fileId = this.resolveFileId(photo, _3_types_js_2.FileType.Photo);
|
|
380
407
|
if (fileId != null) {
|
|
381
408
|
media = new _2_tl_js_1.types.InputMediaPhoto({
|
|
382
409
|
id: new _2_tl_js_1.types.InputPhoto(fileId),
|
|
@@ -397,6 +424,29 @@ class MessageManager {
|
|
|
397
424
|
const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendMedia).call(this, chatId, media, params);
|
|
398
425
|
return (0, _3_types_js_2.assertMessageType)(message, "photo");
|
|
399
426
|
}
|
|
427
|
+
resolveFileId(maybeFileId, expectedFileType) {
|
|
428
|
+
let fileId = null;
|
|
429
|
+
try {
|
|
430
|
+
fileId = _3_types_js_2.FileID.decode(maybeFileId);
|
|
431
|
+
}
|
|
432
|
+
catch (err) {
|
|
433
|
+
d("fileId: %o", err);
|
|
434
|
+
}
|
|
435
|
+
if (fileId != null) {
|
|
436
|
+
if (fileId.fileType != expectedFileType) {
|
|
437
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
438
|
+
}
|
|
439
|
+
if (fileId.params.mediaId == undefined || fileId.params.accessHash == undefined || fileId.params.fileReference == undefined) {
|
|
440
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
441
|
+
}
|
|
442
|
+
return {
|
|
443
|
+
id: fileId.params.mediaId,
|
|
444
|
+
access_hash: fileId.params.accessHash,
|
|
445
|
+
file_reference: fileId.params.fileReference,
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
return null;
|
|
449
|
+
}
|
|
400
450
|
async sendPoll(chatId, question, options, params) {
|
|
401
451
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
402
452
|
const randomId = (0, _1_utilities_js_1.getRandomId)();
|
|
@@ -458,12 +508,25 @@ class MessageManager {
|
|
|
458
508
|
}
|
|
459
509
|
async editMessageText(chatId, messageId, text, params) {
|
|
460
510
|
const [message, entities] = await this.parseText(text, params);
|
|
511
|
+
const noWebpage = params?.linkPreview?.disable ? true : undefined;
|
|
512
|
+
const invertMedia = params?.linkPreview?.aboveText ? true : undefined;
|
|
513
|
+
let media = undefined;
|
|
514
|
+
if (!noWebpage && params?.linkPreview?.url) {
|
|
515
|
+
media = new _2_tl_js_1.types.InputMediaWebPage({
|
|
516
|
+
url: params.linkPreview.url,
|
|
517
|
+
force_large_media: params.linkPreview.largeMedia ? true : undefined,
|
|
518
|
+
force_small_media: params.linkPreview.smallMedia ? true : undefined,
|
|
519
|
+
optional: message.length ? undefined : true,
|
|
520
|
+
});
|
|
521
|
+
}
|
|
461
522
|
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
|
|
462
523
|
id: messageId,
|
|
463
524
|
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
464
525
|
entities,
|
|
465
526
|
message,
|
|
466
|
-
|
|
527
|
+
media,
|
|
528
|
+
no_webpage: noWebpage,
|
|
529
|
+
invert_media: invertMedia,
|
|
467
530
|
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
468
531
|
});
|
|
469
532
|
const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
@@ -472,11 +535,24 @@ class MessageManager {
|
|
|
472
535
|
async editInlineMessageText(inlineMessageId, text, params) {
|
|
473
536
|
const [message, entities] = await this.parseText(text, params);
|
|
474
537
|
const id = (0, _3_types_js_2.deserializeInlineMessageId)(inlineMessageId);
|
|
538
|
+
const noWebpage = params?.linkPreview?.disable ? true : undefined;
|
|
539
|
+
const invertMedia = params?.linkPreview?.aboveText ? true : undefined;
|
|
540
|
+
let media = undefined;
|
|
541
|
+
if (!noWebpage && params?.linkPreview?.url) {
|
|
542
|
+
media = new _2_tl_js_1.types.InputMediaWebPage({
|
|
543
|
+
url: params.linkPreview.url,
|
|
544
|
+
force_large_media: params.linkPreview.largeMedia ? true : undefined,
|
|
545
|
+
force_small_media: params.linkPreview.smallMedia ? true : undefined,
|
|
546
|
+
optional: message.length ? undefined : true,
|
|
547
|
+
});
|
|
548
|
+
}
|
|
475
549
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
|
|
476
550
|
id,
|
|
477
551
|
entities,
|
|
478
552
|
message,
|
|
479
|
-
|
|
553
|
+
media,
|
|
554
|
+
no_webpage: noWebpage,
|
|
555
|
+
invert_media: invertMedia,
|
|
480
556
|
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
481
557
|
});
|
|
482
558
|
}
|
|
@@ -787,6 +863,39 @@ class MessageManager {
|
|
|
787
863
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
788
864
|
}
|
|
789
865
|
}
|
|
866
|
+
async enableJoinRequests(chatId) {
|
|
867
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("enableJoinRequests");
|
|
868
|
+
await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_toggleJoinRequests).call(this, chatId, true);
|
|
869
|
+
}
|
|
870
|
+
async disableJoinRequests(chatId) {
|
|
871
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("disableJoinRequests");
|
|
872
|
+
await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_toggleJoinRequests).call(this, chatId, false);
|
|
873
|
+
}
|
|
874
|
+
async searchMessages(chatId, query, params) {
|
|
875
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.search({
|
|
876
|
+
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
877
|
+
q: query,
|
|
878
|
+
add_offset: 0,
|
|
879
|
+
filter: (0, _0_message_search_filter_js_1.messageSearchFilterToTlObject)(params?.filter ?? "empty"),
|
|
880
|
+
hash: 0n,
|
|
881
|
+
limit: params?.limit ?? 100,
|
|
882
|
+
max_date: 0,
|
|
883
|
+
max_id: 0,
|
|
884
|
+
min_date: 0,
|
|
885
|
+
min_id: 0,
|
|
886
|
+
offset_id: params?.after ? params.after : 0,
|
|
887
|
+
from_id: params?.from ? await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(params.from) : undefined,
|
|
888
|
+
});
|
|
889
|
+
if (!("messages" in result)) {
|
|
890
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
891
|
+
}
|
|
892
|
+
const messages = new Array();
|
|
893
|
+
for (const message_ of result.messages) {
|
|
894
|
+
const message = await this.constructMessage(message_, false);
|
|
895
|
+
messages.push(message);
|
|
896
|
+
}
|
|
897
|
+
return messages;
|
|
898
|
+
}
|
|
790
899
|
}
|
|
791
900
|
exports.MessageManager = MessageManager;
|
|
792
901
|
_MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
|
|
@@ -830,7 +939,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
|
|
|
830
939
|
let media = null;
|
|
831
940
|
const spoiler = params?.hasSpoiler ? true : undefined;
|
|
832
941
|
if (typeof document === "string") {
|
|
833
|
-
const fileId =
|
|
942
|
+
const fileId = this.resolveFileId(document, fileType);
|
|
834
943
|
if (fileId != null) {
|
|
835
944
|
media = new _2_tl_js_1.types.InputMediaDocument({
|
|
836
945
|
id: new _2_tl_js_1.types.InputDocument(fileId),
|
|
@@ -890,28 +999,6 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
|
|
|
890
999
|
entities: captionEntities,
|
|
891
1000
|
});
|
|
892
1001
|
return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
893
|
-
}, _MessageManager_resolveFileId = function _MessageManager_resolveFileId(maybeFileId, expectedFileType) {
|
|
894
|
-
let fileId = null;
|
|
895
|
-
try {
|
|
896
|
-
fileId = _3_types_js_2.FileID.decode(maybeFileId);
|
|
897
|
-
}
|
|
898
|
-
catch (err) {
|
|
899
|
-
d("fileId: %o", err);
|
|
900
|
-
}
|
|
901
|
-
if (fileId != null) {
|
|
902
|
-
if (fileId.fileType != expectedFileType) {
|
|
903
|
-
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
904
|
-
}
|
|
905
|
-
if (fileId.params.mediaId == undefined || fileId.params.accessHash == undefined || fileId.params.fileReference == undefined) {
|
|
906
|
-
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
907
|
-
}
|
|
908
|
-
return {
|
|
909
|
-
id: fileId.params.mediaId,
|
|
910
|
-
access_hash: fileId.params.accessHash,
|
|
911
|
-
file_reference: fileId.params.fileReference,
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
return null;
|
|
915
1002
|
}, _MessageManager_sendReaction = async function _MessageManager_sendReaction(chatId, messageId, reactions, params) {
|
|
916
1003
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendReaction({
|
|
917
1004
|
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
@@ -920,4 +1007,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
|
|
|
920
1007
|
big: params?.big ? true : undefined,
|
|
921
1008
|
add_to_recent: params?.addToRecents ? true : undefined,
|
|
922
1009
|
});
|
|
1010
|
+
}, _MessageManager_toggleJoinRequests = async function _MessageManager_toggleJoinRequests(chatId, enabled) {
|
|
1011
|
+
const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
|
|
1012
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.toggleJoinRequest({ channel, enabled });
|
|
923
1013
|
};
|