@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
package/esm/client/5_client.js
CHANGED
|
@@ -9,12 +9,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
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");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
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,
|
|
12
|
+
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;
|
|
13
13
|
import { contentType, debug, extension, gunzip, Mutex } from "../0_deps.js";
|
|
14
14
|
import { bigIntFromBuffer, cleanObject, drop, getRandomBigInt, getRandomId, mod, mustPrompt, mustPromptOneOf, Queue, sha1, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
15
15
|
import { as, functions, getChannelChatId, Message_, MessageContainer, name, peerToChatId, RPCResult, TLError, TLReader, types } from "../2_tl.js";
|
|
16
16
|
import { StorageMemory } from "../3_storage.js";
|
|
17
|
-
import { botCommandScopeToTlObject, constructCallbackQuery, constructChat, constructChat2, constructChat3, constructChat4, constructChosenInlineResult, constructDocument, constructInlineQuery, constructMessage, constructUser, FileID, FileType, FileUniqueID, FileUniqueType, getChatOrder, inlineQueryResultToTlObject, messageEntityToTlObject, replyMarkupToTlObject, ThumbnailSource } from "../3_types.js";
|
|
17
|
+
import { assertMessageType, botCommandScopeToTlObject, constructCallbackQuery, constructChat, constructChat2, constructChat3, constructChat4, constructChosenInlineResult, constructDocument, constructInlineQuery, constructMessage, constructMessageReaction, constructUser, FileID, FileType, FileUniqueID, FileUniqueType, getChatOrder, inlineQueryResultToTlObject, messageEntityToTlObject, reactionToTlObject, replyMarkupToTlObject, ThumbnailSource } from "../3_types.js";
|
|
18
18
|
import { ACK_THRESHOLD, APP_VERSION, CHANNEL_DIFFERENCE_LIMIT_BOT, CHANNEL_DIFFERENCE_LIMIT_USER, DEVICE_MODEL, LANG_CODE, LANG_PACK, LAYER, MAX_CHANNEL_ID, MAX_CHAT_ID, STICKER_SET_NAME_TTL, SYSTEM_LANG_CODE, SYSTEM_VERSION, USERNAME_TTL } from "../4_constants.js";
|
|
19
19
|
import { AuthKeyUnregistered, FloodWait, Migrate, PasswordHashInvalid, PhoneNumberInvalid, SessionPasswordNeeded, upgradeInstance } from "../4_errors.js";
|
|
20
20
|
import { parseHtml } from "./0_html.js";
|
|
@@ -198,14 +198,17 @@ export class Client extends ClientAbstract {
|
|
|
198
198
|
return replyToMessageId;
|
|
199
199
|
};
|
|
200
200
|
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);
|
|
201
|
-
|
|
201
|
+
const context = {
|
|
202
202
|
...update,
|
|
203
203
|
client: this,
|
|
204
|
-
me: me == null ? undefined : me,
|
|
205
|
-
msg,
|
|
206
|
-
chat,
|
|
207
|
-
from,
|
|
208
|
-
senderChat,
|
|
204
|
+
me: (me == null ? undefined : me),
|
|
205
|
+
msg: msg,
|
|
206
|
+
chat: chat,
|
|
207
|
+
from: from,
|
|
208
|
+
senderChat: senderChat,
|
|
209
|
+
get toJSON() {
|
|
210
|
+
return () => update;
|
|
211
|
+
},
|
|
209
212
|
reply: (text, params) => {
|
|
210
213
|
const effectiveMessage = mustGetMsg();
|
|
211
214
|
const replyToMessageId = getReplyToMessageId(params?.quote, effectiveMessage);
|
|
@@ -246,10 +249,10 @@ export class Client extends ClientAbstract {
|
|
|
246
249
|
const replyToMessageId = getReplyToMessageId(params?.quote, effectiveMessage);
|
|
247
250
|
return this.sendVenue(effectiveMessage.chat.id, latitude, longitude, title, address, { ...params, replyToMessageId });
|
|
248
251
|
},
|
|
249
|
-
replyVideo: (
|
|
252
|
+
replyVideo: (video, params) => {
|
|
250
253
|
const effectiveMessage = mustGetMsg();
|
|
251
254
|
const replyToMessageId = getReplyToMessageId(params?.quote, effectiveMessage);
|
|
252
|
-
return this.
|
|
255
|
+
return this.sendVideo(effectiveMessage.chat.id, video, { ...params, replyToMessageId });
|
|
253
256
|
},
|
|
254
257
|
replyAnimation: (document, params) => {
|
|
255
258
|
const effectiveMessage = mustGetMsg();
|
|
@@ -325,10 +328,16 @@ export class Client extends ClientAbstract {
|
|
|
325
328
|
const effectiveMessage = mustGetMsg();
|
|
326
329
|
return this.deleteMessages(effectiveMessage.chat.id, messageIds, params);
|
|
327
330
|
},
|
|
328
|
-
|
|
329
|
-
|
|
331
|
+
setAvailableReactions: (availableReactions) => {
|
|
332
|
+
const effectiveMessage = mustGetMsg();
|
|
333
|
+
return this.setAvailableReactions(effectiveMessage.chat.id, availableReactions);
|
|
330
334
|
},
|
|
331
|
-
|
|
335
|
+
addReaction: (messageId, reaction, params) => {
|
|
336
|
+
const effectiveMessage = mustGetMsg();
|
|
337
|
+
return this.addReaction(effectiveMessage.chat.id, messageId, reaction, params);
|
|
338
|
+
},
|
|
339
|
+
};
|
|
340
|
+
return cleanObject(context, false);
|
|
332
341
|
});
|
|
333
342
|
_Client_lastPropagatedConnectionState.set(this, null);
|
|
334
343
|
Object.defineProperty(this, "stateChangeHandler", {
|
|
@@ -388,6 +397,8 @@ export class Client extends ClientAbstract {
|
|
|
388
397
|
});
|
|
389
398
|
_Client_handleUpdateQueue.set(this, new Queue("handleUpdate"));
|
|
390
399
|
_Client_processUpdatesQueue.set(this, new Queue("processUpdates"));
|
|
400
|
+
_Client_channelUpdateQueues.set(this, new Map());
|
|
401
|
+
_Client_ptsUpdateQueue.set(this, new Queue("ptsUpdate"));
|
|
391
402
|
_Client_lastUpdates.set(this, new Date());
|
|
392
403
|
_Client_lastGetMe.set(this, null);
|
|
393
404
|
_Client_usernameResolver.set(this, async (v) => {
|
|
@@ -544,7 +555,7 @@ export class Client extends ClientAbstract {
|
|
|
544
555
|
release();
|
|
545
556
|
}
|
|
546
557
|
}
|
|
547
|
-
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) {
|
|
558
|
+
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) {
|
|
548
559
|
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
549
560
|
await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { connectionState }), resolve);
|
|
550
561
|
});
|
|
@@ -1071,9 +1082,61 @@ export class Client extends ClientAbstract {
|
|
|
1071
1082
|
if (localPts + ptsCount < pts) {
|
|
1072
1083
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverChannelUpdateGap).call(this, channelId, "processUpdates");
|
|
1073
1084
|
}
|
|
1085
|
+
}, _Client_processChannelUpdate = async function _Client_processChannelUpdate(update, checkGap) {
|
|
1086
|
+
const channelId = update instanceof types.UpdateNewChannelMessage || update instanceof types.UpdateEditChannelMessage ? update.message.peer_id[as](types.PeerChannel).channel_id : update.channel_id;
|
|
1087
|
+
if (update instanceof types.UpdateChannelTooLong) {
|
|
1088
|
+
if (update.pts != undefined) {
|
|
1089
|
+
await this.storage.setChannelPts(channelId, update.pts);
|
|
1090
|
+
}
|
|
1091
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverChannelUpdateGap).call(this, channelId, "updateChannelTooLong");
|
|
1092
|
+
return;
|
|
1093
|
+
}
|
|
1094
|
+
if (update.pts != 0) {
|
|
1095
|
+
const ptsCount = update.pts_count;
|
|
1096
|
+
if (checkGap) {
|
|
1097
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkChannelGap).call(this, channelId, update.pts, ptsCount);
|
|
1098
|
+
}
|
|
1099
|
+
let currentPts = await this.storage.getChannelPts(channelId);
|
|
1100
|
+
currentPts ??= update.pts - ptsCount;
|
|
1101
|
+
if (currentPts + ptsCount > update.pts) {
|
|
1102
|
+
return;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
await this.storage.setChannelPts(channelId, update.pts);
|
|
1106
|
+
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
1107
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).call(this, update);
|
|
1108
|
+
});
|
|
1109
|
+
}, _Client_queueChannelUpdate = function _Client_queueChannelUpdate(update, checkGap) {
|
|
1110
|
+
const channelId = update instanceof types.UpdateNewChannelMessage || update instanceof types.UpdateEditChannelMessage ? update.message.peer_id[as](types.PeerChannel).channel_id : update.channel_id;
|
|
1111
|
+
let queue = __classPrivateFieldGet(this, _Client_channelUpdateQueues, "f").get(channelId);
|
|
1112
|
+
if (queue == undefined) {
|
|
1113
|
+
queue = new Queue(`channelUpdates-${channelId}`);
|
|
1114
|
+
__classPrivateFieldGet(this, _Client_channelUpdateQueues, "f").set(channelId, queue);
|
|
1115
|
+
}
|
|
1116
|
+
queue.add(async () => {
|
|
1117
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_processChannelUpdate).call(this, update, checkGap);
|
|
1118
|
+
});
|
|
1119
|
+
}, _Client_handlePtsUpdate = async function _Client_handlePtsUpdate(update, checkGap) {
|
|
1120
|
+
const localState = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getLocalState).call(this);
|
|
1121
|
+
if (update.pts != 0) {
|
|
1122
|
+
if (checkGap) {
|
|
1123
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkGap).call(this, update.pts, update.pts_count);
|
|
1124
|
+
}
|
|
1125
|
+
if (localState.pts + update.pts_count > update.pts) {
|
|
1126
|
+
return;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdatePts).call(this, update.pts);
|
|
1130
|
+
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
1131
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).call(this, update);
|
|
1132
|
+
});
|
|
1133
|
+
}, _Client_queuePtsUpdate = function _Client_queuePtsUpdate(update, checkGap) {
|
|
1134
|
+
__classPrivateFieldGet(this, _Client_ptsUpdateQueue, "f").add(async () => {
|
|
1135
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handlePtsUpdate).call(this, update, checkGap);
|
|
1136
|
+
});
|
|
1074
1137
|
}, _Client_processUpdates = async function _Client_processUpdates(updates_, checkGap) {
|
|
1075
1138
|
__classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
|
|
1076
|
-
/// First, individual updates (Update[1])
|
|
1139
|
+
/// First, individual updates (Update[1]) are extracted from Updates.[2]
|
|
1077
1140
|
///
|
|
1078
1141
|
/// If an updatesTooLong[3] was received, an update gap recovery is initiated and no further action will be taken.
|
|
1079
1142
|
///
|
|
@@ -1094,14 +1157,14 @@ export class Client extends ClientAbstract {
|
|
|
1094
1157
|
const localState = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getLocalState).call(this);
|
|
1095
1158
|
const localSeq = localState.seq;
|
|
1096
1159
|
if (localSeq + 1 == seqStart) {
|
|
1097
|
-
// The
|
|
1160
|
+
// The update sequence can be applied.
|
|
1098
1161
|
localState.seq = seq;
|
|
1099
1162
|
localState.date = updates_.date;
|
|
1100
1163
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdateStateDate).call(this, updates_.date);
|
|
1101
1164
|
await this.storage.setState(localState);
|
|
1102
1165
|
}
|
|
1103
1166
|
else if (localSeq + 1 > seqStart) {
|
|
1104
|
-
// The
|
|
1167
|
+
// The update sequence was already applied, and must be ignored.
|
|
1105
1168
|
d("localSeq + 1 > seqStart");
|
|
1106
1169
|
return;
|
|
1107
1170
|
}
|
|
@@ -1115,10 +1178,53 @@ export class Client extends ClientAbstract {
|
|
|
1115
1178
|
else if (updates_ instanceof types.UpdateShort) {
|
|
1116
1179
|
updates = [updates_.update];
|
|
1117
1180
|
}
|
|
1118
|
-
else if (updates_ instanceof types.UpdateShortMessage
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1181
|
+
else if (updates_ instanceof types.UpdateShortMessage) {
|
|
1182
|
+
updates = [
|
|
1183
|
+
new types.UpdateNewMessage({
|
|
1184
|
+
message: new types.Message({
|
|
1185
|
+
out: updates_.out,
|
|
1186
|
+
mentioned: updates_.mentioned,
|
|
1187
|
+
media_unread: updates_.media_unread,
|
|
1188
|
+
silent: updates_.silent,
|
|
1189
|
+
id: updates_.id,
|
|
1190
|
+
from_id: updates_.out ? new types.PeerUser({ user_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this).then(BigInt) }) : new types.PeerUser({ user_id: updates_.user_id }),
|
|
1191
|
+
peer_id: new types.PeerUser({ user_id: updates_.user_id }),
|
|
1192
|
+
message: updates_.message,
|
|
1193
|
+
date: updates_.date,
|
|
1194
|
+
fwd_from: updates_.fwd_from,
|
|
1195
|
+
via_bot_id: updates_.via_bot_id,
|
|
1196
|
+
reply_to: updates_.reply_to,
|
|
1197
|
+
entities: updates_.entities,
|
|
1198
|
+
ttl_period: updates_.ttl_period,
|
|
1199
|
+
}),
|
|
1200
|
+
pts: updates_.pts,
|
|
1201
|
+
pts_count: updates_.pts_count,
|
|
1202
|
+
}),
|
|
1203
|
+
];
|
|
1204
|
+
}
|
|
1205
|
+
else if (updates_ instanceof types.UpdateShortChatMessage) {
|
|
1206
|
+
updates = [
|
|
1207
|
+
new types.UpdateNewMessage({
|
|
1208
|
+
message: new types.Message({
|
|
1209
|
+
out: updates_.out,
|
|
1210
|
+
mentioned: updates_.mentioned,
|
|
1211
|
+
media_unread: updates_.media_unread,
|
|
1212
|
+
silent: updates_.silent,
|
|
1213
|
+
id: updates_.id,
|
|
1214
|
+
from_id: new types.PeerUser({ user_id: updates_.from_id }),
|
|
1215
|
+
peer_id: new types.PeerChat({ chat_id: updates_.chat_id }),
|
|
1216
|
+
fwd_from: updates_.fwd_from,
|
|
1217
|
+
via_bot_id: updates_.via_bot_id,
|
|
1218
|
+
reply_to: updates_.reply_to,
|
|
1219
|
+
date: updates_.date,
|
|
1220
|
+
message: updates_.message,
|
|
1221
|
+
entities: updates_.entities,
|
|
1222
|
+
ttl_period: updates_.ttl_period,
|
|
1223
|
+
}),
|
|
1224
|
+
pts: updates_.pts,
|
|
1225
|
+
pts_count: updates_.pts_count,
|
|
1226
|
+
}),
|
|
1227
|
+
];
|
|
1122
1228
|
}
|
|
1123
1229
|
else if (updates_ instanceof types.UpdatesTooLong) {
|
|
1124
1230
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverUpdateGap).call(this, "updatesTooLong");
|
|
@@ -1130,86 +1236,20 @@ export class Client extends ClientAbstract {
|
|
|
1130
1236
|
else {
|
|
1131
1237
|
UNREACHABLE();
|
|
1132
1238
|
}
|
|
1133
|
-
/// Then, we go through each Update and updateShort*, and see if they are order-sensitive.
|
|
1134
|
-
/// If they were, we check the local state to see if it is OK to process them right away.
|
|
1135
|
-
///
|
|
1136
|
-
/// If we there was a gap, a recovery process will be initiated and the processing will be postponed.
|
|
1137
|
-
let localState = null;
|
|
1138
|
-
let originalPts = null;
|
|
1139
|
-
const channelPtsMap = new Map();
|
|
1140
|
-
for (const update of updates) {
|
|
1141
|
-
if (isPtsUpdate(update)) {
|
|
1142
|
-
if (update.pts == 0) {
|
|
1143
|
-
continue;
|
|
1144
|
-
}
|
|
1145
|
-
if (checkGap) {
|
|
1146
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkGap).call(this, update.pts, update.pts_count);
|
|
1147
|
-
}
|
|
1148
|
-
localState ??= await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getLocalState).call(this);
|
|
1149
|
-
originalPts ??= localState.pts;
|
|
1150
|
-
if (localState.pts + update.pts_count > update.pts) {
|
|
1151
|
-
updates = updates.filter((v) => v != update);
|
|
1152
|
-
}
|
|
1153
|
-
else {
|
|
1154
|
-
localState.pts = update.pts;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
else if (isChannelPtsUpdate(update)) {
|
|
1158
|
-
if (update.pts == 0) {
|
|
1159
|
-
continue;
|
|
1160
|
-
}
|
|
1161
|
-
const ptsCount = update.pts_count;
|
|
1162
|
-
const channelId = update instanceof types.UpdateNewChannelMessage || update instanceof types.UpdateEditChannelMessage ? update.message.peer_id[as](types.PeerChannel).channel_id : update.channel_id;
|
|
1163
|
-
if (checkGap) {
|
|
1164
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkChannelGap).call(this, channelId, update.pts, ptsCount);
|
|
1165
|
-
}
|
|
1166
|
-
let currentPts = channelPtsMap.get(channelId);
|
|
1167
|
-
if (currentPts === undefined) {
|
|
1168
|
-
currentPts = await this.storage.getChannelPts(channelId);
|
|
1169
|
-
}
|
|
1170
|
-
currentPts ??= update.pts - ptsCount;
|
|
1171
|
-
if (currentPts + ptsCount > update.pts) {
|
|
1172
|
-
updates = updates.filter((v) => v != update);
|
|
1173
|
-
}
|
|
1174
|
-
else {
|
|
1175
|
-
channelPtsMap.set(channelId, update.pts);
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
1239
|
/// We process the updates when we are sure there is no gap.
|
|
1180
1240
|
if (updates_ instanceof types.Updates || updates_ instanceof types.UpdatesCombined) {
|
|
1181
1241
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_processChats).call(this, updates_.chats);
|
|
1182
1242
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_processUsers).call(this, updates_.users);
|
|
1183
1243
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdateStateDate).call(this, updates_.date);
|
|
1184
1244
|
}
|
|
1185
|
-
else if (updates_ instanceof types.UpdateShort
|
|
1245
|
+
else if (updates_ instanceof types.UpdateShort ||
|
|
1246
|
+
updates_ instanceof types.UpdateShortMessage ||
|
|
1247
|
+
updates_ instanceof types.UpdateShortChatMessage ||
|
|
1248
|
+
updates_ instanceof types.UpdateShortSentMessage) {
|
|
1186
1249
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdateStateDate).call(this, updates_.date);
|
|
1187
1250
|
}
|
|
1188
|
-
const updatesToHandle = new Array();
|
|
1189
1251
|
for (const update of updates) {
|
|
1190
|
-
if (update instanceof types.
|
|
1191
|
-
update instanceof types.UpdateShortChatMessage ||
|
|
1192
|
-
update instanceof types.UpdateShortSentMessage) {
|
|
1193
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setUpdateStateDate).call(this, update.date);
|
|
1194
|
-
}
|
|
1195
|
-
else if (update instanceof types.UpdateChannelTooLong) {
|
|
1196
|
-
if (update.pts != undefined) {
|
|
1197
|
-
await this.storage.setChannelPts(update.channel_id, update.pts);
|
|
1198
|
-
}
|
|
1199
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverChannelUpdateGap).call(this, update.channel_id, "updateChannelTooLong");
|
|
1200
|
-
}
|
|
1201
|
-
else if (update instanceof types.UpdateUserName) {
|
|
1202
|
-
await this.storage.updateUsernames("user", update.user_id, update.usernames.map((v) => v.username));
|
|
1203
|
-
const peer = new types.PeerUser(update);
|
|
1204
|
-
const entity = await this[getEntity](peer);
|
|
1205
|
-
if (entity != null) {
|
|
1206
|
-
entity.usernames = update.usernames;
|
|
1207
|
-
entity.first_name = update.first_name;
|
|
1208
|
-
entity.last_name = update.last_name;
|
|
1209
|
-
await this.storage.setEntity(entity);
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
else if (update instanceof types.UpdatePtsChanged) {
|
|
1252
|
+
if (update instanceof types.UpdatePtsChanged) {
|
|
1213
1253
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_fetchState).call(this, "updatePtsChanged");
|
|
1214
1254
|
if (__classPrivateFieldGet(this, _Client_updateState, "f")) {
|
|
1215
1255
|
await this.storage.setState(__classPrivateFieldGet(this, _Client_updateState, "f"));
|
|
@@ -1218,31 +1258,18 @@ export class Client extends ClientAbstract {
|
|
|
1218
1258
|
UNREACHABLE();
|
|
1219
1259
|
}
|
|
1220
1260
|
}
|
|
1221
|
-
if (isPtsUpdate(update)) {
|
|
1222
|
-
|
|
1261
|
+
else if (isPtsUpdate(update)) {
|
|
1262
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queuePtsUpdate).call(this, update, checkGap);
|
|
1223
1263
|
}
|
|
1224
1264
|
else if (isChannelPtsUpdate(update)) {
|
|
1225
|
-
|
|
1226
|
-
if ("channel_id" in update) {
|
|
1227
|
-
channelId = update.channel_id;
|
|
1228
|
-
}
|
|
1229
|
-
else if ("peer_id" in update.message && update.message.peer_id !== undefined && "channel_id" in update.message.peer_id) {
|
|
1230
|
-
channelId = update.message.peer_id.channel_id;
|
|
1231
|
-
}
|
|
1232
|
-
if (channelId != null) {
|
|
1233
|
-
await this.storage.setChannelPts(channelId, update.pts);
|
|
1234
|
-
}
|
|
1265
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueChannelUpdate).call(this, update, checkGap);
|
|
1235
1266
|
}
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1267
|
+
else {
|
|
1268
|
+
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
1269
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).call(this, update);
|
|
1270
|
+
});
|
|
1239
1271
|
}
|
|
1240
1272
|
}
|
|
1241
|
-
__classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
|
|
1242
|
-
for (const update of updatesToHandle) {
|
|
1243
|
-
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).call(this, update);
|
|
1244
|
-
}
|
|
1245
|
-
});
|
|
1246
1273
|
}, _Client_setUpdateStateDate = async function _Client_setUpdateStateDate(date) {
|
|
1247
1274
|
const localState = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getLocalState).call(this);
|
|
1248
1275
|
localState.date = date;
|
|
@@ -1504,8 +1531,6 @@ export class Client extends ClientAbstract {
|
|
|
1504
1531
|
const noWebpage = params?.disableWebPagePreview ? true : undefined;
|
|
1505
1532
|
const silent = params?.disableNotification ? true : undefined;
|
|
1506
1533
|
const noforwards = params?.protectContent ? true : undefined;
|
|
1507
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
1508
|
-
const topMsgId = params?.messageThreadId;
|
|
1509
1534
|
const sendAs = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_resolveSendAs).call(this, params);
|
|
1510
1535
|
const result = await this.api.messages.sendMessage({
|
|
1511
1536
|
peer,
|
|
@@ -1514,13 +1539,13 @@ export class Client extends ClientAbstract {
|
|
|
1514
1539
|
no_webpage: noWebpage,
|
|
1515
1540
|
silent,
|
|
1516
1541
|
noforwards,
|
|
1517
|
-
reply_to:
|
|
1542
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
1518
1543
|
send_as: sendAs,
|
|
1519
1544
|
entities,
|
|
1520
1545
|
reply_markup: replyMarkup,
|
|
1521
1546
|
});
|
|
1522
1547
|
const message_ = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
1523
|
-
return
|
|
1548
|
+
return assertMessageType(message_, "text");
|
|
1524
1549
|
}
|
|
1525
1550
|
/**
|
|
1526
1551
|
* Edit a message's text.
|
|
@@ -1542,7 +1567,7 @@ export class Client extends ClientAbstract {
|
|
|
1542
1567
|
reply_markup: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params),
|
|
1543
1568
|
});
|
|
1544
1569
|
const message_ = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
1545
|
-
return
|
|
1570
|
+
return assertMessageType(message_, "text");
|
|
1546
1571
|
}
|
|
1547
1572
|
/**
|
|
1548
1573
|
* Retrieve multiple messages.
|
|
@@ -1586,6 +1611,10 @@ export class Client extends ClientAbstract {
|
|
|
1586
1611
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_assertUser).call(this, "sendAs");
|
|
1587
1612
|
return sendAs ? await this.getInputPeer(sendAs) : undefined;
|
|
1588
1613
|
}
|
|
1614
|
+
}, _Client_constructReplyTo = function _Client_constructReplyTo(params) {
|
|
1615
|
+
const topMsgId = params?.messageThreadId;
|
|
1616
|
+
const replyToMsgId = params?.replyToMessageId;
|
|
1617
|
+
return replyToMsgId !== undefined ? new types.InputReplyToMessage({ reply_to_msg_id: replyToMsgId, top_msg_id: topMsgId, quote_text: params?.replyQuote?.text, quote_entities: params?.replyQuote?.entities.map(messageEntityToTlObject), quote_offset: params?.replyQuote?.offset }) : undefined;
|
|
1589
1618
|
}, _Client_parseText = function _Client_parseText(text, params) {
|
|
1590
1619
|
const entities_ = params?.entities ?? [];
|
|
1591
1620
|
const parseMode = params?.parseMode ?? this.parseMode;
|
|
@@ -1890,8 +1919,6 @@ export class Client extends ClientAbstract {
|
|
|
1890
1919
|
const randomId = getRandomId();
|
|
1891
1920
|
const silent = params?.disableNotification ? true : undefined;
|
|
1892
1921
|
const noforwards = params?.protectContent ? true : undefined;
|
|
1893
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
1894
|
-
const topMsgId = params?.messageThreadId;
|
|
1895
1922
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
1896
1923
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
1897
1924
|
const explanation = params?.explanation;
|
|
@@ -1922,13 +1949,13 @@ export class Client extends ClientAbstract {
|
|
|
1922
1949
|
silent,
|
|
1923
1950
|
noforwards,
|
|
1924
1951
|
reply_markup: replyMarkup,
|
|
1925
|
-
reply_to:
|
|
1952
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
1926
1953
|
send_as: sendAs,
|
|
1927
1954
|
media,
|
|
1928
1955
|
message: "",
|
|
1929
1956
|
});
|
|
1930
1957
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
1931
|
-
return
|
|
1958
|
+
return assertMessageType(message, "poll");
|
|
1932
1959
|
}
|
|
1933
1960
|
/**
|
|
1934
1961
|
* Send a chat action.
|
|
@@ -2136,9 +2163,19 @@ export class Client extends ClientAbstract {
|
|
|
2136
2163
|
}
|
|
2137
2164
|
on(filter, ...middleawre) {
|
|
2138
2165
|
const type = typeof filter === "string" ? filter : filter[0];
|
|
2139
|
-
|
|
2166
|
+
let keys = Array.isArray(filter) ? filter.slice(1) : [];
|
|
2167
|
+
let messageType = null;
|
|
2168
|
+
if (type == "message") {
|
|
2169
|
+
messageType = keys[0];
|
|
2170
|
+
keys = keys.slice(1);
|
|
2171
|
+
}
|
|
2140
2172
|
return this.filter((ctx) => {
|
|
2141
2173
|
if (type in ctx) {
|
|
2174
|
+
if (messageType != null) {
|
|
2175
|
+
// deno-lint-ignore ban-ts-comment
|
|
2176
|
+
// @ts-ignore
|
|
2177
|
+
assertMessageType(ctx[type], messageType);
|
|
2178
|
+
}
|
|
2142
2179
|
if (keys.length > 0) {
|
|
2143
2180
|
for (const key of keys) {
|
|
2144
2181
|
// deno-lint-ignore ban-ts-comment
|
|
@@ -2153,6 +2190,7 @@ export class Client extends ClientAbstract {
|
|
|
2153
2190
|
else {
|
|
2154
2191
|
return false;
|
|
2155
2192
|
}
|
|
2193
|
+
// deno-lint-ignore no-explicit-any
|
|
2156
2194
|
}, ...middleawre);
|
|
2157
2195
|
}
|
|
2158
2196
|
command(commands, ...middleawre) {
|
|
@@ -2308,7 +2346,7 @@ export class Client extends ClientAbstract {
|
|
|
2308
2346
|
}
|
|
2309
2347
|
}
|
|
2310
2348
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendMedia).call(this, chatId, media, params);
|
|
2311
|
-
return
|
|
2349
|
+
return assertMessageType(message, "photo");
|
|
2312
2350
|
}
|
|
2313
2351
|
/**
|
|
2314
2352
|
* Send a document.
|
|
@@ -2319,7 +2357,7 @@ export class Client extends ClientAbstract {
|
|
|
2319
2357
|
*/
|
|
2320
2358
|
async sendDocument(chatId, document, params) {
|
|
2321
2359
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendDocumentInner).call(this, chatId, document, params, FileType.Document, []);
|
|
2322
|
-
return
|
|
2360
|
+
return assertMessageType(message, "document");
|
|
2323
2361
|
}
|
|
2324
2362
|
/**
|
|
2325
2363
|
* Send a video.
|
|
@@ -2337,7 +2375,7 @@ export class Client extends ClientAbstract {
|
|
|
2337
2375
|
duration: params?.duration ?? 0,
|
|
2338
2376
|
}),
|
|
2339
2377
|
]);
|
|
2340
|
-
return
|
|
2378
|
+
return assertMessageType(message, "video");
|
|
2341
2379
|
}
|
|
2342
2380
|
/**
|
|
2343
2381
|
* Send an animation.
|
|
@@ -2356,7 +2394,7 @@ export class Client extends ClientAbstract {
|
|
|
2356
2394
|
duration: params?.duration ?? 0,
|
|
2357
2395
|
}),
|
|
2358
2396
|
]);
|
|
2359
|
-
return
|
|
2397
|
+
return assertMessageType(message, "animation");
|
|
2360
2398
|
}
|
|
2361
2399
|
/**
|
|
2362
2400
|
* Send a voice message.
|
|
@@ -2372,7 +2410,7 @@ export class Client extends ClientAbstract {
|
|
|
2372
2410
|
duration: params?.duration ?? 0,
|
|
2373
2411
|
}),
|
|
2374
2412
|
]);
|
|
2375
|
-
return
|
|
2413
|
+
return assertMessageType(message, "voice");
|
|
2376
2414
|
}
|
|
2377
2415
|
/**
|
|
2378
2416
|
* Send an audio file.
|
|
@@ -2389,7 +2427,7 @@ export class Client extends ClientAbstract {
|
|
|
2389
2427
|
title: params?.title,
|
|
2390
2428
|
}),
|
|
2391
2429
|
]);
|
|
2392
|
-
return
|
|
2430
|
+
return assertMessageType(message, "audio");
|
|
2393
2431
|
}
|
|
2394
2432
|
/**
|
|
2395
2433
|
* Send a video note.
|
|
@@ -2407,7 +2445,7 @@ export class Client extends ClientAbstract {
|
|
|
2407
2445
|
duration: params?.duration ?? 0,
|
|
2408
2446
|
}),
|
|
2409
2447
|
], false);
|
|
2410
|
-
return
|
|
2448
|
+
return assertMessageType(message, "videoNote");
|
|
2411
2449
|
}
|
|
2412
2450
|
/**
|
|
2413
2451
|
* Send a location.
|
|
@@ -2422,8 +2460,6 @@ export class Client extends ClientAbstract {
|
|
|
2422
2460
|
const randomId = getRandomId();
|
|
2423
2461
|
const silent = params?.disableNotification ? true : undefined;
|
|
2424
2462
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2425
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2426
|
-
const topMsgId = params?.messageThreadId;
|
|
2427
2463
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2428
2464
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2429
2465
|
const result = await this.api.messages.sendMedia({
|
|
@@ -2431,7 +2467,7 @@ export class Client extends ClientAbstract {
|
|
|
2431
2467
|
random_id: randomId,
|
|
2432
2468
|
silent,
|
|
2433
2469
|
noforwards,
|
|
2434
|
-
reply_to:
|
|
2470
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
2435
2471
|
send_as: sendAs,
|
|
2436
2472
|
reply_markup: replyMarkup,
|
|
2437
2473
|
media: params?.livePeriod !== undefined
|
|
@@ -2455,7 +2491,7 @@ export class Client extends ClientAbstract {
|
|
|
2455
2491
|
message: "",
|
|
2456
2492
|
});
|
|
2457
2493
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
2458
|
-
return
|
|
2494
|
+
return assertMessageType(message, "location");
|
|
2459
2495
|
}
|
|
2460
2496
|
/**
|
|
2461
2497
|
* Send a contact.
|
|
@@ -2470,8 +2506,6 @@ export class Client extends ClientAbstract {
|
|
|
2470
2506
|
const randomId = getRandomId();
|
|
2471
2507
|
const silent = params?.disableNotification ? true : undefined;
|
|
2472
2508
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2473
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2474
|
-
const topMsgId = params?.messageThreadId;
|
|
2475
2509
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2476
2510
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2477
2511
|
const result = await this.api.messages.sendMedia({
|
|
@@ -2479,7 +2513,7 @@ export class Client extends ClientAbstract {
|
|
|
2479
2513
|
random_id: randomId,
|
|
2480
2514
|
silent,
|
|
2481
2515
|
noforwards,
|
|
2482
|
-
reply_to:
|
|
2516
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
2483
2517
|
send_as: sendAs,
|
|
2484
2518
|
reply_markup: replyMarkup,
|
|
2485
2519
|
media: new types.InputMediaContact({
|
|
@@ -2491,7 +2525,7 @@ export class Client extends ClientAbstract {
|
|
|
2491
2525
|
message: "",
|
|
2492
2526
|
});
|
|
2493
2527
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
2494
|
-
return
|
|
2528
|
+
return assertMessageType(message, "contact");
|
|
2495
2529
|
}
|
|
2496
2530
|
/**
|
|
2497
2531
|
* Send a dice.
|
|
@@ -2504,8 +2538,6 @@ export class Client extends ClientAbstract {
|
|
|
2504
2538
|
const randomId = getRandomId();
|
|
2505
2539
|
const silent = params?.disableNotification ? true : undefined;
|
|
2506
2540
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2507
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2508
|
-
const topMsgId = params?.messageThreadId;
|
|
2509
2541
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2510
2542
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2511
2543
|
const result = await this.api.messages.sendMedia({
|
|
@@ -2513,7 +2545,7 @@ export class Client extends ClientAbstract {
|
|
|
2513
2545
|
random_id: randomId,
|
|
2514
2546
|
silent,
|
|
2515
2547
|
noforwards,
|
|
2516
|
-
reply_to:
|
|
2548
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
2517
2549
|
send_as: sendAs,
|
|
2518
2550
|
reply_markup: replyMarkup,
|
|
2519
2551
|
media: new types.InputMediaDice({
|
|
@@ -2522,7 +2554,7 @@ export class Client extends ClientAbstract {
|
|
|
2522
2554
|
message: "",
|
|
2523
2555
|
});
|
|
2524
2556
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
2525
|
-
return
|
|
2557
|
+
return assertMessageType(message, "dice");
|
|
2526
2558
|
}
|
|
2527
2559
|
/**
|
|
2528
2560
|
* Send a venue.
|
|
@@ -2539,8 +2571,6 @@ export class Client extends ClientAbstract {
|
|
|
2539
2571
|
const randomId = getRandomId();
|
|
2540
2572
|
const silent = params?.disableNotification ? true : undefined;
|
|
2541
2573
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2542
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2543
|
-
const topMsgId = params?.messageThreadId;
|
|
2544
2574
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2545
2575
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2546
2576
|
const result = await this.api.messages.sendMedia({
|
|
@@ -2548,7 +2578,7 @@ export class Client extends ClientAbstract {
|
|
|
2548
2578
|
random_id: randomId,
|
|
2549
2579
|
silent,
|
|
2550
2580
|
noforwards,
|
|
2551
|
-
reply_to:
|
|
2581
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
2552
2582
|
send_as: sendAs,
|
|
2553
2583
|
reply_markup: replyMarkup,
|
|
2554
2584
|
media: new types.InputMediaVenue({
|
|
@@ -2565,7 +2595,7 @@ export class Client extends ClientAbstract {
|
|
|
2565
2595
|
message: "",
|
|
2566
2596
|
});
|
|
2567
2597
|
const message = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
|
|
2568
|
-
return
|
|
2598
|
+
return assertMessageType(message, "venue");
|
|
2569
2599
|
}
|
|
2570
2600
|
/**
|
|
2571
2601
|
* Get network statistics. This might not always be available.
|
|
@@ -2788,6 +2818,37 @@ export class Client extends ClientAbstract {
|
|
|
2788
2818
|
}
|
|
2789
2819
|
return documents;
|
|
2790
2820
|
}
|
|
2821
|
+
/**
|
|
2822
|
+
* Set a chat's available reactions.
|
|
2823
|
+
*
|
|
2824
|
+
* @param chatId The identifier of the chat.
|
|
2825
|
+
* @param availableReactions The new available reactions.
|
|
2826
|
+
* @method
|
|
2827
|
+
*/
|
|
2828
|
+
async setAvailableReactions(chatId, availableReactions) {
|
|
2829
|
+
// TODO: sync with storage
|
|
2830
|
+
await this.api.messages.setChatAvailableReactions({
|
|
2831
|
+
peer: await this.getInputPeer(chatId),
|
|
2832
|
+
available_reactions: availableReactions == "none" ? new types.ChatReactionsNone() : availableReactions == "all" ? new types.ChatReactionsAll() : Array.isArray(availableReactions) ? new types.ChatReactionsSome({ reactions: availableReactions.map((v) => v.type == "emoji" ? new types.ReactionEmoji({ emoticon: v.emoji }) : new types.ReactionCustomEmoji({ document_id: BigInt(v.id) })) }) : UNREACHABLE(),
|
|
2833
|
+
});
|
|
2834
|
+
}
|
|
2835
|
+
/**
|
|
2836
|
+
* Add a reaction to a message.
|
|
2837
|
+
*
|
|
2838
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
2839
|
+
* @param messageId The identifier of the message to add the reaction to.
|
|
2840
|
+
* @param reaction The reaction to add.
|
|
2841
|
+
*/
|
|
2842
|
+
async addReaction(chatId, messageId, reaction, params) {
|
|
2843
|
+
// TODO: check storage and skip if already there
|
|
2844
|
+
await this.api.messages.sendReaction({
|
|
2845
|
+
peer: await this.getInputPeer(chatId),
|
|
2846
|
+
msg_id: messageId,
|
|
2847
|
+
reaction: [reactionToTlObject(reaction)],
|
|
2848
|
+
big: params?.big ? true : undefined,
|
|
2849
|
+
add_to_recent: params?.addToRecents ? true : undefined,
|
|
2850
|
+
});
|
|
2851
|
+
}
|
|
2791
2852
|
}
|
|
2792
2853
|
_a = Client, _Client_getMe = async function _Client_getMe() {
|
|
2793
2854
|
if (__classPrivateFieldGet(this, _Client_lastGetMe, "f") != null) {
|
|
@@ -2801,49 +2862,16 @@ _a = Client, _Client_getMe = async function _Client_getMe() {
|
|
|
2801
2862
|
}, _Client_handleUpdate =
|
|
2802
2863
|
// TODO: log errors
|
|
2803
2864
|
async function _Client_handleUpdate(update) {
|
|
2804
|
-
if (update instanceof types.
|
|
2805
|
-
update
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
message: update.message,
|
|
2815
|
-
date: update.date,
|
|
2816
|
-
fwd_from: update.fwd_from,
|
|
2817
|
-
via_bot_id: update.via_bot_id,
|
|
2818
|
-
reply_to: update.reply_to,
|
|
2819
|
-
entities: update.entities,
|
|
2820
|
-
ttl_period: update.ttl_period,
|
|
2821
|
-
}),
|
|
2822
|
-
pts: update.pts,
|
|
2823
|
-
pts_count: update.pts_count,
|
|
2824
|
-
});
|
|
2825
|
-
}
|
|
2826
|
-
else if (update instanceof types.UpdateShortChatMessage) {
|
|
2827
|
-
update = new types.UpdateNewMessage({
|
|
2828
|
-
message: new types.Message({
|
|
2829
|
-
out: update.out,
|
|
2830
|
-
mentioned: update.mentioned,
|
|
2831
|
-
media_unread: update.media_unread,
|
|
2832
|
-
silent: update.silent,
|
|
2833
|
-
id: update.id,
|
|
2834
|
-
from_id: new types.PeerUser({ user_id: update.from_id }),
|
|
2835
|
-
peer_id: new types.PeerChat({ chat_id: update.chat_id }),
|
|
2836
|
-
fwd_from: update.fwd_from,
|
|
2837
|
-
via_bot_id: update.via_bot_id,
|
|
2838
|
-
reply_to: update.reply_to,
|
|
2839
|
-
date: update.date,
|
|
2840
|
-
message: update.message,
|
|
2841
|
-
entities: update.entities,
|
|
2842
|
-
ttl_period: update.ttl_period,
|
|
2843
|
-
}),
|
|
2844
|
-
pts: update.pts,
|
|
2845
|
-
pts_count: update.pts_count,
|
|
2846
|
-
});
|
|
2865
|
+
if (update instanceof types.UpdateUserName) {
|
|
2866
|
+
await this.storage.updateUsernames("user", update.user_id, update.usernames.map((v) => v.username));
|
|
2867
|
+
const peer = new types.PeerUser(update);
|
|
2868
|
+
const entity = await this[getEntity](peer);
|
|
2869
|
+
if (entity != null) {
|
|
2870
|
+
entity.usernames = update.usernames;
|
|
2871
|
+
entity.first_name = update.first_name;
|
|
2872
|
+
entity.last_name = update.last_name;
|
|
2873
|
+
await this.storage.setEntity(entity);
|
|
2874
|
+
}
|
|
2847
2875
|
}
|
|
2848
2876
|
if (update instanceof types.UpdateNewMessage || update instanceof types.UpdateNewChannelMessage || update instanceof types.UpdateEditMessage || update instanceof types.UpdateEditChannelMessage) {
|
|
2849
2877
|
if (update.message instanceof types.Message || update.message instanceof types.MessageService) {
|
|
@@ -2852,6 +2880,17 @@ async function _Client_handleUpdate(update) {
|
|
|
2852
2880
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_reassignChatLastMessage).call(this, chatId);
|
|
2853
2881
|
}
|
|
2854
2882
|
}
|
|
2883
|
+
if (update instanceof types.UpdateMessageReactions) {
|
|
2884
|
+
const chatId = peerToChatId(update.peer);
|
|
2885
|
+
const message = await this.storage.getMessage(chatId, update.msg_id);
|
|
2886
|
+
if (message instanceof types.Message) {
|
|
2887
|
+
message.reactions = update.reactions;
|
|
2888
|
+
await this.storage.setMessage(chatId, update.msg_id, message);
|
|
2889
|
+
}
|
|
2890
|
+
const recentReactions = update.reactions.recent_reactions ?? [];
|
|
2891
|
+
const reactions = update.reactions.results.map((v) => constructMessageReaction(v, recentReactions));
|
|
2892
|
+
await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { reactions: { chatId, messageId: update.msg_id, reactions } }), resolve);
|
|
2893
|
+
}
|
|
2855
2894
|
if (update instanceof types.UpdateNewMessage ||
|
|
2856
2895
|
update instanceof types.UpdateNewChannelMessage ||
|
|
2857
2896
|
update instanceof types.UpdateEditMessage ||
|
|
@@ -2951,11 +2990,6 @@ async function _Client_handleUpdate(update) {
|
|
|
2951
2990
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_assertBot).call(this, "replyMarkup");
|
|
2952
2991
|
return replyMarkupToTlObject(params.replyMarkup, __classPrivateFieldGet(this, _Client_usernameResolver, "f").bind(this));
|
|
2953
2992
|
}
|
|
2954
|
-
}, _Client_assertMsgHas = function _Client_assertMsgHas(message, key) {
|
|
2955
|
-
if (!(key in message) || message[key] === undefined) {
|
|
2956
|
-
UNREACHABLE();
|
|
2957
|
-
}
|
|
2958
|
-
return message;
|
|
2959
2993
|
}, _Client_setMyInfo =
|
|
2960
2994
|
//#endregion
|
|
2961
2995
|
async function _Client_setMyInfo(info) {
|
|
@@ -2989,8 +3023,6 @@ async function _Client_setMyInfo(info) {
|
|
|
2989
3023
|
const randomId = getRandomId();
|
|
2990
3024
|
const silent = params?.disableNotification ? true : undefined;
|
|
2991
3025
|
const noforwards = params?.protectContent ? true : undefined;
|
|
2992
|
-
const replyToMsgId = params?.replyToMessageId;
|
|
2993
|
-
const topMsgId = params?.messageThreadId;
|
|
2994
3026
|
const sendAs = params?.sendAs ? await this.getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
|
|
2995
3027
|
const replyMarkup = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyMarkup).call(this, params);
|
|
2996
3028
|
const caption_ = params?.caption;
|
|
@@ -3003,7 +3035,7 @@ async function _Client_setMyInfo(info) {
|
|
|
3003
3035
|
silent,
|
|
3004
3036
|
noforwards,
|
|
3005
3037
|
reply_markup: replyMarkup,
|
|
3006
|
-
reply_to:
|
|
3038
|
+
reply_to: __classPrivateFieldGet(this, _Client_instances, "m", _Client_constructReplyTo).call(this, params),
|
|
3007
3039
|
send_as: sendAs,
|
|
3008
3040
|
media,
|
|
3009
3041
|
message: caption ?? "",
|
|
@@ -3034,8 +3066,14 @@ async function _Client_setMyInfo(info) {
|
|
|
3034
3066
|
const fileName = params?.fileName ?? fileName_;
|
|
3035
3067
|
const mimeType = params?.mimeType ?? contentType(fileName.split(".").slice(-1)[0]) ?? "application/octet-stream";
|
|
3036
3068
|
const file = await this.upload(contents, { fileName, chunkSize: params?.chunkSize, signal: params?.signal });
|
|
3069
|
+
let thumb = undefined;
|
|
3070
|
+
if (params?.thumbnail) {
|
|
3071
|
+
const [thumbContents, fileName__] = await getFileContents(params.thumbnail);
|
|
3072
|
+
thumb = await this.upload(thumbContents, { fileName: fileName__, chunkSize: params?.chunkSize, signal: params?.signal });
|
|
3073
|
+
}
|
|
3037
3074
|
media = new types.InputMediaUploadedDocument({
|
|
3038
3075
|
file,
|
|
3076
|
+
thumb,
|
|
3039
3077
|
spoiler,
|
|
3040
3078
|
attributes: [new types.DocumentAttributeFilename({ file_name: fileName }), ...otherAttribs],
|
|
3041
3079
|
mime_type: mimeType,
|
|
@@ -3267,6 +3305,7 @@ async function _Client_setMyInfo(info) {
|
|
|
3267
3305
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendChatUpdate).call(this, chat.id, false);
|
|
3268
3306
|
}
|
|
3269
3307
|
}
|
|
3308
|
+
await this.storage.setPinnedChats(listId, await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getPinnedChats).call(this, listId));
|
|
3270
3309
|
}, _Client_fetchChats = async function _Client_fetchChats(listId, limit, after) {
|
|
3271
3310
|
const dialogs = await this.api.messages.getDialogs({
|
|
3272
3311
|
limit,
|