@mtkruto/node 0.1.147 → 0.1.149
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/1_utilities.d.ts +1 -0
- package/esm/1_utilities.js +1 -0
- package/esm/3_types.d.ts +2 -2
- package/esm/3_types.js +2 -2
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_types.d.ts +1 -0
- package/esm/client/1_file_manager.js +2 -1
- package/esm/client/1_reaction_manager.js +3 -3
- package/esm/client/1_update_manager.js +10 -10
- package/esm/client/2_message_manager.d.ts +2 -0
- package/esm/client/2_message_manager.js +42 -31
- package/esm/client/3_chat_list_manager.js +1 -1
- package/esm/client/4_client.d.ts +21 -0
- package/esm/client/4_client.js +89 -40
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.js +3 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.js +2 -2
- package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/fmt/colors.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/fmt/colors.js +3 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.d.ts +10 -8
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.js +4 -4
- package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/media_types/extension.d.ts +3 -3
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extension.js +3 -3
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.js +1 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.d.ts +3 -3
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.js +3 -3
- package/esm/deps/deno.land/std@0.214.0/media_types/parse_media_type.d.ts +23 -0
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/parse_media_type.js +7 -21
- package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/media_types/type_by_extension.d.ts +2 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/type_by_extension.js +2 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.d.ts +1 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/constants.d.ts +3 -0
- package/esm/deps/deno.land/std@0.214.0/path/constants.js +6 -0
- package/esm/deps/deno.land/std@0.214.0/path/mod.d.ts +65 -0
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/mod.js +10 -5
- package/{script/deps/deno.land/std@0.212.0/path → esm/deps/deno.land/std@0.214.0/path/posix}/common.d.ts +1 -2
- package/esm/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/common.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/posix/constants.d.ts +3 -0
- package/esm/deps/deno.land/{std@0.212.0/path/posix/separator.js → std@0.214.0/path/posix/constants.js} +3 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.js +2 -2
- package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/path/posix/mod.d.ts +8 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/mod.js +8 -1
- package/esm/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/normalize_glob.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +8 -0
- package/esm/deps/deno.land/std@0.214.0/path/posix/separator.js +10 -0
- package/esm/deps/deno.land/std@0.214.0/path/separator.d.ts +8 -0
- package/esm/deps/deno.land/std@0.214.0/path/separator.js +11 -0
- package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/common.d.ts +1 -2
- package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/common.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/windows/constants.d.ts +3 -0
- package/esm/deps/deno.land/std@0.214.0/path/windows/constants.js +5 -0
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.js +2 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.d.ts +7 -0
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.js +7 -0
- package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/normalize_glob.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +8 -0
- package/esm/deps/deno.land/std@0.214.0/path/windows/separator.js +10 -0
- package/esm/storage/0_storage.d.ts +63 -11
- package/esm/storage/0_storage.js +159 -88
- package/esm/storage/1_storage_memory.d.ts +4 -1
- package/esm/storage/1_storage_memory.js +29 -9
- package/esm/tl/3_utilities.d.ts +5 -2
- package/esm/tl/3_utilities.js +32 -6
- package/esm/types/0_giveaway_parameters.d.ts +1 -0
- package/esm/types/0_login_url.d.ts +1 -0
- package/esm/types/0_mask_position.d.ts +1 -0
- package/esm/types/0_message_reference.d.ts +5 -0
- package/esm/types/0_poll_option.d.ts +1 -0
- package/esm/types/0_price_tag.d.ts +5 -0
- package/esm/types/0_restriction_reason.d.ts +1 -0
- package/esm/types/1_giveaway.d.ts +1 -0
- package/esm/types/1_inline_query_result_button.d.ts +1 -0
- package/esm/types/1_input_message_content.d.ts +2 -2
- package/esm/types/1_poll.d.ts +1 -0
- package/esm/types/1_reaction_count.d.ts +1 -0
- package/esm/types/1_reply_quote.d.ts +1 -0
- package/esm/types/1_sticker.d.ts +1 -0
- package/esm/types/2_chat_member.d.ts +1 -0
- package/esm/types/2_chosen_inline_result.d.ts +1 -0
- package/esm/types/2_game.d.ts +1 -0
- package/esm/types/2_message_interactions.d.ts +1 -0
- package/esm/types/2_message_reactions.d.ts +1 -0
- package/esm/types/3_chat_member_updated.d.ts +1 -0
- package/esm/types/3_reply_markup.d.ts +1 -0
- package/esm/types/4_inline_query_result.d.ts +1 -1
- package/esm/types/4_message.d.ts +1 -0
- package/esm/types/5_callback_query.d.ts +1 -0
- package/esm/types/5_callback_query.js +17 -2
- package/esm/types/6_update.d.ts +2 -2
- package/esm/utilities/0_cache_map.d.ts +6 -0
- package/esm/utilities/0_cache_map.js +30 -0
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -4
- package/script/0_deps.js +5 -5
- package/script/1_utilities.d.ts +1 -0
- package/script/1_utilities.js +1 -0
- package/script/3_types.d.ts +2 -2
- package/script/3_types.js +2 -2
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_types.d.ts +1 -0
- package/script/client/1_file_manager.js +2 -1
- package/script/client/1_reaction_manager.js +3 -3
- package/script/client/1_update_manager.js +10 -10
- package/script/client/2_message_manager.d.ts +2 -0
- package/script/client/2_message_manager.js +41 -30
- package/script/client/3_chat_list_manager.js +1 -1
- package/script/client/4_client.d.ts +21 -0
- package/script/client/4_client.js +88 -39
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.js +4 -3
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.js +2 -2
- package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/fmt/colors.d.ts +1 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/fmt/colors.js +4 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.d.ts +10 -8
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.js +4 -4
- package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/media_types/extension.d.ts +3 -3
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extension.js +3 -3
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.d.ts +1 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.js +1 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.d.ts +3 -3
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.js +3 -3
- package/script/deps/deno.land/std@0.214.0/media_types/parse_media_type.d.ts +23 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/parse_media_type.js +7 -21
- package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/media_types/type_by_extension.d.ts +2 -2
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/type_by_extension.js +2 -2
- package/{esm/deps/deno.land/std@0.212.0/path/windows → script/deps/deno.land/std@0.214.0/path}/common.d.ts +1 -2
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/constants.d.ts +3 -0
- package/script/deps/deno.land/std@0.214.0/path/constants.js +9 -0
- package/script/deps/deno.land/std@0.214.0/path/mod.d.ts +65 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/mod.js +10 -5
- package/script/deps/deno.land/std@0.214.0/path/posix/common.d.ts +13 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/common.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/posix/constants.d.ts +3 -0
- package/script/deps/deno.land/{std@0.212.0/path/posix/separator.js → std@0.214.0/path/posix/constants.js} +4 -3
- package/script/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/join_globs.js +2 -2
- package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/path/posix/mod.d.ts +8 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/mod.js +8 -1
- package/script/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/normalize_glob.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +8 -0
- package/script/deps/deno.land/std@0.214.0/path/posix/separator.js +13 -0
- package/script/deps/deno.land/std@0.214.0/path/separator.d.ts +8 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/separator.js +6 -0
- package/script/deps/deno.land/std@0.214.0/path/windows/common.d.ts +13 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/common.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/windows/constants.d.ts +3 -0
- package/script/deps/deno.land/{std@0.212.0/path/windows/separator.js → std@0.214.0/path/windows/constants.js} +4 -3
- package/script/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/join_globs.js +2 -2
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.d.ts +7 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.js +7 -0
- package/script/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/normalize_glob.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +8 -0
- package/script/deps/deno.land/std@0.214.0/path/windows/separator.js +13 -0
- package/script/storage/0_storage.d.ts +63 -11
- package/script/storage/0_storage.js +159 -88
- package/script/storage/1_storage_memory.d.ts +4 -1
- package/script/storage/1_storage_memory.js +29 -9
- package/script/tl/3_utilities.d.ts +5 -2
- package/script/tl/3_utilities.js +35 -7
- package/script/types/0_giveaway_parameters.d.ts +1 -0
- package/script/types/0_login_url.d.ts +1 -0
- package/script/types/0_mask_position.d.ts +1 -0
- package/script/types/0_message_reference.d.ts +5 -0
- package/script/types/0_poll_option.d.ts +1 -0
- package/script/types/0_price_tag.d.ts +5 -0
- package/script/types/0_restriction_reason.d.ts +1 -0
- package/script/types/1_giveaway.d.ts +1 -0
- package/script/types/1_inline_query_result_button.d.ts +1 -0
- package/script/types/1_input_message_content.d.ts +2 -2
- package/script/types/1_poll.d.ts +1 -0
- package/script/types/1_reaction_count.d.ts +1 -0
- package/script/types/1_reply_quote.d.ts +1 -0
- package/script/types/1_sticker.d.ts +1 -0
- package/script/types/2_chat_member.d.ts +1 -0
- package/script/types/2_chosen_inline_result.d.ts +1 -0
- package/script/types/2_game.d.ts +1 -0
- package/script/types/2_message_interactions.d.ts +1 -0
- package/script/types/2_message_reactions.d.ts +1 -0
- package/script/types/3_chat_member_updated.d.ts +1 -0
- package/script/types/3_reply_markup.d.ts +1 -0
- package/script/types/4_inline_query_result.d.ts +1 -1
- package/script/types/4_message.d.ts +1 -0
- package/script/types/5_callback_query.d.ts +1 -0
- package/script/types/5_callback_query.js +17 -1
- package/script/types/6_update.d.ts +2 -2
- package/script/utilities/0_cache_map.d.ts +6 -0
- package/script/utilities/0_cache_map.js +34 -0
- package/esm/deps/deno.land/std@0.212.0/media_types/parse_media_type.d.ts +0 -37
- package/esm/deps/deno.land/std@0.212.0/path/mod.d.ts +0 -28
- package/esm/deps/deno.land/std@0.212.0/path/posix/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.212.0/path/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.212.0/path/separator.js +0 -5
- package/esm/deps/deno.land/std@0.212.0/path/windows/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.212.0/path/windows/separator.js +0 -4
- package/esm/types/0_labeled_price.d.ts +0 -4
- package/esm/types/0_message_identifier.d.ts +0 -4
- package/script/deps/deno.land/std@0.212.0/media_types/parse_media_type.d.ts +0 -37
- package/script/deps/deno.land/std@0.212.0/path/mod.d.ts +0 -28
- package/script/deps/deno.land/std@0.212.0/path/posix/common.d.ts +0 -14
- package/script/deps/deno.land/std@0.212.0/path/posix/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.212.0/path/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.212.0/path/windows/common.d.ts +0 -14
- package/script/deps/deno.land/std@0.212.0/path/windows/separator.d.ts +0 -2
- package/script/types/0_labeled_price.d.ts +0 -4
- package/script/types/0_message_identifier.d.ts +0 -4
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.js +0 -0
- /package/esm/types/{0_labeled_price.js → 0_message_reference.js} +0 -0
- /package/esm/types/{0_message_identifier.js → 0_price_tag.js} +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/types/{0_labeled_price.js → 0_message_reference.js} +0 -0
- /package/script/types/{0_message_identifier.js → 0_price_tag.js} +0 -0
|
@@ -43,7 +43,7 @@ class MessageManager {
|
|
|
43
43
|
const chatId_ = (0, _2_tl_js_1.peerToChatId)(peer);
|
|
44
44
|
let shouldFetch = false;
|
|
45
45
|
for (const messageId of messageIds) {
|
|
46
|
-
const message = await __classPrivateFieldGet(this, _MessageManager_c, "f").
|
|
46
|
+
const message = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getMessage(chatId_, messageId);
|
|
47
47
|
if (message == null) {
|
|
48
48
|
messages_ = [];
|
|
49
49
|
shouldFetch = true;
|
|
@@ -108,14 +108,14 @@ class MessageManager {
|
|
|
108
108
|
return [text, entities];
|
|
109
109
|
}
|
|
110
110
|
async getStickerSetName(inputStickerSet, hash = 0) {
|
|
111
|
-
const maybeStickerSetName = await __classPrivateFieldGet(this, _MessageManager_c, "f").
|
|
111
|
+
const maybeStickerSetName = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getStickerSetName(inputStickerSet.id, inputStickerSet.access_hash);
|
|
112
112
|
if (maybeStickerSetName != null && Date.now() - maybeStickerSetName[1].getTime() < _4_constants_js_1.STICKER_SET_NAME_TTL) {
|
|
113
113
|
return maybeStickerSetName[0];
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
116
|
const stickerSet = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getStickerSet({ stickerset: inputStickerSet, hash });
|
|
117
117
|
const name = stickerSet[_2_tl_js_1.as](_2_tl_js_1.types.messages.StickerSet).set.short_name;
|
|
118
|
-
await __classPrivateFieldGet(this, _MessageManager_c, "f").
|
|
118
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.updateStickerSetName(inputStickerSet.id, inputStickerSet.access_hash, name);
|
|
119
119
|
return name;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -151,33 +151,26 @@ class MessageManager {
|
|
|
151
151
|
}
|
|
152
152
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
153
153
|
const messages = new Array();
|
|
154
|
-
|
|
154
|
+
if (messages.length > 0) {
|
|
155
|
+
offsetId = messages[messages.length - 1].id; // TODO: track id of oldest message and don't send requests for it
|
|
156
|
+
}
|
|
157
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getHistory({
|
|
158
|
+
peer: peer,
|
|
159
|
+
offset_id: offsetId,
|
|
160
|
+
offset_date: 0,
|
|
161
|
+
add_offset: 0,
|
|
162
|
+
limit,
|
|
163
|
+
max_id: 0,
|
|
164
|
+
min_id: 0,
|
|
165
|
+
hash: 0n,
|
|
166
|
+
});
|
|
167
|
+
if (!("messages" in result)) {
|
|
168
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
169
|
+
}
|
|
170
|
+
for (const message_ of result.messages) {
|
|
155
171
|
const message = await this.constructMessage(message_, false);
|
|
156
172
|
messages.push(message);
|
|
157
173
|
}
|
|
158
|
-
if (messages.length < limit) {
|
|
159
|
-
d("have only %d messages but need %d more", messages.length, limit - messages.length);
|
|
160
|
-
if (messages.length > 0) {
|
|
161
|
-
offsetId = messages[messages.length - 1].id; // TODO: track id of oldest message and don't send requests for it
|
|
162
|
-
}
|
|
163
|
-
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getHistory({
|
|
164
|
-
peer: peer,
|
|
165
|
-
offset_id: offsetId,
|
|
166
|
-
offset_date: 0,
|
|
167
|
-
add_offset: 0,
|
|
168
|
-
limit,
|
|
169
|
-
max_id: 0,
|
|
170
|
-
min_id: 0,
|
|
171
|
-
hash: 0n,
|
|
172
|
-
});
|
|
173
|
-
if (!("messages" in result)) {
|
|
174
|
-
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
175
|
-
}
|
|
176
|
-
for (const message_ of result.messages) {
|
|
177
|
-
const message = await this.constructMessage(message_, false);
|
|
178
|
-
messages.push(message);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
174
|
return messages;
|
|
182
175
|
}
|
|
183
176
|
async sendMessage(chatId, text, params) {
|
|
@@ -456,6 +449,13 @@ class MessageManager {
|
|
|
456
449
|
const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
457
450
|
return message_;
|
|
458
451
|
}
|
|
452
|
+
async editInlineMessageReplyMarkup(inlineMessageId, params) {
|
|
453
|
+
const id = (0, _3_types_js_2.deserializeInlineMessageId)(inlineMessageId);
|
|
454
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
|
|
455
|
+
id,
|
|
456
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
459
|
async editMessageText(chatId, messageId, text, params) {
|
|
460
460
|
const [message, entities] = await this.parseText(text, params);
|
|
461
461
|
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
|
|
@@ -469,6 +469,17 @@ class MessageManager {
|
|
|
469
469
|
const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
470
470
|
return (0, _3_types_js_2.assertMessageType)(message_, "text");
|
|
471
471
|
}
|
|
472
|
+
async editInlineMessageText(inlineMessageId, text, params) {
|
|
473
|
+
const [message, entities] = await this.parseText(text, params);
|
|
474
|
+
const id = (0, _3_types_js_2.deserializeInlineMessageId)(inlineMessageId);
|
|
475
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
|
|
476
|
+
id,
|
|
477
|
+
entities,
|
|
478
|
+
message,
|
|
479
|
+
no_webpage: params?.disableWebPagePreview ? true : undefined,
|
|
480
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
481
|
+
});
|
|
482
|
+
}
|
|
472
483
|
async deleteMessages(chatId, messageIds, params) {
|
|
473
484
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
474
485
|
if (peer instanceof _2_tl_js_1.types.InputPeerChannel) {
|
|
@@ -548,7 +559,7 @@ class MessageManager {
|
|
|
548
559
|
if (update instanceof _2_tl_js_1.types.UpdateNewMessage || update instanceof _2_tl_js_1.types.UpdateNewChannelMessage || update instanceof _2_tl_js_1.types.UpdateEditMessage || update instanceof _2_tl_js_1.types.UpdateEditChannelMessage) {
|
|
549
560
|
if (update.message instanceof _2_tl_js_1.types.Message || update.message instanceof _2_tl_js_1.types.MessageService) {
|
|
550
561
|
const chatId = (0, _2_tl_js_1.peerToChatId)(update.message.peer_id);
|
|
551
|
-
await __classPrivateFieldGet(this, _MessageManager_c, "f").
|
|
562
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.setMessage(chatId, update.message.id, update.message);
|
|
552
563
|
}
|
|
553
564
|
}
|
|
554
565
|
if (update instanceof _2_tl_js_1.types.UpdateNewMessage ||
|
|
@@ -575,7 +586,7 @@ class MessageManager {
|
|
|
575
586
|
if (update instanceof _2_tl_js_1.types.UpdateDeleteMessages) {
|
|
576
587
|
const deletedMessages = new Array();
|
|
577
588
|
for (const messageId of update.messages) {
|
|
578
|
-
const chatId = await __classPrivateFieldGet(this, _MessageManager_c, "f").
|
|
589
|
+
const chatId = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getMessageChat(messageId);
|
|
579
590
|
if (chatId) {
|
|
580
591
|
deletedMessages.push({ chatId, messageId });
|
|
581
592
|
}
|
|
@@ -588,7 +599,7 @@ class MessageManager {
|
|
|
588
599
|
const chatId = (0, _2_tl_js_1.getChannelChatId)(update.channel_id);
|
|
589
600
|
const deletedMessages = new Array();
|
|
590
601
|
for (const messageId of update.messages) {
|
|
591
|
-
const message = await __classPrivateFieldGet(this, _MessageManager_c, "f").
|
|
602
|
+
const message = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getMessage(chatId, messageId);
|
|
592
603
|
if (message != null) {
|
|
593
604
|
deletedMessages.push({ chatId, messageId });
|
|
594
605
|
}
|
|
@@ -43,7 +43,7 @@ class ChatListManager {
|
|
|
43
43
|
if (!chat && !add) {
|
|
44
44
|
return () => Promise.resolve();
|
|
45
45
|
}
|
|
46
|
-
const message_ = await __classPrivateFieldGet(this, _ChatListManager_c, "f").
|
|
46
|
+
const message_ = await __classPrivateFieldGet(this, _ChatListManager_c, "f").messageStorage.getLastMessage(chatId);
|
|
47
47
|
if (message_ != null) {
|
|
48
48
|
const message = await __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.constructMessage(message_);
|
|
49
49
|
if (chat) {
|
|
@@ -82,6 +82,8 @@ export interface Context {
|
|
|
82
82
|
sendChatAction: (action: ChatAction, params?: {
|
|
83
83
|
messageThreadId?: number;
|
|
84
84
|
}) => Promise<void>;
|
|
85
|
+
editInlineMessageText: (text: string, params?: EditMessageParams) => Promise<void>;
|
|
86
|
+
editInlineMessageReplyMarkup: (params?: EditMessageReplyMarkupParams) => Promise<void>;
|
|
85
87
|
/** Edit a message in the chat which the message was received from. */
|
|
86
88
|
editMessageText: (messageId: number, text: string, params?: EditMessageParams) => Promise<MessageText>;
|
|
87
89
|
/** Edit the reply markup of a message in the chat which the message was received from. */
|
|
@@ -128,6 +130,7 @@ export interface Context {
|
|
|
128
130
|
kickChatMember: (memberId: ID) => Promise<void>;
|
|
129
131
|
/** Set the rights of a member of the chat which the message was received from. */
|
|
130
132
|
setChatMemberRights: (memberId: ID, params?: SetChatMemberRightsParams) => Promise<void>;
|
|
133
|
+
/** Delete all messages sent by a specific member of the chat which the message was received from. */
|
|
131
134
|
deleteChatMemberMessages: (userId: ID) => Promise<void>;
|
|
132
135
|
toJSON: () => Update;
|
|
133
136
|
}
|
|
@@ -160,12 +163,15 @@ export interface ClientParams extends ClientPlainParams {
|
|
|
160
163
|
guaranteeUpdateDelivery?: boolean;
|
|
161
164
|
/** Whether to not handle updates received when the client was not running. Defaults to `true` for bots, and `false` for users. */
|
|
162
165
|
dropPendingUpdates?: boolean;
|
|
166
|
+
/** Whether to store messages. Defaults to `false`. */
|
|
167
|
+
storeMessages?: boolean;
|
|
163
168
|
}
|
|
164
169
|
export declare class Client<C extends Context = Context> extends ClientAbstract {
|
|
165
170
|
#private;
|
|
166
171
|
readonly apiId: number | null;
|
|
167
172
|
readonly apiHash: string | null;
|
|
168
173
|
readonly storage: Storage;
|
|
174
|
+
readonly messageStorage: Storage;
|
|
169
175
|
readonly appVersion: string;
|
|
170
176
|
readonly deviceModel: string;
|
|
171
177
|
readonly langCode: string;
|
|
@@ -268,6 +274,14 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
268
274
|
* @returns The edited text message.
|
|
269
275
|
*/
|
|
270
276
|
editMessageText(chatId: ID, messageId: number, text: string, params?: EditMessageParams): Promise<MessageText>;
|
|
277
|
+
/**
|
|
278
|
+
* Edit an inline message's text.
|
|
279
|
+
*
|
|
280
|
+
* @method
|
|
281
|
+
* @param inlineMessageId The inline message's identifier.
|
|
282
|
+
* @param text The new text of the message.
|
|
283
|
+
*/
|
|
284
|
+
editInlineMessageText(inlineMessageId: string, text: string, params?: EditMessageParams): Promise<void>;
|
|
271
285
|
/**
|
|
272
286
|
* Edit a message's reply markup.
|
|
273
287
|
*
|
|
@@ -277,6 +291,13 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
277
291
|
* @returns The edited message.
|
|
278
292
|
*/
|
|
279
293
|
editMessageReplyMarkup(chatId: ID, messageId: number, params?: EditMessageReplyMarkupParams): Promise<Message>;
|
|
294
|
+
/**
|
|
295
|
+
* Edit an inline message's reply markup.
|
|
296
|
+
*
|
|
297
|
+
* @method
|
|
298
|
+
* @param inlineMessageId The inline message's identifier.
|
|
299
|
+
*/
|
|
300
|
+
editInlineMessageReplyMarkup(inlineMessageId: string, params?: EditMessageReplyMarkupParams): Promise<void>;
|
|
280
301
|
/**
|
|
281
302
|
* Retrieve multiple messages.
|
|
282
303
|
*
|
|
@@ -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 _Client_instances, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_parseMode, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_setAuth, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop,
|
|
13
|
+
var _Client_instances, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_parseMode, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_storeMessages, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_setAuth, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_pingLoop, _Client_pingLoopStarted, _Client_autoStarted, _Client_lastMsgId, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe, _Client_handle;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Client = exports.restartAuth = exports.skipInvoke = exports.handleMigrationError = void 0;
|
|
16
16
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -92,6 +92,12 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
92
92
|
writable: true,
|
|
93
93
|
value: void 0
|
|
94
94
|
});
|
|
95
|
+
Object.defineProperty(this, "messageStorage", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
configurable: true,
|
|
98
|
+
writable: true,
|
|
99
|
+
value: void 0
|
|
100
|
+
});
|
|
95
101
|
_Client_parseMode.set(this, void 0);
|
|
96
102
|
Object.defineProperty(this, "appVersion", {
|
|
97
103
|
enumerable: true,
|
|
@@ -133,6 +139,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
133
139
|
_Client_autoStart.set(this, void 0);
|
|
134
140
|
_Client_ignoreOutgoing.set(this, void 0);
|
|
135
141
|
_Client_prefixes.set(this, void 0);
|
|
142
|
+
_Client_storeMessages.set(this, void 0);
|
|
136
143
|
_Client_namespaceProxies.set(this, (() => {
|
|
137
144
|
// deno-lint-ignore no-explicit-any
|
|
138
145
|
const proxies = {};
|
|
@@ -203,6 +210,14 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
203
210
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
204
211
|
}
|
|
205
212
|
};
|
|
213
|
+
const mustGetInlineMsgId = () => {
|
|
214
|
+
if ("chosenInlineResult" in update) {
|
|
215
|
+
if (update.chosenInlineResult.inlineMessageId) {
|
|
216
|
+
return update.chosenInlineResult.inlineMessageId;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
220
|
+
};
|
|
206
221
|
const chat_ = "messageReactions" in update ? update.messageReactions.chat : "messageReactionCount" in update ? update.messageReactionCount.chat : undefined;
|
|
207
222
|
const chat = chat_ ?? msg?.chat;
|
|
208
223
|
const from = "callbackQuery" in update ? update.callbackQuery.from : "inlineQuery" in update ? update.inlineQuery.from : "message" in update ? update.message.from : "editedMessage" in update ? update.editedMessage?.from : undefined;
|
|
@@ -351,6 +366,14 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
351
366
|
const { chatId } = mustGetMsg();
|
|
352
367
|
return this.sendChatAction(chatId, chatAction, params);
|
|
353
368
|
},
|
|
369
|
+
editInlineMessageText: (text, params) => {
|
|
370
|
+
const inlineMessageId = mustGetInlineMsgId();
|
|
371
|
+
return this.editInlineMessageText(inlineMessageId, text, params);
|
|
372
|
+
},
|
|
373
|
+
editInlineMessageReplyMarkup: (params) => {
|
|
374
|
+
const inlineMessageId = mustGetInlineMsgId();
|
|
375
|
+
return this.editInlineMessageReplyMarkup(inlineMessageId, params);
|
|
376
|
+
},
|
|
354
377
|
editMessageText: (messageId, text, params) => {
|
|
355
378
|
const { chatId } = mustGetMsg();
|
|
356
379
|
return this.editMessageText(chatId, messageId, text, params);
|
|
@@ -466,7 +489,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
466
489
|
_Client_connectionInited.set(this, false);
|
|
467
490
|
_Client_lastPropagatedAuthorizationState.set(this, null);
|
|
468
491
|
_Client_selfId.set(this, null);
|
|
469
|
-
|
|
492
|
+
_Client_pingLoopAbortController.set(this, null);
|
|
470
493
|
_Client_pingInterval.set(this, 60 * 1000); // 60 seconds
|
|
471
494
|
_Client_lastUpdates.set(this, new Date());
|
|
472
495
|
_Client_pingLoopStarted.set(this, false);
|
|
@@ -502,6 +525,12 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
502
525
|
//#region Composer
|
|
503
526
|
_Client_handle.set(this, _1_composer_js_1.skip);
|
|
504
527
|
this.storage = storage ?? new _3_storage_js_1.StorageMemory();
|
|
528
|
+
if (!(__classPrivateFieldSet(this, _Client_storeMessages, params?.storeMessages ?? false, "f"))) {
|
|
529
|
+
this.messageStorage = new _3_storage_js_1.StorageMemory();
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
this.messageStorage = this.storage;
|
|
533
|
+
}
|
|
505
534
|
__classPrivateFieldSet(this, _Client_parseMode, params?.parseMode ?? null, "f");
|
|
506
535
|
this.appVersion = params?.appVersion ?? _4_constants_js_1.APP_VERSION;
|
|
507
536
|
this.deviceModel = params?.deviceModel ?? _4_constants_js_1.DEVICE_MODEL;
|
|
@@ -517,6 +546,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
517
546
|
const c = {
|
|
518
547
|
api: this.api,
|
|
519
548
|
storage: this.storage,
|
|
549
|
+
messageStorage: this.messageStorage,
|
|
520
550
|
guaranteeUpdateDelivery: __classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f"),
|
|
521
551
|
setConnectionState: __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).bind(this),
|
|
522
552
|
resetConnectionState: () => this.stateChangeHandler(this.connected),
|
|
@@ -695,7 +725,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
695
725
|
release();
|
|
696
726
|
}
|
|
697
727
|
}
|
|
698
|
-
async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_autoStart = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_prefixes = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(),
|
|
728
|
+
async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_autoStart = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_prefixes = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_autoStarted = new WeakMap(), _Client_lastMsgId = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_handle = new WeakMap(), _Client_instances = new WeakSet(), _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
|
|
699
729
|
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
|
|
700
730
|
__classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
|
|
701
731
|
}, _Client_setAuth = async function _Client_setAuth(key) {
|
|
@@ -721,7 +751,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
721
751
|
async disconnect() {
|
|
722
752
|
__classPrivateFieldSet(this, _Client_connectionInited, false, "f");
|
|
723
753
|
await super.disconnect();
|
|
724
|
-
__classPrivateFieldGet(this,
|
|
754
|
+
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.abort();
|
|
725
755
|
}
|
|
726
756
|
/**
|
|
727
757
|
* Calls [initConnection](1) and authorizes the client with one of the following:
|
|
@@ -1072,21 +1102,29 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1072
1102
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
1073
1103
|
}
|
|
1074
1104
|
}, _Client_pingLoop = async function _Client_pingLoop() {
|
|
1075
|
-
__classPrivateFieldSet(this,
|
|
1105
|
+
__classPrivateFieldSet(this, _Client_pingLoopAbortController, new AbortController(), "f");
|
|
1076
1106
|
while (this.connected) {
|
|
1077
1107
|
try {
|
|
1078
1108
|
await new Promise((resolve, reject) => {
|
|
1079
|
-
setTimeout(resolve, __classPrivateFieldGet(this, _Client_pingInterval, "f"));
|
|
1080
|
-
__classPrivateFieldGet(this,
|
|
1081
|
-
reject(__classPrivateFieldGet(this,
|
|
1109
|
+
const timeout = setTimeout(resolve, __classPrivateFieldGet(this, _Client_pingInterval, "f"));
|
|
1110
|
+
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.onabort = () => {
|
|
1111
|
+
reject(__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.signal.reason);
|
|
1112
|
+
clearTimeout(timeout);
|
|
1082
1113
|
};
|
|
1083
1114
|
});
|
|
1115
|
+
if (!this.connected) {
|
|
1116
|
+
continue;
|
|
1117
|
+
}
|
|
1118
|
+
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
|
|
1084
1119
|
await this.api.ping_delay_disconnect({ ping_id: (0, _1_utilities_js_1.getRandomId)(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") / 1000 + 15 });
|
|
1085
1120
|
if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 * 60 * 1000) {
|
|
1086
1121
|
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("lastUpdates"));
|
|
1087
1122
|
}
|
|
1088
1123
|
}
|
|
1089
1124
|
catch (err) {
|
|
1125
|
+
if (!this.connected) {
|
|
1126
|
+
continue;
|
|
1127
|
+
}
|
|
1090
1128
|
d("ping loop error: %o", err);
|
|
1091
1129
|
}
|
|
1092
1130
|
}
|
|
@@ -1171,64 +1209,56 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1171
1209
|
}
|
|
1172
1210
|
if (typeof id === "string") {
|
|
1173
1211
|
id = (0, _0_utilities_js_1.getUsername)(id);
|
|
1174
|
-
let
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
if (type == "user") {
|
|
1180
|
-
userId = id;
|
|
1181
|
-
}
|
|
1182
|
-
else {
|
|
1183
|
-
channelId = id;
|
|
1184
|
-
}
|
|
1212
|
+
let resolvedId = 0;
|
|
1213
|
+
const maybeUsername = await this.messageStorage.getUsername(id);
|
|
1214
|
+
if (maybeUsername != null && Date.now() - maybeUsername[1].getTime() < _4_constants_js_1.USERNAME_TTL) {
|
|
1215
|
+
const [id] = maybeUsername;
|
|
1216
|
+
resolvedId = id;
|
|
1185
1217
|
}
|
|
1186
1218
|
else {
|
|
1187
1219
|
const resolved = await this.api.contacts.resolveUsername({ username: id });
|
|
1188
1220
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").processChats(resolved.chats);
|
|
1189
1221
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").processUsers(resolved.users);
|
|
1190
1222
|
if (resolved.peer instanceof _2_tl_js_1.types.PeerUser) {
|
|
1191
|
-
|
|
1223
|
+
resolvedId = (0, _2_tl_js_1.peerToChatId)(resolved.peer);
|
|
1192
1224
|
}
|
|
1193
1225
|
else if (resolved.peer instanceof _2_tl_js_1.types.PeerChannel) {
|
|
1194
|
-
|
|
1226
|
+
resolvedId = (0, _2_tl_js_1.peerToChatId)(resolved.peer);
|
|
1195
1227
|
}
|
|
1196
1228
|
else {
|
|
1197
1229
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
1198
1230
|
}
|
|
1199
1231
|
}
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1232
|
+
const resolvedIdType = (0, _2_tl_js_1.getChatIdPeerType)(resolvedId);
|
|
1233
|
+
if (resolvedIdType == "user") {
|
|
1234
|
+
const accessHash = await this.messageStorage.getUserAccessHash(resolvedId);
|
|
1235
|
+
return new _2_tl_js_1.types.InputPeerUser({ user_id: (0, _2_tl_js_1.chatIdToPeerId)(resolvedId), access_hash: accessHash ?? 0n });
|
|
1203
1236
|
}
|
|
1204
|
-
else if (
|
|
1205
|
-
const accessHash = await this.
|
|
1206
|
-
return new _2_tl_js_1.types.InputPeerChannel({ channel_id:
|
|
1237
|
+
else if (resolvedIdType == "channel") {
|
|
1238
|
+
const accessHash = await this.messageStorage.getChannelAccessHash(resolvedId);
|
|
1239
|
+
return new _2_tl_js_1.types.InputPeerChannel({ channel_id: (0, _2_tl_js_1.chatIdToPeerId)(resolvedId), access_hash: accessHash ?? 0n });
|
|
1207
1240
|
}
|
|
1208
1241
|
else {
|
|
1209
1242
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
1210
1243
|
}
|
|
1211
1244
|
}
|
|
1212
1245
|
else if (id > 0) {
|
|
1213
|
-
const
|
|
1214
|
-
|
|
1215
|
-
return new _2_tl_js_1.types.InputPeerUser({ user_id: id_, access_hash: accessHash ?? 0n });
|
|
1246
|
+
const accessHash = await this.messageStorage.getUserAccessHash(id);
|
|
1247
|
+
return new _2_tl_js_1.types.InputPeerUser({ user_id: (0, _2_tl_js_1.chatIdToPeerId)(id), access_hash: accessHash ?? 0n });
|
|
1216
1248
|
}
|
|
1217
1249
|
else if (-_4_constants_js_1.MAX_CHAT_ID <= id) {
|
|
1218
1250
|
return new _2_tl_js_1.types.InputPeerChat({ chat_id: BigInt(Math.abs(id)) });
|
|
1219
1251
|
}
|
|
1220
1252
|
else if (_1_utilities_js_1.ZERO_CHANNEL_ID - _4_constants_js_1.MAX_CHANNEL_ID <= id && id != _1_utilities_js_1.ZERO_CHANNEL_ID) {
|
|
1221
|
-
const
|
|
1222
|
-
|
|
1223
|
-
return new _2_tl_js_1.types.InputPeerChannel({ channel_id: id_, access_hash: accessHash ?? 0n });
|
|
1253
|
+
const accessHash = await this.messageStorage.getChannelAccessHash(id);
|
|
1254
|
+
return new _2_tl_js_1.types.InputPeerChannel({ channel_id: (0, _2_tl_js_1.chatIdToPeerId)(id), access_hash: accessHash ?? 0n });
|
|
1224
1255
|
}
|
|
1225
1256
|
else {
|
|
1226
1257
|
throw new Error("ID format unknown or not implemented");
|
|
1227
1258
|
}
|
|
1228
1259
|
}, getEntity)](peer) {
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1231
|
-
return this.storage.getEntity(type, id);
|
|
1260
|
+
const id = (0, _2_tl_js_1.peerToChatId)(peer);
|
|
1261
|
+
return this.messageStorage.getEntity(id);
|
|
1232
1262
|
}
|
|
1233
1263
|
use(...middleware) {
|
|
1234
1264
|
const composer = new _1_composer_js_1.Composer(...middleware);
|
|
@@ -1324,6 +1354,16 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1324
1354
|
async editMessageText(chatId, messageId, text, params) {
|
|
1325
1355
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
|
|
1326
1356
|
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Edit an inline message's text.
|
|
1359
|
+
*
|
|
1360
|
+
* @method
|
|
1361
|
+
* @param inlineMessageId The inline message's identifier.
|
|
1362
|
+
* @param text The new text of the message.
|
|
1363
|
+
*/
|
|
1364
|
+
async editInlineMessageText(inlineMessageId, text, params) {
|
|
1365
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageText(inlineMessageId, text, params);
|
|
1366
|
+
}
|
|
1327
1367
|
/**
|
|
1328
1368
|
* Edit a message's reply markup.
|
|
1329
1369
|
*
|
|
@@ -1335,6 +1375,15 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1335
1375
|
async editMessageReplyMarkup(chatId, messageId, params) {
|
|
1336
1376
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageReplyMarkup(chatId, messageId, params);
|
|
1337
1377
|
}
|
|
1378
|
+
/**
|
|
1379
|
+
* Edit an inline message's reply markup.
|
|
1380
|
+
*
|
|
1381
|
+
* @method
|
|
1382
|
+
* @param inlineMessageId The inline message's identifier.
|
|
1383
|
+
*/
|
|
1384
|
+
async editInlineMessageReplyMarkup(inlineMessageId, params) {
|
|
1385
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageReplyMarkup(inlineMessageId, params);
|
|
1386
|
+
}
|
|
1338
1387
|
/**
|
|
1339
1388
|
* Retrieve multiple messages.
|
|
1340
1389
|
*
|
|
@@ -1870,14 +1919,14 @@ _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
|
1870
1919
|
}, _Client_handleUpdate = async function _Client_handleUpdate(update) {
|
|
1871
1920
|
const promises = new Array();
|
|
1872
1921
|
if (update instanceof _2_tl_js_1.types.UpdateUserName) {
|
|
1873
|
-
await this.
|
|
1922
|
+
await this.messageStorage.updateUsernames(Number(update.user_id), update.usernames.map((v) => v.username));
|
|
1874
1923
|
const peer = new _2_tl_js_1.types.PeerUser(update);
|
|
1875
1924
|
const entity = await this[getEntity](peer);
|
|
1876
1925
|
if (entity != null) {
|
|
1877
1926
|
entity.usernames = update.usernames;
|
|
1878
1927
|
entity.first_name = update.first_name;
|
|
1879
1928
|
entity.last_name = update.last_name;
|
|
1880
|
-
await this.
|
|
1929
|
+
await this.messageStorage.setEntity(entity);
|
|
1881
1930
|
}
|
|
1882
1931
|
}
|
|
1883
1932
|
if (_2_message_manager_js_1.MessageManager.canHandleUpdate(update)) {
|
|
@@ -1890,7 +1939,7 @@ _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
|
1890
1939
|
finally {
|
|
1891
1940
|
if ("deletedMessages" in update_) {
|
|
1892
1941
|
for (const { chatId, messageId } of update_.deletedMessages) {
|
|
1893
|
-
await this.
|
|
1942
|
+
await this.messageStorage.setMessage(chatId, messageId, null);
|
|
1894
1943
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").reassignChatLastMessage(chatId);
|
|
1895
1944
|
}
|
|
1896
1945
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.assertNotEquals = void 0;
|
|
4
|
-
|
|
5
|
+
const _constants_js_1 = require("./_constants.js");
|
|
5
6
|
const equal_js_1 = require("./equal.js");
|
|
6
7
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
8
|
/**
|
|
@@ -28,13 +29,13 @@ function assertNotEquals(actual, expected, msg) {
|
|
|
28
29
|
actualString = String(actual);
|
|
29
30
|
}
|
|
30
31
|
catch {
|
|
31
|
-
actualString =
|
|
32
|
+
actualString = _constants_js_1.CAN_NOT_DISPLAY;
|
|
32
33
|
}
|
|
33
34
|
try {
|
|
34
35
|
expectedString = String(expected);
|
|
35
36
|
}
|
|
36
37
|
catch {
|
|
37
|
-
expectedString =
|
|
38
|
+
expectedString = _constants_js_1.CAN_NOT_DISPLAY;
|
|
38
39
|
}
|
|
39
40
|
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
40
41
|
throw new assertion_error_js_1.AssertionError(`Expected actual: ${actualString} not to be: ${expectedString}${msgSuffix}`);
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
// This module is browser compatible.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.decodeBase64 = exports.encodeBase64 = void 0;
|
|
6
|
-
const _util_js_1 = require("./_util.js");
|
|
7
6
|
/**
|
|
8
7
|
* Utilities for
|
|
9
|
-
*
|
|
8
|
+
* {@link https://datatracker.ietf.org/doc/html/rfc4648#section-4 | base64}
|
|
10
9
|
* encoding and decoding.
|
|
11
10
|
*
|
|
12
11
|
* This module is browser compatible.
|
|
13
12
|
*
|
|
14
13
|
* @module
|
|
15
14
|
*/
|
|
15
|
+
const _util_js_1 = require("./_util.js");
|
|
16
16
|
const base64abc = [
|
|
17
17
|
"A",
|
|
18
18
|
"B",
|
package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/fmt/colors.d.ts
RENAMED
|
@@ -273,7 +273,7 @@ export declare function bgRgb24(str: string, color: number | Rgb): string;
|
|
|
273
273
|
*
|
|
274
274
|
* @deprecated (will be removed in 1.0.0) Use {@linkcode stripAnsiCode} instead.
|
|
275
275
|
*/
|
|
276
|
-
export declare
|
|
276
|
+
export declare function stripColor(string: string): string;
|
|
277
277
|
/**
|
|
278
278
|
* Remove ANSI escape codes from the string.
|
|
279
279
|
*
|
|
@@ -546,7 +546,10 @@ const ANSI_PATTERN = new RegExp([
|
|
|
546
546
|
*
|
|
547
547
|
* @deprecated (will be removed in 1.0.0) Use {@linkcode stripAnsiCode} instead.
|
|
548
548
|
*/
|
|
549
|
-
|
|
549
|
+
function stripColor(string) {
|
|
550
|
+
return stripAnsiCode(string);
|
|
551
|
+
}
|
|
552
|
+
exports.stripColor = stripColor;
|
|
550
553
|
/**
|
|
551
554
|
* Remove ANSI escape codes from the string.
|
|
552
555
|
*
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { db } from "./_db.js";
|
|
2
|
-
|
|
3
|
-
type
|
|
2
|
+
/** MIME-types database. */
|
|
3
|
+
export type DB = typeof db;
|
|
4
|
+
/** Maps content types to their corresponding file extensions. */
|
|
5
|
+
export type ContentTypeToExtension = {
|
|
4
6
|
[K in keyof DB]: DB[K] extends {
|
|
5
7
|
"extensions": readonly string[];
|
|
6
8
|
} ? DB[K]["extensions"][number] : never;
|
|
7
9
|
};
|
|
8
|
-
|
|
10
|
+
/** Known extension or type. Used in {@linkcode contentType}. */
|
|
11
|
+
export type KnownExtensionOrType = keyof ContentTypeToExtension | ContentTypeToExtension[keyof ContentTypeToExtension] | `.${ContentTypeToExtension[keyof ContentTypeToExtension]}`;
|
|
9
12
|
/**
|
|
10
13
|
* Given an extension or media type, return a full `Content-Type` or
|
|
11
14
|
* `Content-Disposition` header value.
|
|
@@ -26,13 +29,12 @@ type KnownExtensionOrType = keyof ContentTypeToExtension | ContentTypeToExtensio
|
|
|
26
29
|
* ```ts
|
|
27
30
|
* import { contentType } from "https://deno.land/std@$STD_VERSION/media_types/content_type.ts";
|
|
28
31
|
*
|
|
29
|
-
* contentType(".json"); //
|
|
30
|
-
* contentType("text/html"); //
|
|
31
|
-
* contentType("text/html; charset=UTF-8"); //
|
|
32
|
-
* contentType("txt"); //
|
|
32
|
+
* contentType(".json"); // "application/json; charset=UTF-8"
|
|
33
|
+
* contentType("text/html"); // "text/html; charset=UTF-8"
|
|
34
|
+
* contentType("text/html; charset=UTF-8"); // "text/html; charset=UTF-8"
|
|
35
|
+
* contentType("txt"); // "text/plain; charset=UTF-8"
|
|
33
36
|
* contentType("foo"); // undefined
|
|
34
37
|
* contentType("file.json"); // undefined
|
|
35
38
|
* ```
|
|
36
39
|
*/
|
|
37
40
|
export declare function contentType<T extends (string & {}) | KnownExtensionOrType>(extensionOrType: T): Lowercase<T> extends KnownExtensionOrType ? string : string | undefined;
|
|
38
|
-
export {};
|
|
@@ -27,10 +27,10 @@ const type_by_extension_js_1 = require("./type_by_extension.js");
|
|
|
27
27
|
* ```ts
|
|
28
28
|
* import { contentType } from "https://deno.land/std@$STD_VERSION/media_types/content_type.ts";
|
|
29
29
|
*
|
|
30
|
-
* contentType(".json"); //
|
|
31
|
-
* contentType("text/html"); //
|
|
32
|
-
* contentType("text/html; charset=UTF-8"); //
|
|
33
|
-
* contentType("txt"); //
|
|
30
|
+
* contentType(".json"); // "application/json; charset=UTF-8"
|
|
31
|
+
* contentType("text/html"); // "text/html; charset=UTF-8"
|
|
32
|
+
* contentType("text/html; charset=UTF-8"); // "text/html; charset=UTF-8"
|
|
33
|
+
* contentType("txt"); // "text/plain; charset=UTF-8"
|
|
34
34
|
* contentType("foo"); // undefined
|
|
35
35
|
* contentType("file.json"); // undefined
|
|
36
36
|
* ```
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* ```ts
|
|
9
9
|
* import { extension } from "https://deno.land/std@$STD_VERSION/media_types/extension.ts";
|
|
10
10
|
*
|
|
11
|
-
* extension("text/plain"); //
|
|
12
|
-
* extension("application/json"); //
|
|
13
|
-
* extension("text/html; charset=UTF-8"); //
|
|
11
|
+
* extension("text/plain"); // "txt"
|
|
12
|
+
* extension("application/json"); // "json"
|
|
13
|
+
* extension("text/html; charset=UTF-8"); // "html"
|
|
14
14
|
* extension("application/foo"); // undefined
|
|
15
15
|
* ```
|
|
16
16
|
*/
|