@mtkruto/node 0.2.50 → 0.3.0
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 +14 -12
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_storage_operations.d.ts +9 -1
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +24 -14
- 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_file_manager.d.ts +3 -6
- package/esm/client/2_file_manager.d.ts.map +1 -1
- package/esm/client/2_file_manager.js +9 -1
- 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 -3
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +67 -48
- package/esm/client/3_video_chat_manager.d.ts.map +1 -1
- package/esm/client/3_video_chat_manager.js +3 -2
- package/esm/client/4_chat_list_manager.d.ts +3 -0
- package/esm/client/4_chat_list_manager.d.ts.map +1 -1
- package/esm/client/4_chat_list_manager.js +53 -8
- package/esm/client/5_client.d.ts +15 -6
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +63 -19
- 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/esm/types/1_input_media.d.ts +1 -1
- package/esm/types/1_input_media.d.ts.map +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 +14 -12
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_storage_operations.d.ts +9 -1
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +23 -13
- 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_file_manager.d.ts +3 -6
- package/script/client/2_file_manager.d.ts.map +1 -1
- package/script/client/2_file_manager.js +9 -1
- 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 -3
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +74 -55
- package/script/client/3_video_chat_manager.d.ts.map +1 -1
- package/script/client/3_video_chat_manager.js +3 -2
- package/script/client/4_chat_list_manager.d.ts +3 -0
- package/script/client/4_chat_list_manager.d.ts.map +1 -1
- package/script/client/4_chat_list_manager.js +51 -6
- package/script/client/5_client.d.ts +15 -6
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +61 -17
- 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/script/types/1_input_media.d.ts +1 -1
- package/script/types/1_input_media.d.ts.map +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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_message_manager.d.ts","sourceRoot":"","sources":["../../src/client/3_message_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;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AE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc;IAyB/D,uBAAuB,CAAC,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,6BAA6B;IAkBlI,6BAA6B,CAAC,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,6BAA6B;IAOlI,WAAW,CAAC,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,MAAM,CAAC,EAAE,iBAAiB;IA4D7I,aAAa,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,mBAAmB;IAiBlE,cAAc,CAAC,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAmBxC,cAAc,CAAC,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,MAAM,CAAC,EAAE,oBAAoB;CA6DpF"}
|
|
@@ -42,8 +42,6 @@ const _0_message_search_filter_js_1 = require("../types/0_message_search_filter.
|
|
|
42
42
|
const _0_html_js_1 = require("./0_html.js");
|
|
43
43
|
const _0_markdown_js_1 = require("./0_markdown.js");
|
|
44
44
|
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
45
|
-
const _0_utilities_js_2 = require("./0_utilities.js");
|
|
46
|
-
const _0_utilities_js_3 = require("./0_utilities.js");
|
|
47
45
|
const FALLBACK_MIME_TYPE = "application/octet-stream";
|
|
48
46
|
const STICKER_MIME_TYPES = ["image/webp", "video/webm", "application/x-tgsticker"];
|
|
49
47
|
const messageManagerUpdates = [
|
|
@@ -81,7 +79,7 @@ class MessageManager {
|
|
|
81
79
|
__classPrivateFieldSet(this, _MessageManager_LresolveFileId, L.branch("resolveFileId"), "f");
|
|
82
80
|
}
|
|
83
81
|
async getMessages(chatId, messageIds) {
|
|
84
|
-
(0,
|
|
82
|
+
(0, _0_utilities_js_1.checkArray)(messageIds, _0_utilities_js_1.checkMessageId);
|
|
85
83
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
86
84
|
let messages_ = new Array();
|
|
87
85
|
const chatId_ = (0, _2_tl_js_1.peerToChatId)(peer);
|
|
@@ -98,8 +96,8 @@ class MessageManager {
|
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
if (shouldFetch) {
|
|
101
|
-
if ((0,
|
|
102
|
-
messages_ = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.getMessages", channel: (
|
|
99
|
+
if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
100
|
+
messages_ = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.getMessages", channel: (0, _0_utilities_js_1.toInputChannel)(peer), id: messageIds.map((v) => ({ _: "inputMessageID", id: v })) }).then((v) => (0, _2_tl_js_1.as)("messages.channelMessages", v).messages);
|
|
103
101
|
}
|
|
104
102
|
else {
|
|
105
103
|
messages_ = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({
|
|
@@ -172,7 +170,7 @@ class MessageManager {
|
|
|
172
170
|
return await (0, _3_types_js_2.constructMessage)(message_, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity, this.getMessage.bind(this), __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.getStickerSetName.bind(__classPrivateFieldGet(this, _MessageManager_c, "f").fileManager), r, business);
|
|
173
171
|
}
|
|
174
172
|
async forwardMessages(from, to, messageIds, params) {
|
|
175
|
-
(0,
|
|
173
|
+
(0, _0_utilities_js_1.checkArray)(messageIds, _0_utilities_js_1.checkMessageId);
|
|
176
174
|
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.forwardMessages", from_peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(from), to_peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(to), id: messageIds, random_id: messageIds.map(() => (0, _1_utilities_js_1.getRandomId)()), silent: params?.disableNotification || undefined, top_msg_id: params?.messageThreadId, noforwards: params?.disableNotification || undefined, send_as: params?.sendAs ? await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(params.sendAs) : undefined, drop_author: params?.dropSenderName || undefined, drop_media_captions: params?.dropCaption || undefined });
|
|
177
175
|
return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, to, result);
|
|
178
176
|
}
|
|
@@ -463,7 +461,7 @@ class MessageManager {
|
|
|
463
461
|
}
|
|
464
462
|
}
|
|
465
463
|
if (media == null) {
|
|
466
|
-
if (typeof photo === "string" && (0,
|
|
464
|
+
if (typeof photo === "string" && (0, _0_utilities_js_1.isHttpUrl)(photo)) {
|
|
467
465
|
media = { _: "inputMediaPhotoExternal", url: photo, spoiler, ttl_seconds: (params && "selfDestruct" in params && params.selfDestruct !== undefined) ? (0, _3_types_js_1.selfDestructOptionToInt)(params.selfDestruct) : undefined };
|
|
468
466
|
}
|
|
469
467
|
else {
|
|
@@ -542,7 +540,12 @@ class MessageManager {
|
|
|
542
540
|
}
|
|
543
541
|
async editMessageReplyMarkup(chatId, messageId, params) {
|
|
544
542
|
__classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_checkParams).call(this, params);
|
|
545
|
-
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({
|
|
543
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({
|
|
544
|
+
_: "messages.editMessage",
|
|
545
|
+
id: (0, _0_utilities_js_1.checkMessageId)(messageId),
|
|
546
|
+
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
547
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
548
|
+
}, params?.businessConnectionId);
|
|
546
549
|
const message_ = (await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result))[0];
|
|
547
550
|
return message_;
|
|
548
551
|
}
|
|
@@ -559,7 +562,17 @@ class MessageManager {
|
|
|
559
562
|
if (!noWebpage && params?.linkPreview?.url) {
|
|
560
563
|
media = { _: "inputMediaWebPage", url: params.linkPreview.url, force_large_media: params.linkPreview.largeMedia ? true : undefined, force_small_media: params.linkPreview.smallMedia ? true : undefined, optional: message.length ? undefined : true };
|
|
561
564
|
}
|
|
562
|
-
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({
|
|
565
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({
|
|
566
|
+
_: "messages.editMessage",
|
|
567
|
+
id: (0, _0_utilities_js_1.checkMessageId)(messageId),
|
|
568
|
+
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
569
|
+
entities,
|
|
570
|
+
message,
|
|
571
|
+
media,
|
|
572
|
+
no_webpage: noWebpage,
|
|
573
|
+
invert_media: invertMedia,
|
|
574
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
575
|
+
}, params?.businessConnectionId);
|
|
563
576
|
const message_ = (await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result))[0];
|
|
564
577
|
return (0, _3_types_js_2.assertMessageType)(message_, "text");
|
|
565
578
|
}
|
|
@@ -593,7 +606,7 @@ class MessageManager {
|
|
|
593
606
|
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
594
607
|
message: text,
|
|
595
608
|
entities,
|
|
596
|
-
});
|
|
609
|
+
}, params?.businessConnectionId);
|
|
597
610
|
const message_ = (await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result))[0];
|
|
598
611
|
return message_;
|
|
599
612
|
}
|
|
@@ -604,10 +617,10 @@ class MessageManager {
|
|
|
604
617
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.editInlineBotMessage", id, media: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveInputMedia).call(this, media), reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params) });
|
|
605
618
|
}
|
|
606
619
|
async deleteMessages(chatId, messageIds, params) {
|
|
607
|
-
(0,
|
|
620
|
+
(0, _0_utilities_js_1.checkArray)(messageIds, _0_utilities_js_1.checkMessageId);
|
|
608
621
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
609
|
-
if ((0,
|
|
610
|
-
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.deleteMessages", channel:
|
|
622
|
+
if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
623
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.deleteMessages", channel: (0, _0_utilities_js_1.toInputChannel)(peer), id: messageIds });
|
|
611
624
|
}
|
|
612
625
|
else {
|
|
613
626
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.deleteMessages", id: messageIds, revoke: params?.onlyForMe ? undefined : true });
|
|
@@ -615,7 +628,7 @@ class MessageManager {
|
|
|
615
628
|
}
|
|
616
629
|
async deleteScheduledMessages(chatId, messageIds) {
|
|
617
630
|
__classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("sendScheduledMessage");
|
|
618
|
-
(0,
|
|
631
|
+
(0, _0_utilities_js_1.checkArray)(messageIds, _0_utilities_js_1.checkMessageId);
|
|
619
632
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
620
633
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.deleteScheduledMessages", peer, id: messageIds });
|
|
621
634
|
}
|
|
@@ -625,7 +638,7 @@ class MessageManager {
|
|
|
625
638
|
}
|
|
626
639
|
async sendScheduledMessages(chatId, messageIds) {
|
|
627
640
|
__classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("sendScheduledMessages");
|
|
628
|
-
(0,
|
|
641
|
+
(0, _0_utilities_js_1.checkArray)(messageIds, _0_utilities_js_1.checkMessageId);
|
|
629
642
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
630
643
|
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.sendScheduledMessages", peer, id: messageIds });
|
|
631
644
|
return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result);
|
|
@@ -704,9 +717,19 @@ class MessageManager {
|
|
|
704
717
|
(0, _2_tl_js_1.is)("updateNewScheduledMessage", update)) {
|
|
705
718
|
if (!((0, _2_tl_js_1.is)("messageEmpty", update.message))) {
|
|
706
719
|
const isOutgoing = update.message.out;
|
|
707
|
-
let shouldIgnore =
|
|
708
|
-
if (
|
|
709
|
-
|
|
720
|
+
let shouldIgnore = false;
|
|
721
|
+
if (isOutgoing) {
|
|
722
|
+
if (__classPrivateFieldGet(this, _MessageManager_c, "f").outgoingMessages == null) {
|
|
723
|
+
__classPrivateFieldGet(this, _MessageManager_c, "f").outgoingMessages = __classPrivateFieldGet(this, _MessageManager_c, "f").storage.accountType == "user" ? "all" : "business";
|
|
724
|
+
}
|
|
725
|
+
if (__classPrivateFieldGet(this, _MessageManager_c, "f").outgoingMessages == "none") {
|
|
726
|
+
shouldIgnore = true;
|
|
727
|
+
}
|
|
728
|
+
else if (__classPrivateFieldGet(this, _MessageManager_c, "f").outgoingMessages == "business") {
|
|
729
|
+
if (!(0, _2_tl_js_1.is)("updateBotNewBusinessMessage", update) && !(0, _2_tl_js_1.is)("updateBotEditBusinessMessage", update)) {
|
|
730
|
+
shouldIgnore = true;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
710
733
|
}
|
|
711
734
|
if (!shouldIgnore) {
|
|
712
735
|
const business = "connection_id" in update ? { connectionId: update.connection_id, replyToMessage: update.reply_to_message } : undefined;
|
|
@@ -817,11 +840,11 @@ class MessageManager {
|
|
|
817
840
|
}
|
|
818
841
|
async deleteChatPhoto(chatId) {
|
|
819
842
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
820
|
-
if (!((0,
|
|
843
|
+
if (!((0, _0_utilities_js_1.canBeInputChannel)(peer)) && !((0, _2_tl_js_1.is)("inputPeerChat", peer))) {
|
|
821
844
|
(0, _0_deps_js_1.unreachable)();
|
|
822
845
|
}
|
|
823
|
-
if ((0,
|
|
824
|
-
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.editPhoto", channel:
|
|
846
|
+
if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
847
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.editPhoto", channel: (0, _0_utilities_js_1.toInputChannel)(peer), photo: { _: "inputChatPhotoEmpty" } });
|
|
825
848
|
}
|
|
826
849
|
else if ((0, _2_tl_js_1.is)("inputPeerChat", peer)) {
|
|
827
850
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.editChatPhoto", chat_id: peer.chat_id, photo: { _: "inputChatPhotoEmpty" } });
|
|
@@ -829,13 +852,13 @@ class MessageManager {
|
|
|
829
852
|
}
|
|
830
853
|
async setChatPhoto(chatId, photo, params) {
|
|
831
854
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
832
|
-
if (!((0,
|
|
855
|
+
if (!((0, _0_utilities_js_1.canBeInputChannel)(peer)) && !((0, _2_tl_js_1.is)("inputPeerChat", peer))) {
|
|
833
856
|
(0, _0_deps_js_1.unreachable)();
|
|
834
857
|
}
|
|
835
858
|
const file = await __classPrivateFieldGet(this, _MessageManager_c, "f").fileManager.upload(photo, params);
|
|
836
859
|
const photo_ = { _: "inputChatUploadedPhoto", file };
|
|
837
|
-
if ((0,
|
|
838
|
-
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.editPhoto", channel:
|
|
860
|
+
if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
861
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.editPhoto", channel: (0, _0_utilities_js_1.toInputChannel)(peer), photo: photo_ });
|
|
839
862
|
}
|
|
840
863
|
else if ((0, _2_tl_js_1.is)("inputPeerChat", peer)) {
|
|
841
864
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.editChatPhoto", chat_id: peer.chat_id, photo: photo_ });
|
|
@@ -875,10 +898,10 @@ class MessageManager {
|
|
|
875
898
|
});
|
|
876
899
|
}
|
|
877
900
|
else if ((0, _2_tl_js_1.is)("inputPeerChat", chat)) {
|
|
878
|
-
if (!(
|
|
901
|
+
if (!(0, _0_utilities_js_1.canBeInputUser)(member)) {
|
|
879
902
|
throw new _0_errors_js_1.InputError(`Invalid user ID: ${memberId}`);
|
|
880
903
|
}
|
|
881
|
-
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.deleteChatUser", chat_id: chat.chat_id, user_id:
|
|
904
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.deleteChatUser", chat_id: chat.chat_id, user_id: (0, _0_utilities_js_1.toInputUser)(member), revoke_history: params?.deleteMessages ? true : undefined });
|
|
882
905
|
}
|
|
883
906
|
}
|
|
884
907
|
async unbanChatMember(chatId, memberId) {
|
|
@@ -964,11 +987,11 @@ class MessageManager {
|
|
|
964
987
|
async joinChat(chatId) {
|
|
965
988
|
__classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("joinChat");
|
|
966
989
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
967
|
-
if ((0,
|
|
990
|
+
if ((0, _0_utilities_js_1.canBeInputUser)(peer)) {
|
|
968
991
|
throw new _0_errors_js_1.InputError("Cannot join private chats.");
|
|
969
992
|
}
|
|
970
|
-
else if ((0,
|
|
971
|
-
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.joinChannel", channel:
|
|
993
|
+
else if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
994
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.joinChannel", channel: (0, _0_utilities_js_1.toInputChannel)(peer) });
|
|
972
995
|
}
|
|
973
996
|
else if ((0, _2_tl_js_1.is)("inputPeerChat", peer)) {
|
|
974
997
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.addChatUser", chat_id: peer.chat_id, user_id: { _: "inputUserSelf" }, fwd_limit: 0 }); // TODO: use potential high-level method for adding participants to chats
|
|
@@ -979,11 +1002,11 @@ class MessageManager {
|
|
|
979
1002
|
}
|
|
980
1003
|
async leaveChat(chatId) {
|
|
981
1004
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
982
|
-
if ((0,
|
|
1005
|
+
if ((0, _0_utilities_js_1.canBeInputUser)(peer)) {
|
|
983
1006
|
throw new _0_errors_js_1.InputError("Cannot leave private chats.");
|
|
984
1007
|
}
|
|
985
|
-
else if ((0,
|
|
986
|
-
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.leaveChannel", channel:
|
|
1008
|
+
else if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
1009
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.leaveChannel", channel: (0, _0_utilities_js_1.toInputChannel)(peer) });
|
|
987
1010
|
}
|
|
988
1011
|
else if ((0, _2_tl_js_1.is)("inputPeerChat", peer)) {
|
|
989
1012
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "messages.deleteChatUser", chat_id: peer.chat_id, user_id: { _: "inputUserSelf" } }); // TODO: use potential high-level method for adding participants to chats
|
|
@@ -1008,22 +1031,6 @@ class MessageManager {
|
|
|
1008
1031
|
}
|
|
1009
1032
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "contacts.unblock", id });
|
|
1010
1033
|
}
|
|
1011
|
-
async getChatMember(chatId, userId) {
|
|
1012
|
-
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
1013
|
-
if ((0, _2_tl_js_1.is)("inputPeerChannel", peer)) {
|
|
1014
|
-
const { participant } = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.getParticipant", channel: { ...peer, _: "inputChannel" }, participant: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(userId) });
|
|
1015
|
-
return await (0, _3_types_js_2.constructChatMember)(participant, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
|
|
1016
|
-
}
|
|
1017
|
-
else if ((0, _2_tl_js_1.is)("inputPeerChat", peer)) {
|
|
1018
|
-
const user = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputUser(userId);
|
|
1019
|
-
const fullChat = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ ...peer, _: "messages.getFullChat" }).then((v) => (0, _2_tl_js_1.as)("chatFull", v.full_chat));
|
|
1020
|
-
const participant = (0, _2_tl_js_1.as)("chatParticipants", fullChat.participants).participants.find((v) => v.user_id == user.user_id);
|
|
1021
|
-
return await (0, _3_types_js_2.constructChatMember)(participant, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
|
|
1022
|
-
}
|
|
1023
|
-
else {
|
|
1024
|
-
throw new _0_errors_js_1.InputError("Expected a channel, supergroup, or group ID. Got a user ID instead.");
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
1034
|
async setChatStickerSet(chatId, setName) {
|
|
1028
1035
|
const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
|
|
1029
1036
|
await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.setStickers", channel, stickerset: { _: "inputStickerSetShortName", short_name: setName } });
|
|
@@ -1044,7 +1051,13 @@ class MessageManager {
|
|
|
1044
1051
|
if (message.poll.isClosed) {
|
|
1045
1052
|
throw new _0_errors_js_1.InputError("Poll is already stopped.");
|
|
1046
1053
|
}
|
|
1047
|
-
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({
|
|
1054
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({
|
|
1055
|
+
_: "messages.editMessage",
|
|
1056
|
+
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
1057
|
+
id: messageId,
|
|
1058
|
+
media: ({ _: "inputMediaPoll", poll: ({ _: "poll", id: BigInt(message.poll.id), closed: true, question: { _: "textWithEntities", text: "", entities: [] }, answers: [] }) }),
|
|
1059
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
1060
|
+
}, params?.businessConnectionId);
|
|
1048
1061
|
const message_ = (await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result))[0];
|
|
1049
1062
|
return (0, _3_types_js_2.assertMessageType)(message_, "poll").poll;
|
|
1050
1063
|
}
|
|
@@ -1052,7 +1065,13 @@ class MessageManager {
|
|
|
1052
1065
|
__classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_checkParams).call(this, params);
|
|
1053
1066
|
const message = await this.getMessage(chatId, messageId);
|
|
1054
1067
|
if (message && "location" in message && message.location.livePeriod) {
|
|
1055
|
-
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({
|
|
1068
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({
|
|
1069
|
+
_: "messages.editMessage",
|
|
1070
|
+
peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
|
|
1071
|
+
id: messageId,
|
|
1072
|
+
media: ({ _: "inputMediaGeoLive", geo_point: ({ _: "inputGeoPoint", lat: latitude, long: longitude, accuracy_radius: params?.horizontalAccuracy }), heading: params?.heading, proximity_notification_radius: params?.proximityAlertRadius }),
|
|
1073
|
+
reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
|
|
1074
|
+
}, params?.businessConnectionId);
|
|
1056
1075
|
const message = (await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result))[0];
|
|
1057
1076
|
return (0, _3_types_js_2.assertMessageType)(message, "location");
|
|
1058
1077
|
}
|
|
@@ -1148,8 +1167,8 @@ class MessageManager {
|
|
|
1148
1167
|
if ((0, _2_tl_js_1.is)("inputPeerChat", chat)) {
|
|
1149
1168
|
throw new _0_errors_js_1.InputError("addChatMembers cannot be used with basic groups");
|
|
1150
1169
|
}
|
|
1151
|
-
else if ((0,
|
|
1152
|
-
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.inviteToChannel", channel:
|
|
1170
|
+
else if ((0, _0_utilities_js_1.canBeInputChannel)(chat)) {
|
|
1171
|
+
const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").invoke({ _: "channels.inviteToChannel", channel: (0, _0_utilities_js_1.toInputChannel)(chat), users });
|
|
1153
1172
|
return result.missing_invitees.map(_3_types_js_1.constructFailedInvitation);
|
|
1154
1173
|
}
|
|
1155
1174
|
(0, _0_deps_js_1.unreachable)();
|
|
@@ -1296,7 +1315,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1296
1315
|
}
|
|
1297
1316
|
}
|
|
1298
1317
|
if (media == null) {
|
|
1299
|
-
if (typeof document === "string" && (0,
|
|
1318
|
+
if (typeof document === "string" && (0, _0_utilities_js_1.isHttpUrl)(document)) {
|
|
1300
1319
|
if (!urlSupported) {
|
|
1301
1320
|
throw new _0_errors_js_1.InputError("URL not supported.");
|
|
1302
1321
|
}
|
|
@@ -1363,7 +1382,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1363
1382
|
}
|
|
1364
1383
|
}
|
|
1365
1384
|
if (media_ == null) {
|
|
1366
|
-
if (typeof document === "string" && (0,
|
|
1385
|
+
if (typeof document === "string" && (0, _0_utilities_js_1.isHttpUrl)(document)) {
|
|
1367
1386
|
media_ = { _: "inputMediaDocumentExternal", url: document, spoiler };
|
|
1368
1387
|
}
|
|
1369
1388
|
else {
|
|
@@ -1412,7 +1431,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(
|
|
|
1412
1431
|
}
|
|
1413
1432
|
}
|
|
1414
1433
|
if (media_ == null) {
|
|
1415
|
-
if (typeof media.photo === "string" && (0,
|
|
1434
|
+
if (typeof media.photo === "string" && (0, _0_utilities_js_1.isHttpUrl)(media.photo)) {
|
|
1416
1435
|
media_ = { _: "inputMediaPhotoExternal", url: media.photo, spoiler };
|
|
1417
1436
|
}
|
|
1418
1437
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_video_chat_manager.d.ts","sourceRoot":"","sources":["../../src/client/3_video_chat_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAmB,MAAM,YAAY,CAAC;AAClD,OAAO,EAAkD,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChI,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"3_video_chat_manager.d.ts","sourceRoot":"","sources":["../../src/client/3_video_chat_manager.ts"],"names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AE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,6BAA6B;CAmBrI"}
|
|
@@ -37,6 +37,7 @@ const _0_errors_js_1 = require("../0_errors.js");
|
|
|
37
37
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
38
38
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
39
39
|
const _3_types_js_1 = require("../3_types.js");
|
|
40
|
+
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
40
41
|
const videoChatManagerUpdates = [
|
|
41
42
|
"updateGroupCall",
|
|
42
43
|
];
|
|
@@ -158,13 +159,13 @@ class VideoChatManager {
|
|
|
158
159
|
throw new _0_errors_js_1.InputError("Got invalid quality.");
|
|
159
160
|
})(),
|
|
160
161
|
};
|
|
161
|
-
yield* __classPrivateFieldGet(this, _VideoChatManager_c, "f").fileManager.downloadInner(location, call.stream_dc_id ?? (0, _0_deps_js_1.unreachable)());
|
|
162
|
+
yield* __classPrivateFieldGet(this, _VideoChatManager_c, "f").fileManager.downloadInner(location, call.stream_dc_id ?? (0, _0_deps_js_1.unreachable)(), params);
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
exports.VideoChatManager = VideoChatManager;
|
|
165
166
|
_VideoChatManager_c = new WeakMap(), _VideoChatManager_instances = new WeakSet(), _VideoChatManager_createGroupCall = async function _VideoChatManager_createGroupCall(chatId, title, liveStream, scheduleDate) {
|
|
166
167
|
const peer = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").getInputPeer(chatId);
|
|
167
|
-
if ((0,
|
|
168
|
+
if ((0, _0_utilities_js_1.canBeInputUser)(peer)) {
|
|
168
169
|
throw new _0_errors_js_1.InputError("Video chats are only available for groups and channels.");
|
|
169
170
|
}
|
|
170
171
|
const { updates } = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").invoke({ _: "phone.createGroupCall", peer, random_id: (0, _1_utilities_js_1.getRandomId)(true), title, rtmp_stream: liveStream, schedule_date: scheduleDate ? (0, _1_utilities_js_1.toUnixTimestamp)(scheduleDate) : undefined }).then((v) => (0, _2_tl_js_1.as)("updates", v));
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { Api } from "../2_tl.js";
|
|
21
21
|
import { ChatListItem, ChatMember, ID } from "../3_types.js";
|
|
22
|
+
import { GetChatMembersParams } from "./0_params.js";
|
|
22
23
|
import { C as C_ } from "./1_types.js";
|
|
23
24
|
import { FileManager } from "./2_file_manager.js";
|
|
24
25
|
import { MessageManager } from "./3_message_manager.js";
|
|
@@ -37,6 +38,8 @@ export declare class ChatListManager {
|
|
|
37
38
|
handleUpdate(update: ChatListManagerUpdate): Promise<void>;
|
|
38
39
|
getChat(chatId: ID): Promise<import("../3_types.js").Chat>;
|
|
39
40
|
getChatAdministrators(chatId: ID): Promise<ChatMember[]>;
|
|
41
|
+
getChatMember(chatId: ID, userId: ID): Promise<ChatMember>;
|
|
42
|
+
getChatMembers(chatId: ID, params?: GetChatMembersParams): Promise<ChatMember[]>;
|
|
40
43
|
}
|
|
41
44
|
export {};
|
|
42
45
|
//# sourceMappingURL=4_chat_list_manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4_chat_list_manager.d.ts","sourceRoot":"","sources":["../../src/client/4_chat_list_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"4_chat_list_manager.d.ts","sourceRoot":"","sources":["../../src/client/4_chat_list_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAiC,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAmI,EAAE,EAAE,MAAM,eAAe,CAAC;AAC9L,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,KAAK,CAAC,GAAG,EAAE,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,cAAc,EAAE,cAAc,CAAA;CAAE,CAAC;AAE3E,QAAA,MAAM,sBAAsB,qKASlB,CAAC;AAEX,KAAK,qBAAqB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEhF,qBAAa,eAAe;;gBAKd,CAAC,EAAE,CAAC;IAkBV,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,UAAQ,EAAE,UAAU,UAAO;IAwTtE,QAAQ,CAAC,IAAI,GAAE,UAAU,GAAG,MAAe,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,KAAK,SAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IA4B9G,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,qBAAqB;IAIrE,YAAY,CAAC,MAAM,EAAE,qBAAqB;IA0C1C,OAAO,CAAC,MAAM,EAAE,EAAE;IAQlB,qBAAqB,CAAC,MAAM,EAAE,EAAE;IA4BhC,aAAa,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;IAgBpC,cAAc,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,oBAAoB;CA2B/D"}
|
|
@@ -191,8 +191,8 @@ class ChatListManager {
|
|
|
191
191
|
}
|
|
192
192
|
async getChatAdministrators(chatId) {
|
|
193
193
|
const peer = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputPeer(chatId);
|
|
194
|
-
if ((0,
|
|
195
|
-
const channel =
|
|
194
|
+
if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
195
|
+
const channel = (0, _0_utilities_js_1.toInputChannel)(peer);
|
|
196
196
|
const participants = await __classPrivateFieldGet(this, _ChatListManager_c, "f").invoke({ _: "channels.getParticipants", channel, filter: { _: "channelParticipantsAdmins" }, offset: 0, limit: 100, hash: 0n });
|
|
197
197
|
if ((0, _2_tl_js_1.is)("channels.channelParticipantsNotModified", participants)) {
|
|
198
198
|
(0, _0_deps_js_1.unreachable)();
|
|
@@ -218,6 +218,51 @@ class ChatListManager {
|
|
|
218
218
|
(0, _0_deps_js_1.unreachable)();
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
+
async getChatMember(chatId, userId) {
|
|
222
|
+
const peer = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputPeer(chatId);
|
|
223
|
+
if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
224
|
+
const { participant } = await __classPrivateFieldGet(this, _ChatListManager_c, "f").invoke({ _: "channels.getParticipant", channel: (0, _0_utilities_js_1.toInputChannel)(peer), participant: await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputPeer(userId) });
|
|
225
|
+
return await (0, _3_types_js_1.constructChatMember)(participant, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
|
|
226
|
+
}
|
|
227
|
+
else if ((0, _2_tl_js_1.is)("inputPeerChat", peer)) {
|
|
228
|
+
const user = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputUser(userId);
|
|
229
|
+
const fullChat = await __classPrivateFieldGet(this, _ChatListManager_c, "f").invoke({ ...peer, _: "messages.getFullChat" }).then((v) => (0, _2_tl_js_1.as)("chatFull", v.full_chat));
|
|
230
|
+
const participant = (0, _2_tl_js_1.as)("chatParticipants", fullChat.participants).participants.find((v) => v.user_id == user.user_id);
|
|
231
|
+
return await (0, _3_types_js_1.constructChatMember)(participant, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
throw new _0_errors_js_1.InputError("Expected a channel, supergroup, or group ID. Got a user ID instead.");
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
async getChatMembers(chatId, params) {
|
|
238
|
+
const peer = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputPeer(chatId);
|
|
239
|
+
if ((0, _0_utilities_js_1.canBeInputChannel)(peer)) {
|
|
240
|
+
const channel = (0, _0_utilities_js_1.toInputChannel)(peer);
|
|
241
|
+
const participants = await __classPrivateFieldGet(this, _ChatListManager_c, "f").invoke({ _: "channels.getParticipants", channel, filter: { _: "channelParticipantsRecent" }, offset: params?.offset ?? 0, limit: params?.limit ?? 100, hash: 0n });
|
|
242
|
+
if ((0, _2_tl_js_1.is)("channels.channelParticipantsNotModified", participants)) {
|
|
243
|
+
(0, _0_deps_js_1.unreachable)();
|
|
244
|
+
}
|
|
245
|
+
const chatMembers = new Array();
|
|
246
|
+
for (const p of participants.participants) {
|
|
247
|
+
chatMembers.push(await (0, _3_types_js_1.constructChatMember)(p, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity));
|
|
248
|
+
}
|
|
249
|
+
return chatMembers;
|
|
250
|
+
}
|
|
251
|
+
else if ((0, _2_tl_js_1.is)("inputPeerChat", peer)) {
|
|
252
|
+
const fullChat = await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getFullChat).call(this, chatId);
|
|
253
|
+
if (!fullChat || !("participants" in fullChat) || !(0, _2_tl_js_1.is)("chatParticipants", fullChat.participants)) {
|
|
254
|
+
(0, _0_deps_js_1.unreachable)();
|
|
255
|
+
}
|
|
256
|
+
const chatMembers = new Array();
|
|
257
|
+
for (const p of fullChat.participants.participants) {
|
|
258
|
+
chatMembers.push(await (0, _3_types_js_1.constructChatMember)(p, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity));
|
|
259
|
+
}
|
|
260
|
+
return chatMembers;
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
(0, _0_deps_js_1.unreachable)();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
221
266
|
}
|
|
222
267
|
exports.ChatListManager = ChatListManager;
|
|
223
268
|
_ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(), _ChatListManager_chats = new WeakMap(), _ChatListManager_archivedChats = new WeakMap(), _ChatListManager_chatsLoadedFromStorage = new WeakMap(), _ChatListManager_pinnedChats = new WeakMap(), _ChatListManager_pinnedArchiveChats = new WeakMap(), _ChatListManager_storageHadPinnedChats = new WeakMap(), _ChatListManager_pinnedChatsLoaded = new WeakMap(), _ChatListManager_instances = new WeakSet(), _ChatListManager_sendChatUpdate = async function _ChatListManager_sendChatUpdate(chatId, added) {
|
|
@@ -458,14 +503,14 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
|
|
|
458
503
|
if (fullChat != null) {
|
|
459
504
|
return fullChat;
|
|
460
505
|
}
|
|
461
|
-
if ((0,
|
|
462
|
-
fullChat = (await __classPrivateFieldGet(this, _ChatListManager_c, "f").invoke({ _: "users.getFullUser", id:
|
|
506
|
+
if ((0, _0_utilities_js_1.canBeInputUser)(inputPeer)) {
|
|
507
|
+
fullChat = (await __classPrivateFieldGet(this, _ChatListManager_c, "f").invoke({ _: "users.getFullUser", id: (0, _0_utilities_js_1.toInputUser)(inputPeer) })).full_user;
|
|
463
508
|
}
|
|
464
509
|
else if ((0, _2_tl_js_1.is)("inputPeerChat", inputPeer)) {
|
|
465
510
|
fullChat = (await __classPrivateFieldGet(this, _ChatListManager_c, "f").invoke({ ...inputPeer, _: "messages.getFullChat" })).full_chat;
|
|
466
511
|
}
|
|
467
|
-
else if ((0,
|
|
468
|
-
fullChat = (await __classPrivateFieldGet(this, _ChatListManager_c, "f").invoke({ _: "channels.getFullChannel", channel:
|
|
512
|
+
else if ((0, _0_utilities_js_1.canBeInputChannel)(inputPeer)) {
|
|
513
|
+
fullChat = (await __classPrivateFieldGet(this, _ChatListManager_c, "f").invoke({ _: "channels.getFullChannel", channel: (0, _0_utilities_js_1.toInputChannel)(inputPeer) })).full_chat;
|
|
469
514
|
}
|
|
470
515
|
await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setFullChat(chatId_, fullChat);
|
|
471
516
|
if (fullChat != null && "call" in fullChat && fullChat.call) {
|
|
@@ -23,7 +23,7 @@ import { Api } from "../2_tl.js";
|
|
|
23
23
|
import { DC } from "../3_transport.js";
|
|
24
24
|
import { BotCommand, BusinessConnection, CallbackQueryAnswer, CallbackQueryQuestion, Chat, ChatAction, ChatListItem, ChatMember, ChatP, FailedInvitation, FileSource, ID, InactiveChat, InlineQueryAnswer, InlineQueryResult, InputMedia, InputStoryContent, InviteLink, LiveStreamChannel, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageInvoice, MessageLocation, MessagePhoto, MessagePoll, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Poll, PriceTag, Reaction, Sticker, Story, Update, User, VideoChat, VideoChatActive, VideoChatScheduled } from "../3_types.js";
|
|
25
25
|
import { Migrate } from "../4_errors.js";
|
|
26
|
-
import { AddChatMemberParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeclineJoinRequestsParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamChunkParams, DownloadParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, JoinVideoChatParams, PinMessageParams, ReplyParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendInlineQueryParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, SignInParams, StartVideoChatParams, StopPollParams, UnpinMessageParams } from "./0_params.js";
|
|
26
|
+
import { AddChatMemberParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeclineJoinRequestsParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamChunkParams, DownloadParams, EditInlineMessageMediaParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatMembersParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, JoinVideoChatParams, PinMessageParams, ReplyParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendInlineQueryParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, SignInParams, StartVideoChatParams, StopPollParams, UnpinMessageParams } from "./0_params.js";
|
|
27
27
|
import { StorageOperations } from "./0_storage_operations.js";
|
|
28
28
|
import { ClientPlainParams } from "./1_client_plain.js";
|
|
29
29
|
import { Composer as Composer_, NextFunction } from "./1_composer.js";
|
|
@@ -167,6 +167,8 @@ export interface Context {
|
|
|
167
167
|
unblock: () => Promise<void>;
|
|
168
168
|
/** Context-aware alias for `client.getChatMember()`. */
|
|
169
169
|
getChatMember: (userId: ID) => Promise<ChatMember>;
|
|
170
|
+
/** Context-aware alias for `client.getChatMember()`. */
|
|
171
|
+
getChatMembers: (params?: GetChatMembersParams) => Promise<ChatMember[]>;
|
|
170
172
|
/** Context-aware alias for `client.setChatStickerSet()`. */
|
|
171
173
|
setChatStickerSet: (setName: string) => Promise<void>;
|
|
172
174
|
/** Context-aware alias for `client.deleteChatStickerSet()`. */
|
|
@@ -216,8 +218,8 @@ export interface ClientParams extends ClientPlainParams {
|
|
|
216
218
|
systemVersion?: string;
|
|
217
219
|
/** Whether to use default handlers. Defaults to `true`. */
|
|
218
220
|
defaultHandlers?: boolean;
|
|
219
|
-
/**
|
|
220
|
-
|
|
221
|
+
/** What types of outgoing messages should be received. `business` is only valid for bots. Defaults to `business` for bots, and `all` for users. */
|
|
222
|
+
outgoingMessages?: "none" | "business" | "all";
|
|
221
223
|
/** Default command prefixes. Defaults to `"/"` for bots and `"\"` for users. This option must be set separately for nested composers. */
|
|
222
224
|
prefixes?: string | string[];
|
|
223
225
|
/** Whether to guarantee that order-sensitive updates are delivered at least once before delivering next ones. Useful mainly for clients providing a user interface à la Telegram Desktop. Defaults to `false`. */
|
|
@@ -319,13 +321,13 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
319
321
|
*
|
|
320
322
|
* @param id The identifier of the channel or the supergroup.
|
|
321
323
|
*/
|
|
322
|
-
getInputChannel(id: ID): Promise<Api.inputChannel>;
|
|
324
|
+
getInputChannel(id: ID): Promise<Api.inputChannel | Api.inputChannelFromMessage>;
|
|
323
325
|
/**
|
|
324
326
|
* Get a user's inputUser. Useful when calling API functions directly.
|
|
325
327
|
*
|
|
326
328
|
* @param id The identifier of the user.
|
|
327
329
|
*/
|
|
328
|
-
getInputUser(id: ID): Promise<Api.inputUser>;
|
|
330
|
+
getInputUser(id: ID): Promise<Api.inputUser | Api.inputUserFromMessage>;
|
|
329
331
|
private [getEntity];
|
|
330
332
|
private [getEntity];
|
|
331
333
|
private [getEntity];
|
|
@@ -555,7 +557,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
555
557
|
* @param inlineMessageId The inline message's identifier.
|
|
556
558
|
* @param media The new media of the message.
|
|
557
559
|
*/
|
|
558
|
-
editInlineMessageMedia(inlineMessageId: string, media: InputMedia, params?:
|
|
560
|
+
editInlineMessageMedia(inlineMessageId: string, media: InputMedia, params?: EditInlineMessageMediaParams): Promise<void>;
|
|
559
561
|
/**
|
|
560
562
|
* Edit an inline message's text. Bot-only.
|
|
561
563
|
*
|
|
@@ -906,6 +908,13 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
906
908
|
* @param userId The identifier of the user.
|
|
907
909
|
*/
|
|
908
910
|
getChatMember(chatId: ID, userId: ID): Promise<ChatMember>;
|
|
911
|
+
/**
|
|
912
|
+
* Get the members of a chat.
|
|
913
|
+
*
|
|
914
|
+
* @method ch
|
|
915
|
+
* @param chatId The chat to get its members.
|
|
916
|
+
*/
|
|
917
|
+
getChatMembers(chatId: ID, params?: GetChatMembersParams): Promise<ChatMember[]>;
|
|
909
918
|
/**
|
|
910
919
|
* Set a chat's sticker set.
|
|
911
920
|
*
|