@mtkruto/node 0.16.0 → 0.18.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 +2 -2
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +2 -2
- package/esm/3_types.d.ts +1 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +1 -0
- package/esm/client/0_storage_operations.d.ts +11 -1
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +36 -4
- package/esm/client/3_message_manager.d.ts +3 -2
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +42 -3
- package/esm/client/4_gift_manager.d.ts +1 -0
- package/esm/client/4_gift_manager.d.ts.map +1 -1
- package/esm/client/4_gift_manager.js +8 -0
- package/esm/client/5_client.d.ts +17 -1
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_equals.js +3 -2
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/_validate_binary_like.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/base64.d.ts.map +1 -1
- package/esm/types/0_voice_transcription.d.ts +31 -0
- package/esm/types/0_voice_transcription.d.ts.map +1 -0
- package/esm/types/0_voice_transcription.js +26 -0
- package/esm/types/6_update.d.ts +21 -2
- package/esm/types/6_update.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +2 -2
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +2 -2
- package/script/3_types.d.ts +1 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +1 -0
- package/script/client/0_storage_operations.d.ts +11 -1
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +36 -4
- package/script/client/3_message_manager.d.ts +3 -2
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +41 -2
- package/script/client/4_gift_manager.d.ts +1 -0
- package/script/client/4_gift_manager.d.ts.map +1 -1
- package/script/client/4_gift_manager.js +8 -0
- package/script/client/5_client.d.ts +17 -1
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +20 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_equals.js +3 -2
- package/script/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/_validate_binary_like.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/base64.d.ts.map +1 -1
- package/script/types/0_voice_transcription.d.ts +31 -0
- package/script/types/0_voice_transcription.d.ts.map +1 -0
- package/script/types/0_voice_transcription.js +29 -0
- package/script/types/6_update.d.ts +21 -2
- package/script/types/6_update.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/almost_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/array_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/assert.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/fail.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/greater.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/greater_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/less.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/less_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/string_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/throws.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/unimplemented.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.9/unreachable.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/almost_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/array_includes.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/assert.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/exists.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/fail.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/greater.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/greater_or_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/less.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/less_or_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/object_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/rejects.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/string_includes.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/throws.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/unimplemented.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.9/unreachable.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/almost_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/almost_equals.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/array_includes.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/array_includes.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/assert.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/assert.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/assertion_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/assertion_error.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/equal.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/equals.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/exists.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/fail.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/fail.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/false.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/false.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/greater.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/greater.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/greater_or_equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/greater_or_equal.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/instance_of.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/is_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/is_error.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/less.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/less.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/less_or_equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/less_or_equal.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/match.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/mod.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_instance_of.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_match.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_strict_equals.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/object_match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/object_match.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/rejects.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/rejects.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/strict_equals.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/string_includes.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/string_includes.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/throws.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/throws.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/unimplemented.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/unimplemented.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/unreachable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/unreachable.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/_validate_binary_like.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/_validate_binary_like.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/base64.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/base64.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/almost_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/almost_equals.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/array_includes.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/array_includes.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/assert.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/assert.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/assertion_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/assertion_error.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/equal.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/equals.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/exists.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/exists.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/fail.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/fail.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/false.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/false.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/greater.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/greater.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/greater_or_equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/greater_or_equal.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/instance_of.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/is_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/is_error.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/less.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/less.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/less_or_equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/less_or_equal.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/match.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/mod.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/mod.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_instance_of.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_match.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_strict_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/not_strict_equals.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/object_match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/object_match.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/rejects.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/rejects.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/strict_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/strict_equals.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/string_includes.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/string_includes.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/throws.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/throws.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/unimplemented.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/unimplemented.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/unreachable.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.10}/unreachable.js +0 -0
- /package/script/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/_validate_binary_like.d.ts +0 -0
- /package/script/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/_validate_binary_like.js +0 -0
- /package/script/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/base64.d.ts +0 -0
- /package/script/deps/jsr.io/@std/encoding/{1.0.5 → 1.0.6}/base64.js +0 -0
package/esm/client/5_client.js
CHANGED
|
@@ -2111,6 +2111,16 @@ export class Client extends Composer {
|
|
|
2111
2111
|
async startBot(botId, params) {
|
|
2112
2112
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").startBot(botId, params);
|
|
2113
2113
|
}
|
|
2114
|
+
/**
|
|
2115
|
+
* Transcribe a voice message. User-only.
|
|
2116
|
+
*
|
|
2117
|
+
* @method ms
|
|
2118
|
+
* @param chatId The identifier of the chat that includes the message.
|
|
2119
|
+
* @param messageId The identifier of the message.
|
|
2120
|
+
*/
|
|
2121
|
+
async transcribeVoice(chatId, messageId) {
|
|
2122
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").transcribeVoice(chatId, messageId);
|
|
2123
|
+
}
|
|
2114
2124
|
//
|
|
2115
2125
|
// ========================= POLLS ========================= //
|
|
2116
2126
|
//
|
|
@@ -3015,6 +3025,16 @@ export class Client extends Composer {
|
|
|
3015
3025
|
async sendGift(userId, giftId, params) {
|
|
3016
3026
|
await __classPrivateFieldGet(this, _Client_giftManager, "f").sendGift(userId, giftId, params);
|
|
3017
3027
|
}
|
|
3028
|
+
/**
|
|
3029
|
+
* Sell a gift.
|
|
3030
|
+
*
|
|
3031
|
+
* @method gf
|
|
3032
|
+
* @param userId The identifier of the user that sent the gift.
|
|
3033
|
+
* @param messageId The identifier of the service message announcing the receival of the gift.
|
|
3034
|
+
*/
|
|
3035
|
+
async sellGift(userId, messageId) {
|
|
3036
|
+
await __classPrivateFieldGet(this, _Client_giftManager, "f").sellGift(userId, messageId);
|
|
3037
|
+
}
|
|
3018
3038
|
}
|
|
3019
3039
|
_a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
3020
3040
|
if (__classPrivateFieldGet(this, _Client_disableUpdates, "f") && !("authorizationState" in update) && !("connectionState" in update)) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/almost_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/array_includes.ts"],"names":[],"mappings":"AAMA,0FAA0F;AAC1F,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EACzB,GAAG,CAAC,EAAE,MAAM,QAwBb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/equal.ts"],"names":[],"mappings":"AA2FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAuGrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/equals.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAkBb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/exists.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/fail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/greater.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAE9B,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAE9C,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CA6BnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CA8BpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/less.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/less_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/not_equals.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAUtE"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { equal } from "./equal.js";
|
|
4
4
|
import { AssertionError } from "./assertion_error.js";
|
|
5
|
+
import { format } from "../../internal/1.0.5/format.js";
|
|
5
6
|
/**
|
|
6
7
|
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
7
8
|
* If not then throw.
|
|
@@ -25,8 +26,8 @@ export function assertNotEquals(actual, expected, msg) {
|
|
|
25
26
|
if (!equal(actual, expected)) {
|
|
26
27
|
return;
|
|
27
28
|
}
|
|
28
|
-
const actualString =
|
|
29
|
-
const expectedString =
|
|
29
|
+
const actualString = format(actual);
|
|
30
|
+
const expectedString = format(expected);
|
|
30
31
|
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
31
32
|
throw new AssertionError(`Expected actual: ${actualString} not to be: ${expectedString}${msgSuffix}`);
|
|
32
33
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/not_instance_of.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,CAAC,EAET,cAAc,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAClD,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAKjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/not_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAYb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/object_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,iBAAiB,CAE/B,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAChC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EACtC,GAAG,CAAC,EAAE,MAAM,GACX,IAAI,CAUN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rejects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/rejects.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAC9B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAE9B,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/strict_equals.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,CAAC,CA+BrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/string_includes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"throws.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/throws.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,MAAM,OAAO,EACjB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC;AACX;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAClD,EAAE,EAAE,MAAM,OAAO,EAEjB,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/unimplemented.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.10/unreachable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAG/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.
|
|
1
|
+
{"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.ts"],"names":[],"mappings":"AAeA,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAa9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.
|
|
1
|
+
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/base64.ts"],"names":[],"mappings":"AA6FA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAmC5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAQpD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2025 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import { Api } from "../2_tl.js";
|
|
21
|
+
/** An audio transcription. */
|
|
22
|
+
export interface VoiceTranscription {
|
|
23
|
+
/** The identifier of the transcription. */
|
|
24
|
+
id: string;
|
|
25
|
+
/** Whether the transciption is complete. */
|
|
26
|
+
done: boolean;
|
|
27
|
+
/** The transcription result. */
|
|
28
|
+
text: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function constructVoiceTranscription(transcribedAudio: Api.messages_TranscribedAudio | Api.updateTranscribedAudio): VoiceTranscription;
|
|
31
|
+
//# sourceMappingURL=0_voice_transcription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0_voice_transcription.d.ts","sourceRoot":"","sources":["../../src/types/0_voice_transcription.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,8BAA8B;AAC9B,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,IAAI,EAAE,OAAO,CAAC;IACd,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,2BAA2B,CAAC,gBAAgB,EAAE,GAAG,CAAC,yBAAyB,GAAG,GAAG,CAAC,sBAAsB,GAAG,kBAAkB,CAM5I"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2025 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
export function constructVoiceTranscription(transcribedAudio) {
|
|
21
|
+
return {
|
|
22
|
+
id: String(transcribedAudio.transcription_id),
|
|
23
|
+
done: !transcribedAudio.pending,
|
|
24
|
+
text: transcribedAudio.text,
|
|
25
|
+
};
|
|
26
|
+
}
|
package/esm/types/6_update.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { MessageReference } from "./0_message_reference.js";
|
|
|
23
23
|
import { StoryReference } from "./0_story_reference.js";
|
|
24
24
|
import { Translation } from "./0_translation.js";
|
|
25
25
|
import { VideoChat } from "./0_video_chat.js";
|
|
26
|
+
import { VoiceTranscription } from "./0_voice_transcription.js";
|
|
26
27
|
import { BusinessConnection } from "./2_business_connection.js";
|
|
27
28
|
import { ChosenInlineResult } from "./2_chosen_inline_result.js";
|
|
28
29
|
import { InlineQuery } from "./2_inline_query.js";
|
|
@@ -397,6 +398,23 @@ export interface UpdatePoll {
|
|
|
397
398
|
*/
|
|
398
399
|
poll: Poll;
|
|
399
400
|
}
|
|
401
|
+
/**
|
|
402
|
+
* A voice transcription was updated.
|
|
403
|
+
*
|
|
404
|
+
* ```
|
|
405
|
+
* client.on("voiceTranscription", (ctx) => {
|
|
406
|
+
* // ctx.voiceTranscription
|
|
407
|
+
* });
|
|
408
|
+
* ```
|
|
409
|
+
* @unlisted
|
|
410
|
+
*/
|
|
411
|
+
export interface UpdateVoiceTranscription {
|
|
412
|
+
/**
|
|
413
|
+
* The new voice transcription.
|
|
414
|
+
* @discriminator
|
|
415
|
+
*/
|
|
416
|
+
voiceTranscription: VoiceTranscription;
|
|
417
|
+
}
|
|
400
418
|
/** @unlisted */
|
|
401
419
|
export interface UpdateMap {
|
|
402
420
|
message: UpdateNewMessage;
|
|
@@ -424,9 +442,10 @@ export interface UpdateMap {
|
|
|
424
442
|
joinRequest: UpdateJoinRequest;
|
|
425
443
|
translations: UpdateTranslations;
|
|
426
444
|
poll: UpdatePoll;
|
|
445
|
+
voiceTranscription: UpdateVoiceTranscription;
|
|
427
446
|
}
|
|
428
447
|
/** @unlisted */
|
|
429
|
-
export type UpdateIntersection = Partial<UpdateConnectionState & UpdateAuthorizationState & UpdateNewMessage & UpdateMessageEdited & UpdateMessageScheduled & UpdateMessagesDeleted & UpdateCallbackQuery & UpdateInlineQuery & UpdateChosenInlineResult & UpdateNewChat & UpdateEditedChat & UpdateDeletedChat & UpdateMessageInteractions & UpdateMessageReactionCount & UpdateMessageReactions & UpdateChatMember & UpdateMyChatMember & UpdateDeletedStory & UpdateNewStory & UpdateBusinessConnection & UpdateVideoChat & UpdatePreCheckoutQuery & UpdateJoinRequest & UpdateTranslations & UpdatePoll>;
|
|
448
|
+
export type UpdateIntersection = Partial<UpdateConnectionState & UpdateAuthorizationState & UpdateNewMessage & UpdateMessageEdited & UpdateMessageScheduled & UpdateMessagesDeleted & UpdateCallbackQuery & UpdateInlineQuery & UpdateChosenInlineResult & UpdateNewChat & UpdateEditedChat & UpdateDeletedChat & UpdateMessageInteractions & UpdateMessageReactionCount & UpdateMessageReactions & UpdateChatMember & UpdateMyChatMember & UpdateDeletedStory & UpdateNewStory & UpdateBusinessConnection & UpdateVideoChat & UpdatePreCheckoutQuery & UpdateJoinRequest & UpdateTranslations & UpdatePoll & UpdateVoiceTranscription>;
|
|
430
449
|
/** An incoming update. */
|
|
431
|
-
export type Update = UpdateConnectionState | UpdateAuthorizationState | UpdateNewMessage | UpdateMessageEdited | UpdateMessageScheduled | UpdateMessagesDeleted | UpdateCallbackQuery | UpdateInlineQuery | UpdateChosenInlineResult | UpdateNewChat | UpdateEditedChat | UpdateDeletedChat | UpdateMessageInteractions | UpdateMessageReactionCount | UpdateMessageReactions | UpdateChatMember | UpdateMyChatMember | UpdateDeletedStory | UpdateNewStory | UpdateBusinessConnection | UpdateVideoChat | UpdatePreCheckoutQuery | UpdateJoinRequest | UpdateTranslations | UpdatePoll;
|
|
450
|
+
export type Update = UpdateConnectionState | UpdateAuthorizationState | UpdateNewMessage | UpdateMessageEdited | UpdateMessageScheduled | UpdateMessagesDeleted | UpdateCallbackQuery | UpdateInlineQuery | UpdateChosenInlineResult | UpdateNewChat | UpdateEditedChat | UpdateDeletedChat | UpdateMessageInteractions | UpdateMessageReactionCount | UpdateMessageReactions | UpdateChatMember | UpdateMyChatMember | UpdateDeletedStory | UpdateNewStory | UpdateBusinessConnection | UpdateVideoChat | UpdatePreCheckoutQuery | UpdateJoinRequest | UpdateTranslations | UpdatePoll | UpdateVoiceTranscription;
|
|
432
451
|
//# sourceMappingURL=6_update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{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C;AAEF,0BAA0B;AAC1B,MAAM,MAAM,MAAM,GACd,qBAAqB,GACrB,wBAAwB,GACxB,gBAAgB,GAChB,mBAAmB,GACnB,sBAAsB,GACtB,qBAAqB,GACrB,mBAAmB,GACnB,iBAAiB,GACjB,wBAAwB,GACxB,aAAa,GACb,gBAAgB,GAChB,iBAAiB,GACjB,yBAAyB,GACzB,0BAA0B,GAC1B,sBAAsB,GACtB,gBAAgB,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,wBAAwB,GACxB,eAAe,GACf,sBAAsB,GACtB,iBAAiB,GACjB,kBAAkB,GAClB,UAAU,GACV,wBAAwB,CAAC"}
|
package/package.json
CHANGED
package/script/0_deps.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* You should have received a copy of the GNU Lesser General Public License
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
|
-
export * from "./deps/jsr.io/@std/assert/1.0.
|
|
20
|
+
export * from "./deps/jsr.io/@std/assert/1.0.10/mod.js";
|
|
21
21
|
export { basename } from "./deps/jsr.io/@std/path/1.0.8/basename.js";
|
|
22
22
|
export { extname } from "./deps/jsr.io/@std/path/1.0.8/extname.js";
|
|
23
23
|
export { isAbsolute } from "./deps/jsr.io/@std/path/1.0.8/is_absolute.js";
|
|
@@ -27,7 +27,7 @@ export { concat } from "./deps/jsr.io/@std/bytes/1.0.4/concat.js";
|
|
|
27
27
|
export { MINUTE, SECOND } from "./deps/jsr.io/@std/datetime/0.225.2/constants.js";
|
|
28
28
|
export { toArrayBuffer } from "./deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js";
|
|
29
29
|
export { iterateReader } from "./deps/jsr.io/@std/io/0.225.0/iterate_reader.js";
|
|
30
|
-
export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.
|
|
30
|
+
export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.6/base64.js";
|
|
31
31
|
import { contentType as contentType_ } from "./deps/jsr.io/@std/media-types/1.1.0/content_type.js";
|
|
32
32
|
export declare const contentType: typeof contentType_;
|
|
33
33
|
export declare function extension(mimeType: string): string;
|
package/script/0_deps.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_deps.d.ts","sourceRoot":"","sources":["../src/0_deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"0_deps.d.ts","sourceRoot":"","sources":["../src/0_deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,cAAc,yCAAyC,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kDAAkD,CAAC;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AAEpF,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAEhF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAEzF,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACnG,eAAO,MAAM,WAAW,EAAE,OAAO,YAMhC,CAAC;AAEF,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,UAMzC;AAED,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAEnH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
package/script/0_deps.js
CHANGED
|
@@ -35,7 +35,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Parser = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.contentType = exports.encodeBase64 = exports.decodeBase64 = exports.iterateReader = exports.toArrayBuffer = exports.SECOND = exports.MINUTE = exports.concat = exports.toFileUrl = exports.join = exports.isAbsolute = exports.extname = exports.basename = void 0;
|
|
37
37
|
exports.extension = extension;
|
|
38
|
-
__exportStar(require("./deps/jsr.io/@std/assert/1.0.
|
|
38
|
+
__exportStar(require("./deps/jsr.io/@std/assert/1.0.10/mod.js"), exports);
|
|
39
39
|
var basename_js_1 = require("./deps/jsr.io/@std/path/1.0.8/basename.js");
|
|
40
40
|
Object.defineProperty(exports, "basename", { enumerable: true, get: function () { return basename_js_1.basename; } });
|
|
41
41
|
var extname_js_1 = require("./deps/jsr.io/@std/path/1.0.8/extname.js");
|
|
@@ -55,7 +55,7 @@ var to_array_buffer_js_1 = require("./deps/jsr.io/@std/streams/1.0.8/to_array_bu
|
|
|
55
55
|
Object.defineProperty(exports, "toArrayBuffer", { enumerable: true, get: function () { return to_array_buffer_js_1.toArrayBuffer; } });
|
|
56
56
|
var iterate_reader_js_1 = require("./deps/jsr.io/@std/io/0.225.0/iterate_reader.js");
|
|
57
57
|
Object.defineProperty(exports, "iterateReader", { enumerable: true, get: function () { return iterate_reader_js_1.iterateReader; } });
|
|
58
|
-
var base64_js_1 = require("./deps/jsr.io/@std/encoding/1.0.
|
|
58
|
+
var base64_js_1 = require("./deps/jsr.io/@std/encoding/1.0.6/base64.js");
|
|
59
59
|
Object.defineProperty(exports, "decodeBase64", { enumerable: true, get: function () { return base64_js_1.decodeBase64; } });
|
|
60
60
|
Object.defineProperty(exports, "encodeBase64", { enumerable: true, get: function () { return base64_js_1.encodeBase64; } });
|
|
61
61
|
const content_type_js_1 = require("./deps/jsr.io/@std/media-types/1.1.0/content_type.js");
|
package/script/3_types.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from "./types/0_switch_inline_query_chosen_chats.js";
|
|
|
60
60
|
export * from "./types/0_thumbnail.js";
|
|
61
61
|
export * from "./types/0_translation.js";
|
|
62
62
|
export * from "./types/0_video_chat.js";
|
|
63
|
+
export * from "./types/0_voice_transcription.js";
|
|
63
64
|
export * from "./types/0_voice.js";
|
|
64
65
|
export * from "./types/1_animation.js";
|
|
65
66
|
export * from "./types/1_audio.js";
|
package/script/3_types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_types.d.ts","sourceRoot":"","sources":["../src/3_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAA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yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
|
package/script/3_types.js
CHANGED
|
@@ -76,6 +76,7 @@ __exportStar(require("./types/0_switch_inline_query_chosen_chats.js"), exports);
|
|
|
76
76
|
__exportStar(require("./types/0_thumbnail.js"), exports);
|
|
77
77
|
__exportStar(require("./types/0_translation.js"), exports);
|
|
78
78
|
__exportStar(require("./types/0_video_chat.js"), exports);
|
|
79
|
+
__exportStar(require("./types/0_voice_transcription.js"), exports);
|
|
79
80
|
__exportStar(require("./types/0_voice.js"), exports);
|
|
80
81
|
__exportStar(require("./types/1_animation.js"), exports);
|
|
81
82
|
__exportStar(require("./types/1_audio.js"), exports);
|
|
@@ -21,7 +21,7 @@ import { MaybePromise } from "../1_utilities.js";
|
|
|
21
21
|
import { Storage, StorageKeyPart } from "../2_storage.js";
|
|
22
22
|
import { AnyEntity, Api, ReadObject } from "../2_tl.js";
|
|
23
23
|
import { DC } from "../3_transport.js";
|
|
24
|
-
import { Translation } from "../3_types.js";
|
|
24
|
+
import { Translation, VoiceTranscription } from "../3_types.js";
|
|
25
25
|
export declare const K: {
|
|
26
26
|
connection: {
|
|
27
27
|
P: (string: string) => string;
|
|
@@ -82,6 +82,10 @@ export declare const K: {
|
|
|
82
82
|
pollResult: (pollId: bigint) => (string | bigint)[];
|
|
83
83
|
polls: () => string[];
|
|
84
84
|
poll: (pollId: bigint) => (string | bigint)[];
|
|
85
|
+
voiceTranscriptions: () => string[];
|
|
86
|
+
voiceTranscription: (transcriptionId: bigint) => (string | bigint)[];
|
|
87
|
+
voiceTranscriptionReferences: () => string[];
|
|
88
|
+
voiceTranscriptionReference: (chatId: number, messageId: number, messageEditDate: number) => (string | number)[];
|
|
85
89
|
};
|
|
86
90
|
messages: {
|
|
87
91
|
P: (string: string) => string;
|
|
@@ -205,5 +209,11 @@ export declare class StorageOperations {
|
|
|
205
209
|
setPoll(pollId: bigint, poll: Api.poll): Promise<void>;
|
|
206
210
|
getPoll(pollId: bigint): Promise<Api.poll | null>;
|
|
207
211
|
deletePolls(): Promise<void>;
|
|
212
|
+
setVoiceTranscription(voiceTranscription: VoiceTranscription): Promise<void>;
|
|
213
|
+
getVoiceTranscription(transcriptionId: bigint): Promise<VoiceTranscription | null>;
|
|
214
|
+
deleteVoiceTranscriptions(): Promise<void>;
|
|
215
|
+
setVoiceTranscriptionReference(chatId: number, messageId: number, messageEditDate: Date, transcriptionId: bigint): Promise<void>;
|
|
216
|
+
getVoiceTranscriptionReference(chatId: number, messageId: number, messageEditDate: Date): Promise<bigint | null>;
|
|
217
|
+
deleteVoiceTranscriptionReferences(): Promise<void>;
|
|
208
218
|
}
|
|
209
219
|
//# sourceMappingURL=0_storage_operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_storage_operations.d.ts","sourceRoot":"","sources":["../../src/client/0_storage_operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAA8D,YAAY,EAA+C,MAAM,mBAAmB,CAAC;AAC1J,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,GAAG,EAAqC,UAAU,EAAiC,MAAM,YAAY,CAAC;AAC1H,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"0_storage_operations.d.ts","sourceRoot":"","sources":["../../src/client/0_storage_operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAA8D,YAAY,EAA+C,MAAM,mBAAmB,CAAC;AAC1J,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,GAAG,EAAqC,UAAU,EAAiC,MAAM,YAAY,CAAC;AAC1H,OAAO,EAAE,EAAE,EAAE,MAA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,EAAE;IAIhG,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,CAAC,WAAW;IAI3D,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;IAI/D,iBAAiB;IAQjB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI;IAItC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;IAIjD,WAAW;IAQX,qBAAqB,CAAC,kBAAkB,EAAE,kBAAkB;IAI5D,qBAAqB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAIlF,yBAAyB;IAQzB,8BAA8B,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM;IAIhH,8BAA8B,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIhH,kCAAkC;CAOzC"}
|
|
@@ -87,16 +87,20 @@ exports.K = {
|
|
|
87
87
|
groupCall: (id) => [...exports.K.cache.groupCalls(), id],
|
|
88
88
|
groupCallAccessHashes: () => [exports.K.cache.P("groupCallAccessHashes")],
|
|
89
89
|
groupCallAccessHash: (id) => [...exports.K.cache.groupCallAccessHashes(), id],
|
|
90
|
-
minPeerReferences: () => ["minPeerReferences"],
|
|
90
|
+
minPeerReferences: () => [exports.K.cache.P("minPeerReferences")],
|
|
91
91
|
minPeerReference: (senderId, chatId) => [...exports.K.cache.minPeerReferences(), senderId, chatId],
|
|
92
92
|
minPeerReferenceSender: (senderId) => [...exports.K.cache.minPeerReferences(), senderId],
|
|
93
|
-
allTranslations: () => ["translations"],
|
|
93
|
+
allTranslations: () => [exports.K.cache.P("translations")],
|
|
94
94
|
platformTranslations: (platform) => [...exports.K.cache.allTranslations(), platform],
|
|
95
95
|
translations: (platform, language) => [...exports.K.cache.platformTranslations(platform), language],
|
|
96
|
-
pollResults: () => ["pollResults"],
|
|
96
|
+
pollResults: () => [exports.K.cache.P("pollResults")],
|
|
97
97
|
pollResult: (pollId) => [...exports.K.cache.pollResults(), pollId],
|
|
98
|
-
polls: () => ["polls"],
|
|
98
|
+
polls: () => [exports.K.cache.P("polls")],
|
|
99
99
|
poll: (pollId) => [...exports.K.cache.polls(), pollId],
|
|
100
|
+
voiceTranscriptions: () => [exports.K.cache.P("voiceTranscriptions")],
|
|
101
|
+
voiceTranscription: (transcriptionId) => [...exports.K.cache.voiceTranscriptions(), transcriptionId],
|
|
102
|
+
voiceTranscriptionReferences: () => [exports.K.cache.P("voiceTranscriptions")],
|
|
103
|
+
voiceTranscriptionReference: (chatId, messageId, messageEditDate) => [...exports.K.cache.voiceTranscriptionReferences(), chatId, messageId, messageEditDate],
|
|
100
104
|
},
|
|
101
105
|
messages: {
|
|
102
106
|
P: (string) => `messages.${string}`,
|
|
@@ -599,6 +603,8 @@ class StorageOperations {
|
|
|
599
603
|
this.deleteTranslations(),
|
|
600
604
|
this.deletePollResults(),
|
|
601
605
|
this.deletePolls(),
|
|
606
|
+
this.deleteVoiceTranscriptions(),
|
|
607
|
+
this.deleteVoiceTranscriptionReferences(),
|
|
602
608
|
]);
|
|
603
609
|
}
|
|
604
610
|
async setApiId(apiId) {
|
|
@@ -661,6 +667,32 @@ class StorageOperations {
|
|
|
661
667
|
}
|
|
662
668
|
await Promise.all(maybePromises);
|
|
663
669
|
}
|
|
670
|
+
async setVoiceTranscription(voiceTranscription) {
|
|
671
|
+
await this.set(exports.K.cache.voiceTranscription(BigInt(voiceTranscription.id)), voiceTranscription);
|
|
672
|
+
}
|
|
673
|
+
async getVoiceTranscription(transcriptionId) {
|
|
674
|
+
return await this.get(exports.K.cache.voiceTranscription(transcriptionId));
|
|
675
|
+
}
|
|
676
|
+
async deleteVoiceTranscriptions() {
|
|
677
|
+
const maybePromises = new Array();
|
|
678
|
+
for await (const [key] of await __classPrivateFieldGet(this, _StorageOperations_storage, "f").getMany({ prefix: exports.K.cache.voiceTranscriptions() })) {
|
|
679
|
+
maybePromises.push(__classPrivateFieldGet(this, _StorageOperations_storage, "f").set(key, null));
|
|
680
|
+
}
|
|
681
|
+
await Promise.all(maybePromises);
|
|
682
|
+
}
|
|
683
|
+
async setVoiceTranscriptionReference(chatId, messageId, messageEditDate, transcriptionId) {
|
|
684
|
+
await this.set(exports.K.cache.voiceTranscriptionReference(chatId, messageId, messageEditDate.getTime()), transcriptionId);
|
|
685
|
+
}
|
|
686
|
+
async getVoiceTranscriptionReference(chatId, messageId, messageEditDate) {
|
|
687
|
+
return await this.get(exports.K.cache.voiceTranscriptionReference(chatId, messageId, messageEditDate.getTime()));
|
|
688
|
+
}
|
|
689
|
+
async deleteVoiceTranscriptionReferences() {
|
|
690
|
+
const maybePromises = new Array();
|
|
691
|
+
for await (const [key] of await __classPrivateFieldGet(this, _StorageOperations_storage, "f").getMany({ prefix: exports.K.cache.voiceTranscriptions() })) {
|
|
692
|
+
maybePromises.push(__classPrivateFieldGet(this, _StorageOperations_storage, "f").set(key, null));
|
|
693
|
+
}
|
|
694
|
+
await Promise.all(maybePromises);
|
|
695
|
+
}
|
|
664
696
|
}
|
|
665
697
|
exports.StorageOperations = StorageOperations;
|
|
666
698
|
_StorageOperations_storage = new WeakMap(), _StorageOperations_supportsFiles = new WeakMap(), _StorageOperations_mustSerialize = new WeakMap(), _StorageOperations_authKeyId = new WeakMap(), _StorageOperations_accountId = new WeakMap(), _StorageOperations_accountType = new WeakMap(), _StorageOperations_instances = new WeakSet(), _StorageOperations_resetAuthKeyId = async function _StorageOperations_resetAuthKeyId(authKey) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
import { Api } from "../2_tl.js";
|
|
21
|
-
import { InputMedia, PollOption, PriceTag } from "../3_types.js";
|
|
21
|
+
import { InputMedia, PollOption, PriceTag, VoiceTranscription } from "../3_types.js";
|
|
22
22
|
import { ChatAction, FileSource, FileType, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
|
|
23
23
|
import { AddReactionParams, DeleteMessagesParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageTextParams, ForwardMessagesParams, GetHistoryParams, PinMessageParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendChatActionParams, SendContactParams, SendDiceParams, SendDocumentParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetReactionsParams, type StartBotParams, StopPollParams, UnpinMessageParams } from "./0_params.js";
|
|
24
24
|
import { UpdateProcessor } from "./0_update_processor.js";
|
|
@@ -27,7 +27,7 @@ import { FileManager } from "./2_file_manager.js";
|
|
|
27
27
|
interface C extends C_ {
|
|
28
28
|
fileManager: FileManager;
|
|
29
29
|
}
|
|
30
|
-
declare const messageManagerUpdates: readonly ["updateNewMessage", "updateNewChannelMessage", "updateEditMessage", "updateNewScheduledMessage", "updateEditChannelMessage", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateDeleteMessages", "updateDeleteChannelMessages", "updateDeleteScheduledMessages"];
|
|
30
|
+
declare const messageManagerUpdates: readonly ["updateNewMessage", "updateNewChannelMessage", "updateEditMessage", "updateNewScheduledMessage", "updateEditChannelMessage", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateDeleteMessages", "updateDeleteChannelMessages", "updateDeleteScheduledMessages", "updateTranscribedAudio"];
|
|
31
31
|
type MessageManagerUpdate = Api.Types[(typeof messageManagerUpdates)[number]];
|
|
32
32
|
export declare class MessageManager implements UpdateProcessor<MessageManagerUpdate> {
|
|
33
33
|
#private;
|
|
@@ -101,6 +101,7 @@ export declare class MessageManager implements UpdateProcessor<MessageManagerUpd
|
|
|
101
101
|
sendMediaGroup(chatId: ID, media: InputMedia[], params?: SendMediaGroupParams): Promise<Message[]>;
|
|
102
102
|
readMessages(chatId: ID, untilMessageId: number): Promise<void>;
|
|
103
103
|
startBot(botId: ID, params?: StartBotParams): Promise<Message>;
|
|
104
|
+
transcribeVoice(chatId: ID, messageId: number): Promise<VoiceTranscription>;
|
|
104
105
|
}
|
|
105
106
|
export {};
|
|
106
107
|
//# sourceMappingURL=3_message_manager.d.ts.map
|