@mtkruto/node 0.2.51 → 0.3.1
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 +3 -3
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +3 -3
- package/esm/client/0_params.d.ts +3 -1
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_storage_operations.d.ts +8 -0
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +22 -13
- package/esm/client/0_utilities.d.ts +5 -0
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/0_utilities.js +33 -1
- package/esm/client/1_types.d.ts +3 -3
- package/esm/client/1_types.d.ts.map +1 -1
- package/esm/client/2_account_manager.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +11 -10
- package/esm/client/2_update_manager.d.ts +2 -2
- package/esm/client/2_update_manager.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +100 -14
- package/esm/client/3_message_manager.d.ts +2 -2
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +66 -31
- package/esm/client/3_video_chat_manager.d.ts.map +1 -1
- package/esm/client/3_video_chat_manager.js +2 -1
- package/esm/client/4_chat_list_manager.js +11 -11
- package/esm/client/5_client.d.ts +6 -6
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +49 -18
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/almost_equals.d.ts +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/almost_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/almost_equals.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/array_includes.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/array_includes.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/array_includes.js +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/equal.d.ts +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equal.js +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.js +5 -5
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/exists.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/exists.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/exists.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/fail.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/fail.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/fail.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/false.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/false.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/false.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/greater_or_equal.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater_or_equal.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/instance_of.d.ts +3 -3
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/instance_of.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/is_error.d.ts +2 -2
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/is_error.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/less.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/less_or_equal.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less_or_equal.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/match.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/match.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/not_instance_of.d.ts +2 -2
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_instance_of.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/not_strict_equals.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_strict_equals.js +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.d.ts +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/rejects.d.ts +3 -3
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/rejects.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/rejects.js +2 -3
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/strict_equals.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/strict_equals.js +6 -6
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/string_includes.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/string_includes.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/string_includes.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.d.ts +3 -3
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.js +2 -3
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/unreachable.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unreachable.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unreachable.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.2}/concat.d.ts +3 -2
- package/esm/deps/jsr.io/@std/bytes/1.0.2/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.2}/concat.js +3 -2
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/internal/1.0.3 → esm/deps/jsr.io/@std/internal/1.0.4}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts.map +1 -1
- package/esm/tl/3_utilities.js +2 -2
- package/esm/types/0_id.d.ts +1 -1
- package/esm/types/1_bot_command_scope.js +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +3 -3
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +3 -3
- package/script/client/0_params.d.ts +3 -1
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_storage_operations.d.ts +8 -0
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +21 -12
- package/script/client/0_utilities.d.ts +5 -0
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/0_utilities.js +37 -1
- package/script/client/1_types.d.ts +3 -3
- package/script/client/1_types.d.ts.map +1 -1
- package/script/client/2_account_manager.d.ts.map +1 -1
- package/script/client/2_account_manager.js +11 -10
- package/script/client/2_update_manager.d.ts +2 -2
- package/script/client/2_update_manager.d.ts.map +1 -1
- package/script/client/2_update_manager.js +100 -14
- package/script/client/3_message_manager.d.ts +2 -2
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +74 -39
- package/script/client/3_video_chat_manager.d.ts.map +1 -1
- package/script/client/3_video_chat_manager.js +2 -1
- package/script/client/4_chat_list_manager.js +10 -10
- package/script/client/5_client.d.ts +6 -6
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +47 -16
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/almost_equals.d.ts +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/almost_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/almost_equals.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/array_includes.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/array_includes.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/array_includes.js +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/equal.d.ts +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equal.js +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.js +5 -5
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/exists.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/exists.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/exists.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/fail.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/fail.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/fail.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/false.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/false.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/false.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/greater_or_equal.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater_or_equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater_or_equal.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/instance_of.d.ts +3 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/instance_of.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/is_error.d.ts +2 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/is_error.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/less.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/less_or_equal.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less_or_equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less_or_equal.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/match.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/match.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/not_instance_of.d.ts +2 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_instance_of.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/not_strict_equals.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_strict_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_strict_equals.js +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.d.ts +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/rejects.d.ts +3 -3
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/rejects.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/rejects.js +2 -3
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/strict_equals.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/strict_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/strict_equals.js +6 -6
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/string_includes.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/string_includes.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/string_includes.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.d.ts +3 -3
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.js +2 -3
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/unreachable.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unreachable.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unreachable.js +1 -1
- package/script/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.2}/concat.d.ts +3 -2
- package/script/deps/jsr.io/@std/bytes/1.0.2/concat.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.2}/concat.js +3 -2
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/internal/1.0.3 → script/deps/jsr.io/@std/internal/1.0.4}/diff.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts.map +1 -1
- package/script/tl/3_utilities.js +2 -2
- package/script/types/0_id.d.ts +1 -1
- package/script/types/1_bot_command_scope.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.5/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.5/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.5/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/0.224.0/concat.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.5/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.5/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.5/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/bytes/0.224.0/concat.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.js +0 -0
|
@@ -35,6 +35,7 @@ exports.AccountManager = void 0;
|
|
|
35
35
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
36
36
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
37
37
|
const _3_types_js_1 = require("../3_types.js");
|
|
38
|
+
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
38
39
|
class AccountManager {
|
|
39
40
|
constructor(c) {
|
|
40
41
|
_AccountManager_instances.add(this);
|
|
@@ -55,11 +56,11 @@ class AccountManager {
|
|
|
55
56
|
if ((0, _2_tl_js_1.is)("inputPeerSelf", peer)) {
|
|
56
57
|
return await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "account.reorderUsernames", order });
|
|
57
58
|
}
|
|
58
|
-
else if ((0,
|
|
59
|
-
return await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "bots.reorderUsernames", bot:
|
|
59
|
+
else if ((0, _0_utilities_js_1.canBeInputUser)(peer)) {
|
|
60
|
+
return await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "bots.reorderUsernames", bot: (0, _0_utilities_js_1.toInputUser)(peer), order });
|
|
60
61
|
}
|
|
61
|
-
else if ((0,
|
|
62
|
-
return await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "channels.reorderUsernames", channel:
|
|
62
|
+
else if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
63
|
+
return await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "channels.reorderUsernames", channel: (0, _0_utilities_js_1.toInputChannel)(peer), order });
|
|
63
64
|
}
|
|
64
65
|
else {
|
|
65
66
|
(0, _0_deps_js_1.unreachable)();
|
|
@@ -68,8 +69,8 @@ class AccountManager {
|
|
|
68
69
|
async hideUsernames(id) {
|
|
69
70
|
__classPrivateFieldGet(this, _AccountManager_c, "f").storage.assertUser("hideUsernames");
|
|
70
71
|
const peer = await __classPrivateFieldGet(this, _AccountManager_c, "f").getInputPeer(id);
|
|
71
|
-
if ((0,
|
|
72
|
-
return await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "channels.deactivateAllUsernames", channel:
|
|
72
|
+
if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
73
|
+
return await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "channels.deactivateAllUsernames", channel: (0, _0_utilities_js_1.toInputChannel)(peer) });
|
|
73
74
|
}
|
|
74
75
|
else {
|
|
75
76
|
(0, _0_deps_js_1.unreachable)();
|
|
@@ -87,11 +88,11 @@ _AccountManager_c = new WeakMap(), _AccountManager_instances = new WeakSet(), _A
|
|
|
87
88
|
if ((0, _2_tl_js_1.is)("inputPeerSelf", peer)) {
|
|
88
89
|
await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "account.toggleUsername", username, active });
|
|
89
90
|
}
|
|
90
|
-
else if ((0,
|
|
91
|
-
await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "bots.toggleUsername", bot:
|
|
91
|
+
else if ((0, _0_utilities_js_1.canBeInputUser)(peer)) {
|
|
92
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "bots.toggleUsername", bot: (0, _0_utilities_js_1.toInputUser)(peer), username, active });
|
|
92
93
|
}
|
|
93
|
-
else if ((0,
|
|
94
|
-
await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "channels.toggleUsername", channel:
|
|
94
|
+
else if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
95
|
+
await __classPrivateFieldGet(this, _AccountManager_c, "f").invoke({ _: "channels.toggleUsername", channel: (0, _0_utilities_js_1.toInputChannel)(peer), username, active });
|
|
95
96
|
}
|
|
96
97
|
else {
|
|
97
98
|
(0, _0_deps_js_1.unreachable)();
|
|
@@ -34,9 +34,9 @@ export declare class UpdateManager {
|
|
|
34
34
|
static isQtsUpdate(v: Api.Update): v is QtsUpdate;
|
|
35
35
|
static isChannelPtsUpdate(v: Api.Update | Api.Updates): v is ChannelPtsUpdate;
|
|
36
36
|
fetchState(source: string): Promise<void>;
|
|
37
|
-
processChats(chats: Api.Chat[]): Promise<void>;
|
|
37
|
+
processChats(chats: Api.Chat[], context: ReadObject): Promise<void>;
|
|
38
38
|
processResult(result: ReadObject): Promise<void>;
|
|
39
|
-
processUsers(users: Api.User[]): Promise<void>;
|
|
39
|
+
processUsers(users: Api.User[], context: ReadObject): Promise<void>;
|
|
40
40
|
getHandleUpdateQueue(boxId: bigint): Queue;
|
|
41
41
|
processUpdates(updates: Api.Update | Api.Updates, checkGap: boolean, call?: Api.AnyObject | null, callback?: () => void): void;
|
|
42
42
|
recoverUpdateGap(source: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_update_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_update_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AA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@@ -29,7 +29,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
29
29
|
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");
|
|
30
30
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
31
31
|
};
|
|
32
|
-
var _UpdateManager_instances, _a, _UpdateManager_c, _UpdateManager_updateState, _UpdateManager_updateHandler, _UpdateManager_LrecoverUpdateGap, _UpdateManager_LrecoverChannelUpdateGap, _UpdateManager_L$handleUpdate, _UpdateManager_L$processUpdates, _UpdateManager_LfetchState, _UpdateManager_LopenChat, _UpdateManager_defaultDropPendingUpdates, _UpdateManager_mustDropPendingUpdates, _UpdateManager_state, _UpdateManager_getState, _UpdateManager_setState, _UpdateManager_handleUpdateQueues, _UpdateManager_nonFirst, _UpdateManager_getChannelPtsWithDropPendingUpdatesCheck, _UpdateManager_checkGap, _UpdateManager_checkGapQts, _UpdateManager_checkChannelGap, _UpdateManager_channelUpdateQueues, _UpdateManager_processChannelPtsUpdateInner, _UpdateManager_queueUpdate, _UpdateManager_processChannelPtsUpdate, _UpdateManager_processPtsUpdateInner, _UpdateManager_ptsUpdateQueue, _UpdateManager_processPtsUpdate, _UpdateManager_processQtsUpdateInner, _UpdateManager_qtsUpdateQueue, _UpdateManager_processQtsUpdate, _UpdateManager_processUpdatesQueue, _UpdateManager_processUpdates, _UpdateManager_setUpdateStateDate, _UpdateManager_setUpdatePts, _UpdateManager_setUpdateQts, _UpdateManager_getLocalState, _UpdateManager_recoveringUpdateGap, _UpdateManager_recoverUpdateGapMutex, _UpdateManager_recoverChannelUpdateGap, _UpdateManager_handleUpdatesSet, _UpdateManager_handleStoredUpdates, _UpdateManager_handleUpdate, _UpdateManager_openChats;
|
|
32
|
+
var _UpdateManager_instances, _a, _UpdateManager_c, _UpdateManager_updateState, _UpdateManager_updateHandler, _UpdateManager_LrecoverUpdateGap, _UpdateManager_LrecoverChannelUpdateGap, _UpdateManager_L$handleUpdate, _UpdateManager_L$processUpdates, _UpdateManager_LfetchState, _UpdateManager_LopenChat, _UpdateManager_Lmin, _UpdateManager_defaultDropPendingUpdates, _UpdateManager_mustDropPendingUpdates, _UpdateManager_state, _UpdateManager_getState, _UpdateManager_setState, _UpdateManager_extractMessages, _UpdateManager_extractMinPeerReferences, _UpdateManager_handleUpdateQueues, _UpdateManager_nonFirst, _UpdateManager_getChannelPtsWithDropPendingUpdatesCheck, _UpdateManager_checkGap, _UpdateManager_checkGapQts, _UpdateManager_checkChannelGap, _UpdateManager_channelUpdateQueues, _UpdateManager_processChannelPtsUpdateInner, _UpdateManager_queueUpdate, _UpdateManager_processChannelPtsUpdate, _UpdateManager_processPtsUpdateInner, _UpdateManager_ptsUpdateQueue, _UpdateManager_processPtsUpdate, _UpdateManager_processQtsUpdateInner, _UpdateManager_qtsUpdateQueue, _UpdateManager_processQtsUpdate, _UpdateManager_processUpdatesQueue, _UpdateManager_processUpdates, _UpdateManager_setUpdateStateDate, _UpdateManager_setUpdatePts, _UpdateManager_setUpdateQts, _UpdateManager_getLocalState, _UpdateManager_recoveringUpdateGap, _UpdateManager_recoverUpdateGapMutex, _UpdateManager_recoverChannelUpdateGap, _UpdateManager_handleUpdatesSet, _UpdateManager_handleStoredUpdates, _UpdateManager_handleUpdate, _UpdateManager_openChats;
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
34
|
exports.UpdateManager = void 0;
|
|
35
35
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -50,6 +50,7 @@ class UpdateManager {
|
|
|
50
50
|
_UpdateManager_L$processUpdates.set(this, void 0);
|
|
51
51
|
_UpdateManager_LfetchState.set(this, void 0);
|
|
52
52
|
_UpdateManager_LopenChat.set(this, void 0);
|
|
53
|
+
_UpdateManager_Lmin.set(this, void 0);
|
|
53
54
|
_UpdateManager_defaultDropPendingUpdates.set(this, null);
|
|
54
55
|
_UpdateManager_state.set(this, undefined);
|
|
55
56
|
_UpdateManager_handleUpdateQueues.set(this, new Map());
|
|
@@ -70,6 +71,7 @@ class UpdateManager {
|
|
|
70
71
|
__classPrivateFieldSet(this, _UpdateManager_L$processUpdates, L.branch("#processUpdates"), "f");
|
|
71
72
|
__classPrivateFieldSet(this, _UpdateManager_LfetchState, L.branch("fetchState"), "f");
|
|
72
73
|
__classPrivateFieldSet(this, _UpdateManager_LopenChat, L.branch("openChat"), "f");
|
|
74
|
+
__classPrivateFieldSet(this, _UpdateManager_Lmin, L.branch("min"), "f");
|
|
73
75
|
}
|
|
74
76
|
static isPtsUpdate(v) {
|
|
75
77
|
return (0, _2_tl_js_1.isOneOf)(["updateNewMessage", "updateDeleteMessages", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updatePinnedChannelMessages", "updatePinnedMessages", "updateFolderPeers", "updateChannelWebPage", "updateEditMessage", "updateReadMessagesContents", "updateWebPage"], v);
|
|
@@ -103,12 +105,24 @@ class UpdateManager {
|
|
|
103
105
|
await __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_setState).call(this, state);
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
|
-
async processChats(chats) {
|
|
108
|
+
async processChats(chats, context) {
|
|
107
109
|
for (const chat of chats) {
|
|
108
110
|
if ((0, _2_tl_js_1.isOneOf)(["channel", "channelForbidden"], chat)) {
|
|
109
111
|
if (!(0, _2_tl_js_1.is)("channel", chat) || !chat.min || chat.min && await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.getEntity((0, _2_tl_js_1.peerToChatId)(chat)) == null) {
|
|
110
112
|
await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.setEntity(chat);
|
|
111
113
|
}
|
|
114
|
+
if ((0, _2_tl_js_1.is)("channel", chat) && chat.min) {
|
|
115
|
+
const entity = await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.getEntity((0, _2_tl_js_1.peerToChatId)(chat));
|
|
116
|
+
const senderChatId = (0, _2_tl_js_1.peerToChatId)(chat);
|
|
117
|
+
if ((0, _2_tl_js_1.is)("channel", entity) && entity.min) {
|
|
118
|
+
for (const { chatId, senderId, messageId } of __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_extractMinPeerReferences).call(this, context)) {
|
|
119
|
+
if (senderId == senderChatId) {
|
|
120
|
+
await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.setMinPeerReference(chatId, senderId, messageId);
|
|
121
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("channel min peer reference stored", chatId, senderId, messageId);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
112
126
|
if ("username" in chat && chat.username) {
|
|
113
127
|
await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.updateUsernames((0, _2_tl_js_1.peerToChatId)(chat), [chat.username]);
|
|
114
128
|
}
|
|
@@ -195,10 +209,10 @@ class UpdateManager {
|
|
|
195
209
|
"users.userFull",
|
|
196
210
|
], result)) {
|
|
197
211
|
if ("chats" in result) {
|
|
198
|
-
await this.processChats(result.chats);
|
|
212
|
+
await this.processChats(result.chats, result);
|
|
199
213
|
}
|
|
200
214
|
if ("users" in result) {
|
|
201
|
-
await this.processUsers(result.users);
|
|
215
|
+
await this.processUsers(result.users, result);
|
|
202
216
|
}
|
|
203
217
|
if ("messages" in result && Array.isArray(result.messages)) {
|
|
204
218
|
for (const message of result.messages) {
|
|
@@ -216,12 +230,31 @@ class UpdateManager {
|
|
|
216
230
|
}
|
|
217
231
|
}
|
|
218
232
|
}
|
|
219
|
-
async processUsers(users) {
|
|
233
|
+
async processUsers(users, context) {
|
|
220
234
|
for (const user of users) {
|
|
221
235
|
if ((0, _2_tl_js_1.is)("user", user) && user.access_hash) {
|
|
222
236
|
if (!user.min || user.min && await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.getEntity((0, _2_tl_js_1.peerToChatId)(user)) == null) {
|
|
223
237
|
await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.setEntity(user);
|
|
224
238
|
}
|
|
239
|
+
if (user.min) {
|
|
240
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("encountered min user");
|
|
241
|
+
}
|
|
242
|
+
if ((0, _2_tl_js_1.is)("user", user) && user.min) {
|
|
243
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("emu A");
|
|
244
|
+
const entity = await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.getEntity((0, _2_tl_js_1.peerToChatId)(user));
|
|
245
|
+
const userId = (0, _2_tl_js_1.peerToChatId)(user);
|
|
246
|
+
if ((0, _2_tl_js_1.is)("user", entity) && entity.min) {
|
|
247
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("emu B");
|
|
248
|
+
for (const { chatId, senderId, messageId } of __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_extractMinPeerReferences).call(this, context)) {
|
|
249
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("emu C", { chatId, senderId, messageId }, "=", userId);
|
|
250
|
+
if (senderId == userId) {
|
|
251
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("emu X");
|
|
252
|
+
await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.setMinPeerReference(chatId, senderId, messageId);
|
|
253
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("user min peer reference stored", chatId, senderId, messageId);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
225
258
|
if (user.username) {
|
|
226
259
|
await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.updateUsernames((0, _2_tl_js_1.peerToChatId)(user), [user.username]);
|
|
227
260
|
}
|
|
@@ -283,8 +316,8 @@ class UpdateManager {
|
|
|
283
316
|
}
|
|
284
317
|
}
|
|
285
318
|
if ((0, _2_tl_js_1.is)("updates.difference", difference) || (0, _2_tl_js_1.is)("updates.differenceSlice", difference)) {
|
|
286
|
-
await this.processChats(difference.chats);
|
|
287
|
-
await this.processUsers(difference.users);
|
|
319
|
+
await this.processChats(difference.chats, difference);
|
|
320
|
+
await this.processUsers(difference.users, difference);
|
|
288
321
|
for (const message of difference.new_messages) {
|
|
289
322
|
await __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_processUpdates).call(this, { _: "updateNewMessage", message, pts: 0, pts_count: 0 }, false);
|
|
290
323
|
}
|
|
@@ -406,7 +439,7 @@ class UpdateManager {
|
|
|
406
439
|
}
|
|
407
440
|
}
|
|
408
441
|
exports.UpdateManager = UpdateManager;
|
|
409
|
-
_a = UpdateManager, _UpdateManager_c = new WeakMap(), _UpdateManager_updateState = new WeakMap(), _UpdateManager_updateHandler = new WeakMap(), _UpdateManager_LrecoverUpdateGap = new WeakMap(), _UpdateManager_LrecoverChannelUpdateGap = new WeakMap(), _UpdateManager_L$handleUpdate = new WeakMap(), _UpdateManager_L$processUpdates = new WeakMap(), _UpdateManager_LfetchState = new WeakMap(), _UpdateManager_LopenChat = new WeakMap(), _UpdateManager_defaultDropPendingUpdates = new WeakMap(), _UpdateManager_state = new WeakMap(), _UpdateManager_handleUpdateQueues = new WeakMap(), _UpdateManager_nonFirst = new WeakMap(), _UpdateManager_channelUpdateQueues = new WeakMap(), _UpdateManager_ptsUpdateQueue = new WeakMap(), _UpdateManager_qtsUpdateQueue = new WeakMap(), _UpdateManager_processUpdatesQueue = new WeakMap(), _UpdateManager_recoveringUpdateGap = new WeakMap(), _UpdateManager_recoverUpdateGapMutex = new WeakMap(), _UpdateManager_handleUpdatesSet = new WeakMap(), _UpdateManager_openChats = new WeakMap(), _UpdateManager_instances = new WeakSet(), _UpdateManager_mustDropPendingUpdates = async function _UpdateManager_mustDropPendingUpdates() {
|
|
442
|
+
_a = UpdateManager, _UpdateManager_c = new WeakMap(), _UpdateManager_updateState = new WeakMap(), _UpdateManager_updateHandler = new WeakMap(), _UpdateManager_LrecoverUpdateGap = new WeakMap(), _UpdateManager_LrecoverChannelUpdateGap = new WeakMap(), _UpdateManager_L$handleUpdate = new WeakMap(), _UpdateManager_L$processUpdates = new WeakMap(), _UpdateManager_LfetchState = new WeakMap(), _UpdateManager_LopenChat = new WeakMap(), _UpdateManager_Lmin = new WeakMap(), _UpdateManager_defaultDropPendingUpdates = new WeakMap(), _UpdateManager_state = new WeakMap(), _UpdateManager_handleUpdateQueues = new WeakMap(), _UpdateManager_nonFirst = new WeakMap(), _UpdateManager_channelUpdateQueues = new WeakMap(), _UpdateManager_ptsUpdateQueue = new WeakMap(), _UpdateManager_qtsUpdateQueue = new WeakMap(), _UpdateManager_processUpdatesQueue = new WeakMap(), _UpdateManager_recoveringUpdateGap = new WeakMap(), _UpdateManager_recoverUpdateGapMutex = new WeakMap(), _UpdateManager_handleUpdatesSet = new WeakMap(), _UpdateManager_openChats = new WeakMap(), _UpdateManager_instances = new WeakSet(), _UpdateManager_mustDropPendingUpdates = async function _UpdateManager_mustDropPendingUpdates() {
|
|
410
443
|
if (typeof __classPrivateFieldGet(this, _UpdateManager_c, "f").dropPendingUpdates === "boolean") {
|
|
411
444
|
return __classPrivateFieldGet(this, _UpdateManager_c, "f").dropPendingUpdates;
|
|
412
445
|
}
|
|
@@ -428,6 +461,59 @@ _a = UpdateManager, _UpdateManager_c = new WeakMap(), _UpdateManager_updateState
|
|
|
428
461
|
if (!await __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_mustDropPendingUpdates).call(this)) {
|
|
429
462
|
await __classPrivateFieldGet(this, _UpdateManager_c, "f").storage.setState(state);
|
|
430
463
|
}
|
|
464
|
+
}, _UpdateManager_extractMessages = function _UpdateManager_extractMessages(context) {
|
|
465
|
+
const messages = new Array();
|
|
466
|
+
if (Array.isArray(context)) {
|
|
467
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("em A");
|
|
468
|
+
for (const item of context) {
|
|
469
|
+
messages.push(...__classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_extractMessages).call(this, item));
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
else if ((0, _2_tl_js_1.isOneOf)(["updates", "updatesCombined"], context)) {
|
|
473
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("em B");
|
|
474
|
+
messages.push(...__classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_extractMessages).call(this, context.updates));
|
|
475
|
+
}
|
|
476
|
+
else if ((0, _2_tl_js_1.isOneOf)(["updates.difference", "updates.differenceSlice", "updates.channelDifference"], context)) {
|
|
477
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("em C");
|
|
478
|
+
for (const message of context.new_messages) {
|
|
479
|
+
if ((0, _2_tl_js_1.is)("message", message)) {
|
|
480
|
+
messages.push(message);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
messages.push(...__classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_extractMessages).call(this, context.other_updates));
|
|
484
|
+
}
|
|
485
|
+
else if ((0, _2_tl_js_1.isOneOf)(["updateNewMessage", "updateNewChannelMessage", "updateEditMessage", "updateEditChannelMessage", "updateBotNewBusinessMessage", "updateBotNewBusinessMessage"], context)) {
|
|
486
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("em D");
|
|
487
|
+
if ((0, _2_tl_js_1.is)("message", context.message)) {
|
|
488
|
+
messages.push(context.message);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
else if ((0, _2_tl_js_1.is)("message", context)) {
|
|
492
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("em E");
|
|
493
|
+
messages.push(context);
|
|
494
|
+
}
|
|
495
|
+
else if (context != null && typeof context === "object" && "messages" in context && Array.isArray(context.messages)) {
|
|
496
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("em F");
|
|
497
|
+
for (const message of context.messages) {
|
|
498
|
+
if ((0, _2_tl_js_1.is)("message", message)) {
|
|
499
|
+
messages.push(message);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return messages;
|
|
504
|
+
}, _UpdateManager_extractMinPeerReferences = function _UpdateManager_extractMinPeerReferences(context) {
|
|
505
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("empr A");
|
|
506
|
+
const minPeerReferences = new Array();
|
|
507
|
+
const messages = __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_extractMessages).call(this, context);
|
|
508
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("empr B", messages.length, context != null && typeof context == "object" && "_" in context ? context._ : typeof context);
|
|
509
|
+
for (const message of messages) {
|
|
510
|
+
__classPrivateFieldGet(this, _UpdateManager_Lmin, "f").debug("empr C");
|
|
511
|
+
if (!message.from_id) {
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
minPeerReferences.push({ chatId: (0, _2_tl_js_1.peerToChatId)(message.peer_id), senderId: (0, _2_tl_js_1.peerToChatId)(message.from_id), messageId: message.id });
|
|
515
|
+
}
|
|
516
|
+
return minPeerReferences;
|
|
431
517
|
}, _UpdateManager_getChannelPtsWithDropPendingUpdatesCheck = async function _UpdateManager_getChannelPtsWithDropPendingUpdatesCheck(channelId) {
|
|
432
518
|
if (!(await __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_mustDropPendingUpdates).call(this))) {
|
|
433
519
|
return await __classPrivateFieldGet(this, _UpdateManager_c, "f").storage.getChannelPts(channelId);
|
|
@@ -676,8 +762,8 @@ _a = UpdateManager, _UpdateManager_c = new WeakMap(), _UpdateManager_updateState
|
|
|
676
762
|
}
|
|
677
763
|
/// We process the updates when we are sure there is no gap.
|
|
678
764
|
if ((0, _2_tl_js_1.is)("updates", updates_) || (0, _2_tl_js_1.is)("updatesCombined", updates_)) {
|
|
679
|
-
await this.processChats(updates_.chats);
|
|
680
|
-
await this.processUsers(updates_.users);
|
|
765
|
+
await this.processChats(updates_.chats, updates_);
|
|
766
|
+
await this.processUsers(updates_.users, updates_);
|
|
681
767
|
await __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_setUpdateStateDate).call(this, updates_.date);
|
|
682
768
|
}
|
|
683
769
|
else if ((0, _2_tl_js_1.is)("updateShort", updates_) ||
|
|
@@ -773,8 +859,8 @@ _a = UpdateManager, _UpdateManager_c = new WeakMap(), _UpdateManager_updateState
|
|
|
773
859
|
}
|
|
774
860
|
}
|
|
775
861
|
if ((0, _2_tl_js_1.is)("updates.channelDifference", difference)) {
|
|
776
|
-
await this.processChats(difference.chats);
|
|
777
|
-
await this.processUsers(difference.users);
|
|
862
|
+
await this.processChats(difference.chats, difference);
|
|
863
|
+
await this.processUsers(difference.users, difference);
|
|
778
864
|
for (const message of difference.new_messages) {
|
|
779
865
|
await __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_processUpdates).call(this, { _: "updateNewChannelMessage", message, pts: 0, pts_count: 0 }, false);
|
|
780
866
|
}
|
|
@@ -788,8 +874,8 @@ _a = UpdateManager, _UpdateManager_c = new WeakMap(), _UpdateManager_updateState
|
|
|
788
874
|
else if ((0, _2_tl_js_1.is)("updates.channelDifferenceTooLong", difference)) {
|
|
789
875
|
// TODO: invalidate messages
|
|
790
876
|
__classPrivateFieldGet(this, _UpdateManager_LrecoverChannelUpdateGap, "f").debug("received channelDifferenceTooLong");
|
|
791
|
-
await this.processChats(difference.chats);
|
|
792
|
-
await this.processUsers(difference.users);
|
|
877
|
+
await this.processChats(difference.chats, difference);
|
|
878
|
+
await this.processUsers(difference.users, difference);
|
|
793
879
|
for (const message of difference.messages) {
|
|
794
880
|
await __classPrivateFieldGet(this, _UpdateManager_instances, "m", _UpdateManager_processUpdates).call(this, { _: "updateNewChannelMessage", message, pts: 0, pts_count: 0 }, false);
|
|
795
881
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import { Api } from "../2_tl.js";
|
|
21
21
|
import { InputMedia, PollOption, PriceTag } from "../3_types.js";
|
|
22
22
|
import { ChatAction, FileSource, FileType, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
|
|
23
|
-
import { AddChatMemberParams, AddReactionParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateInviteLinkParams, DeclineJoinRequestsParams, DeleteMessagesParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetCreatedInviteLinksParams, GetHistoryParams, PinMessageParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendChatActionParams, SendContactParams, SendDiceParams, SendDocumentParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetReactionsParams, StopPollParams, UnpinMessageParams } from "./0_params.js";
|
|
23
|
+
import { AddChatMemberParams, AddReactionParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateInviteLinkParams, DeclineJoinRequestsParams, DeleteMessagesParams, EditInlineMessageMediaParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetCreatedInviteLinksParams, GetHistoryParams, PinMessageParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendChatActionParams, SendContactParams, SendDiceParams, SendDocumentParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetReactionsParams, StopPollParams, UnpinMessageParams } from "./0_params.js";
|
|
24
24
|
import { C as C_ } from "./1_types.js";
|
|
25
25
|
import { FileManager } from "./2_file_manager.js";
|
|
26
26
|
interface C extends C_ {
|
|
@@ -70,7 +70,7 @@ export declare class MessageManager {
|
|
|
70
70
|
editMessageText(chatId: ID, messageId: number, text: string, params?: EditMessageParams): Promise<import("../3_types.js").MessageText>;
|
|
71
71
|
editInlineMessageText(inlineMessageId: string, text: string, params?: EditMessageParams): Promise<void>;
|
|
72
72
|
editMessageMedia(chatId: ID, messageId: number, media: InputMedia, params?: EditMessageMediaParams): Promise<Message>;
|
|
73
|
-
editInlineMessageMedia(inlineMessageId: string, media: InputMedia, params?:
|
|
73
|
+
editInlineMessageMedia(inlineMessageId: string, media: InputMedia, params?: EditInlineMessageMediaParams): Promise<void>;
|
|
74
74
|
deleteMessages(chatId: ID, messageIds: number[], params?: DeleteMessagesParams): Promise<void>;
|
|
75
75
|
deleteScheduledMessages(chatId: ID, messageIds: number[]): Promise<void>;
|
|
76
76
|
deleteScheduledMessage(chatId: ID, messageId: number): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_message_manager.d.ts","sourceRoot":"","sources":["../../src/client/3_message_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAmD,MAAM,YAAY,CAAC;AAClF,OAAO,EAA+H,UAAU,EAAE,UAAU,EAAE,QAAQ,EAA+C,MAAM,eAAe,CAAC;AAC3O,OAAO,EAAqB,UAAU,
|
|
1
|
+
{"version":3,"file":"3_message_manager.d.ts","sourceRoot":"","sources":["../../src/client/3_message_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAmD,MAAM,YAAY,CAAC;AAClF,OAAO,EAA+H,UAAU,EAAE,UAAU,EAAE,QAAQ,EAA+C,MAAM,eAAe,CAAC;AAC3O,OAAO,EAAqB,UAAU,EAAiG,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,aAAa,EAA2B,SAAS,EAAE,QAAQ,EAA4D,MAAM,EAAE,gBAAgB,EAAE,MAAM,eAAe,CA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