@mtkruto/node 0.1.131 → 0.1.133
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 +5 -0
- package/esm/3_types.js +5 -0
- package/esm/4_constants.d.ts +2 -2
- package/esm/4_constants.js +2 -2
- package/esm/client/0_utilities.d.ts +3 -3
- package/esm/client/0_utilities.js +3 -5
- package/esm/client/3_types.d.ts +69 -459
- package/esm/client/4_composer.d.ts +4 -4
- package/esm/client/4_composer.js +13 -1
- package/esm/client/5_client.d.ts +56 -36
- package/esm/client/5_client.js +235 -196
- package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/encoding/base64.d.ts +0 -13
- package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/encoding/base64.js +0 -13
- package/esm/deps/deno.land/std@0.210.0/path/common.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/extname.js +1 -1
- package/{script/deps/deno.land/std@0.209.0 → esm/deps/deno.land/std@0.210.0}/path/mod.d.ts +2 -2
- package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/mod.js +3 -1
- package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/separator.d.ts +1 -1
- package/esm/tl/2_types.d.ts +313 -24
- package/esm/tl/2_types.js +982 -46
- package/esm/tl/3_functions.d.ts +95 -32
- package/esm/tl/3_functions.js +227 -66
- package/esm/types/0_chat_photo.d.ts +22 -21
- package/esm/types/0_giveaway_parameters.d.ts +9 -0
- package/esm/types/0_giveaway_parameters.js +9 -0
- package/esm/types/0_message_entity.d.ts +93 -74
- package/esm/types/0_reaction.d.ts +14 -0
- package/esm/types/0_reaction.js +16 -0
- package/esm/types/1_bot_command_scope.d.ts +32 -27
- package/esm/types/1_chat_p.d.ts +76 -68
- package/esm/types/1_giveaway.d.ts +8 -0
- package/esm/types/1_giveaway.js +7 -0
- package/esm/types/1_keyboard_button.d.ts +62 -56
- package/esm/types/1_keyboard_button.js +3 -0
- package/esm/types/1_message_reaction.d.ts +14 -0
- package/esm/types/1_message_reaction.js +22 -0
- package/esm/types/1_reply_quote.d.ts +8 -0
- package/esm/types/1_reply_quote.js +11 -0
- package/esm/types/1_user.d.ts +2 -2
- package/esm/types/2_inline_keyboard_button.d.ts +44 -37
- package/esm/types/3_message.d.ts +171 -112
- package/esm/types/3_message.js +221 -120
- package/esm/types/4_chat.d.ts +32 -29
- 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 +5 -0
- package/script/3_types.js +5 -0
- package/script/4_constants.d.ts +2 -2
- package/script/4_constants.js +2 -2
- package/script/client/0_utilities.d.ts +3 -3
- package/script/client/0_utilities.js +3 -5
- package/script/client/3_types.d.ts +69 -459
- package/script/client/4_composer.d.ts +4 -4
- package/script/client/4_composer.js +13 -1
- package/script/client/5_client.d.ts +56 -36
- package/script/client/5_client.js +234 -195
- package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/encoding/base64.d.ts +0 -13
- package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/encoding/base64.js +1 -14
- package/script/deps/deno.land/std@0.210.0/path/common.d.ts +13 -0
- package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/extname.js +1 -1
- package/{esm/deps/deno.land/std@0.209.0 → script/deps/deno.land/std@0.210.0}/path/mod.d.ts +2 -2
- package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/mod.js +3 -1
- package/script/deps/deno.land/std@0.210.0/path/separator.d.ts +2 -0
- package/script/tl/2_types.d.ts +313 -24
- package/script/tl/2_types.js +1169 -217
- package/script/tl/3_functions.d.ts +95 -32
- package/script/tl/3_functions.js +241 -77
- package/script/types/0_chat_photo.d.ts +22 -21
- package/script/types/0_giveaway_parameters.d.ts +9 -0
- package/script/types/0_giveaway_parameters.js +13 -0
- package/script/types/0_message_entity.d.ts +93 -74
- package/script/types/0_reaction.d.ts +14 -0
- package/script/types/0_reaction.js +21 -0
- package/script/types/1_bot_command_scope.d.ts +32 -27
- package/script/types/1_chat_p.d.ts +76 -68
- package/script/types/1_giveaway.d.ts +8 -0
- package/script/types/1_giveaway.js +11 -0
- package/script/types/1_keyboard_button.d.ts +62 -56
- package/script/types/1_keyboard_button.js +3 -0
- package/script/types/1_message_reaction.d.ts +14 -0
- package/script/types/1_message_reaction.js +26 -0
- package/script/types/1_reply_quote.d.ts +8 -0
- package/script/types/1_reply_quote.js +15 -0
- package/script/types/1_user.d.ts +2 -2
- package/script/types/2_inline_keyboard_button.d.ts +44 -37
- package/script/types/3_message.d.ts +171 -112
- package/script/types/3_message.js +223 -121
- package/script/types/4_chat.d.ts +32 -29
- package/script/deps/deno.land/std@0.209.0/path/posix/common.d.ts +0 -13
- package/script/deps/deno.land/std@0.209.0/path/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.209.0/path/windows/common.d.ts +0 -13
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0/path → std@0.210.0/path/posix}/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0/path/posix → std@0.210.0/path/windows}/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/basename.js +0 -0
- /package/{esm/deps/deno.land/std@0.209.0/path/windows → script/deps/deno.land/std@0.210.0/path/posix}/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0/path → std@0.210.0/path/windows}/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.209.0 → std@0.210.0}/path/windows/to_namespaced_path.js +0 -0
|
@@ -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, _a, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_updateState, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_storageInited, _Client_setAuth, _Client_authKeyWasCreated, _Client_connectMutex, _Client_assertUser, _Client_assertBot, _Client_fetchState, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop, _Client_pingLoopAbortSignal, _Client_pingInterval, _Client_pingLoop, _Client_pingLoopStarted, _Client_autoStarted, _Client_lastMsgId, _Client_invoke, _Client_handleInvokeError, _Client_processChats, _Client_processUsers, _Client_handleUpdateQueue, _Client_processUpdatesQueue, _Client_checkGap, _Client_checkChannelGap, _Client_lastUpdates, _Client_processUpdates, _Client_setUpdateStateDate, _Client_setUpdatePts, _Client_getLocalState, _Client_recoverUpdateGap, _Client_recoverChannelUpdateGap, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_updatesToMessages, _Client_resolveSendAs, _Client_parseText, _Client_getMessagesInner, _Client_downloadInner, _Client_lastGetMe, _Client_getMe, _Client_handleUpdate, _Client_usernameResolver, _Client_constructReplyMarkup,
|
|
13
|
+
var _Client_instances, _a, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_updateState, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_storageInited, _Client_setAuth, _Client_authKeyWasCreated, _Client_connectMutex, _Client_assertUser, _Client_assertBot, _Client_fetchState, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop, _Client_pingLoopAbortSignal, _Client_pingInterval, _Client_pingLoop, _Client_pingLoopStarted, _Client_autoStarted, _Client_lastMsgId, _Client_invoke, _Client_handleInvokeError, _Client_processChats, _Client_processUsers, _Client_handleUpdateQueue, _Client_processUpdatesQueue, _Client_checkGap, _Client_checkChannelGap, _Client_channelUpdateQueues, _Client_processChannelUpdate, _Client_queueChannelUpdate, _Client_handlePtsUpdate, _Client_ptsUpdateQueue, _Client_queuePtsUpdate, _Client_lastUpdates, _Client_processUpdates, _Client_setUpdateStateDate, _Client_setUpdatePts, _Client_getLocalState, _Client_recoverUpdateGap, _Client_recoverChannelUpdateGap, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_updatesToMessages, _Client_resolveSendAs, _Client_constructReplyTo, _Client_parseText, _Client_getMessagesInner, _Client_downloadInner, _Client_lastGetMe, _Client_getMe, _Client_handleUpdate, _Client_usernameResolver, _Client_constructReplyMarkup, _Client_handle, _Client_setMyInfo, _Client_getMyInfo, _Client_resolveFileId, _Client_sendMedia, _Client_sendDocumentInner, _Client_sendChatUpdate, _Client_reassignChatLastMessage, _Client_chats, _Client_archivedChats, _Client_chatsLoadedFromStorage, _Client_tryGetChatId, _Client_getChatAnywhere, _Client_getChatList, _Client_loadChatsFromStorage, _Client_getLoadedChats, _Client_pinnedChats, _Client_pinnedArchiveChats, _Client_storageHadPinnedChats, _Client_pinnedChatsLoaded, _Client_loadPinnedChats, _Client_fetchPinnedChats, _Client_getPinnedChats, _Client_updateOrAddChat, _Client_removeChat, _Client_updatePinnedChats, _Client_fetchChats;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Client = exports.ConnectionError = exports.restartAuth = exports.skipInvoke = exports.handleMigrationError = void 0;
|
|
16
16
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -203,14 +203,17 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
203
203
|
return replyToMessageId;
|
|
204
204
|
};
|
|
205
205
|
const me = update.connectionState !== undefined ? __classPrivateFieldGet(this, _Client_lastGetMe, "f") : (update.authorizationState !== undefined && !update.authorizationState.authorized) ? __classPrivateFieldGet(this, _Client_lastGetMe, "f") : await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMe).call(this);
|
|
206
|
-
|
|
206
|
+
const context = {
|
|
207
207
|
...update,
|
|
208
208
|
client: this,
|
|
209
|
-
me: me == null ? undefined : me,
|
|
210
|
-
msg,
|
|
211
|
-
chat,
|
|
212
|
-
from,
|
|
213
|
-
senderChat,
|
|
209
|
+
me: (me == null ? undefined : me),
|
|
210
|
+
msg: msg,
|
|
211
|
+
chat: chat,
|
|
212
|
+
from: from,
|
|
213
|
+
senderChat: senderChat,
|
|
214
|
+
get toJSON() {
|
|
215
|
+
return () => update;
|
|
216
|
+
},
|
|
214
217
|
reply: (text, params) => {
|
|
215
218
|
const effectiveMessage = mustGetMsg();
|
|
216
219
|
const replyToMessageId = getReplyToMessageId(params?.quote, effectiveMessage);
|
|
@@ -251,10 +254,10 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
251
254
|
const replyToMessageId = getReplyToMessageId(params?.quote, effectiveMessage);
|
|
252
255
|
return this.sendVenue(effectiveMessage.chat.id, latitude, longitude, title, address, { ...params, replyToMessageId });
|
|
253
256
|
},
|
|
254
|
-
replyVideo: (
|
|
257
|
+
replyVideo: (video, params) => {
|
|
255
258
|
const effectiveMessage = mustGetMsg();
|
|
256
259
|
const replyToMessageId = getReplyToMessageId(params?.quote, effectiveMessage);
|
|
257
|
-
return this.
|
|
260
|
+
return this.sendVideo(effectiveMessage.chat.id, video, { ...params, replyToMessageId });
|
|
258
261
|
},
|
|
259
262
|
replyAnimation: (document, params) => {
|
|
260
263
|
const effectiveMessage = mustGetMsg();
|
|
@@ -330,10 +333,16 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
330
333
|
const effectiveMessage = mustGetMsg();
|
|
331
334
|
return this.deleteMessages(effectiveMessage.chat.id, messageIds, params);
|
|
332
335
|
},
|
|
333
|
-
|
|
334
|
-
|
|
336
|
+
setAvailableReactions: (availableReactions) => {
|
|
337
|
+
const effectiveMessage = mustGetMsg();
|
|
338
|
+
return this.setAvailableReactions(effectiveMessage.chat.id, availableReactions);
|
|
335
339
|
},
|
|
336
|
-
|
|
340
|
+
addReaction: (messageId, reaction, params) => {
|
|
341
|
+
const effectiveMessage = mustGetMsg();
|
|
342
|
+
return this.addReaction(effectiveMessage.chat.id, messageId, reaction, params);
|
|
343
|
+
},
|
|
344
|
+
};
|
|
345
|
+
return (0, _1_utilities_js_1.cleanObject)(context, false);
|
|
337
346
|
});
|
|
338
347
|
_Client_lastPropagatedConnectionState.set(this, null);
|
|
339
348
|
Object.defineProperty(this, "stateChangeHandler", {
|
|
@@ -393,6 +402,8 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
393
402
|
});
|
|
394
403
|
_Client_handleUpdateQueue.set(this, new _1_utilities_js_1.Queue("handleUpdate"));
|
|
395
404
|
_Client_processUpdatesQueue.set(this, new _1_utilities_js_1.Queue("processUpdates"));
|
|
405
|
+
_Client_channelUpdateQueues.set(this, new Map());
|
|
406
|
+
_Client_ptsUpdateQueue.set(this, new _1_utilities_js_1.Queue("ptsUpdate"));
|
|
396
407
|
_Client_lastUpdates.set(this, new Date());
|
|
397
408
|
_Client_lastGetMe.set(this, null);
|
|
398
409
|
_Client_usernameResolver.set(this, async (v) => {
|
|
@@ -549,7 +560,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
549
560
|
release();
|
|
550
561
|
}
|
|
551
562
|
}
|
|
552
|
-
async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_updateState = 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_authKeyWasCreated = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopAbortSignal = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_autoStarted = new WeakMap(), _Client_lastMsgId = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_handleUpdateQueue = new WeakMap(), _Client_processUpdatesQueue = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_usernameResolver = new WeakMap(), _Client_handle = new WeakMap(), _Client_chats = new WeakMap(), _Client_archivedChats = new WeakMap(), _Client_chatsLoadedFromStorage = new WeakMap(), _Client_pinnedChats = new WeakMap(), _Client_pinnedArchiveChats = new WeakMap(), _Client_storageHadPinnedChats = new WeakMap(), _Client_pinnedChatsLoaded = new WeakMap(), _Client_instances = new WeakSet(), _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
|
|
563
|
+
async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_updateState = 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_authKeyWasCreated = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopAbortSignal = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_autoStarted = new WeakMap(), _Client_lastMsgId = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_handleUpdateQueue = new WeakMap(), _Client_processUpdatesQueue = new WeakMap(), _Client_channelUpdateQueues = new WeakMap(), _Client_ptsUpdateQueue = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_usernameResolver = new WeakMap(), _Client_handle = new WeakMap(), _Client_chats = new WeakMap(), _Client_archivedChats = new WeakMap(), _Client_chatsLoadedFromStorage = new WeakMap(), _Client_pinnedChats = new WeakMap(), _Client_pinnedArchiveChats = new WeakMap(), _Client_storageHadPinnedChats = new WeakMap(), _Client_pinnedChatsLoaded = new WeakMap(), _Client_instances = new WeakSet(), _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
|
|
553
564
|
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
554
565
|
await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { connectionState }), _0_utilities_js_1.resolve);
|
|
555
566
|
});
|
|
@@ -1076,9 +1087,61 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1076
1087
|
if (localPts + ptsCount < pts) {
|
|
1077
1088
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverChannelUpdateGap).call(this, channelId, "processUpdates");
|
|
1078
1089
|
}
|
|
1090
|
+
}, _Client_processChannelUpdate = async function _Client_processChannelUpdate(update, checkGap) {
|
|
1091
|
+
const channelId = update instanceof _2_tl_js_1.types.UpdateNewChannelMessage || update instanceof _2_tl_js_1.types.UpdateEditChannelMessage ? update.message.peer_id[_2_tl_js_1.as](_2_tl_js_1.types.PeerChannel).channel_id : update.channel_id;
|
|
1092
|
+
if (update instanceof _2_tl_js_1.types.UpdateChannelTooLong) {
|
|
1093
|
+
if (update.pts != undefined) {
|
|
1094
|
+
await this.storage.setChannelPts(channelId, update.pts);
|
|
1095
|
+
}
|
|
1096
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverChannelUpdateGap).call(this, channelId, "updateChannelTooLong");
|
|
1097
|
+
return;
|
|
1098
|
+
}
|
|
1099
|
+
if (update.pts != 0) {
|
|
1100
|
+
const ptsCount = update.pts_count;
|
|
1101
|
+
if (checkGap) {
|
|
1102
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkChannelGap).call(this, channelId, update.pts, ptsCount);
|
|
1103
|
+
}
|
|
1104
|
+
let currentPts = await this.storage.getChannelPts(channelId);
|
|
1105
|
+
currentPts ??= update.pts - ptsCount;
|
|
1106
|
+
if (currentPts + ptsCount > update.pts) {
|
|
1107
|
+
return;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
await this.storage.setChannelPts(channelId, update.pts);
|
|
1111
|
+
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
1112
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).call(this, update);
|
|
1113
|
+
});
|
|
1114
|
+
}, _Client_queueChannelUpdate = function _Client_queueChannelUpdate(update, checkGap) {
|
|
1115
|
+
const channelId = update instanceof _2_tl_js_1.types.UpdateNewChannelMessage || update instanceof _2_tl_js_1.types.UpdateEditChannelMessage ? update.message.peer_id[_2_tl_js_1.as](_2_tl_js_1.types.PeerChannel).channel_id : update.channel_id;
|
|
1116
|
+
let queue = __classPrivateFieldGet(this, _Client_channelUpdateQueues, "f").get(channelId);
|
|
1117
|
+
if (queue == undefined) {
|
|
1118
|
+
queue = new _1_utilities_js_1.Queue(`channelUpdates-${channelId}`);
|
|
1119
|
+
__classPrivateFieldGet(this, _Client_channelUpdateQueues, "f").set(channelId, queue);
|
|
1120
|
+
}
|
|
1121
|
+
queue.add(async () => {
|
|
1122
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_processChannelUpdate).call(this, update, checkGap);
|
|
1123
|
+
});
|
|
1124
|
+
}, _Client_handlePtsUpdate = async function _Client_handlePtsUpdate(update, checkGap) {
|
|
1125
|
+
const localState = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getLocalState).call(this);
|
|
1126
|
+
if (update.pts != 0) {
|
|
1127
|
+
if (checkGap) {
|
|
1128
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkGap).call(this, update.pts, update.pts_count);
|
|
1129
|
+
}
|
|
1130
|
+
if (localState.pts + update.pts_count > update.pts) {
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdatePts).call(this, update.pts);
|
|
1135
|
+
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
1136
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).call(this, update);
|
|
1137
|
+
});
|
|
1138
|
+
}, _Client_queuePtsUpdate = function _Client_queuePtsUpdate(update, checkGap) {
|
|
1139
|
+
__classPrivateFieldGet(this, _Client_ptsUpdateQueue, "f").add(async () => {
|
|
1140
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handlePtsUpdate).call(this, update, checkGap);
|
|
1141
|
+
});
|
|
1079
1142
|
}, _Client_processUpdates = async function _Client_processUpdates(updates_, checkGap) {
|
|
1080
1143
|
__classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
|
|
1081
|
-
/// First, individual updates (Update[1])
|
|
1144
|
+
/// First, individual updates (Update[1]) are extracted from Updates.[2]
|
|
1082
1145
|
///
|
|
1083
1146
|
/// If an updatesTooLong[3] was received, an update gap recovery is initiated and no further action will be taken.
|
|
1084
1147
|
///
|
|
@@ -1099,14 +1162,14 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1099
1162
|
const localState = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getLocalState).call(this);
|
|
1100
1163
|
const localSeq = localState.seq;
|
|
1101
1164
|
if (localSeq + 1 == seqStart) {
|
|
1102
|
-
// The
|
|
1165
|
+
// The update sequence can be applied.
|
|
1103
1166
|
localState.seq = seq;
|
|
1104
1167
|
localState.date = updates_.date;
|
|
1105
1168
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdateStateDate).call(this, updates_.date);
|
|
1106
1169
|
await this.storage.setState(localState);
|
|
1107
1170
|
}
|
|
1108
1171
|
else if (localSeq + 1 > seqStart) {
|
|
1109
|
-
// The
|
|
1172
|
+
// The update sequence was already applied, and must be ignored.
|
|
1110
1173
|
d("localSeq + 1 > seqStart");
|
|
1111
1174
|
return;
|
|
1112
1175
|
}
|
|
@@ -1120,10 +1183,53 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1120
1183
|
else if (updates_ instanceof _2_tl_js_1.types.UpdateShort) {
|
|
1121
1184
|
updates = [updates_.update];
|
|
1122
1185
|
}
|
|
1123
|
-
else if (updates_ instanceof _2_tl_js_1.types.UpdateShortMessage
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1186
|
+
else if (updates_ instanceof _2_tl_js_1.types.UpdateShortMessage) {
|
|
1187
|
+
updates = [
|
|
1188
|
+
new _2_tl_js_1.types.UpdateNewMessage({
|
|
1189
|
+
message: new _2_tl_js_1.types.Message({
|
|
1190
|
+
out: updates_.out,
|
|
1191
|
+
mentioned: updates_.mentioned,
|
|
1192
|
+
media_unread: updates_.media_unread,
|
|
1193
|
+
silent: updates_.silent,
|
|
1194
|
+
id: updates_.id,
|
|
1195
|
+
from_id: updates_.out ? new _2_tl_js_1.types.PeerUser({ user_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this).then(BigInt) }) : new _2_tl_js_1.types.PeerUser({ user_id: updates_.user_id }),
|
|
1196
|
+
peer_id: new _2_tl_js_1.types.PeerUser({ user_id: updates_.user_id }),
|
|
1197
|
+
message: updates_.message,
|
|
1198
|
+
date: updates_.date,
|
|
1199
|
+
fwd_from: updates_.fwd_from,
|
|
1200
|
+
via_bot_id: updates_.via_bot_id,
|
|
1201
|
+
reply_to: updates_.reply_to,
|
|
1202
|
+
entities: updates_.entities,
|
|
1203
|
+
ttl_period: updates_.ttl_period,
|
|
1204
|
+
}),
|
|
1205
|
+
pts: updates_.pts,
|
|
1206
|
+
pts_count: updates_.pts_count,
|
|
1207
|
+
}),
|
|
1208
|
+
];
|
|
1209
|
+
}
|
|
1210
|
+
else if (updates_ instanceof _2_tl_js_1.types.UpdateShortChatMessage) {
|
|
1211
|
+
updates = [
|
|
1212
|
+
new _2_tl_js_1.types.UpdateNewMessage({
|
|
1213
|
+
message: new _2_tl_js_1.types.Message({
|
|
1214
|
+
out: updates_.out,
|
|
1215
|
+
mentioned: updates_.mentioned,
|
|
1216
|
+
media_unread: updates_.media_unread,
|
|
1217
|
+
silent: updates_.silent,
|
|
1218
|
+
id: updates_.id,
|
|
1219
|
+
from_id: new _2_tl_js_1.types.PeerUser({ user_id: updates_.from_id }),
|
|
1220
|
+
peer_id: new _2_tl_js_1.types.PeerChat({ chat_id: updates_.chat_id }),
|
|
1221
|
+
fwd_from: updates_.fwd_from,
|
|
1222
|
+
via_bot_id: updates_.via_bot_id,
|
|
1223
|
+
reply_to: updates_.reply_to,
|
|
1224
|
+
date: updates_.date,
|
|
1225
|
+
message: updates_.message,
|
|
1226
|
+
entities: updates_.entities,
|
|
1227
|
+
ttl_period: updates_.ttl_period,
|
|
1228
|
+
}),
|
|
1229
|
+
pts: updates_.pts,
|
|
1230
|
+
pts_count: updates_.pts_count,
|
|
1231
|
+
}),
|
|
1232
|
+
];
|
|
1127
1233
|
}
|
|
1128
1234
|
else if (updates_ instanceof _2_tl_js_1.types.UpdatesTooLong) {
|
|
1129
1235
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverUpdateGap).call(this, "updatesTooLong");
|
|
@@ -1135,86 +1241,20 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1135
1241
|
else {
|
|
1136
1242
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
1137
1243
|
}
|
|
1138
|
-
/// Then, we go through each Update and updateShort*, and see if they are order-sensitive.
|
|
1139
|
-
/// If they were, we check the local state to see if it is OK to process them right away.
|
|
1140
|
-
///
|
|
1141
|
-
/// If we there was a gap, a recovery process will be initiated and the processing will be postponed.
|
|
1142
|
-
let localState = null;
|
|
1143
|
-
let originalPts = null;
|
|
1144
|
-
const channelPtsMap = new Map();
|
|
1145
|
-
for (const update of updates) {
|
|
1146
|
-
if ((0, _0_utilities_js_1.isPtsUpdate)(update)) {
|
|
1147
|
-
if (update.pts == 0) {
|
|
1148
|
-
continue;
|
|
1149
|
-
}
|
|
1150
|
-
if (checkGap) {
|
|
1151
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkGap).call(this, update.pts, update.pts_count);
|
|
1152
|
-
}
|
|
1153
|
-
localState ??= await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getLocalState).call(this);
|
|
1154
|
-
originalPts ??= localState.pts;
|
|
1155
|
-
if (localState.pts + update.pts_count > update.pts) {
|
|
1156
|
-
updates = updates.filter((v) => v != update);
|
|
1157
|
-
}
|
|
1158
|
-
else {
|
|
1159
|
-
localState.pts = update.pts;
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
else if ((0, _0_utilities_js_1.isChannelPtsUpdate)(update)) {
|
|
1163
|
-
if (update.pts == 0) {
|
|
1164
|
-
continue;
|
|
1165
|
-
}
|
|
1166
|
-
const ptsCount = update.pts_count;
|
|
1167
|
-
const channelId = update instanceof _2_tl_js_1.types.UpdateNewChannelMessage || update instanceof _2_tl_js_1.types.UpdateEditChannelMessage ? update.message.peer_id[_2_tl_js_1.as](_2_tl_js_1.types.PeerChannel).channel_id : update.channel_id;
|
|
1168
|
-
if (checkGap) {
|
|
1169
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkChannelGap).call(this, channelId, update.pts, ptsCount);
|
|
1170
|
-
}
|
|
1171
|
-
let currentPts = channelPtsMap.get(channelId);
|
|
1172
|
-
if (currentPts === undefined) {
|
|
1173
|
-
currentPts = await this.storage.getChannelPts(channelId);
|
|
1174
|
-
}
|
|
1175
|
-
currentPts ??= update.pts - ptsCount;
|
|
1176
|
-
if (currentPts + ptsCount > update.pts) {
|
|
1177
|
-
updates = updates.filter((v) => v != update);
|
|
1178
|
-
}
|
|
1179
|
-
else {
|
|
1180
|
-
channelPtsMap.set(channelId, update.pts);
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
1244
|
/// We process the updates when we are sure there is no gap.
|
|
1185
1245
|
if (updates_ instanceof _2_tl_js_1.types.Updates || updates_ instanceof _2_tl_js_1.types.UpdatesCombined) {
|
|
1186
1246
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_processChats).call(this, updates_.chats);
|
|
1187
1247
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_processUsers).call(this, updates_.users);
|
|
1188
1248
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdateStateDate).call(this, updates_.date);
|
|
1189
1249
|
}
|
|
1190
|
-
else if (updates_ instanceof _2_tl_js_1.types.UpdateShort
|
|
1250
|
+
else if (updates_ instanceof _2_tl_js_1.types.UpdateShort ||
|
|
1251
|
+
updates_ instanceof _2_tl_js_1.types.UpdateShortMessage ||
|
|
1252
|
+
updates_ instanceof _2_tl_js_1.types.UpdateShortChatMessage ||
|
|
1253
|
+
updates_ instanceof _2_tl_js_1.types.UpdateShortSentMessage) {
|
|
1191
1254
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdateStateDate).call(this, updates_.date);
|
|
1192
1255
|
}
|
|
1193
|
-
const updatesToHandle = new Array();
|
|
1194
1256
|
for (const update of updates) {
|
|
1195
|
-
if (update instanceof _2_tl_js_1.types.
|
|
1196
|
-
update instanceof _2_tl_js_1.types.UpdateShortChatMessage ||
|
|
1197
|
-
update instanceof _2_tl_js_1.types.UpdateShortSentMessage) {
|
|
1198
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdateStateDate).call(this, update.date);
|
|
1199
|
-
}
|
|
1200
|
-
else if (update instanceof _2_tl_js_1.types.UpdateChannelTooLong) {
|
|
1201
|
-
if (update.pts != undefined) {
|
|
1202
|
-
await this.storage.setChannelPts(update.channel_id, update.pts);
|
|
1203
|
-
}
|
|
1204
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverChannelUpdateGap).call(this, update.channel_id, "updateChannelTooLong");
|
|
1205
|
-
}
|
|
1206
|
-
else if (update instanceof _2_tl_js_1.types.UpdateUserName) {
|
|
1207
|
-
await this.storage.updateUsernames("user", update.user_id, update.usernames.map((v) => v.username));
|
|
1208
|
-
const peer = new _2_tl_js_1.types.PeerUser(update);
|
|
1209
|
-
const entity = await this[getEntity](peer);
|
|
1210
|
-
if (entity != null) {
|
|
1211
|
-
entity.usernames = update.usernames;
|
|
1212
|
-
entity.first_name = update.first_name;
|
|
1213
|
-
entity.last_name = update.last_name;
|
|
1214
|
-
await this.storage.setEntity(entity);
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
else if (update instanceof _2_tl_js_1.types.UpdatePtsChanged) {
|
|
1257
|
+
if (update instanceof _2_tl_js_1.types.UpdatePtsChanged) {
|
|
1218
1258
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_fetchState).call(this, "updatePtsChanged");
|
|
1219
1259
|
if (__classPrivateFieldGet(this, _Client_updateState, "f")) {
|
|
1220
1260
|
await this.storage.setState(__classPrivateFieldGet(this, _Client_updateState, "f"));
|
|
@@ -1223,31 +1263,18 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1223
1263
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
1224
1264
|
}
|
|
1225
1265
|
}
|
|
1226
|
-
if ((0, _0_utilities_js_1.isPtsUpdate)(update)) {
|
|
1227
|
-
|
|
1266
|
+
else if ((0, _0_utilities_js_1.isPtsUpdate)(update)) {
|
|
1267
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queuePtsUpdate).call(this, update, checkGap);
|
|
1228
1268
|
}
|
|
1229
1269
|
else if ((0, _0_utilities_js_1.isChannelPtsUpdate)(update)) {
|
|
1230
|
-
|
|
1231
|
-
if ("channel_id" in update) {
|
|
1232
|
-
channelId = update.channel_id;
|
|
1233
|
-
}
|
|
1234
|
-
else if ("peer_id" in update.message && update.message.peer_id !== undefined && "channel_id" in update.message.peer_id) {
|
|
1235
|
-
channelId = update.message.peer_id.channel_id;
|
|
1236
|
-
}
|
|
1237
|
-
if (channelId != null) {
|
|
1238
|
-
await this.storage.setChannelPts(channelId, update.pts);
|
|
1239
|
-
}
|
|
1270
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueChannelUpdate).call(this, update, checkGap);
|
|
1240
1271
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1272
|
+
else {
|
|
1273
|
+
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
1274
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).call(this, update);
|
|
1275
|
+
});
|
|
1244
1276
|
}
|
|
1245
1277
|
}
|
|
1246
|
-
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
1247
|
-
for (const update of updatesToHandle) {
|
|
1248
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).call(this, update);
|
|
1249
|
-
}
|
|
1250
|
-
});
|
|
1251
1278
|
}, _Client_setUpdateStateDate = async function _Client_setUpdateStateDate(date) {
|
|
1252
1279
|
const localState = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getLocalState).call(this);
|
|
1253
1280
|
localState.date = date;
|
|
@@ -1509,8 +1536,6 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1509
1536
|
const noWebpage = params?.disableWebPagePreview ? true : undefined;
|
|
1510
1537
|
const silent = params?.disableNotification ? true : undefined;
|
|
1511
1538
|
const noforwards = params?.protectContent ? true : undefined;
|
|
1512
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
1513
|
-
const topMsgId = params?.messageThreadId;
|
|
1514
1539
|
const sendAs = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_resolveSendAs).call(this, params);
|
|
1515
1540
|
const result = await this.api.messages.sendMessage({
|
|
1516
1541
|
peer,
|
|
@@ -1519,13 +1544,13 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1519
1544
|
no_webpage: noWebpage,
|
|
1520
1545
|
silent,
|
|
1521
1546
|
noforwards,
|
|
1522
|
-
reply_to:
|
|
1547
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
1523
1548
|
send_as: sendAs,
|
|
1524
1549
|
entities,
|
|
1525
1550
|
reply_markup: replyMarkup,
|
|
1526
1551
|
});
|
|
1527
1552
|
const message_ = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
1528
|
-
return
|
|
1553
|
+
return (0, _3_types_js_1.assertMessageType)(message_, "text");
|
|
1529
1554
|
}
|
|
1530
1555
|
/**
|
|
1531
1556
|
* Edit a message's text.
|
|
@@ -1547,7 +1572,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1547
1572
|
reply_markup: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params),
|
|
1548
1573
|
});
|
|
1549
1574
|
const message_ = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
1550
|
-
return
|
|
1575
|
+
return (0, _3_types_js_1.assertMessageType)(message_, "text");
|
|
1551
1576
|
}
|
|
1552
1577
|
/**
|
|
1553
1578
|
* Retrieve multiple messages.
|
|
@@ -1591,6 +1616,10 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1591
1616
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_assertUser).call(this, "sendAs");
|
|
1592
1617
|
return sendAs ? await this.getInputPeer(sendAs) : undefined;
|
|
1593
1618
|
}
|
|
1619
|
+
}, _Client_constructReplyTo = function _Client_constructReplyTo(params) {
|
|
1620
|
+
const topMsgId = params?.messageThreadId;
|
|
1621
|
+
const replyToMsgId = params?.replyToMessageId;
|
|
1622
|
+
return replyToMsgId !== undefined ? new _2_tl_js_1.types.InputReplyToMessage({ reply_to_msg_id: replyToMsgId, top_msg_id: topMsgId, quote_text: params?.replyQuote?.text, quote_entities: params?.replyQuote?.entities.map(_3_types_js_1.messageEntityToTlObject), quote_offset: params?.replyQuote?.offset }) : undefined;
|
|
1594
1623
|
}, _Client_parseText = function _Client_parseText(text, params) {
|
|
1595
1624
|
const entities_ = params?.entities ?? [];
|
|
1596
1625
|
const parseMode = params?.parseMode ?? this.parseMode;
|
|
@@ -1895,8 +1924,6 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1895
1924
|
const randomId = (0, _1_utilities_js_1.getRandomId)();
|
|
1896
1925
|
const silent = params?.disableNotification ? true : undefined;
|
|
1897
1926
|
const noforwards = params?.protectContent ? true : undefined;
|
|
1898
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
1899
|
-
const topMsgId = params?.messageThreadId;
|
|
1900
1927
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
1901
1928
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
1902
1929
|
const explanation = params?.explanation;
|
|
@@ -1927,13 +1954,13 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
1927
1954
|
silent,
|
|
1928
1955
|
noforwards,
|
|
1929
1956
|
reply_markup: replyMarkup,
|
|
1930
|
-
reply_to:
|
|
1957
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
1931
1958
|
send_as: sendAs,
|
|
1932
1959
|
media,
|
|
1933
1960
|
message: "",
|
|
1934
1961
|
});
|
|
1935
1962
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
1936
|
-
return
|
|
1963
|
+
return (0, _3_types_js_1.assertMessageType)(message, "poll");
|
|
1937
1964
|
}
|
|
1938
1965
|
/**
|
|
1939
1966
|
* Send a chat action.
|
|
@@ -2141,9 +2168,19 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2141
2168
|
}
|
|
2142
2169
|
on(filter, ...middleawre) {
|
|
2143
2170
|
const type = typeof filter === "string" ? filter : filter[0];
|
|
2144
|
-
|
|
2171
|
+
let keys = Array.isArray(filter) ? filter.slice(1) : [];
|
|
2172
|
+
let messageType = null;
|
|
2173
|
+
if (type == "message") {
|
|
2174
|
+
messageType = keys[0];
|
|
2175
|
+
keys = keys.slice(1);
|
|
2176
|
+
}
|
|
2145
2177
|
return this.filter((ctx) => {
|
|
2146
2178
|
if (type in ctx) {
|
|
2179
|
+
if (messageType != null) {
|
|
2180
|
+
// deno-lint-ignore ban-ts-comment
|
|
2181
|
+
// @ts-ignore
|
|
2182
|
+
(0, _3_types_js_1.assertMessageType)(ctx[type], messageType);
|
|
2183
|
+
}
|
|
2147
2184
|
if (keys.length > 0) {
|
|
2148
2185
|
for (const key of keys) {
|
|
2149
2186
|
// deno-lint-ignore ban-ts-comment
|
|
@@ -2158,6 +2195,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2158
2195
|
else {
|
|
2159
2196
|
return false;
|
|
2160
2197
|
}
|
|
2198
|
+
// deno-lint-ignore no-explicit-any
|
|
2161
2199
|
}, ...middleawre);
|
|
2162
2200
|
}
|
|
2163
2201
|
command(commands, ...middleawre) {
|
|
@@ -2313,7 +2351,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2313
2351
|
}
|
|
2314
2352
|
}
|
|
2315
2353
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendMedia).call(this, chatId, media, params);
|
|
2316
|
-
return
|
|
2354
|
+
return (0, _3_types_js_1.assertMessageType)(message, "photo");
|
|
2317
2355
|
}
|
|
2318
2356
|
/**
|
|
2319
2357
|
* Send a document.
|
|
@@ -2324,7 +2362,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2324
2362
|
*/
|
|
2325
2363
|
async sendDocument(chatId, document, params) {
|
|
2326
2364
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendDocumentInner).call(this, chatId, document, params, _3_types_js_1.FileType.Document, []);
|
|
2327
|
-
return
|
|
2365
|
+
return (0, _3_types_js_1.assertMessageType)(message, "document");
|
|
2328
2366
|
}
|
|
2329
2367
|
/**
|
|
2330
2368
|
* Send a video.
|
|
@@ -2342,7 +2380,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2342
2380
|
duration: params?.duration ?? 0,
|
|
2343
2381
|
}),
|
|
2344
2382
|
]);
|
|
2345
|
-
return
|
|
2383
|
+
return (0, _3_types_js_1.assertMessageType)(message, "video");
|
|
2346
2384
|
}
|
|
2347
2385
|
/**
|
|
2348
2386
|
* Send an animation.
|
|
@@ -2361,7 +2399,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2361
2399
|
duration: params?.duration ?? 0,
|
|
2362
2400
|
}),
|
|
2363
2401
|
]);
|
|
2364
|
-
return
|
|
2402
|
+
return (0, _3_types_js_1.assertMessageType)(message, "animation");
|
|
2365
2403
|
}
|
|
2366
2404
|
/**
|
|
2367
2405
|
* Send a voice message.
|
|
@@ -2377,7 +2415,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2377
2415
|
duration: params?.duration ?? 0,
|
|
2378
2416
|
}),
|
|
2379
2417
|
]);
|
|
2380
|
-
return
|
|
2418
|
+
return (0, _3_types_js_1.assertMessageType)(message, "voice");
|
|
2381
2419
|
}
|
|
2382
2420
|
/**
|
|
2383
2421
|
* Send an audio file.
|
|
@@ -2394,7 +2432,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2394
2432
|
title: params?.title,
|
|
2395
2433
|
}),
|
|
2396
2434
|
]);
|
|
2397
|
-
return
|
|
2435
|
+
return (0, _3_types_js_1.assertMessageType)(message, "audio");
|
|
2398
2436
|
}
|
|
2399
2437
|
/**
|
|
2400
2438
|
* Send a video note.
|
|
@@ -2412,7 +2450,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2412
2450
|
duration: params?.duration ?? 0,
|
|
2413
2451
|
}),
|
|
2414
2452
|
], false);
|
|
2415
|
-
return
|
|
2453
|
+
return (0, _3_types_js_1.assertMessageType)(message, "videoNote");
|
|
2416
2454
|
}
|
|
2417
2455
|
/**
|
|
2418
2456
|
* Send a location.
|
|
@@ -2427,8 +2465,6 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2427
2465
|
const randomId = (0, _1_utilities_js_1.getRandomId)();
|
|
2428
2466
|
const silent = params?.disableNotification ? true : undefined;
|
|
2429
2467
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2430
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2431
|
-
const topMsgId = params?.messageThreadId;
|
|
2432
2468
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2433
2469
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2434
2470
|
const result = await this.api.messages.sendMedia({
|
|
@@ -2436,7 +2472,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2436
2472
|
random_id: randomId,
|
|
2437
2473
|
silent,
|
|
2438
2474
|
noforwards,
|
|
2439
|
-
reply_to:
|
|
2475
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
2440
2476
|
send_as: sendAs,
|
|
2441
2477
|
reply_markup: replyMarkup,
|
|
2442
2478
|
media: params?.livePeriod !== undefined
|
|
@@ -2460,7 +2496,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2460
2496
|
message: "",
|
|
2461
2497
|
});
|
|
2462
2498
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
2463
|
-
return
|
|
2499
|
+
return (0, _3_types_js_1.assertMessageType)(message, "location");
|
|
2464
2500
|
}
|
|
2465
2501
|
/**
|
|
2466
2502
|
* Send a contact.
|
|
@@ -2475,8 +2511,6 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2475
2511
|
const randomId = (0, _1_utilities_js_1.getRandomId)();
|
|
2476
2512
|
const silent = params?.disableNotification ? true : undefined;
|
|
2477
2513
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2478
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2479
|
-
const topMsgId = params?.messageThreadId;
|
|
2480
2514
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2481
2515
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2482
2516
|
const result = await this.api.messages.sendMedia({
|
|
@@ -2484,7 +2518,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2484
2518
|
random_id: randomId,
|
|
2485
2519
|
silent,
|
|
2486
2520
|
noforwards,
|
|
2487
|
-
reply_to:
|
|
2521
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
2488
2522
|
send_as: sendAs,
|
|
2489
2523
|
reply_markup: replyMarkup,
|
|
2490
2524
|
media: new _2_tl_js_1.types.InputMediaContact({
|
|
@@ -2496,7 +2530,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2496
2530
|
message: "",
|
|
2497
2531
|
});
|
|
2498
2532
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
2499
|
-
return
|
|
2533
|
+
return (0, _3_types_js_1.assertMessageType)(message, "contact");
|
|
2500
2534
|
}
|
|
2501
2535
|
/**
|
|
2502
2536
|
* Send a dice.
|
|
@@ -2509,8 +2543,6 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2509
2543
|
const randomId = (0, _1_utilities_js_1.getRandomId)();
|
|
2510
2544
|
const silent = params?.disableNotification ? true : undefined;
|
|
2511
2545
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2512
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2513
|
-
const topMsgId = params?.messageThreadId;
|
|
2514
2546
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2515
2547
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2516
2548
|
const result = await this.api.messages.sendMedia({
|
|
@@ -2518,7 +2550,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2518
2550
|
random_id: randomId,
|
|
2519
2551
|
silent,
|
|
2520
2552
|
noforwards,
|
|
2521
|
-
reply_to:
|
|
2553
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
2522
2554
|
send_as: sendAs,
|
|
2523
2555
|
reply_markup: replyMarkup,
|
|
2524
2556
|
media: new _2_tl_js_1.types.InputMediaDice({
|
|
@@ -2527,7 +2559,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2527
2559
|
message: "",
|
|
2528
2560
|
});
|
|
2529
2561
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
2530
|
-
return
|
|
2562
|
+
return (0, _3_types_js_1.assertMessageType)(message, "dice");
|
|
2531
2563
|
}
|
|
2532
2564
|
/**
|
|
2533
2565
|
* Send a venue.
|
|
@@ -2544,8 +2576,6 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2544
2576
|
const randomId = (0, _1_utilities_js_1.getRandomId)();
|
|
2545
2577
|
const silent = params?.disableNotification ? true : undefined;
|
|
2546
2578
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2547
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2548
|
-
const topMsgId = params?.messageThreadId;
|
|
2549
2579
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2550
2580
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2551
2581
|
const result = await this.api.messages.sendMedia({
|
|
@@ -2553,7 +2583,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2553
2583
|
random_id: randomId,
|
|
2554
2584
|
silent,
|
|
2555
2585
|
noforwards,
|
|
2556
|
-
reply_to:
|
|
2586
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
2557
2587
|
send_as: sendAs,
|
|
2558
2588
|
reply_markup: replyMarkup,
|
|
2559
2589
|
media: new _2_tl_js_1.types.InputMediaVenue({
|
|
@@ -2570,7 +2600,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2570
2600
|
message: "",
|
|
2571
2601
|
});
|
|
2572
2602
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
2573
|
-
return
|
|
2603
|
+
return (0, _3_types_js_1.assertMessageType)(message, "venue");
|
|
2574
2604
|
}
|
|
2575
2605
|
/**
|
|
2576
2606
|
* Get network statistics. This might not always be available.
|
|
@@ -2793,6 +2823,37 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
2793
2823
|
}
|
|
2794
2824
|
return documents;
|
|
2795
2825
|
}
|
|
2826
|
+
/**
|
|
2827
|
+
* Set a chat's available reactions.
|
|
2828
|
+
*
|
|
2829
|
+
* @param chatId The identifier of the chat.
|
|
2830
|
+
* @param availableReactions The new available reactions.
|
|
2831
|
+
* @method
|
|
2832
|
+
*/
|
|
2833
|
+
async setAvailableReactions(chatId, availableReactions) {
|
|
2834
|
+
// TODO: sync with storage
|
|
2835
|
+
await this.api.messages.setChatAvailableReactions({
|
|
2836
|
+
peer: await this.getInputPeer(chatId),
|
|
2837
|
+
available_reactions: availableReactions == "none" ? new _2_tl_js_1.types.ChatReactionsNone() : availableReactions == "all" ? new _2_tl_js_1.types.ChatReactionsAll() : Array.isArray(availableReactions) ? new _2_tl_js_1.types.ChatReactionsSome({ reactions: availableReactions.map((v) => v.type == "emoji" ? new _2_tl_js_1.types.ReactionEmoji({ emoticon: v.emoji }) : new _2_tl_js_1.types.ReactionCustomEmoji({ document_id: BigInt(v.id) })) }) : (0, _1_utilities_js_1.UNREACHABLE)(),
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2840
|
+
/**
|
|
2841
|
+
* Add a reaction to a message.
|
|
2842
|
+
*
|
|
2843
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
2844
|
+
* @param messageId The identifier of the message to add the reaction to.
|
|
2845
|
+
* @param reaction The reaction to add.
|
|
2846
|
+
*/
|
|
2847
|
+
async addReaction(chatId, messageId, reaction, params) {
|
|
2848
|
+
// TODO: check storage and skip if already there
|
|
2849
|
+
await this.api.messages.sendReaction({
|
|
2850
|
+
peer: await this.getInputPeer(chatId),
|
|
2851
|
+
msg_id: messageId,
|
|
2852
|
+
reaction: [(0, _3_types_js_1.reactionToTlObject)(reaction)],
|
|
2853
|
+
big: params?.big ? true : undefined,
|
|
2854
|
+
add_to_recent: params?.addToRecents ? true : undefined,
|
|
2855
|
+
});
|
|
2856
|
+
}
|
|
2796
2857
|
}
|
|
2797
2858
|
exports.Client = Client;
|
|
2798
2859
|
_a = Client, _Client_getMe = async function _Client_getMe() {
|
|
@@ -2807,49 +2868,16 @@ _a = Client, _Client_getMe = async function _Client_getMe() {
|
|
|
2807
2868
|
}, _Client_handleUpdate =
|
|
2808
2869
|
// TODO: log errors
|
|
2809
2870
|
async function _Client_handleUpdate(update) {
|
|
2810
|
-
if (update instanceof _2_tl_js_1.types.
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
message: update.message,
|
|
2821
|
-
date: update.date,
|
|
2822
|
-
fwd_from: update.fwd_from,
|
|
2823
|
-
via_bot_id: update.via_bot_id,
|
|
2824
|
-
reply_to: update.reply_to,
|
|
2825
|
-
entities: update.entities,
|
|
2826
|
-
ttl_period: update.ttl_period,
|
|
2827
|
-
}),
|
|
2828
|
-
pts: update.pts,
|
|
2829
|
-
pts_count: update.pts_count,
|
|
2830
|
-
});
|
|
2831
|
-
}
|
|
2832
|
-
else if (update instanceof _2_tl_js_1.types.UpdateShortChatMessage) {
|
|
2833
|
-
update = new _2_tl_js_1.types.UpdateNewMessage({
|
|
2834
|
-
message: new _2_tl_js_1.types.Message({
|
|
2835
|
-
out: update.out,
|
|
2836
|
-
mentioned: update.mentioned,
|
|
2837
|
-
media_unread: update.media_unread,
|
|
2838
|
-
silent: update.silent,
|
|
2839
|
-
id: update.id,
|
|
2840
|
-
from_id: new _2_tl_js_1.types.PeerUser({ user_id: update.from_id }),
|
|
2841
|
-
peer_id: new _2_tl_js_1.types.PeerChat({ chat_id: update.chat_id }),
|
|
2842
|
-
fwd_from: update.fwd_from,
|
|
2843
|
-
via_bot_id: update.via_bot_id,
|
|
2844
|
-
reply_to: update.reply_to,
|
|
2845
|
-
date: update.date,
|
|
2846
|
-
message: update.message,
|
|
2847
|
-
entities: update.entities,
|
|
2848
|
-
ttl_period: update.ttl_period,
|
|
2849
|
-
}),
|
|
2850
|
-
pts: update.pts,
|
|
2851
|
-
pts_count: update.pts_count,
|
|
2852
|
-
});
|
|
2871
|
+
if (update instanceof _2_tl_js_1.types.UpdateUserName) {
|
|
2872
|
+
await this.storage.updateUsernames("user", update.user_id, update.usernames.map((v) => v.username));
|
|
2873
|
+
const peer = new _2_tl_js_1.types.PeerUser(update);
|
|
2874
|
+
const entity = await this[getEntity](peer);
|
|
2875
|
+
if (entity != null) {
|
|
2876
|
+
entity.usernames = update.usernames;
|
|
2877
|
+
entity.first_name = update.first_name;
|
|
2878
|
+
entity.last_name = update.last_name;
|
|
2879
|
+
await this.storage.setEntity(entity);
|
|
2880
|
+
}
|
|
2853
2881
|
}
|
|
2854
2882
|
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) {
|
|
2855
2883
|
if (update.message instanceof _2_tl_js_1.types.Message || update.message instanceof _2_tl_js_1.types.MessageService) {
|
|
@@ -2858,6 +2886,17 @@ async function _Client_handleUpdate(update) {
|
|
|
2858
2886
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_reassignChatLastMessage).call(this, chatId);
|
|
2859
2887
|
}
|
|
2860
2888
|
}
|
|
2889
|
+
if (update instanceof _2_tl_js_1.types.UpdateMessageReactions) {
|
|
2890
|
+
const chatId = (0, _2_tl_js_1.peerToChatId)(update.peer);
|
|
2891
|
+
const message = await this.storage.getMessage(chatId, update.msg_id);
|
|
2892
|
+
if (message instanceof _2_tl_js_1.types.Message) {
|
|
2893
|
+
message.reactions = update.reactions;
|
|
2894
|
+
await this.storage.setMessage(chatId, update.msg_id, message);
|
|
2895
|
+
}
|
|
2896
|
+
const recentReactions = update.reactions.recent_reactions ?? [];
|
|
2897
|
+
const reactions = update.reactions.results.map((v) => (0, _3_types_js_1.constructMessageReaction)(v, recentReactions));
|
|
2898
|
+
await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { reactions: { chatId, messageId: update.msg_id, reactions } }), _0_utilities_js_1.resolve);
|
|
2899
|
+
}
|
|
2861
2900
|
if (update instanceof _2_tl_js_1.types.UpdateNewMessage ||
|
|
2862
2901
|
update instanceof _2_tl_js_1.types.UpdateNewChannelMessage ||
|
|
2863
2902
|
update instanceof _2_tl_js_1.types.UpdateEditMessage ||
|
|
@@ -2957,11 +2996,6 @@ async function _Client_handleUpdate(update) {
|
|
|
2957
2996
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_assertBot).call(this, "replyMarkup");
|
|
2958
2997
|
return (0, _3_types_js_1.replyMarkupToTlObject)(params.replyMarkup, __classPrivateFieldGet(this, _Client_usernameResolver, "f").bind(this));
|
|
2959
2998
|
}
|
|
2960
|
-
}, _Client_assertMsgHas = function _Client_assertMsgHas(message, key) {
|
|
2961
|
-
if (!(key in message) || message[key] === undefined) {
|
|
2962
|
-
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
2963
|
-
}
|
|
2964
|
-
return message;
|
|
2965
2999
|
}, _Client_setMyInfo =
|
|
2966
3000
|
//#endregion
|
|
2967
3001
|
async function _Client_setMyInfo(info) {
|
|
@@ -2995,8 +3029,6 @@ async function _Client_setMyInfo(info) {
|
|
|
2995
3029
|
const randomId = (0, _1_utilities_js_1.getRandomId)();
|
|
2996
3030
|
const silent = params?.disableNotification ? true : undefined;
|
|
2997
3031
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2998
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2999
|
-
const topMsgId = params?.messageThreadId;
|
|
3000
3032
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
3001
3033
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
3002
3034
|
const caption_ = params?.caption;
|
|
@@ -3009,7 +3041,7 @@ async function _Client_setMyInfo(info) {
|
|
|
3009
3041
|
silent,
|
|
3010
3042
|
noforwards,
|
|
3011
3043
|
reply_markup: replyMarkup,
|
|
3012
|
-
reply_to:
|
|
3044
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
3013
3045
|
send_as: sendAs,
|
|
3014
3046
|
media,
|
|
3015
3047
|
message: caption ?? "",
|
|
@@ -3040,8 +3072,14 @@ async function _Client_setMyInfo(info) {
|
|
|
3040
3072
|
const fileName = params?.fileName ?? fileName_;
|
|
3041
3073
|
const mimeType = params?.mimeType ?? (0, _0_deps_js_1.contentType)(fileName.split(".").slice(-1)[0]) ?? "application/octet-stream";
|
|
3042
3074
|
const file = await this.upload(contents, { fileName, chunkSize: params?.chunkSize, signal: params?.signal });
|
|
3075
|
+
let thumb = undefined;
|
|
3076
|
+
if (params?.thumbnail) {
|
|
3077
|
+
const [thumbContents, fileName__] = await (0, _0_utilities_js_1.getFileContents)(params.thumbnail);
|
|
3078
|
+
thumb = await this.upload(thumbContents, { fileName: fileName__, chunkSize: params?.chunkSize, signal: params?.signal });
|
|
3079
|
+
}
|
|
3043
3080
|
media = new _2_tl_js_1.types.InputMediaUploadedDocument({
|
|
3044
3081
|
file,
|
|
3082
|
+
thumb,
|
|
3045
3083
|
spoiler,
|
|
3046
3084
|
attributes: [new _2_tl_js_1.types.DocumentAttributeFilename({ file_name: fileName }), ...otherAttribs],
|
|
3047
3085
|
mime_type: mimeType,
|
|
@@ -3273,6 +3311,7 @@ async function _Client_setMyInfo(info) {
|
|
|
3273
3311
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendChatUpdate).call(this, chat.id, false);
|
|
3274
3312
|
}
|
|
3275
3313
|
}
|
|
3314
|
+
await this.storage.setPinnedChats(listId, await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getPinnedChats).call(this, listId));
|
|
3276
3315
|
}, _Client_fetchChats = async function _Client_fetchChats(listId, limit, after) {
|
|
3277
3316
|
const dialogs = await this.api.messages.getDialogs({
|
|
3278
3317
|
limit,
|