@mtkruto/browser 0.6.0 → 0.119.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/README.md +75 -1
- package/esm/0_deps.d.ts +24 -11
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +27 -14
- package/esm/0_errors.d.ts +9 -2
- package/esm/0_errors.d.ts.map +1 -1
- package/esm/0_errors.js +35 -1
- package/esm/1_utilities.d.ts +6 -6
- package/esm/1_utilities.d.ts.map +1 -1
- package/esm/1_utilities.js +6 -6
- package/esm/2_connection.d.ts +1 -1
- package/esm/2_connection.js +1 -1
- package/esm/2_storage.d.ts +1 -1
- package/esm/2_storage.js +1 -1
- package/esm/2_tl.d.ts +7 -10
- package/esm/2_tl.d.ts.map +1 -1
- package/esm/2_tl.js +7 -10
- package/esm/3_errors.d.ts +8 -3
- package/esm/3_errors.d.ts.map +1 -1
- package/esm/3_errors.js +9 -2
- package/esm/3_transport.d.ts +4 -4
- package/esm/3_transport.js +4 -4
- package/esm/3_types.d.ts +74 -34
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +74 -34
- package/esm/4_constants.d.ts +21 -2
- package/esm/4_constants.d.ts.map +1 -1
- package/esm/4_constants.js +4 -4
- package/esm/4_errors.d.ts +4 -4
- package/esm/4_errors.d.ts.map +1 -1
- package/esm/4_errors.js +1 -1
- package/esm/4_session.d.ts +24 -0
- package/esm/4_session.d.ts.map +1 -0
- package/esm/4_session.js +23 -0
- package/esm/5_client.d.ts +9 -3
- package/esm/5_client.d.ts.map +1 -1
- package/esm/5_client.js +9 -3
- package/esm/_dnt.polyfills.d.ts +119 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +247 -1
- package/esm/_dnt.shims.d.ts +0 -1
- package/esm/_dnt.shims.d.ts.map +1 -1
- package/esm/client/0_abortable_loop.d.ts +27 -0
- package/esm/client/0_abortable_loop.d.ts.map +1 -0
- package/esm/client/0_abortable_loop.js +69 -0
- package/esm/client/0_client_abstract.d.ts +31 -28
- package/esm/client/0_client_abstract.d.ts.map +1 -1
- package/esm/client/0_client_abstract.js +21 -90
- package/esm/client/0_html.d.ts +4 -3
- package/esm/client/0_html.d.ts.map +1 -1
- package/esm/client/0_html.js +412 -74
- package/esm/client/0_markdown.d.ts +2 -2
- package/esm/client/0_markdown.d.ts.map +1 -1
- package/esm/client/0_markdown.js +39 -19
- package/esm/client/0_params.d.ts +327 -44
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_params.js +1 -1
- package/esm/client/0_password.d.ts +6 -6
- package/esm/client/0_password.d.ts.map +1 -1
- package/esm/client/0_password.js +13 -13
- package/esm/client/0_storage_operations.d.ts +81 -69
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +356 -235
- package/esm/client/0_update_processor.d.ts +26 -0
- package/esm/client/0_update_processor.d.ts.map +1 -0
- package/esm/client/0_update_processor.js +20 -0
- package/esm/client/0_utilities.d.ts +10 -5
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/0_utilities.js +45 -31
- package/esm/client/0_worker_error.d.ts +26 -0
- package/esm/client/0_worker_error.d.ts.map +1 -0
- package/esm/client/0_worker_error.js +86 -0
- package/esm/client/0_worker_request.d.ts +27 -0
- package/esm/client/0_worker_request.d.ts.map +1 -0
- package/esm/client/0_worker_request.js +20 -0
- package/esm/client/1_client_generic.d.ts +1846 -0
- package/esm/client/1_client_generic.d.ts.map +1 -0
- package/esm/client/1_client_generic.js +24 -0
- package/esm/client/1_client_plain.d.ts +12 -9
- package/esm/client/1_client_plain.d.ts.map +1 -1
- package/esm/client/1_client_plain.js +41 -52
- package/esm/client/1_invoke_middleware.d.ts +32 -0
- package/esm/client/1_invoke_middleware.d.ts.map +1 -0
- package/esm/client/1_invoke_middleware.js +22 -0
- package/esm/client/1_types.d.ts +17 -32
- package/esm/client/1_types.d.ts.map +1 -1
- package/esm/client/1_types.js +1 -1
- package/esm/client/1_worker_response.d.ts +37 -0
- package/esm/client/1_worker_response.d.ts.map +1 -0
- package/esm/client/1_worker_response.js +20 -0
- package/esm/client/2_account_manager.d.ts +43 -5
- package/esm/client/2_account_manager.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +338 -9
- package/esm/client/2_bot_info_manager.d.ts +12 -5
- package/esm/client/2_bot_info_manager.d.ts.map +1 -1
- package/esm/client/2_bot_info_manager.js +15 -1
- package/esm/client/2_business_connection_manager.d.ts +6 -5
- package/esm/client/2_business_connection_manager.d.ts.map +1 -1
- package/esm/client/2_business_connection_manager.js +9 -9
- package/esm/client/2_client_encrypted.d.ts +58 -0
- package/esm/client/2_client_encrypted.d.ts.map +1 -0
- package/esm/client/2_client_encrypted.js +290 -0
- package/esm/client/2_file_manager.d.ts +27 -7
- package/esm/client/2_file_manager.d.ts.map +1 -1
- package/esm/client/2_file_manager.js +242 -197
- package/esm/client/2_network_statistics_manager.d.ts +5 -5
- package/esm/client/2_network_statistics_manager.d.ts.map +1 -1
- package/esm/client/2_network_statistics_manager.js +36 -10
- package/esm/client/2_payment_manager.d.ts +8 -7
- package/esm/client/2_payment_manager.d.ts.map +1 -1
- package/esm/client/2_payment_manager.js +7 -7
- package/esm/client/2_reaction_manager.d.ts +6 -5
- package/esm/client/2_reaction_manager.d.ts.map +1 -1
- package/esm/client/2_reaction_manager.js +14 -14
- package/esm/client/2_sign_in.d.ts +25 -0
- package/esm/client/2_sign_in.d.ts.map +1 -0
- package/esm/client/2_sign_in.js +114 -0
- package/esm/client/2_translations_manager.d.ts +35 -0
- package/esm/client/2_translations_manager.d.ts.map +1 -0
- package/esm/client/2_translations_manager.js +171 -0
- package/esm/client/2_update_manager.d.ts +11 -8
- package/esm/client/2_update_manager.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +354 -296
- package/esm/client/3_client_encrypted_pool.d.ts +29 -0
- package/esm/client/3_client_encrypted_pool.d.ts.map +1 -0
- package/esm/client/3_client_encrypted_pool.js +63 -0
- package/esm/client/3_filters.d.ts +96 -0
- package/esm/client/3_filters.d.ts.map +1 -0
- package/esm/client/3_filters.js +52 -0
- package/esm/client/3_message_manager.d.ts +30 -35
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +791 -493
- package/esm/client/3_video_chat_manager.d.ts +11 -10
- package/esm/client/3_video_chat_manager.d.ts.map +1 -1
- package/esm/client/3_video_chat_manager.js +49 -46
- package/esm/client/4_callback_query_manager.d.ts +9 -8
- package/esm/client/4_callback_query_manager.d.ts.map +1 -1
- package/esm/client/4_callback_query_manager.js +14 -13
- package/esm/client/4_chat_list_manager.d.ts +20 -11
- package/esm/client/4_chat_list_manager.d.ts.map +1 -1
- package/esm/client/4_chat_list_manager.js +143 -367
- package/esm/client/4_chat_manager.d.ts +86 -0
- package/esm/client/4_chat_manager.d.ts.map +1 -0
- package/esm/client/4_chat_manager.js +486 -0
- package/esm/client/4_checklist_manager.d.ts +38 -0
- package/esm/client/4_checklist_manager.d.ts.map +1 -0
- package/esm/client/4_checklist_manager.js +81 -0
- package/esm/client/4_context.d.ts +691 -0
- package/esm/client/4_context.d.ts.map +1 -0
- package/esm/client/4_context.js +1421 -0
- package/esm/client/4_forum_manager.d.ts +40 -0
- package/esm/client/4_forum_manager.d.ts.map +1 -0
- package/esm/client/4_forum_manager.js +134 -0
- package/esm/client/4_gift_manager.d.ts +39 -0
- package/esm/client/4_gift_manager.d.ts.map +1 -0
- package/esm/client/4_gift_manager.js +97 -0
- package/esm/client/4_inline_query_manager.d.ts +10 -9
- package/esm/client/4_inline_query_manager.d.ts.map +1 -1
- package/esm/client/4_inline_query_manager.js +15 -15
- package/esm/client/4_link_preview_manager.d.ts +39 -0
- package/esm/client/4_link_preview_manager.d.ts.map +1 -0
- package/esm/client/4_link_preview_manager.js +64 -0
- package/esm/client/4_poll_manager.d.ts +39 -0
- package/esm/client/4_poll_manager.d.ts.map +1 -0
- package/esm/client/4_poll_manager.js +118 -0
- package/esm/client/4_story_manager.d.ts +11 -10
- package/esm/client/4_story_manager.d.ts.map +1 -1
- package/esm/client/4_story_manager.js +21 -21
- package/esm/client/5_composer.d.ts +51 -0
- package/esm/client/5_composer.d.ts.map +1 -0
- package/esm/client/5_composer.js +119 -0
- package/esm/client/6_client.d.ts +1952 -0
- package/esm/client/6_client.d.ts.map +1 -0
- package/esm/client/6_client.js +3439 -0
- package/esm/client/6_client_dispatcher.d.ts +1917 -0
- package/esm/client/6_client_dispatcher.d.ts.map +1 -0
- package/esm/client/6_client_dispatcher.js +2493 -0
- package/esm/client/7_client_worker.d.ts +27 -0
- package/esm/client/7_client_worker.d.ts.map +1 -0
- package/esm/client/7_client_worker.js +89 -0
- package/esm/connection/0_connection.d.ts +9 -8
- package/esm/connection/0_connection.d.ts.map +1 -1
- package/esm/connection/0_connection.js +1 -1
- package/esm/connection/1_connection_tcp.d.ts +4 -5
- package/esm/connection/1_connection_tcp.d.ts.map +1 -1
- package/esm/connection/1_connection_tcp.js +26 -27
- package/esm/connection/1_connection_web_socket.d.ts +3 -3
- package/esm/connection/1_connection_web_socket.d.ts.map +1 -1
- package/esm/connection/1_connection_web_socket.js +10 -13
- package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.d.ts +18 -0
- package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.js +63 -0
- package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.d.ts +3 -0
- package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.d.ts.map +1 -0
- package/esm/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.js +301 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/assert.d.ts +17 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/assert.js +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/assertion_error.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts +25 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/equal.js +194 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts +37 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/equals.js +61 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/false.d.ts +19 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/false.js +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/unreachable.js +20 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/_util.js +6 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/abortable.d.ts +107 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/abortable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/abortable.js +46 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/deadline.d.ts +37 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/deadline.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/deadline.js +41 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/debounce.d.ts +44 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/debounce.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/debounce.js +57 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/delay.d.ts +45 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/delay.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/delay.js +84 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/mod.d.ts +22 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/mod.js +23 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts +111 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.js +170 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/pool.d.ts +33 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/pool.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/pool.js +99 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/retry.d.ts +155 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/retry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/retry.js +147 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/tee.d.ts +43 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/tee.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.2.0/tee.js +102 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js +2 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js +32 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/equals.d.ts +22 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/equals.js +82 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/starts_with.d.ts +24 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/starts_with.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/starts_with.js +34 -0
- package/esm/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.d.ts +12 -0
- package/esm/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.js +69 -0
- package/esm/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts +155 -0
- package/esm/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/0.2.2/lru_cache.js +205 -0
- package/esm/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts +111 -0
- package/esm/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/0.2.2/memoize.js +82 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.d.ts +19 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.js +550 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.7/constants.d.ts +265 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.7/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.7/constants.js +266 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.7/format.d.ts +70 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.7/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.7/format.js +66 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_common16.d.ts +23 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_common16.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_common16.js +51 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_common64.d.ts +35 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_common64.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_common64.js +113 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_common_detach.d.ts +4 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_common_detach.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_common_detach.js +13 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/_types.js +2 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/base64.d.ts +40 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/base64.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/base64.js +82 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/hex.d.ts +39 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/hex.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.10/hex.js +87 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts +80 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.js +116 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/diff.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/diff.js +276 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.js +182 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/format.d.ts +29 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/format.js +70 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/styles.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/styles.js +207 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts +25 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/types.js +3 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/_constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/_constants.js +4 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/iterate_reader.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/iterate_reader.js +96 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/types.js +15 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/all_extensions.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/extension.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +9103 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +9138 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/extname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.js +52 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.js +93 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.js +45 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +58 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.js +47 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +135 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.js +35 -0
- package/esm/mod.d.ts +2 -2
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +2 -2
- package/esm/session/0_session_error.d.ts +24 -0
- package/esm/session/0_session_error.d.ts.map +1 -0
- package/esm/session/0_session_error.js +25 -0
- package/esm/session/0_session_state.d.ts +28 -0
- package/esm/session/0_session_state.d.ts.map +1 -0
- package/esm/session/0_session_state.js +77 -0
- package/esm/session/1_session.d.ts +51 -0
- package/esm/session/1_session.d.ts.map +1 -0
- package/esm/session/1_session.js +147 -0
- package/esm/session/2_session_encrypted.d.ts +41 -0
- package/esm/session/2_session_encrypted.d.ts.map +1 -0
- package/esm/session/2_session_encrypted.js +507 -0
- package/esm/session/2_session_plain.d.ts +25 -0
- package/esm/session/2_session_plain.d.ts.map +1 -0
- package/esm/session/2_session_plain.js +56 -0
- package/esm/storage/0_storage.d.ts +3 -2
- package/esm/storage/0_storage.d.ts.map +1 -1
- package/esm/storage/0_storage.js +1 -1
- package/esm/storage/1_utilities.d.ts +15 -11
- package/esm/storage/1_utilities.d.ts.map +1 -1
- package/esm/storage/1_utilities.js +33 -41
- package/esm/storage/2_storage_indexed_db.d.ts +3 -2
- package/esm/storage/2_storage_indexed_db.d.ts.map +1 -1
- package/esm/storage/2_storage_indexed_db.js +7 -4
- package/esm/storage/2_storage_local_storage.d.ts +3 -2
- package/esm/storage/2_storage_local_storage.d.ts.map +1 -1
- package/esm/storage/2_storage_local_storage.js +7 -4
- package/esm/storage/2_storage_memory.d.ts +4 -3
- package/esm/storage/2_storage_memory.d.ts.map +1 -1
- package/esm/storage/2_storage_memory.js +6 -3
- package/esm/storage/2_storage_session_storage.d.ts +4 -3
- package/esm/storage/2_storage_session_storage.d.ts.map +1 -1
- package/esm/storage/2_storage_session_storage.js +7 -4
- package/esm/tl/0_types.d.ts +25 -0
- package/esm/tl/0_types.d.ts.map +1 -0
- package/esm/tl/0_types.js +20 -0
- package/esm/tl/0_utilities.d.ts +34 -0
- package/esm/tl/0_utilities.d.ts.map +1 -0
- package/esm/tl/0_utilities.js +79 -0
- package/esm/tl/1_mtproto_api.d.ts +371 -0
- package/esm/tl/1_mtproto_api.d.ts.map +1 -0
- package/esm/tl/1_mtproto_api.js +416 -0
- package/esm/tl/1_telegram_api.d.ts +19410 -0
- package/esm/tl/1_telegram_api.d.ts.map +1 -0
- package/esm/tl/1_telegram_api.js +22386 -0
- package/esm/tl/1_tl_reader.d.ts +39 -0
- package/esm/tl/1_tl_reader.d.ts.map +1 -0
- package/esm/tl/1_tl_reader.js +228 -0
- package/esm/tl/1_tl_writer.d.ts +37 -0
- package/esm/tl/1_tl_writer.d.ts.map +1 -0
- package/esm/tl/1_tl_writer.js +278 -0
- package/esm/tl/1_utilities.d.ts +9 -14
- package/esm/tl/1_utilities.d.ts.map +1 -1
- package/esm/tl/1_utilities.js +21 -40
- package/esm/tl/2_message.d.ts +36 -0
- package/esm/tl/2_message.d.ts.map +1 -0
- package/esm/tl/2_message.js +73 -0
- package/esm/tl/2_mtproto.d.ts +33 -0
- package/esm/tl/2_mtproto.d.ts.map +1 -0
- package/esm/tl/2_mtproto.js +53 -0
- package/esm/tl/2_telegram.d.ts +49 -0
- package/esm/tl/2_telegram.d.ts.map +1 -0
- package/esm/tl/2_telegram.js +135 -0
- package/esm/transport/0_obfuscation.d.ts +2 -2
- package/esm/transport/0_obfuscation.d.ts.map +1 -1
- package/esm/transport/0_obfuscation.js +10 -9
- package/esm/transport/0_transport.d.ts +4 -6
- package/esm/transport/0_transport.d.ts.map +1 -1
- package/esm/transport/0_transport.js +10 -11
- package/esm/transport/1_transport_abridged.d.ts +2 -4
- package/esm/transport/1_transport_abridged.d.ts.map +1 -1
- package/esm/transport/1_transport_abridged.js +17 -34
- package/esm/transport/1_transport_intermediate.d.ts +2 -4
- package/esm/transport/1_transport_intermediate.d.ts.map +1 -1
- package/esm/transport/1_transport_intermediate.js +12 -31
- package/esm/transport/1_transport_provider.d.ts +35 -0
- package/esm/transport/1_transport_provider.d.ts.map +1 -0
- package/esm/transport/1_transport_provider.js +81 -0
- package/esm/transport/2_transport_provider_tcp.d.ts +25 -0
- package/esm/transport/2_transport_provider_tcp.d.ts.map +1 -0
- package/esm/transport/2_transport_provider_tcp.js +29 -0
- package/esm/transport/2_transport_provider_web_socket.d.ts +24 -0
- package/esm/transport/2_transport_provider_web_socket.d.ts.map +1 -0
- package/esm/transport/2_transport_provider_web_socket.js +43 -0
- package/esm/types/0_authorization_state.d.ts +2 -2
- package/esm/types/0_authorization_state.d.ts.map +1 -1
- package/esm/types/0_authorization_state.js +1 -1
- package/esm/types/0_birthday.d.ts +3 -2
- package/esm/types/0_birthday.d.ts.map +1 -1
- package/esm/types/0_birthday.js +10 -1
- package/esm/types/0_bot_command.d.ts +1 -1
- package/esm/types/0_bot_command.js +1 -1
- package/esm/types/0_bot_token_check_result.d.ts +31 -0
- package/esm/types/0_bot_token_check_result.d.ts.map +1 -0
- package/esm/types/0_bot_token_check_result.js +20 -0
- package/esm/types/0_button_style.d.ts +28 -0
- package/esm/types/0_button_style.d.ts.map +1 -0
- package/esm/types/0_button_style.js +36 -0
- package/esm/types/0_callback_query_answer.d.ts +3 -3
- package/esm/types/0_callback_query_answer.d.ts.map +1 -1
- package/esm/types/0_callback_query_answer.js +2 -2
- package/esm/types/0_callback_query_question.d.ts +1 -1
- package/esm/types/0_callback_query_question.js +3 -3
- package/esm/types/0_chat_action.d.ts +1 -1
- package/esm/types/0_chat_action.js +1 -1
- package/esm/types/0_chat_administrator_rights.d.ts +17 -7
- package/esm/types/0_chat_administrator_rights.d.ts.map +1 -1
- package/esm/types/0_chat_administrator_rights.js +31 -16
- package/esm/types/0_chat_folder.d.ts +29 -0
- package/esm/types/0_chat_folder.d.ts.map +1 -0
- package/esm/types/0_chat_folder.js +25 -0
- package/esm/types/0_chat_member_rights.d.ts +3 -3
- package/esm/types/0_chat_member_rights.d.ts.map +1 -1
- package/esm/types/0_chat_member_rights.js +23 -23
- package/esm/types/0_chat_photo.d.ts +2 -2
- package/esm/types/0_chat_photo.d.ts.map +1 -1
- package/esm/types/0_chat_photo.js +5 -5
- package/esm/types/0_checklist_changed.d.ts +29 -0
- package/esm/types/0_checklist_changed.d.ts.map +1 -0
- package/esm/types/0_checklist_changed.js +25 -0
- package/esm/types/0_code_check_result.d.ts +47 -0
- package/esm/types/0_code_check_result.d.ts.map +1 -0
- package/esm/types/0_code_check_result.js +20 -0
- package/esm/types/0_connection_state.d.ts +1 -1
- package/esm/types/0_connection_state.js +1 -1
- package/esm/types/0_contact.d.ts +2 -2
- package/esm/types/0_contact.d.ts.map +1 -1
- package/esm/types/0_contact.js +4 -3
- package/esm/types/0_dice.d.ts +2 -2
- package/esm/types/0_dice.d.ts.map +1 -1
- package/esm/types/0_dice.js +1 -1
- package/esm/types/0_emoji_status.d.ts +48 -0
- package/esm/types/0_emoji_status.d.ts.map +1 -0
- package/esm/types/0_emoji_status.js +33 -0
- package/esm/types/0_failed_invitation.d.ts +8 -4
- package/esm/types/0_failed_invitation.d.ts.map +1 -1
- package/esm/types/0_failed_invitation.js +3 -3
- package/esm/types/0_file_source.d.ts +2 -2
- package/esm/types/0_file_source.d.ts.map +1 -1
- package/esm/types/0_file_source.js +1 -1
- package/esm/types/0_gift_component_rarity.d.ts +50 -0
- package/esm/types/0_gift_component_rarity.d.ts.map +1 -0
- package/esm/types/0_gift_component_rarity.js +43 -0
- package/esm/types/0_gift_value.d.ts +25 -0
- package/esm/types/0_gift_value.d.ts.map +1 -0
- package/esm/types/0_gift_value.js +20 -0
- package/esm/types/0_giveaway_parameters.d.ts +2 -2
- package/esm/types/0_giveaway_parameters.d.ts.map +1 -1
- package/esm/types/0_giveaway_parameters.js +5 -6
- package/esm/types/0_id.d.ts +1 -1
- package/esm/types/0_id.js +1 -1
- package/esm/types/0_input_emoji_status.d.ts +36 -0
- package/esm/types/0_input_emoji_status.d.ts.map +1 -0
- package/esm/types/0_input_emoji_status.js +20 -0
- package/esm/types/0_invoice.d.ts +3 -2
- package/esm/types/0_invoice.d.ts.map +1 -1
- package/esm/types/0_invoice.js +1 -1
- package/esm/types/0_keyboard_button_poll_type.d.ts +1 -1
- package/esm/types/0_keyboard_button_poll_type.js +1 -1
- package/esm/types/0_link_preview_media_size.d.ts +22 -0
- package/esm/types/0_link_preview_media_size.d.ts.map +1 -0
- package/esm/types/0_link_preview_media_size.js +20 -0
- package/esm/types/0_live_stream_channel.d.ts +2 -2
- package/esm/types/0_live_stream_channel.d.ts.map +1 -1
- package/esm/types/0_live_stream_channel.js +1 -1
- package/esm/types/0_location.d.ts +1 -1
- package/esm/types/0_location.d.ts.map +1 -1
- package/esm/types/0_location.js +13 -12
- package/esm/types/0_login_url.d.ts +1 -1
- package/esm/types/0_login_url.js +1 -1
- package/esm/types/0_mask_position.d.ts +2 -2
- package/esm/types/0_mask_position.d.ts.map +1 -1
- package/esm/types/0_mask_position.js +2 -2
- package/esm/types/0_message_reference.d.ts +1 -1
- package/esm/types/0_message_reference.js +1 -1
- package/esm/types/0_message_search_filter.d.ts +3 -2
- package/esm/types/0_message_search_filter.d.ts.map +1 -1
- package/esm/types/0_message_search_filter.js +1 -1
- package/esm/types/0_mini_app_button_info.d.ts +26 -0
- package/esm/types/0_mini_app_button_info.d.ts.map +1 -0
- package/esm/types/0_mini_app_button_info.js +22 -0
- package/esm/types/0_mini_app_mode.d.ts +22 -0
- package/esm/types/0_mini_app_mode.d.ts.map +1 -0
- package/esm/types/0_mini_app_mode.js +20 -0
- package/esm/types/0_network_statistics_entry.d.ts +1 -1
- package/esm/types/0_network_statistics_entry.js +1 -1
- package/esm/types/0_parse_mode.d.ts +1 -1
- package/esm/types/0_parse_mode.js +1 -1
- package/esm/types/0_password_check_result.d.ts +39 -0
- package/esm/types/0_password_check_result.d.ts.map +1 -0
- package/esm/types/0_password_check_result.js +20 -0
- package/esm/types/0_price_tag.d.ts +1 -1
- package/esm/types/0_price_tag.js +1 -1
- package/esm/types/0_reaction.d.ts +4 -1
- package/esm/types/0_reaction.d.ts.map +1 -1
- package/esm/types/0_reaction.js +10 -10
- package/esm/types/0_refunded_payment.d.ts +2 -2
- package/esm/types/0_refunded_payment.d.ts.map +1 -1
- package/esm/types/0_refunded_payment.js +3 -3
- package/esm/types/0_restriction_reason.d.ts +2 -2
- package/esm/types/0_restriction_reason.d.ts.map +1 -1
- package/esm/types/0_restriction_reason.js +1 -1
- package/esm/types/0_self_destruct_option.d.ts +11 -3
- package/esm/types/0_self_destruct_option.d.ts.map +1 -1
- package/esm/types/0_self_destruct_option.js +12 -3
- package/esm/types/0_shipping_address.d.ts +2 -2
- package/esm/types/0_shipping_address.d.ts.map +1 -1
- package/esm/types/0_shipping_address.js +1 -1
- package/esm/types/0_slow_mode_duration.d.ts +23 -0
- package/esm/types/0_slow_mode_duration.d.ts.map +1 -0
- package/esm/types/0_slow_mode_duration.js +28 -0
- package/esm/types/0_story_reference.d.ts +1 -1
- package/esm/types/0_story_reference.js +1 -1
- package/esm/types/0_switch_inline_query_chosen_chats.d.ts +20 -0
- package/esm/types/0_switch_inline_query_chosen_chats.d.ts.map +1 -1
- package/esm/types/0_switch_inline_query_chosen_chats.js +19 -0
- package/esm/types/0_thumbnail.d.ts +1 -1
- package/esm/types/0_thumbnail.d.ts.map +1 -1
- package/esm/types/0_thumbnail.js +4 -4
- package/esm/types/0_translation.d.ts +32 -0
- package/esm/types/0_translation.d.ts.map +1 -0
- package/esm/types/0_translation.js +45 -0
- package/esm/types/0_upload_progress.d.ts +29 -0
- package/esm/types/0_upload_progress.d.ts.map +1 -0
- package/esm/types/0_upload_progress.js +20 -0
- package/esm/types/0_user_status.d.ts +66 -0
- package/esm/types/0_user_status.d.ts.map +1 -0
- package/esm/types/0_user_status.js +35 -0
- package/esm/types/0_video_chat.d.ts +8 -4
- package/esm/types/0_video_chat.d.ts.map +1 -1
- package/esm/types/0_video_chat.js +7 -8
- package/esm/types/0_voice.d.ts +2 -2
- package/esm/types/0_voice.d.ts.map +1 -1
- package/esm/types/0_voice.js +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/0_working_hours_interval.d.ts +27 -0
- package/esm/types/0_working_hours_interval.d.ts.map +1 -0
- package/esm/types/0_working_hours_interval.js +20 -0
- package/esm/types/1_animation.d.ts +2 -2
- package/esm/types/1_animation.d.ts.map +1 -1
- package/esm/types/1_animation.js +6 -5
- package/esm/types/1_audio.d.ts +2 -2
- package/esm/types/1_audio.d.ts.map +1 -1
- package/esm/types/1_audio.js +6 -5
- package/esm/types/1_bot_command_scope.d.ts +3 -3
- package/esm/types/1_bot_command_scope.d.ts.map +1 -1
- package/esm/types/1_bot_command_scope.js +4 -4
- package/esm/types/1_bot_commands.d.ts +30 -0
- package/esm/types/1_bot_commands.d.ts.map +1 -0
- package/esm/types/1_bot_commands.js +20 -0
- package/esm/types/1_chat_p.d.ts +36 -7
- package/esm/types/1_chat_p.d.ts.map +1 -1
- package/esm/types/1_chat_p.js +43 -17
- package/esm/types/1_document.d.ts +2 -2
- package/esm/types/1_document.d.ts.map +1 -1
- package/esm/types/1_document.js +3 -3
- package/esm/types/1_giveaway.d.ts +3 -3
- package/esm/types/1_giveaway.d.ts.map +1 -1
- package/esm/types/1_giveaway.js +1 -1
- package/esm/types/1_inline_keyboard_button.d.ts +140 -0
- package/esm/types/1_inline_keyboard_button.d.ts.map +1 -0
- package/esm/types/1_inline_keyboard_button.js +128 -0
- package/esm/types/1_inline_query_result_button.d.ts +3 -3
- package/esm/types/1_inline_query_result_button.d.ts.map +1 -1
- package/esm/types/1_inline_query_result_button.js +1 -1
- package/esm/types/1_input_gift.d.ts +54 -0
- package/esm/types/1_input_gift.d.ts.map +1 -0
- package/esm/types/1_input_gift.js +32 -0
- package/esm/types/1_input_story_content.d.ts +3 -3
- package/esm/types/1_input_story_content.d.ts.map +1 -1
- package/esm/types/1_input_story_content.js +1 -1
- package/esm/types/1_keyboard_button.d.ts +14 -12
- package/esm/types/1_keyboard_button.d.ts.map +1 -1
- package/esm/types/1_keyboard_button.js +87 -34
- package/esm/types/1_message_reaction.d.ts +3 -3
- package/esm/types/1_message_reaction.d.ts.map +1 -1
- package/esm/types/1_message_reaction.js +8 -8
- package/esm/types/1_mini_app_info.d.ts +32 -0
- package/esm/types/1_mini_app_info.d.ts.map +1 -0
- package/esm/types/1_mini_app_info.js +27 -0
- package/esm/types/1_network_statistics.d.ts +2 -2
- package/esm/types/1_network_statistics.d.ts.map +1 -1
- package/esm/types/1_network_statistics.js +1 -1
- package/esm/types/1_order_info.d.ts +8 -3
- package/esm/types/1_order_info.d.ts.map +1 -1
- package/esm/types/1_order_info.js +1 -1
- package/esm/types/1_photo.d.ts +2 -2
- package/esm/types/1_photo.d.ts.map +1 -1
- package/esm/types/1_photo.js +4 -4
- package/esm/types/1_reaction_count.d.ts +3 -3
- package/esm/types/1_reaction_count.d.ts.map +1 -1
- package/esm/types/1_reaction_count.js +1 -1
- package/esm/types/1_sticker.d.ts +6 -5
- package/esm/types/1_sticker.d.ts.map +1 -1
- package/esm/types/1_sticker.js +15 -11
- package/esm/types/1_story_reaction.d.ts +4 -4
- package/esm/types/1_story_reaction.d.ts.map +1 -1
- package/esm/types/1_story_reaction.js +2 -2
- package/esm/types/1_venue.d.ts +2 -2
- package/esm/types/1_venue.d.ts.map +1 -1
- package/esm/types/1_venue.js +5 -8
- package/esm/types/1_video.d.ts +2 -2
- package/esm/types/1_video.d.ts.map +1 -1
- package/esm/types/1_video.js +3 -3
- package/esm/types/1_video_note.d.ts +2 -2
- package/esm/types/1_video_note.d.ts.map +1 -1
- package/esm/types/1_video_note.js +3 -3
- package/esm/types/1_working_hours.d.ts +31 -0
- package/esm/types/1_working_hours.d.ts.map +1 -0
- package/esm/types/1_working_hours.js +33 -0
- package/esm/types/2_chat.d.ts +14 -17
- package/esm/types/2_chat.d.ts.map +1 -1
- package/esm/types/2_chat.js +23 -28
- package/esm/types/2_chat_member.d.ts +72 -15
- package/esm/types/2_chat_member.d.ts.map +1 -1
- package/esm/types/2_chat_member.js +40 -28
- package/esm/types/2_inactive_chat.d.ts +3 -3
- package/esm/types/2_inactive_chat.d.ts.map +1 -1
- package/esm/types/2_inactive_chat.js +4 -5
- package/esm/types/2_message_entity.d.ts +148 -0
- package/esm/types/2_message_entity.d.ts.map +1 -0
- package/esm/types/2_message_entity.js +243 -0
- package/esm/types/2_message_interactions.d.ts +2 -2
- package/esm/types/2_message_interactions.d.ts.map +1 -1
- package/esm/types/2_message_interactions.js +1 -1
- package/esm/types/2_message_reaction_count.d.ts +6 -7
- package/esm/types/2_message_reaction_count.d.ts.map +1 -1
- package/esm/types/2_message_reaction_count.js +6 -9
- package/esm/types/2_message_reaction_list_item.d.ts +39 -0
- package/esm/types/2_message_reaction_list_item.d.ts.map +1 -0
- package/esm/types/2_message_reaction_list_item.js +50 -0
- package/esm/types/2_poll_answer.d.ts +32 -0
- package/esm/types/2_poll_answer.d.ts.map +1 -0
- package/esm/types/2_poll_answer.js +35 -0
- package/esm/types/2_reply_markup.d.ts +71 -0
- package/esm/types/2_reply_markup.d.ts.map +1 -0
- package/esm/types/2_reply_markup.js +127 -0
- package/esm/types/2_sticker_set.d.ts +51 -0
- package/esm/types/2_sticker_set.d.ts.map +1 -0
- package/esm/types/2_sticker_set.js +91 -0
- package/esm/types/2_story_content.d.ts +3 -3
- package/esm/types/2_story_content.d.ts.map +1 -1
- package/esm/types/2_story_content.js +7 -7
- package/esm/types/2_story_interactions.d.ts +3 -3
- package/esm/types/2_story_interactions.d.ts.map +1 -1
- package/esm/types/2_story_interactions.js +3 -2
- package/esm/types/2_story_interactive_area.d.ts +9 -9
- package/esm/types/2_story_interactive_area.d.ts.map +1 -1
- package/esm/types/2_story_interactive_area.js +16 -15
- package/esm/types/2_story_privacy.d.ts +46 -0
- package/esm/types/2_story_privacy.d.ts.map +1 -0
- package/esm/types/2_story_privacy.js +76 -0
- package/esm/types/2_successful_payment.d.ts +11 -3
- package/esm/types/2_successful_payment.d.ts.map +1 -1
- package/esm/types/2_successful_payment.js +3 -3
- package/esm/types/2_user.d.ts +73 -0
- package/esm/types/2_user.d.ts.map +1 -0
- package/esm/types/2_user.js +82 -0
- package/esm/types/3_business_connection.d.ts +37 -0
- package/esm/types/3_business_connection.d.ts.map +1 -0
- package/esm/types/3_business_connection.js +36 -0
- package/esm/types/3_chat_settings.d.ts +47 -0
- package/esm/types/3_chat_settings.d.ts.map +1 -0
- package/esm/types/3_chat_settings.js +51 -0
- package/esm/types/3_checklist_item.d.ts +65 -0
- package/esm/types/3_checklist_item.d.ts.map +1 -0
- package/esm/types/3_checklist_item.js +51 -0
- package/esm/types/3_chosen_inline_result.d.ts +38 -0
- package/esm/types/3_chosen_inline_result.d.ts.map +1 -0
- package/esm/types/3_chosen_inline_result.js +37 -0
- package/esm/types/3_forward_header.d.ts +77 -0
- package/esm/types/3_forward_header.d.ts.map +1 -0
- package/esm/types/3_forward_header.js +73 -0
- package/esm/types/3_game.d.ts +40 -0
- package/esm/types/3_game.d.ts.map +1 -0
- package/esm/types/3_game.js +44 -0
- package/esm/types/3_gift_upgraded_component.d.ts +96 -0
- package/esm/types/3_gift_upgraded_component.d.ts.map +1 -0
- package/esm/types/3_gift_upgraded_component.js +88 -0
- package/esm/types/3_inline_query.d.ts +40 -0
- package/esm/types/3_inline_query.d.ts.map +1 -0
- package/esm/types/3_inline_query.js +60 -0
- package/esm/types/3_input_checklist_item.d.ts +31 -0
- package/esm/types/3_input_checklist_item.d.ts.map +1 -0
- package/esm/types/3_input_checklist_item.js +20 -0
- package/esm/types/3_input_media.d.ts +123 -0
- package/esm/types/3_input_media.d.ts.map +1 -0
- package/esm/types/3_input_media.js +20 -0
- package/esm/types/3_input_poll_option.d.ts +31 -0
- package/esm/types/3_input_poll_option.d.ts.map +1 -0
- package/esm/types/3_input_poll_option.js +20 -0
- package/esm/types/3_invite_link.d.ts +47 -0
- package/esm/types/3_invite_link.d.ts.map +1 -0
- package/esm/types/3_invite_link.js +48 -0
- package/esm/types/3_message_reaction_list.d.ts +32 -0
- package/esm/types/3_message_reaction_list.d.ts.map +1 -0
- package/esm/types/3_message_reaction_list.js +31 -0
- package/esm/types/3_message_reactions.d.ts +42 -0
- package/esm/types/3_message_reactions.d.ts.map +1 -0
- package/esm/types/3_message_reactions.js +54 -0
- package/esm/types/3_poll_option.d.ts +34 -0
- package/esm/types/3_poll_option.d.ts.map +1 -0
- package/esm/types/3_poll_option.js +29 -0
- package/esm/types/3_pre_checkout_query.d.ts +42 -0
- package/esm/types/3_pre_checkout_query.d.ts.map +1 -0
- package/esm/types/3_pre_checkout_query.js +39 -0
- package/esm/types/3_reply_quote.d.ts +32 -0
- package/esm/types/3_reply_quote.d.ts.map +1 -0
- package/esm/types/3_reply_quote.js +30 -0
- package/esm/types/3_story.d.ts +13 -14
- package/esm/types/3_story.d.ts.map +1 -1
- package/esm/types/3_story.js +13 -14
- package/esm/types/4_chat_member_updated.d.ts +43 -0
- package/esm/types/4_chat_member_updated.d.ts.map +1 -0
- package/esm/types/4_chat_member_updated.js +52 -0
- package/esm/types/4_checklist.d.ts +38 -0
- package/esm/types/4_checklist.d.ts.map +1 -0
- package/esm/types/4_checklist.js +31 -0
- package/esm/types/4_gift.d.ts +100 -0
- package/esm/types/4_gift.d.ts.map +1 -0
- package/esm/types/4_gift.js +112 -0
- package/esm/types/4_join_request.d.ts +39 -0
- package/esm/types/4_join_request.d.ts.map +1 -0
- package/esm/types/4_join_request.js +62 -0
- package/esm/types/4_poll.d.ts +55 -0
- package/esm/types/4_poll.d.ts.map +1 -0
- package/esm/types/4_poll.js +43 -0
- package/esm/types/4_reply_to.d.ts +51 -0
- package/esm/types/4_reply_to.d.ts.map +1 -0
- package/esm/types/4_reply_to.js +20 -0
- package/esm/types/5_claimed_gift.d.ts +44 -0
- package/esm/types/5_claimed_gift.d.ts.map +1 -0
- package/esm/types/5_claimed_gift.js +43 -0
- package/esm/types/5_gift_non_upgraded_information.d.ts +47 -0
- package/esm/types/5_gift_non_upgraded_information.d.ts.map +1 -0
- package/esm/types/5_gift_non_upgraded_information.js +69 -0
- package/esm/types/5_gift_upgraded_information.d.ts +41 -0
- package/esm/types/5_gift_upgraded_information.d.ts.map +1 -0
- package/esm/types/5_gift_upgraded_information.js +58 -0
- package/esm/types/5_link_preview.d.ts +186 -0
- package/esm/types/5_link_preview.d.ts.map +1 -0
- package/esm/types/5_link_preview.js +205 -0
- package/esm/types/6_claimed_gifts.d.ts +33 -0
- package/esm/types/6_claimed_gifts.d.ts.map +1 -0
- package/esm/types/6_claimed_gifts.js +43 -0
- package/esm/types/6_message.d.ts +704 -0
- package/esm/types/6_message.d.ts.map +1 -0
- package/esm/types/6_message.js +553 -0
- package/esm/types/6_message_content.d.ts +124 -0
- package/esm/types/6_message_content.d.ts.map +1 -0
- package/esm/types/6_message_content.js +20 -0
- package/esm/types/7_callback_query.d.ts +43 -0
- package/esm/types/7_callback_query.d.ts.map +1 -0
- package/esm/types/7_callback_query.js +59 -0
- package/esm/types/7_chat_list_item.d.ts +43 -0
- package/esm/types/7_chat_list_item.d.ts.map +1 -0
- package/esm/types/7_chat_list_item.js +57 -0
- package/esm/types/7_inline_query_result.d.ts +251 -0
- package/esm/types/7_inline_query_result.d.ts.map +1 -0
- package/esm/types/7_inline_query_result.js +380 -0
- package/esm/types/7_message_list.d.ts +28 -0
- package/esm/types/7_message_list.d.ts.map +1 -0
- package/esm/types/7_message_list.js +20 -0
- package/esm/types/7_saved_chat.d.ts +35 -0
- package/esm/types/7_saved_chat.d.ts.map +1 -0
- package/esm/types/7_saved_chat.js +42 -0
- package/esm/types/7_topic.d.ts +44 -0
- package/esm/types/7_topic.d.ts.map +1 -0
- package/esm/types/7_topic.js +61 -0
- package/esm/types/8_inline_query_answer.d.ts +32 -0
- package/esm/types/8_inline_query_answer.d.ts.map +1 -0
- package/esm/types/8_inline_query_answer.js +28 -0
- package/esm/types/8_saved_chats.d.ts +33 -0
- package/esm/types/8_saved_chats.d.ts.map +1 -0
- package/esm/types/8_saved_chats.js +36 -0
- package/esm/types/8_update.d.ts +583 -0
- package/esm/types/8_update.d.ts.map +1 -0
- package/esm/types/8_update.js +20 -0
- package/esm/types/_file_id.d.ts +64 -51
- package/esm/types/_file_id.d.ts.map +1 -1
- package/esm/types/_file_id.js +96 -77
- package/esm/types/_getters.d.ts +4 -11
- package/esm/types/_getters.d.ts.map +1 -1
- package/esm/types/_getters.js +1 -1
- package/esm/utilities/0_color.d.ts +1 -1
- package/esm/utilities/0_color.js +1 -1
- package/esm/utilities/0_env.d.ts.map +1 -1
- package/esm/utilities/0_env.js +20 -1
- package/esm/utilities/0_gzip.d.ts +22 -0
- package/esm/utilities/0_gzip.d.ts.map +1 -0
- package/esm/utilities/0_gzip.js +42 -0
- package/esm/utilities/0_hash.d.ts +3 -3
- package/esm/utilities/0_hash.d.ts.map +1 -1
- package/esm/utilities/0_hash.js +1 -1
- package/esm/utilities/0_int.d.ts +71 -0
- package/esm/utilities/0_int.d.ts.map +1 -0
- package/esm/utilities/0_int.js +140 -0
- package/esm/utilities/0_misc.d.ts +29 -0
- package/esm/utilities/0_misc.d.ts.map +1 -0
- package/esm/utilities/0_misc.js +84 -0
- package/esm/utilities/0_mutex.d.ts +1 -1
- package/esm/utilities/0_mutex.js +1 -1
- package/esm/utilities/0_object.d.ts +1 -1
- package/esm/utilities/0_object.js +1 -1
- package/esm/utilities/0_part_stream.d.ts +4 -4
- package/esm/utilities/0_part_stream.d.ts.map +1 -1
- package/esm/utilities/0_part_stream.js +3 -3
- package/esm/utilities/0_rle.d.ts +3 -3
- package/esm/utilities/0_rle.d.ts.map +1 -1
- package/esm/utilities/0_rle.js +2 -2
- package/esm/utilities/0_text.d.ts +22 -0
- package/esm/utilities/0_text.d.ts.map +1 -0
- package/esm/utilities/0_text.js +27 -0
- package/esm/utilities/0_types.d.ts +1 -1
- package/esm/utilities/0_types.js +1 -1
- package/esm/utilities/0_units.d.ts +1 -4
- package/esm/utilities/0_units.d.ts.map +1 -1
- package/esm/utilities/0_units.js +1 -4
- package/esm/utilities/1_auth.d.ts +2 -2
- package/esm/utilities/1_auth.d.ts.map +1 -1
- package/esm/utilities/1_auth.js +5 -6
- package/esm/utilities/1_base64.d.ts +3 -3
- package/esm/utilities/1_base64.d.ts.map +1 -1
- package/esm/utilities/1_base64.js +3 -3
- package/esm/utilities/1_crypto.d.ts +30 -0
- package/esm/utilities/1_crypto.d.ts.map +1 -0
- package/esm/utilities/1_crypto.js +90 -0
- package/esm/utilities/1_logger.d.ts +3 -3
- package/esm/utilities/1_logger.d.ts.map +1 -1
- package/esm/utilities/1_logger.js +5 -4
- package/esm/utilities/1_math.d.ts +1 -1
- package/esm/utilities/1_math.js +4 -4
- package/esm/utilities/2_queue.d.ts +2 -2
- package/esm/utilities/2_queue.d.ts.map +1 -1
- package/esm/utilities/2_queue.js +12 -8
- package/package.json +2 -4
- package/script/0_deps.d.ts +24 -11
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +51 -51
- package/script/0_errors.d.ts +9 -2
- package/script/0_errors.d.ts.map +1 -1
- package/script/0_errors.js +37 -2
- package/script/1_utilities.d.ts +6 -6
- package/script/1_utilities.d.ts.map +1 -1
- package/script/1_utilities.js +6 -6
- package/script/2_connection.d.ts +1 -1
- package/script/2_connection.js +1 -1
- package/script/2_storage.d.ts +1 -1
- package/script/2_storage.js +1 -1
- package/script/2_tl.d.ts +7 -10
- package/script/2_tl.d.ts.map +1 -1
- package/script/2_tl.js +25 -19
- package/script/3_errors.d.ts +8 -3
- package/script/3_errors.d.ts.map +1 -1
- package/script/3_errors.js +14 -5
- package/script/3_transport.d.ts +4 -4
- package/script/3_transport.js +4 -4
- package/script/3_types.d.ts +74 -34
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +74 -34
- package/script/4_constants.d.ts +21 -2
- package/script/4_constants.d.ts.map +1 -1
- package/script/4_constants.js +6 -29
- package/script/4_errors.d.ts +4 -4
- package/script/4_errors.d.ts.map +1 -1
- package/script/4_errors.js +1 -1
- package/script/4_session.d.ts +24 -0
- package/script/4_session.d.ts.map +1 -0
- package/script/4_session.js +39 -0
- package/script/5_client.d.ts +9 -3
- package/script/5_client.d.ts.map +1 -1
- package/script/5_client.js +9 -3
- package/script/_dnt.polyfills.d.ts +119 -0
- package/script/_dnt.polyfills.d.ts.map +1 -1
- package/script/_dnt.polyfills.js +248 -0
- package/script/_dnt.shims.d.ts +0 -1
- package/script/_dnt.shims.d.ts.map +1 -1
- package/script/client/0_abortable_loop.d.ts +27 -0
- package/script/client/0_abortable_loop.d.ts.map +1 -0
- package/script/client/0_abortable_loop.js +73 -0
- package/script/client/0_client_abstract.d.ts +31 -28
- package/script/client/0_client_abstract.d.ts.map +1 -1
- package/script/client/0_client_abstract.js +23 -115
- package/script/client/0_html.d.ts +4 -3
- package/script/client/0_html.d.ts.map +1 -1
- package/script/client/0_html.js +413 -74
- package/script/client/0_markdown.d.ts +2 -2
- package/script/client/0_markdown.d.ts.map +1 -1
- package/script/client/0_markdown.js +39 -19
- package/script/client/0_params.d.ts +327 -44
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_params.js +1 -1
- package/script/client/0_password.d.ts +6 -6
- package/script/client/0_password.d.ts.map +1 -1
- package/script/client/0_password.js +11 -11
- package/script/client/0_storage_operations.d.ts +81 -69
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +354 -233
- package/script/client/0_update_processor.d.ts +26 -0
- package/script/client/0_update_processor.d.ts.map +1 -0
- package/script/client/0_update_processor.js +21 -0
- package/script/client/0_utilities.d.ts +10 -5
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/0_utilities.js +47 -32
- package/script/client/0_worker_error.d.ts +26 -0
- package/script/client/0_worker_error.d.ts.map +1 -0
- package/script/client/0_worker_error.js +90 -0
- package/script/client/0_worker_request.d.ts +27 -0
- package/script/client/0_worker_request.d.ts.map +1 -0
- package/script/client/0_worker_request.js +21 -0
- package/script/client/1_client_generic.d.ts +1846 -0
- package/script/client/1_client_generic.d.ts.map +1 -0
- package/script/client/1_client_generic.js +28 -0
- package/script/client/1_client_plain.d.ts +12 -9
- package/script/client/1_client_plain.d.ts.map +1 -1
- package/script/client/1_client_plain.js +39 -50
- package/script/client/1_invoke_middleware.d.ts +32 -0
- package/script/client/1_invoke_middleware.d.ts.map +1 -0
- package/script/client/1_invoke_middleware.js +25 -0
- package/script/client/1_types.d.ts +17 -32
- package/script/client/1_types.d.ts.map +1 -1
- package/script/client/1_types.js +1 -1
- package/script/client/1_worker_response.d.ts +37 -0
- package/script/client/1_worker_response.d.ts.map +1 -0
- package/script/client/1_worker_response.js +21 -0
- package/script/client/2_account_manager.d.ts +43 -5
- package/script/client/2_account_manager.d.ts.map +1 -1
- package/script/client/2_account_manager.js +336 -7
- package/script/client/2_bot_info_manager.d.ts +12 -5
- package/script/client/2_bot_info_manager.d.ts.map +1 -1
- package/script/client/2_bot_info_manager.js +15 -1
- package/script/client/2_business_connection_manager.d.ts +6 -5
- package/script/client/2_business_connection_manager.d.ts.map +1 -1
- package/script/client/2_business_connection_manager.js +8 -8
- package/script/client/2_client_encrypted.d.ts +58 -0
- package/script/client/2_client_encrypted.d.ts.map +1 -0
- package/script/client/2_client_encrypted.js +294 -0
- package/script/client/2_file_manager.d.ts +27 -7
- package/script/client/2_file_manager.d.ts.map +1 -1
- package/script/client/2_file_manager.js +240 -218
- package/script/client/2_network_statistics_manager.d.ts +5 -5
- package/script/client/2_network_statistics_manager.d.ts.map +1 -1
- package/script/client/2_network_statistics_manager.js +36 -10
- package/script/client/2_payment_manager.d.ts +8 -7
- package/script/client/2_payment_manager.d.ts.map +1 -1
- package/script/client/2_payment_manager.js +6 -6
- package/script/client/2_reaction_manager.d.ts +6 -5
- package/script/client/2_reaction_manager.d.ts.map +1 -1
- package/script/client/2_reaction_manager.js +13 -13
- package/script/client/2_sign_in.d.ts +25 -0
- package/script/client/2_sign_in.d.ts.map +1 -0
- package/script/client/2_sign_in.js +118 -0
- package/script/client/2_translations_manager.d.ts +35 -0
- package/script/client/2_translations_manager.d.ts.map +1 -0
- package/script/client/2_translations_manager.js +175 -0
- package/script/client/2_update_manager.d.ts +11 -8
- package/script/client/2_update_manager.d.ts.map +1 -1
- package/script/client/2_update_manager.js +351 -293
- package/script/client/3_client_encrypted_pool.d.ts +29 -0
- package/script/client/3_client_encrypted_pool.d.ts.map +1 -0
- package/script/client/3_client_encrypted_pool.js +67 -0
- package/script/client/3_filters.d.ts +96 -0
- package/script/client/3_filters.d.ts.map +1 -0
- package/script/client/3_filters.js +55 -0
- package/script/client/3_message_manager.d.ts +30 -35
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +785 -487
- package/script/client/3_video_chat_manager.d.ts +11 -10
- package/script/client/3_video_chat_manager.d.ts.map +1 -1
- package/script/client/3_video_chat_manager.js +46 -43
- package/script/client/4_callback_query_manager.d.ts +9 -8
- package/script/client/4_callback_query_manager.d.ts.map +1 -1
- package/script/client/4_callback_query_manager.js +13 -12
- package/script/client/4_chat_list_manager.d.ts +20 -11
- package/script/client/4_chat_list_manager.d.ts.map +1 -1
- package/script/client/4_chat_list_manager.js +141 -365
- package/script/client/4_chat_manager.d.ts +86 -0
- package/script/client/4_chat_manager.d.ts.map +1 -0
- package/script/client/4_chat_manager.js +490 -0
- package/script/client/4_checklist_manager.d.ts +38 -0
- package/script/client/4_checklist_manager.d.ts.map +1 -0
- package/script/client/4_checklist_manager.js +85 -0
- package/script/client/4_context.d.ts +691 -0
- package/script/client/4_context.d.ts.map +1 -0
- package/script/client/4_context.js +1425 -0
- package/script/client/4_forum_manager.d.ts +40 -0
- package/script/client/4_forum_manager.d.ts.map +1 -0
- package/script/client/4_forum_manager.js +138 -0
- package/script/client/4_gift_manager.d.ts +39 -0
- package/script/client/4_gift_manager.d.ts.map +1 -0
- package/script/client/4_gift_manager.js +101 -0
- package/script/client/4_inline_query_manager.d.ts +10 -9
- package/script/client/4_inline_query_manager.d.ts.map +1 -1
- package/script/client/4_inline_query_manager.js +13 -13
- package/script/client/4_link_preview_manager.d.ts +39 -0
- package/script/client/4_link_preview_manager.d.ts.map +1 -0
- package/script/client/4_link_preview_manager.js +68 -0
- package/script/client/4_poll_manager.d.ts +39 -0
- package/script/client/4_poll_manager.d.ts.map +1 -0
- package/script/client/4_poll_manager.js +122 -0
- package/script/client/4_story_manager.d.ts +11 -10
- package/script/client/4_story_manager.d.ts.map +1 -1
- package/script/client/4_story_manager.js +20 -20
- package/script/client/5_composer.d.ts +51 -0
- package/script/client/5_composer.d.ts.map +1 -0
- package/script/client/5_composer.js +126 -0
- package/script/client/6_client.d.ts +1952 -0
- package/script/client/6_client.d.ts.map +1 -0
- package/script/client/6_client.js +3444 -0
- package/script/client/6_client_dispatcher.d.ts +1917 -0
- package/script/client/6_client_dispatcher.d.ts.map +1 -0
- package/script/client/6_client_dispatcher.js +2497 -0
- package/script/client/7_client_worker.d.ts +27 -0
- package/script/client/7_client_worker.d.ts.map +1 -0
- package/script/client/7_client_worker.js +93 -0
- package/script/connection/0_connection.d.ts +9 -8
- package/script/connection/0_connection.d.ts.map +1 -1
- package/script/connection/0_connection.js +1 -1
- package/script/connection/1_connection_tcp.d.ts +4 -5
- package/script/connection/1_connection_tcp.d.ts.map +1 -1
- package/script/connection/1_connection_tcp.js +28 -52
- package/script/connection/1_connection_web_socket.d.ts +3 -3
- package/script/connection/1_connection_web_socket.d.ts.map +1 -1
- package/script/connection/1_connection_web_socket.js +10 -13
- package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.d.ts +18 -0
- package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/mod.js +71 -0
- package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.d.ts +3 -0
- package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.d.ts.map +1 -0
- package/script/deps/jsr.io/@roj/tgcrypto/1.0.1/dist/tgcrypto.js +303 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/assert.d.ts +17 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/assert.js +26 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/assertion_error.js +34 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/equal.d.ts +25 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/equal.js +230 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/equals.d.ts +37 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/equals.js +64 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/false.d.ts +19 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/false.js +26 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/unreachable.js +23 -0
- package/script/deps/jsr.io/@std/async/1.2.0/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/async/1.2.0/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/_util.js +9 -0
- package/script/deps/jsr.io/@std/async/1.2.0/abortable.d.ts +107 -0
- package/script/deps/jsr.io/@std/async/1.2.0/abortable.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/abortable.js +49 -0
- package/script/deps/jsr.io/@std/async/1.2.0/deadline.d.ts +37 -0
- package/script/deps/jsr.io/@std/async/1.2.0/deadline.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/deadline.js +44 -0
- package/script/deps/jsr.io/@std/async/1.2.0/debounce.d.ts +44 -0
- package/script/deps/jsr.io/@std/async/1.2.0/debounce.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/debounce.js +60 -0
- package/script/deps/jsr.io/@std/async/1.2.0/delay.d.ts +45 -0
- package/script/deps/jsr.io/@std/async/1.2.0/delay.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/delay.js +87 -0
- package/script/deps/jsr.io/@std/async/1.2.0/mod.d.ts +22 -0
- package/script/deps/jsr.io/@std/async/1.2.0/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/mod.js +39 -0
- package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts +111 -0
- package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/mux_async_iterator.js +174 -0
- package/script/deps/jsr.io/@std/async/1.2.0/pool.d.ts +33 -0
- package/script/deps/jsr.io/@std/async/1.2.0/pool.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/pool.js +102 -0
- package/script/deps/jsr.io/@std/async/1.2.0/retry.d.ts +155 -0
- package/script/deps/jsr.io/@std/async/1.2.0/retry.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/retry.js +152 -0
- package/script/deps/jsr.io/@std/async/1.2.0/tee.d.ts +43 -0
- package/script/deps/jsr.io/@std/async/1.2.0/tee.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.2.0/tee.js +105 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.js +3 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.js +35 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/equals.d.ts +22 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/equals.js +85 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/starts_with.d.ts +24 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/starts_with.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/starts_with.js +37 -0
- package/script/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.d.ts +12 -0
- package/script/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/0.2.2/_serialize_arg_list.js +72 -0
- package/script/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts +155 -0
- package/script/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/0.2.2/lru_cache.js +209 -0
- package/script/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts +111 -0
- package/script/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/0.2.2/memoize.js +85 -0
- package/script/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.d.ts +19 -0
- package/script/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/datetime/0.225.7/_date_time_formatter.js +554 -0
- package/script/deps/jsr.io/@std/datetime/0.225.7/constants.d.ts +265 -0
- package/script/deps/jsr.io/@std/datetime/0.225.7/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/datetime/0.225.7/constants.js +269 -0
- package/script/deps/jsr.io/@std/datetime/0.225.7/format.d.ts +70 -0
- package/script/deps/jsr.io/@std/datetime/0.225.7/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/datetime/0.225.7/format.js +69 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_common16.d.ts +23 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_common16.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_common16.js +57 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_common64.d.ts +35 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_common64.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_common64.js +119 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_common_detach.d.ts +4 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_common_detach.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_common_detach.js +16 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/_types.js +3 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/base64.d.ts +40 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/base64.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/base64.js +86 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/hex.d.ts +39 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/hex.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.10/hex.js +91 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +48 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts +80 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/build_message.js +121 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/diff.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/diff.js +283 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/diff_str.js +188 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/format.d.ts +29 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/format.js +106 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.js +8 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/styles.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/styles.js +252 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts +25 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/types.js +4 -0
- package/script/deps/jsr.io/@std/io/0.225.3/_constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.225.3/_constants.js +7 -0
- package/script/deps/jsr.io/@std/io/0.225.3/iterate_reader.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.225.3/iterate_reader.js +100 -0
- package/script/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.225.3/types.js +18 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/all_extensions.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/extension.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +9103 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +9140 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/basename.js +38 -0
- package/script/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/extname.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.js +55 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.js +96 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.js +48 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +61 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.js +50 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +138 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.js +38 -0
- package/script/mod.d.ts +2 -2
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +19 -10
- package/script/session/0_session_error.d.ts +24 -0
- package/script/session/0_session_error.d.ts.map +1 -0
- package/script/session/0_session_error.js +29 -0
- package/script/session/0_session_state.d.ts +28 -0
- package/script/session/0_session_state.d.ts.map +1 -0
- package/script/session/0_session_state.js +81 -0
- package/script/session/1_session.d.ts +51 -0
- package/script/session/1_session.d.ts.map +1 -0
- package/script/session/1_session.js +151 -0
- package/script/session/2_session_encrypted.d.ts +41 -0
- package/script/session/2_session_encrypted.d.ts.map +1 -0
- package/script/session/2_session_encrypted.js +511 -0
- package/script/session/2_session_plain.d.ts +25 -0
- package/script/session/2_session_plain.d.ts.map +1 -0
- package/script/session/2_session_plain.js +60 -0
- package/script/storage/0_storage.d.ts +3 -2
- package/script/storage/0_storage.d.ts.map +1 -1
- package/script/storage/0_storage.js +1 -1
- package/script/storage/1_utilities.d.ts +15 -11
- package/script/storage/1_utilities.d.ts.map +1 -1
- package/script/storage/1_utilities.js +47 -55
- package/script/storage/2_storage_indexed_db.d.ts +3 -2
- package/script/storage/2_storage_indexed_db.d.ts.map +1 -1
- package/script/storage/2_storage_indexed_db.js +7 -4
- package/script/storage/2_storage_local_storage.d.ts +3 -2
- package/script/storage/2_storage_local_storage.d.ts.map +1 -1
- package/script/storage/2_storage_local_storage.js +7 -4
- package/script/storage/2_storage_memory.d.ts +4 -3
- package/script/storage/2_storage_memory.d.ts.map +1 -1
- package/script/storage/2_storage_memory.js +6 -3
- package/script/storage/2_storage_session_storage.d.ts +4 -3
- package/script/storage/2_storage_session_storage.d.ts.map +1 -1
- package/script/storage/2_storage_session_storage.js +7 -4
- package/script/tl/0_types.d.ts +25 -0
- package/script/tl/0_types.d.ts.map +1 -0
- package/script/tl/0_types.js +21 -0
- package/script/tl/0_utilities.d.ts +34 -0
- package/script/tl/0_utilities.d.ts.map +1 -0
- package/script/tl/0_utilities.js +89 -0
- package/script/tl/1_mtproto_api.d.ts +371 -0
- package/script/tl/1_mtproto_api.d.ts.map +1 -0
- package/script/tl/1_mtproto_api.js +419 -0
- package/script/tl/1_telegram_api.d.ts +19410 -0
- package/script/tl/1_telegram_api.d.ts.map +1 -0
- package/script/tl/1_telegram_api.js +22389 -0
- package/script/tl/1_tl_reader.d.ts +39 -0
- package/script/tl/1_tl_reader.d.ts.map +1 -0
- package/script/tl/1_tl_reader.js +232 -0
- package/script/tl/1_tl_writer.d.ts +37 -0
- package/script/tl/1_tl_writer.d.ts.map +1 -0
- package/script/tl/1_tl_writer.js +282 -0
- package/script/tl/1_utilities.d.ts +9 -14
- package/script/tl/1_utilities.d.ts.map +1 -1
- package/script/tl/1_utilities.js +23 -44
- package/script/tl/2_message.d.ts +36 -0
- package/script/tl/2_message.d.ts.map +1 -0
- package/script/tl/2_message.js +80 -0
- package/script/tl/2_mtproto.d.ts +33 -0
- package/script/tl/2_mtproto.d.ts.map +1 -0
- package/script/tl/2_mtproto.js +78 -0
- package/script/tl/2_telegram.d.ts +49 -0
- package/script/tl/2_telegram.d.ts.map +1 -0
- package/script/tl/2_telegram.js +189 -0
- package/script/transport/0_obfuscation.d.ts +2 -2
- package/script/transport/0_obfuscation.d.ts.map +1 -1
- package/script/transport/0_obfuscation.js +9 -8
- package/script/transport/0_transport.d.ts +4 -6
- package/script/transport/0_transport.d.ts.map +1 -1
- package/script/transport/0_transport.js +10 -11
- package/script/transport/1_transport_abridged.d.ts +2 -4
- package/script/transport/1_transport_abridged.d.ts.map +1 -1
- package/script/transport/1_transport_abridged.js +16 -33
- package/script/transport/1_transport_intermediate.d.ts +2 -4
- package/script/transport/1_transport_intermediate.d.ts.map +1 -1
- package/script/transport/1_transport_intermediate.js +11 -30
- package/script/transport/1_transport_provider.d.ts +35 -0
- package/script/transport/1_transport_provider.d.ts.map +1 -0
- package/script/transport/1_transport_provider.js +86 -0
- package/script/transport/2_transport_provider_tcp.d.ts +25 -0
- package/script/transport/2_transport_provider_tcp.d.ts.map +1 -0
- package/script/transport/2_transport_provider_tcp.js +32 -0
- package/script/transport/2_transport_provider_web_socket.d.ts +24 -0
- package/script/transport/2_transport_provider_web_socket.d.ts.map +1 -0
- package/script/transport/2_transport_provider_web_socket.js +47 -0
- package/script/types/0_authorization_state.d.ts +2 -2
- package/script/types/0_authorization_state.d.ts.map +1 -1
- package/script/types/0_authorization_state.js +1 -1
- package/script/types/0_birthday.d.ts +3 -2
- package/script/types/0_birthday.d.ts.map +1 -1
- package/script/types/0_birthday.js +11 -1
- package/script/types/0_bot_command.d.ts +1 -1
- package/script/types/0_bot_command.js +1 -1
- package/script/types/0_bot_token_check_result.d.ts +31 -0
- package/script/types/0_bot_token_check_result.d.ts.map +1 -0
- package/script/types/0_bot_token_check_result.js +21 -0
- package/script/types/0_button_style.d.ts +28 -0
- package/script/types/0_button_style.d.ts.map +1 -0
- package/script/types/0_button_style.js +40 -0
- package/script/types/0_callback_query_answer.d.ts +3 -3
- package/script/types/0_callback_query_answer.d.ts.map +1 -1
- package/script/types/0_callback_query_answer.js +2 -2
- package/script/types/0_callback_query_question.d.ts +1 -1
- package/script/types/0_callback_query_question.js +3 -3
- package/script/types/0_chat_action.d.ts +1 -1
- package/script/types/0_chat_action.js +1 -1
- package/script/types/0_chat_administrator_rights.d.ts +17 -7
- package/script/types/0_chat_administrator_rights.d.ts.map +1 -1
- package/script/types/0_chat_administrator_rights.js +31 -16
- package/script/types/0_chat_folder.d.ts +29 -0
- package/script/types/0_chat_folder.d.ts.map +1 -0
- package/script/types/0_chat_folder.js +28 -0
- package/script/types/0_chat_member_rights.d.ts +3 -3
- package/script/types/0_chat_member_rights.d.ts.map +1 -1
- package/script/types/0_chat_member_rights.js +22 -22
- package/script/types/0_chat_photo.d.ts +2 -2
- package/script/types/0_chat_photo.d.ts.map +1 -1
- package/script/types/0_chat_photo.js +4 -4
- package/script/types/0_checklist_changed.d.ts +29 -0
- package/script/types/0_checklist_changed.d.ts.map +1 -0
- package/script/types/0_checklist_changed.js +28 -0
- package/script/types/0_code_check_result.d.ts +47 -0
- package/script/types/0_code_check_result.d.ts.map +1 -0
- package/script/types/0_code_check_result.js +21 -0
- package/script/types/0_connection_state.d.ts +1 -1
- package/script/types/0_connection_state.js +1 -1
- package/script/types/0_contact.d.ts +2 -2
- package/script/types/0_contact.d.ts.map +1 -1
- package/script/types/0_contact.js +4 -3
- package/script/types/0_dice.d.ts +2 -2
- package/script/types/0_dice.d.ts.map +1 -1
- package/script/types/0_dice.js +1 -1
- package/script/types/0_emoji_status.d.ts +48 -0
- package/script/types/0_emoji_status.d.ts.map +1 -0
- package/script/types/0_emoji_status.js +36 -0
- package/script/types/0_failed_invitation.d.ts +8 -4
- package/script/types/0_failed_invitation.d.ts.map +1 -1
- package/script/types/0_failed_invitation.js +3 -3
- package/script/types/0_file_source.d.ts +2 -2
- package/script/types/0_file_source.d.ts.map +1 -1
- package/script/types/0_file_source.js +1 -1
- package/script/types/0_gift_component_rarity.d.ts +50 -0
- package/script/types/0_gift_component_rarity.d.ts.map +1 -0
- package/script/types/0_gift_component_rarity.js +46 -0
- package/script/types/0_gift_value.d.ts +25 -0
- package/script/types/0_gift_value.d.ts.map +1 -0
- package/script/types/0_gift_value.js +21 -0
- package/script/types/0_giveaway_parameters.d.ts +2 -2
- package/script/types/0_giveaway_parameters.d.ts.map +1 -1
- package/script/types/0_giveaway_parameters.js +4 -5
- package/script/types/0_id.d.ts +1 -1
- package/script/types/0_id.js +1 -1
- package/script/types/0_input_emoji_status.d.ts +36 -0
- package/script/types/0_input_emoji_status.d.ts.map +1 -0
- package/script/types/0_input_emoji_status.js +21 -0
- package/script/types/0_invoice.d.ts +3 -2
- package/script/types/0_invoice.d.ts.map +1 -1
- package/script/types/0_invoice.js +1 -1
- package/script/types/0_keyboard_button_poll_type.d.ts +1 -1
- package/script/types/0_keyboard_button_poll_type.js +1 -1
- package/script/types/0_link_preview_media_size.d.ts +22 -0
- package/script/types/0_link_preview_media_size.d.ts.map +1 -0
- package/script/types/0_link_preview_media_size.js +21 -0
- package/script/types/0_live_stream_channel.d.ts +2 -2
- package/script/types/0_live_stream_channel.d.ts.map +1 -1
- package/script/types/0_live_stream_channel.js +1 -1
- package/script/types/0_location.d.ts +1 -1
- package/script/types/0_location.d.ts.map +1 -1
- package/script/types/0_location.js +12 -11
- package/script/types/0_login_url.d.ts +1 -1
- package/script/types/0_login_url.js +1 -1
- package/script/types/0_mask_position.d.ts +2 -2
- package/script/types/0_mask_position.d.ts.map +1 -1
- package/script/types/0_mask_position.js +2 -2
- package/script/types/0_message_reference.d.ts +1 -1
- package/script/types/0_message_reference.js +1 -1
- package/script/types/0_message_search_filter.d.ts +3 -2
- package/script/types/0_message_search_filter.d.ts.map +1 -1
- package/script/types/0_message_search_filter.js +1 -1
- package/script/types/0_mini_app_button_info.d.ts +26 -0
- package/script/types/0_mini_app_button_info.d.ts.map +1 -0
- package/script/types/0_mini_app_button_info.js +25 -0
- package/script/types/0_mini_app_mode.d.ts +22 -0
- package/script/types/0_mini_app_mode.d.ts.map +1 -0
- package/script/types/0_mini_app_mode.js +21 -0
- package/script/types/0_network_statistics_entry.d.ts +1 -1
- package/script/types/0_network_statistics_entry.js +1 -1
- package/script/types/0_parse_mode.d.ts +1 -1
- package/script/types/0_parse_mode.js +1 -1
- package/script/types/0_password_check_result.d.ts +39 -0
- package/script/types/0_password_check_result.d.ts.map +1 -0
- package/script/types/0_password_check_result.js +21 -0
- package/script/types/0_price_tag.d.ts +1 -1
- package/script/types/0_price_tag.js +1 -1
- package/script/types/0_reaction.d.ts +4 -1
- package/script/types/0_reaction.d.ts.map +1 -1
- package/script/types/0_reaction.js +9 -9
- package/script/types/0_refunded_payment.d.ts +2 -2
- package/script/types/0_refunded_payment.d.ts.map +1 -1
- package/script/types/0_refunded_payment.js +2 -2
- package/script/types/0_restriction_reason.d.ts +2 -2
- package/script/types/0_restriction_reason.d.ts.map +1 -1
- package/script/types/0_restriction_reason.js +1 -1
- package/script/types/0_self_destruct_option.d.ts +11 -3
- package/script/types/0_self_destruct_option.d.ts.map +1 -1
- package/script/types/0_self_destruct_option.js +13 -3
- package/script/types/0_shipping_address.d.ts +2 -2
- package/script/types/0_shipping_address.d.ts.map +1 -1
- package/script/types/0_shipping_address.js +1 -1
- package/script/types/0_slow_mode_duration.d.ts +23 -0
- package/script/types/0_slow_mode_duration.d.ts.map +1 -0
- package/script/types/0_slow_mode_duration.js +31 -0
- package/script/types/0_story_reference.d.ts +1 -1
- package/script/types/0_story_reference.js +1 -1
- package/script/types/0_switch_inline_query_chosen_chats.d.ts +20 -0
- package/script/types/0_switch_inline_query_chosen_chats.d.ts.map +1 -1
- package/script/types/0_switch_inline_query_chosen_chats.js +19 -0
- package/script/types/0_thumbnail.d.ts +1 -1
- package/script/types/0_thumbnail.d.ts.map +1 -1
- package/script/types/0_thumbnail.js +3 -3
- package/script/types/0_translation.d.ts +32 -0
- package/script/types/0_translation.d.ts.map +1 -0
- package/script/types/0_translation.js +48 -0
- package/script/types/0_upload_progress.d.ts +29 -0
- package/script/types/0_upload_progress.d.ts.map +1 -0
- package/script/types/0_upload_progress.js +21 -0
- package/script/types/0_user_status.d.ts +66 -0
- package/script/types/0_user_status.d.ts.map +1 -0
- package/script/types/0_user_status.js +38 -0
- package/script/types/0_video_chat.d.ts +8 -4
- package/script/types/0_video_chat.d.ts.map +1 -1
- package/script/types/0_video_chat.js +6 -7
- package/script/types/0_voice.d.ts +2 -2
- package/script/types/0_voice.d.ts.map +1 -1
- package/script/types/0_voice.js +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/0_working_hours_interval.d.ts +27 -0
- package/script/types/0_working_hours_interval.d.ts.map +1 -0
- package/script/types/0_working_hours_interval.js +21 -0
- package/script/types/1_animation.d.ts +2 -2
- package/script/types/1_animation.d.ts.map +1 -1
- package/script/types/1_animation.js +5 -4
- package/script/types/1_audio.d.ts +2 -2
- package/script/types/1_audio.d.ts.map +1 -1
- package/script/types/1_audio.js +5 -4
- package/script/types/1_bot_command_scope.d.ts +3 -3
- package/script/types/1_bot_command_scope.d.ts.map +1 -1
- package/script/types/1_bot_command_scope.js +3 -3
- package/script/types/1_bot_commands.d.ts +30 -0
- package/script/types/1_bot_commands.d.ts.map +1 -0
- package/script/types/1_bot_commands.js +21 -0
- package/script/types/1_chat_p.d.ts +36 -7
- package/script/types/1_chat_p.d.ts.map +1 -1
- package/script/types/1_chat_p.js +43 -16
- package/script/types/1_document.d.ts +2 -2
- package/script/types/1_document.d.ts.map +1 -1
- package/script/types/1_document.js +2 -2
- package/script/types/1_giveaway.d.ts +3 -3
- package/script/types/1_giveaway.d.ts.map +1 -1
- package/script/types/1_giveaway.js +1 -1
- package/script/types/1_inline_keyboard_button.d.ts +140 -0
- package/script/types/1_inline_keyboard_button.d.ts.map +1 -0
- package/script/types/1_inline_keyboard_button.js +132 -0
- package/script/types/1_inline_query_result_button.d.ts +3 -3
- package/script/types/1_inline_query_result_button.d.ts.map +1 -1
- package/script/types/1_inline_query_result_button.js +1 -1
- package/script/types/1_input_gift.d.ts +54 -0
- package/script/types/1_input_gift.d.ts.map +1 -0
- package/script/types/1_input_gift.js +35 -0
- package/script/types/1_input_story_content.d.ts +3 -3
- package/script/types/1_input_story_content.d.ts.map +1 -1
- package/script/types/1_input_story_content.js +1 -1
- package/script/types/1_keyboard_button.d.ts +14 -12
- package/script/types/1_keyboard_button.d.ts.map +1 -1
- package/script/types/1_keyboard_button.js +86 -33
- package/script/types/1_message_reaction.d.ts +3 -3
- package/script/types/1_message_reaction.d.ts.map +1 -1
- package/script/types/1_message_reaction.js +7 -7
- package/script/types/1_mini_app_info.d.ts +32 -0
- package/script/types/1_mini_app_info.d.ts.map +1 -0
- package/script/types/1_mini_app_info.js +30 -0
- package/script/types/1_network_statistics.d.ts +2 -2
- package/script/types/1_network_statistics.d.ts.map +1 -1
- package/script/types/1_network_statistics.js +1 -1
- package/script/types/1_order_info.d.ts +8 -3
- package/script/types/1_order_info.d.ts.map +1 -1
- package/script/types/1_order_info.js +1 -1
- package/script/types/1_photo.d.ts +2 -2
- package/script/types/1_photo.d.ts.map +1 -1
- package/script/types/1_photo.js +3 -3
- package/script/types/1_reaction_count.d.ts +3 -3
- package/script/types/1_reaction_count.d.ts.map +1 -1
- package/script/types/1_reaction_count.js +1 -1
- package/script/types/1_sticker.d.ts +6 -5
- package/script/types/1_sticker.d.ts.map +1 -1
- package/script/types/1_sticker.js +15 -10
- package/script/types/1_story_reaction.d.ts +4 -4
- package/script/types/1_story_reaction.d.ts.map +1 -1
- package/script/types/1_story_reaction.js +2 -2
- package/script/types/1_venue.d.ts +2 -2
- package/script/types/1_venue.d.ts.map +1 -1
- package/script/types/1_venue.js +4 -7
- package/script/types/1_video.d.ts +2 -2
- package/script/types/1_video.d.ts.map +1 -1
- package/script/types/1_video.js +2 -2
- package/script/types/1_video_note.d.ts +2 -2
- package/script/types/1_video_note.d.ts.map +1 -1
- package/script/types/1_video_note.js +2 -2
- package/script/types/1_working_hours.d.ts +31 -0
- package/script/types/1_working_hours.d.ts.map +1 -0
- package/script/types/1_working_hours.js +37 -0
- package/script/types/2_chat.d.ts +14 -17
- package/script/types/2_chat.d.ts.map +1 -1
- package/script/types/2_chat.js +22 -27
- package/script/types/2_chat_member.d.ts +72 -15
- package/script/types/2_chat_member.d.ts.map +1 -1
- package/script/types/2_chat_member.js +38 -26
- package/script/types/2_inactive_chat.d.ts +3 -3
- package/script/types/2_inactive_chat.d.ts.map +1 -1
- package/script/types/2_inactive_chat.js +3 -4
- package/script/types/2_message_entity.d.ts +148 -0
- package/script/types/2_message_entity.d.ts.map +1 -0
- package/script/types/2_message_entity.js +248 -0
- package/script/types/2_message_interactions.d.ts +2 -2
- package/script/types/2_message_interactions.d.ts.map +1 -1
- package/script/types/2_message_interactions.js +1 -1
- package/script/types/2_message_reaction_count.d.ts +6 -7
- package/script/types/2_message_reaction_count.d.ts.map +1 -1
- package/script/types/2_message_reaction_count.js +6 -9
- package/script/types/2_message_reaction_list_item.d.ts +39 -0
- package/script/types/2_message_reaction_list_item.d.ts.map +1 -0
- package/script/types/2_message_reaction_list_item.js +53 -0
- package/script/types/2_poll_answer.d.ts +32 -0
- package/script/types/2_poll_answer.d.ts.map +1 -0
- package/script/types/2_poll_answer.js +38 -0
- package/script/types/2_reply_markup.d.ts +71 -0
- package/script/types/2_reply_markup.d.ts.map +1 -0
- package/script/types/2_reply_markup.js +131 -0
- package/script/types/2_sticker_set.d.ts +51 -0
- package/script/types/2_sticker_set.d.ts.map +1 -0
- package/script/types/2_sticker_set.js +94 -0
- package/script/types/2_story_content.d.ts +3 -3
- package/script/types/2_story_content.d.ts.map +1 -1
- package/script/types/2_story_content.js +6 -6
- package/script/types/2_story_interactions.d.ts +3 -3
- package/script/types/2_story_interactions.d.ts.map +1 -1
- package/script/types/2_story_interactions.js +3 -2
- package/script/types/2_story_interactive_area.d.ts +9 -9
- package/script/types/2_story_interactive_area.d.ts.map +1 -1
- package/script/types/2_story_interactive_area.js +15 -14
- package/script/types/2_story_privacy.d.ts +46 -0
- package/script/types/2_story_privacy.d.ts.map +1 -0
- package/script/types/2_story_privacy.js +80 -0
- package/script/types/2_successful_payment.d.ts +11 -3
- package/script/types/2_successful_payment.d.ts.map +1 -1
- package/script/types/2_successful_payment.js +2 -2
- package/script/types/2_user.d.ts +73 -0
- package/script/types/2_user.d.ts.map +1 -0
- package/script/types/2_user.js +86 -0
- package/script/types/3_business_connection.d.ts +37 -0
- package/script/types/3_business_connection.d.ts.map +1 -0
- package/script/types/3_business_connection.js +39 -0
- package/script/types/3_chat_settings.d.ts +47 -0
- package/script/types/3_chat_settings.d.ts.map +1 -0
- package/script/types/3_chat_settings.js +54 -0
- package/script/types/3_checklist_item.d.ts +65 -0
- package/script/types/3_checklist_item.d.ts.map +1 -0
- package/script/types/3_checklist_item.js +54 -0
- package/script/types/3_chosen_inline_result.d.ts +38 -0
- package/script/types/3_chosen_inline_result.d.ts.map +1 -0
- package/script/types/3_chosen_inline_result.js +40 -0
- package/script/types/3_forward_header.d.ts +77 -0
- package/script/types/3_forward_header.d.ts.map +1 -0
- package/script/types/3_forward_header.js +76 -0
- package/script/types/3_game.d.ts +40 -0
- package/script/types/3_game.d.ts.map +1 -0
- package/script/types/3_game.js +47 -0
- package/script/types/3_gift_upgraded_component.d.ts +96 -0
- package/script/types/3_gift_upgraded_component.d.ts.map +1 -0
- package/script/types/3_gift_upgraded_component.js +91 -0
- package/script/types/3_inline_query.d.ts +40 -0
- package/script/types/3_inline_query.d.ts.map +1 -0
- package/script/types/3_inline_query.js +63 -0
- package/script/types/3_input_checklist_item.d.ts +31 -0
- package/script/types/3_input_checklist_item.d.ts.map +1 -0
- package/script/types/3_input_checklist_item.js +21 -0
- package/script/types/3_input_media.d.ts +123 -0
- package/script/types/3_input_media.d.ts.map +1 -0
- package/script/types/3_input_media.js +21 -0
- package/script/types/3_input_poll_option.d.ts +31 -0
- package/script/types/3_input_poll_option.d.ts.map +1 -0
- package/script/types/3_input_poll_option.js +21 -0
- package/script/types/3_invite_link.d.ts +47 -0
- package/script/types/3_invite_link.d.ts.map +1 -0
- package/script/types/3_invite_link.js +51 -0
- package/script/types/3_message_reaction_list.d.ts +32 -0
- package/script/types/3_message_reaction_list.d.ts.map +1 -0
- package/script/types/3_message_reaction_list.js +34 -0
- package/script/types/3_message_reactions.d.ts +42 -0
- package/script/types/3_message_reactions.d.ts.map +1 -0
- package/script/types/3_message_reactions.js +57 -0
- package/script/types/3_poll_option.d.ts +34 -0
- package/script/types/3_poll_option.d.ts.map +1 -0
- package/script/types/3_poll_option.js +32 -0
- package/script/types/3_pre_checkout_query.d.ts +42 -0
- package/script/types/3_pre_checkout_query.d.ts.map +1 -0
- package/script/types/3_pre_checkout_query.js +42 -0
- package/script/types/3_reply_quote.d.ts +32 -0
- package/script/types/3_reply_quote.d.ts.map +1 -0
- package/script/types/3_reply_quote.js +33 -0
- package/script/types/3_story.d.ts +13 -14
- package/script/types/3_story.d.ts.map +1 -1
- package/script/types/3_story.js +14 -15
- package/script/types/4_chat_member_updated.d.ts +43 -0
- package/script/types/4_chat_member_updated.d.ts.map +1 -0
- package/script/types/4_chat_member_updated.js +55 -0
- package/script/types/4_checklist.d.ts +38 -0
- package/script/types/4_checklist.d.ts.map +1 -0
- package/script/types/4_checklist.js +34 -0
- package/script/types/4_gift.d.ts +100 -0
- package/script/types/4_gift.d.ts.map +1 -0
- package/script/types/4_gift.js +117 -0
- package/script/types/4_join_request.d.ts +39 -0
- package/script/types/4_join_request.d.ts.map +1 -0
- package/script/types/4_join_request.js +66 -0
- package/script/types/4_poll.d.ts +55 -0
- package/script/types/4_poll.d.ts.map +1 -0
- package/script/types/4_poll.js +46 -0
- package/script/types/4_reply_to.d.ts +51 -0
- package/script/types/4_reply_to.d.ts.map +1 -0
- package/script/types/4_reply_to.js +21 -0
- package/script/types/5_claimed_gift.d.ts +44 -0
- package/script/types/5_claimed_gift.d.ts.map +1 -0
- package/script/types/5_claimed_gift.js +46 -0
- package/script/types/5_gift_non_upgraded_information.d.ts +47 -0
- package/script/types/5_gift_non_upgraded_information.d.ts.map +1 -0
- package/script/types/5_gift_non_upgraded_information.js +72 -0
- package/script/types/5_gift_upgraded_information.d.ts +41 -0
- package/script/types/5_gift_upgraded_information.d.ts.map +1 -0
- package/script/types/5_gift_upgraded_information.js +61 -0
- package/script/types/5_link_preview.d.ts +186 -0
- package/script/types/5_link_preview.d.ts.map +1 -0
- package/script/types/5_link_preview.js +208 -0
- package/script/types/6_claimed_gifts.d.ts +33 -0
- package/script/types/6_claimed_gifts.d.ts.map +1 -0
- package/script/types/6_claimed_gifts.js +46 -0
- package/script/types/6_message.d.ts +704 -0
- package/script/types/6_message.d.ts.map +1 -0
- package/script/types/6_message.js +558 -0
- package/script/types/6_message_content.d.ts +124 -0
- package/script/types/6_message_content.d.ts.map +1 -0
- package/script/types/6_message_content.js +21 -0
- package/script/types/7_callback_query.d.ts +43 -0
- package/script/types/7_callback_query.d.ts.map +1 -0
- package/script/types/7_callback_query.js +63 -0
- package/script/types/7_chat_list_item.d.ts +43 -0
- package/script/types/7_chat_list_item.d.ts.map +1 -0
- package/script/types/7_chat_list_item.js +60 -0
- package/script/types/7_inline_query_result.d.ts +251 -0
- package/script/types/7_inline_query_result.d.ts.map +1 -0
- package/script/types/7_inline_query_result.js +384 -0
- package/script/types/7_message_list.d.ts +28 -0
- package/script/types/7_message_list.d.ts.map +1 -0
- package/script/types/7_message_list.js +21 -0
- package/script/types/7_saved_chat.d.ts +35 -0
- package/script/types/7_saved_chat.d.ts.map +1 -0
- package/script/types/7_saved_chat.js +45 -0
- package/script/types/7_topic.d.ts +44 -0
- package/script/types/7_topic.d.ts.map +1 -0
- package/script/types/7_topic.js +64 -0
- package/script/types/8_inline_query_answer.d.ts +32 -0
- package/script/types/8_inline_query_answer.d.ts.map +1 -0
- package/script/types/8_inline_query_answer.js +31 -0
- package/script/types/8_saved_chats.d.ts +33 -0
- package/script/types/8_saved_chats.d.ts.map +1 -0
- package/script/types/8_saved_chats.js +39 -0
- package/script/types/8_update.d.ts +583 -0
- package/script/types/8_update.d.ts.map +1 -0
- package/script/types/8_update.js +21 -0
- package/script/types/_file_id.d.ts +64 -51
- package/script/types/_file_id.d.ts.map +1 -1
- package/script/types/_file_id.js +158 -139
- package/script/types/_getters.d.ts +4 -11
- package/script/types/_getters.d.ts.map +1 -1
- package/script/types/_getters.js +1 -1
- package/script/utilities/0_color.d.ts +1 -1
- package/script/utilities/0_color.js +1 -1
- package/script/utilities/0_env.d.ts.map +1 -1
- package/script/utilities/0_env.js +37 -8
- package/script/utilities/0_gzip.d.ts +22 -0
- package/script/utilities/0_gzip.d.ts.map +1 -0
- package/script/utilities/0_gzip.js +46 -0
- package/script/utilities/0_hash.d.ts +3 -3
- package/script/utilities/0_hash.d.ts.map +1 -1
- package/script/utilities/0_hash.js +1 -1
- package/script/utilities/0_int.d.ts +71 -0
- package/script/utilities/0_int.d.ts.map +1 -0
- package/script/utilities/0_int.js +149 -0
- package/script/utilities/0_misc.d.ts +29 -0
- package/script/utilities/0_misc.d.ts.map +1 -0
- package/script/utilities/0_misc.js +95 -0
- package/script/utilities/0_mutex.d.ts +1 -1
- package/script/utilities/0_mutex.js +1 -1
- package/script/utilities/0_object.d.ts +1 -1
- package/script/utilities/0_object.js +1 -1
- package/script/utilities/0_part_stream.d.ts +4 -4
- package/script/utilities/0_part_stream.d.ts.map +1 -1
- package/script/utilities/0_part_stream.js +3 -3
- package/script/utilities/0_rle.d.ts +3 -3
- package/script/utilities/0_rle.d.ts.map +1 -1
- package/script/utilities/0_rle.js +2 -2
- package/script/utilities/0_text.d.ts +22 -0
- package/script/utilities/0_text.d.ts.map +1 -0
- package/script/utilities/0_text.js +31 -0
- package/script/utilities/0_types.d.ts +1 -1
- package/script/utilities/0_types.js +1 -1
- package/script/utilities/0_units.d.ts +1 -4
- package/script/utilities/0_units.d.ts.map +1 -1
- package/script/utilities/0_units.js +2 -5
- package/script/utilities/1_auth.d.ts +2 -2
- package/script/utilities/1_auth.d.ts.map +1 -1
- package/script/utilities/1_auth.js +6 -7
- package/script/utilities/1_base64.d.ts +3 -3
- package/script/utilities/1_base64.d.ts.map +1 -1
- package/script/utilities/1_base64.js +4 -4
- package/script/utilities/1_crypto.d.ts +30 -0
- package/script/utilities/1_crypto.d.ts.map +1 -0
- package/script/utilities/1_crypto.js +94 -0
- package/script/utilities/1_logger.d.ts +3 -3
- package/script/utilities/1_logger.d.ts.map +1 -1
- package/script/utilities/1_logger.js +5 -4
- package/script/utilities/1_math.d.ts +1 -1
- package/script/utilities/1_math.js +7 -7
- package/script/utilities/2_queue.d.ts +2 -2
- package/script/utilities/2_queue.d.ts.map +1 -1
- package/script/utilities/2_queue.js +12 -8
- package/esm/client/0_filters.d.ts +0 -58
- package/esm/client/0_filters.d.ts.map +0 -1
- package/esm/client/0_filters.js +0 -49
- package/esm/client/0_message.d.ts +0 -29
- package/esm/client/0_message.d.ts.map +0 -1
- package/esm/client/0_message.js +0 -83
- package/esm/client/1_client_encrypted.d.ts +0 -52
- package/esm/client/1_client_encrypted.d.ts.map +0 -1
- package/esm/client/1_client_encrypted.js +0 -339
- package/esm/client/1_composer.d.ts +0 -51
- package/esm/client/1_composer.d.ts.map +0 -1
- package/esm/client/1_composer.js +0 -168
- package/esm/client/5_client.d.ts +0 -1372
- package/esm/client/5_client.d.ts.map +0 -1
- package/esm/client/5_client.js +0 -2858
- package/esm/deps/deno.land/std@0.224.0/io/types.d.ts +0 -95
- package/esm/deps/deno.land/std@0.224.0/io/types.d.ts.map +0 -1
- package/esm/deps/deno.land/std@0.224.0/io/types.js +0 -3
- package/esm/deps/deno.land/std@0.224.0/io/write_all.d.ts +0 -39
- package/esm/deps/deno.land/std@0.224.0/io/write_all.d.ts.map +0 -1
- package/esm/deps/deno.land/std@0.224.0/io/write_all.js +0 -49
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -84
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -203
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -51
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -274
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -48
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -51
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -67
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -191
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -169
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -385
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -160
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -431
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -182
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1046
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -43
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -52
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -12
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -122
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -2
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -24
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -47
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -121
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -32
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -30
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2129
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2127
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -110
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -108
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -9
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -91
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -95
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -51
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -128
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -47
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -110
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -43
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -120
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -7
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -6
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -55
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -110
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -41
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -75
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -59
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts.map +0 -1
- package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -101
- package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts +0 -55
- package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts.map +0 -1
- package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.js +0 -167
- package/esm/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts +0 -3
- package/esm/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts.map +0 -1
- package/esm/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.js +0 -308
- package/esm/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/almost_equals.js +0 -46
- package/esm/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/array_includes.js +0 -46
- package/esm/deps/jsr.io/@std/assert/1.0.7/assert.d.ts +0 -16
- package/esm/deps/jsr.io/@std/assert/1.0.7/assert.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/assert.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.7/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/assertion_error.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.7/equal.d.ts +0 -17
- package/esm/deps/jsr.io/@std/assert/1.0.7/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/equal.js +0 -136
- package/esm/deps/jsr.io/@std/assert/1.0.7/equals.d.ts +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.7/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/equals.js +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.7/exists.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.7/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/exists.js +0 -27
- package/esm/deps/jsr.io/@std/assert/1.0.7/fail.d.ts +0 -15
- package/esm/deps/jsr.io/@std/assert/1.0.7/fail.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/fail.js +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.7/false.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.7/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/false.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.7/greater.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.7/greater.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/greater.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/instance_of.js +0 -52
- package/esm/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts +0 -25
- package/esm/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/is_error.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.7/less.d.ts +0 -19
- package/esm/deps/jsr.io/@std/assert/1.0.7/less.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/less.js +0 -28
- package/esm/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/less_or_equal.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.7/match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.7/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.7/mod.d.ts +0 -44
- package/esm/deps/jsr.io/@std/assert/1.0.7/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/mod.js +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts +0 -21
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_instance_of.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts +0 -28
- package/esm/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/object_match.js +0 -159
- package/esm/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts +0 -42
- package/esm/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/rejects.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/strict_equals.js +0 -57
- package/esm/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/string_includes.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.7/throws.d.ts +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.7/throws.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/throws.js +0 -44
- package/esm/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts +0 -15
- package/esm/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/unimplemented.js +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.7/unreachable.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.7/unreachable.js +0 -20
- package/esm/deps/jsr.io/@std/bytes/1.0.3/concat.d.ts +0 -19
- package/esm/deps/jsr.io/@std/bytes/1.0.3/concat.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.3/concat.js +0 -32
- package/esm/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts +0 -2
- package/esm/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.js +0 -26
- package/esm/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts +0 -38
- package/esm/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.5/base64.js +0 -163
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -110
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -276
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -179
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +0 -37
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -207
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +0 -2
- package/esm/deps/jsr.io/@std/io/0.225.0/_constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/io/0.225.0/_constants.js +0 -4
- package/esm/deps/jsr.io/@std/io/0.225.0/iterate_reader.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/io/0.225.0/iterate_reader.js +0 -96
- package/esm/deps/jsr.io/@std/io/0.225.0/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/io/0.225.0/types.js +0 -15
- package/esm/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts +0 -8
- package/esm/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/all_extensions.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/content_type.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/extension.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/format_media_type.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/get_charset.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/parse_media_type.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/vendor/db.d.ts +0 -8796
- package/esm/deps/jsr.io/@std/media-types/1.0.3/vendor/db.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/media-types/1.0.3/vendor/db.js +0 -8831
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +0 -7
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +0 -46
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -234
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +0 -36
- package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/common.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/format.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -83
- package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -42
- package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/join.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +0 -39
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +0 -49
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -62
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +0 -37
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +0 -89
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -21
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +0 -33
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +0 -42
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +0 -57
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -115
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -106
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -59
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
- package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +0 -44
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -112
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +0 -81
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +0 -38
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +0 -74
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -41
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +0 -134
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -176
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -131
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -154
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -49
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +0 -10
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -28
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +0 -135
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +0 -24
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +0 -172
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts +0 -3
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.js +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +0 -19
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts +0 -3
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +0 -25
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts +0 -79
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +0 -1941
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts +0 -13
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.js +0 -85
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +0 -321
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts +0 -48
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +0 -1660
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +0 -355
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts +0 -13
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.js +0 -11
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts +0 -31
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.js +0 -42
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts +0 -6
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +0 -1107
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts +0 -15
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.js +0 -86
- package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts +0 -45
- package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.js +0 -253
- package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts +0 -3
- package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.js +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts +0 -3
- package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts.map +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +0 -13
- package/esm/tl/0_api.d.ts +0 -15839
- package/esm/tl/0_api.d.ts.map +0 -1
- package/esm/tl/0_api.js +0 -24746
- package/esm/tl/0_tl_raw_reader.d.ts +0 -36
- package/esm/tl/0_tl_raw_reader.d.ts.map +0 -1
- package/esm/tl/0_tl_raw_reader.js +0 -87
- package/esm/tl/0_tl_raw_writer.d.ts +0 -34
- package/esm/tl/0_tl_raw_writer.d.ts.map +0 -1
- package/esm/tl/0_tl_raw_writer.js +0 -86
- package/esm/tl/2_deserialize.d.ts +0 -23
- package/esm/tl/2_deserialize.d.ts.map +0 -1
- package/esm/tl/2_deserialize.js +0 -95
- package/esm/tl/2_serialize.d.ts +0 -22
- package/esm/tl/2_serialize.d.ts.map +0 -1
- package/esm/tl/2_serialize.js +0 -160
- package/esm/tl/3_tl_reader.d.ts +0 -26
- package/esm/tl/3_tl_reader.d.ts.map +0 -1
- package/esm/tl/3_tl_reader.js +0 -49
- package/esm/tl/3_utilities.d.ts +0 -34
- package/esm/tl/3_utilities.d.ts.map +0 -1
- package/esm/tl/3_utilities.js +0 -89
- package/esm/tl/4_rpc_result.d.ts +0 -27
- package/esm/tl/4_rpc_result.d.ts.map +0 -1
- package/esm/tl/4_rpc_result.js +0 -28
- package/esm/tl/4_tl_writer.d.ts +0 -25
- package/esm/tl/4_tl_writer.d.ts.map +0 -1
- package/esm/tl/4_tl_writer.js +0 -45
- package/esm/tl/5_message.d.ts +0 -39
- package/esm/tl/5_message.d.ts.map +0 -1
- package/esm/tl/5_message.js +0 -98
- package/esm/transport/2_transport_provider.d.ts +0 -35
- package/esm/transport/2_transport_provider.d.ts.map +0 -1
- package/esm/transport/2_transport_provider.js +0 -81
- package/esm/transport/3_transport_provider_tcp.d.ts +0 -14
- package/esm/transport/3_transport_provider_tcp.d.ts.map +0 -1
- package/esm/transport/3_transport_provider_tcp.js +0 -15
- package/esm/transport/3_transport_provider_web_socket.d.ts +0 -24
- package/esm/transport/3_transport_provider_web_socket.d.ts.map +0 -1
- package/esm/transport/3_transport_provider_web_socket.js +0 -43
- package/esm/types/0_link_preview.d.ts +0 -35
- package/esm/types/0_link_preview.d.ts.map +0 -1
- package/esm/types/0_link_preview.js +0 -28
- package/esm/types/0_message_entity.d.ts +0 -139
- package/esm/types/0_message_entity.d.ts.map +0 -1
- package/esm/types/0_message_entity.js +0 -183
- package/esm/types/0_mini_app_info.d.ts +0 -26
- package/esm/types/0_mini_app_info.d.ts.map +0 -1
- package/esm/types/0_mini_app_info.js +0 -22
- package/esm/types/0_opening_hours.d.ts +0 -26
- package/esm/types/0_opening_hours.d.ts.map +0 -1
- package/esm/types/0_opening_hours.js +0 -25
- package/esm/types/1_input_media.d.ts +0 -122
- package/esm/types/1_input_media.d.ts.map +0 -1
- package/esm/types/1_input_media.js +0 -20
- package/esm/types/1_message_content.d.ts +0 -119
- package/esm/types/1_message_content.d.ts.map +0 -1
- package/esm/types/1_message_content.js +0 -20
- package/esm/types/1_poll_option.d.ts +0 -32
- package/esm/types/1_poll_option.d.ts.map +0 -1
- package/esm/types/1_poll_option.js +0 -27
- package/esm/types/1_reply_quote.d.ts +0 -32
- package/esm/types/1_reply_quote.d.ts.map +0 -1
- package/esm/types/1_reply_quote.js +0 -30
- package/esm/types/1_story_privacy.d.ts +0 -46
- package/esm/types/1_story_privacy.d.ts.map +0 -1
- package/esm/types/1_story_privacy.js +0 -76
- package/esm/types/1_user.d.ts +0 -56
- package/esm/types/1_user.d.ts.map +0 -1
- package/esm/types/1_user.js +0 -47
- package/esm/types/2_business_connection.d.ts +0 -37
- package/esm/types/2_business_connection.d.ts.map +0 -1
- package/esm/types/2_business_connection.js +0 -30
- package/esm/types/2_chosen_inline_result.d.ts +0 -38
- package/esm/types/2_chosen_inline_result.d.ts.map +0 -1
- package/esm/types/2_chosen_inline_result.js +0 -37
- package/esm/types/2_forward_header.d.ts +0 -40
- package/esm/types/2_forward_header.d.ts.map +0 -1
- package/esm/types/2_forward_header.js +0 -55
- package/esm/types/2_game.d.ts +0 -40
- package/esm/types/2_game.d.ts.map +0 -1
- package/esm/types/2_game.js +0 -44
- package/esm/types/2_inline_keyboard_button.d.ts +0 -138
- package/esm/types/2_inline_keyboard_button.d.ts.map +0 -1
- package/esm/types/2_inline_keyboard_button.js +0 -117
- package/esm/types/2_inline_query.d.ts +0 -40
- package/esm/types/2_inline_query.d.ts.map +0 -1
- package/esm/types/2_inline_query.js +0 -60
- package/esm/types/2_invite_link.d.ts +0 -47
- package/esm/types/2_invite_link.d.ts.map +0 -1
- package/esm/types/2_invite_link.js +0 -48
- package/esm/types/2_message_reactions.d.ts +0 -43
- package/esm/types/2_message_reactions.d.ts.map +0 -1
- package/esm/types/2_message_reactions.js +0 -56
- package/esm/types/2_poll.d.ts +0 -55
- package/esm/types/2_poll.d.ts.map +0 -1
- package/esm/types/2_poll.js +0 -43
- package/esm/types/2_pre_checkout_query.d.ts +0 -34
- package/esm/types/2_pre_checkout_query.d.ts.map +0 -1
- package/esm/types/2_pre_checkout_query.js +0 -39
- package/esm/types/2_reply_to.d.ts +0 -35
- package/esm/types/2_reply_to.d.ts.map +0 -1
- package/esm/types/2_reply_to.js +0 -20
- package/esm/types/3_chat_member_updated.d.ts +0 -44
- package/esm/types/3_chat_member_updated.d.ts.map +0 -1
- package/esm/types/3_chat_member_updated.js +0 -53
- package/esm/types/3_join_request.d.ts +0 -39
- package/esm/types/3_join_request.d.ts.map +0 -1
- package/esm/types/3_join_request.js +0 -45
- package/esm/types/3_reply_markup.d.ts +0 -71
- package/esm/types/3_reply_markup.d.ts.map +0 -1
- package/esm/types/3_reply_markup.js +0 -127
- package/esm/types/4_inline_query_result.d.ts +0 -251
- package/esm/types/4_inline_query_result.d.ts.map +0 -1
- package/esm/types/4_inline_query_result.js +0 -380
- package/esm/types/4_message.d.ts +0 -615
- package/esm/types/4_message.d.ts.map +0 -1
- package/esm/types/4_message.js +0 -533
- package/esm/types/5_callback_query.d.ts +0 -43
- package/esm/types/5_callback_query.d.ts.map +0 -1
- package/esm/types/5_callback_query.js +0 -60
- package/esm/types/5_chat_list_item.d.ts +0 -36
- package/esm/types/5_chat_list_item.d.ts.map +0 -1
- package/esm/types/5_chat_list_item.js +0 -86
- package/esm/types/5_inline_query_answer.d.ts +0 -32
- package/esm/types/5_inline_query_answer.d.ts.map +0 -1
- package/esm/types/5_inline_query_answer.js +0 -28
- package/esm/types/6_update.d.ts +0 -388
- package/esm/types/6_update.d.ts.map +0 -1
- package/esm/types/6_update.js +0 -20
- package/esm/utilities/0_bigint.d.ts +0 -29
- package/esm/utilities/0_bigint.d.ts.map +0 -1
- package/esm/utilities/0_bigint.js +0 -90
- package/esm/utilities/0_buffer.d.ts +0 -21
- package/esm/utilities/0_buffer.d.ts.map +0 -1
- package/esm/utilities/0_buffer.js +0 -51
- package/esm/utilities/0_cache_map.d.ts +0 -26
- package/esm/utilities/0_cache_map.d.ts.map +0 -1
- package/esm/utilities/0_cache_map.js +0 -52
- package/esm/utilities/0_crypto.d.ts +0 -27
- package/esm/utilities/0_crypto.d.ts.map +0 -1
- package/esm/utilities/0_crypto.js +0 -48
- package/esm/utilities/1_misc.d.ts +0 -29
- package/esm/utilities/1_misc.d.ts.map +0 -1
- package/esm/utilities/1_misc.js +0 -72
- package/script/client/0_filters.d.ts +0 -58
- package/script/client/0_filters.d.ts.map +0 -1
- package/script/client/0_filters.js +0 -52
- package/script/client/0_message.d.ts +0 -29
- package/script/client/0_message.d.ts.map +0 -1
- package/script/client/0_message.js +0 -90
- package/script/client/1_client_encrypted.d.ts +0 -52
- package/script/client/1_client_encrypted.d.ts.map +0 -1
- package/script/client/1_client_encrypted.js +0 -343
- package/script/client/1_composer.d.ts +0 -51
- package/script/client/1_composer.d.ts.map +0 -1
- package/script/client/1_composer.js +0 -175
- package/script/client/5_client.d.ts +0 -1372
- package/script/client/5_client.d.ts.map +0 -1
- package/script/client/5_client.js +0 -2863
- package/script/deps/deno.land/std@0.224.0/io/types.d.ts +0 -95
- package/script/deps/deno.land/std@0.224.0/io/types.d.ts.map +0 -1
- package/script/deps/deno.land/std@0.224.0/io/types.js +0 -4
- package/script/deps/deno.land/std@0.224.0/io/write_all.d.ts +0 -39
- package/script/deps/deno.land/std@0.224.0/io/write_all.d.ts.map +0 -1
- package/script/deps/deno.land/std@0.224.0/io/write_all.js +0 -53
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -84
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -207
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -51
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -301
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -48
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -55
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -67
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -222
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -169
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -404
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -160
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -438
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -182
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1052
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -43
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -88
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -12
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -128
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -2
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -30
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -47
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -129
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -32
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -32
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2129
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2129
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -110
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -110
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -9
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -3
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -91
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -114
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -51
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -134
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -47
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -117
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -43
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -128
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -7
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -22
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -55
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -118
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -41
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -85
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -59
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts.map +0 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -111
- package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts +0 -55
- package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts.map +0 -1
- package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.js +0 -182
- package/script/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts +0 -3
- package/script/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts.map +0 -1
- package/script/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.js +0 -310
- package/script/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.7/almost_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/almost_equals.js +0 -49
- package/script/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.7/array_includes.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/array_includes.js +0 -49
- package/script/deps/jsr.io/@std/assert/1.0.7/assert.d.ts +0 -16
- package/script/deps/jsr.io/@std/assert/1.0.7/assert.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/assert.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.7/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/assertion_error.js +0 -34
- package/script/deps/jsr.io/@std/assert/1.0.7/equal.d.ts +0 -17
- package/script/deps/jsr.io/@std/assert/1.0.7/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/equal.js +0 -139
- package/script/deps/jsr.io/@std/assert/1.0.7/equals.d.ts +0 -22
- package/script/deps/jsr.io/@std/assert/1.0.7/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/equals.js +0 -48
- package/script/deps/jsr.io/@std/assert/1.0.7/exists.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.7/exists.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/exists.js +0 -30
- package/script/deps/jsr.io/@std/assert/1.0.7/fail.d.ts +0 -15
- package/script/deps/jsr.io/@std/assert/1.0.7/fail.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/fail.js +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.7/false.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.7/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/false.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.7/greater.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.7/greater.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/greater.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/greater_or_equal.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.7/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/instance_of.js +0 -55
- package/script/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.7/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/is_error.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.7/less.d.ts +0 -19
- package/script/deps/jsr.io/@std/assert/1.0.7/less.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/less.js +0 -31
- package/script/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.7/less_or_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/less_or_equal.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.7/match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.7/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.7/mod.d.ts +0 -44
- package/script/deps/jsr.io/@std/assert/1.0.7/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/mod.js +0 -61
- package/script/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts +0 -21
- package/script/deps/jsr.io/@std/assert/1.0.7/not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/not_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.7/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/not_instance_of.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.7/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/not_match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/not_strict_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts +0 -28
- package/script/deps/jsr.io/@std/assert/1.0.7/object_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/object_match.js +0 -162
- package/script/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts +0 -42
- package/script/deps/jsr.io/@std/assert/1.0.7/rejects.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/rejects.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.7/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/strict_equals.js +0 -60
- package/script/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.7/string_includes.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/string_includes.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.7/throws.d.ts +0 -45
- package/script/deps/jsr.io/@std/assert/1.0.7/throws.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/throws.js +0 -47
- package/script/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts +0 -15
- package/script/deps/jsr.io/@std/assert/1.0.7/unimplemented.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/unimplemented.js +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.7/unreachable.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.7/unreachable.js +0 -23
- package/script/deps/jsr.io/@std/bytes/1.0.3/concat.d.ts +0 -19
- package/script/deps/jsr.io/@std/bytes/1.0.3/concat.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/bytes/1.0.3/concat.js +0 -35
- package/script/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts +0 -2
- package/script/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.js +0 -29
- package/script/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts +0 -38
- package/script/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/encoding/1.0.5/base64.js +0 -167
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -115
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -283
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -185
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/format.js +0 -63
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -242
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/types.js +0 -3
- package/script/deps/jsr.io/@std/io/0.225.0/_constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/io/0.225.0/_constants.js +0 -7
- package/script/deps/jsr.io/@std/io/0.225.0/iterate_reader.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/io/0.225.0/iterate_reader.js +0 -100
- package/script/deps/jsr.io/@std/io/0.225.0/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/io/0.225.0/types.js +0 -18
- package/script/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts +0 -8
- package/script/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/all_extensions.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/content_type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/extension.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/format_media_type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/get_charset.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/parse_media_type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/vendor/db.d.ts +0 -8796
- package/script/deps/jsr.io/@std/media-types/1.0.3/vendor/db.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/vendor/db.js +0 -8833
- package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +0 -10
- package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.js +0 -45
- package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -26
- package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.js +0 -49
- package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -11
- package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -23
- package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -12
- package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
- package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -237
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +0 -11
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +0 -80
- package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -12
- package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +0 -22
- package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +0 -18
- package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/_os.js +0 -35
- package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/basename.js +0 -39
- package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/common.js +0 -36
- package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
- package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/constants.js +0 -20
- package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -32
- package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/extname.js +0 -32
- package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/format.js +0 -30
- package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
- package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -86
- package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -45
- package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/join.js +0 -32
- package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -37
- package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
- package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/mod.js +0 -73
- package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
- package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -36
- package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
- package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -38
- package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
- package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/parse.js +0 -42
- package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.js +0 -11
- package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +0 -40
- package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.js +0 -52
- package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
- package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -17
- package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
- package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -65
- package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +0 -37
- package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.js +0 -92
- package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -24
- package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
- package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -85
- package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +0 -26
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +0 -33
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join.js +0 -45
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -43
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +0 -40
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +0 -60
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -35
- package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
- package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -118
- package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -109
- package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -85
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +0 -30
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -23
- package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/relative.js +0 -33
- package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -33
- package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
- package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -32
- package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
- package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/types.js +0 -4
- package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.js +0 -20
- package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.js +0 -47
- package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
- package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -17
- package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -115
- package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.js +0 -84
- package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -33
- package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
- package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -85
- package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +0 -41
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join.js +0 -77
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -44
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +0 -137
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -35
- package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
- package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -179
- package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -134
- package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -180
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +0 -37
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -52
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +0 -6
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +0 -13
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -28
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +0 -166
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +0 -24
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +0 -202
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts +0 -3
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.js +0 -18
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +0 -22
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts +0 -3
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +0 -29
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts +0 -79
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +0 -1976
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts +0 -13
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.js +0 -88
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +0 -324
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts +0 -48
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +0 -1676
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +0 -358
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts +0 -13
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.js +0 -14
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts +0 -31
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.js +0 -44
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts +0 -6
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +0 -1114
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts +0 -15
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.js +0 -89
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts +0 -45
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.js +0 -280
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts +0 -3
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.js +0 -5
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts +0 -3
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts.map +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +0 -39
- package/script/tl/0_api.d.ts +0 -15839
- package/script/tl/0_api.d.ts.map +0 -1
- package/script/tl/0_api.js +0 -24772
- package/script/tl/0_tl_raw_reader.d.ts +0 -36
- package/script/tl/0_tl_raw_reader.d.ts.map +0 -1
- package/script/tl/0_tl_raw_reader.js +0 -92
- package/script/tl/0_tl_raw_writer.d.ts +0 -34
- package/script/tl/0_tl_raw_writer.d.ts.map +0 -1
- package/script/tl/0_tl_raw_writer.js +0 -90
- package/script/tl/2_deserialize.d.ts +0 -23
- package/script/tl/2_deserialize.d.ts.map +0 -1
- package/script/tl/2_deserialize.js +0 -98
- package/script/tl/2_serialize.d.ts +0 -22
- package/script/tl/2_serialize.d.ts.map +0 -1
- package/script/tl/2_serialize.js +0 -163
- package/script/tl/3_tl_reader.d.ts +0 -26
- package/script/tl/3_tl_reader.d.ts.map +0 -1
- package/script/tl/3_tl_reader.js +0 -53
- package/script/tl/3_utilities.d.ts +0 -34
- package/script/tl/3_utilities.d.ts.map +0 -1
- package/script/tl/3_utilities.js +0 -97
- package/script/tl/4_rpc_result.d.ts +0 -27
- package/script/tl/4_rpc_result.d.ts.map +0 -1
- package/script/tl/4_rpc_result.js +0 -32
- package/script/tl/4_tl_writer.d.ts +0 -25
- package/script/tl/4_tl_writer.d.ts.map +0 -1
- package/script/tl/4_tl_writer.js +0 -49
- package/script/tl/5_message.d.ts +0 -39
- package/script/tl/5_message.d.ts.map +0 -1
- package/script/tl/5_message.js +0 -106
- package/script/transport/2_transport_provider.d.ts +0 -35
- package/script/transport/2_transport_provider.d.ts.map +0 -1
- package/script/transport/2_transport_provider.js +0 -86
- package/script/transport/3_transport_provider_tcp.d.ts +0 -14
- package/script/transport/3_transport_provider_tcp.d.ts.map +0 -1
- package/script/transport/3_transport_provider_tcp.js +0 -18
- package/script/transport/3_transport_provider_web_socket.d.ts +0 -24
- package/script/transport/3_transport_provider_web_socket.d.ts.map +0 -1
- package/script/transport/3_transport_provider_web_socket.js +0 -47
- package/script/types/0_link_preview.d.ts +0 -35
- package/script/types/0_link_preview.d.ts.map +0 -1
- package/script/types/0_link_preview.js +0 -31
- package/script/types/0_message_entity.d.ts +0 -139
- package/script/types/0_message_entity.d.ts.map +0 -1
- package/script/types/0_message_entity.js +0 -188
- package/script/types/0_mini_app_info.d.ts +0 -26
- package/script/types/0_mini_app_info.d.ts.map +0 -1
- package/script/types/0_mini_app_info.js +0 -25
- package/script/types/0_opening_hours.d.ts +0 -26
- package/script/types/0_opening_hours.d.ts.map +0 -1
- package/script/types/0_opening_hours.js +0 -28
- package/script/types/1_input_media.d.ts +0 -122
- package/script/types/1_input_media.d.ts.map +0 -1
- package/script/types/1_input_media.js +0 -21
- package/script/types/1_message_content.d.ts +0 -119
- package/script/types/1_message_content.d.ts.map +0 -1
- package/script/types/1_message_content.js +0 -21
- package/script/types/1_poll_option.d.ts +0 -32
- package/script/types/1_poll_option.d.ts.map +0 -1
- package/script/types/1_poll_option.js +0 -30
- package/script/types/1_reply_quote.d.ts +0 -32
- package/script/types/1_reply_quote.d.ts.map +0 -1
- package/script/types/1_reply_quote.js +0 -33
- package/script/types/1_story_privacy.d.ts +0 -46
- package/script/types/1_story_privacy.d.ts.map +0 -1
- package/script/types/1_story_privacy.js +0 -80
- package/script/types/1_user.d.ts +0 -56
- package/script/types/1_user.d.ts.map +0 -1
- package/script/types/1_user.js +0 -50
- package/script/types/2_business_connection.d.ts +0 -37
- package/script/types/2_business_connection.d.ts.map +0 -1
- package/script/types/2_business_connection.js +0 -33
- package/script/types/2_chosen_inline_result.d.ts +0 -38
- package/script/types/2_chosen_inline_result.d.ts.map +0 -1
- package/script/types/2_chosen_inline_result.js +0 -40
- package/script/types/2_forward_header.d.ts +0 -40
- package/script/types/2_forward_header.d.ts.map +0 -1
- package/script/types/2_forward_header.js +0 -58
- package/script/types/2_game.d.ts +0 -40
- package/script/types/2_game.d.ts.map +0 -1
- package/script/types/2_game.js +0 -47
- package/script/types/2_inline_keyboard_button.d.ts +0 -138
- package/script/types/2_inline_keyboard_button.d.ts.map +0 -1
- package/script/types/2_inline_keyboard_button.js +0 -121
- package/script/types/2_inline_query.d.ts +0 -40
- package/script/types/2_inline_query.d.ts.map +0 -1
- package/script/types/2_inline_query.js +0 -63
- package/script/types/2_invite_link.d.ts +0 -47
- package/script/types/2_invite_link.d.ts.map +0 -1
- package/script/types/2_invite_link.js +0 -51
- package/script/types/2_message_reactions.d.ts +0 -43
- package/script/types/2_message_reactions.d.ts.map +0 -1
- package/script/types/2_message_reactions.js +0 -59
- package/script/types/2_poll.d.ts +0 -55
- package/script/types/2_poll.d.ts.map +0 -1
- package/script/types/2_poll.js +0 -46
- package/script/types/2_pre_checkout_query.d.ts +0 -34
- package/script/types/2_pre_checkout_query.d.ts.map +0 -1
- package/script/types/2_pre_checkout_query.js +0 -42
- package/script/types/2_reply_to.d.ts +0 -35
- package/script/types/2_reply_to.d.ts.map +0 -1
- package/script/types/2_reply_to.js +0 -21
- package/script/types/3_chat_member_updated.d.ts +0 -44
- package/script/types/3_chat_member_updated.d.ts.map +0 -1
- package/script/types/3_chat_member_updated.js +0 -56
- package/script/types/3_join_request.d.ts +0 -39
- package/script/types/3_join_request.d.ts.map +0 -1
- package/script/types/3_join_request.js +0 -48
- package/script/types/3_reply_markup.d.ts +0 -71
- package/script/types/3_reply_markup.d.ts.map +0 -1
- package/script/types/3_reply_markup.js +0 -131
- package/script/types/4_inline_query_result.d.ts +0 -251
- package/script/types/4_inline_query_result.d.ts.map +0 -1
- package/script/types/4_inline_query_result.js +0 -384
- package/script/types/4_message.d.ts +0 -615
- package/script/types/4_message.d.ts.map +0 -1
- package/script/types/4_message.js +0 -537
- package/script/types/5_callback_query.d.ts +0 -43
- package/script/types/5_callback_query.d.ts.map +0 -1
- package/script/types/5_callback_query.js +0 -64
- package/script/types/5_chat_list_item.d.ts +0 -36
- package/script/types/5_chat_list_item.d.ts.map +0 -1
- package/script/types/5_chat_list_item.js +0 -93
- package/script/types/5_inline_query_answer.d.ts +0 -32
- package/script/types/5_inline_query_answer.d.ts.map +0 -1
- package/script/types/5_inline_query_answer.js +0 -31
- package/script/types/6_update.d.ts +0 -388
- package/script/types/6_update.d.ts.map +0 -1
- package/script/types/6_update.js +0 -21
- package/script/utilities/0_bigint.d.ts +0 -29
- package/script/utilities/0_bigint.d.ts.map +0 -1
- package/script/utilities/0_bigint.js +0 -98
- package/script/utilities/0_buffer.d.ts +0 -21
- package/script/utilities/0_buffer.d.ts.map +0 -1
- package/script/utilities/0_buffer.js +0 -54
- package/script/utilities/0_cache_map.d.ts +0 -26
- package/script/utilities/0_cache_map.d.ts.map +0 -1
- package/script/utilities/0_cache_map.js +0 -56
- package/script/utilities/0_crypto.d.ts +0 -27
- package/script/utilities/0_crypto.d.ts.map +0 -1
- package/script/utilities/0_crypto.js +0 -52
- package/script/utilities/1_misc.d.ts +0 -29
- package/script/utilities/1_misc.d.ts.map +0 -1
- package/script/utilities/1_misc.js +0 -82
- /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.19}/assertion_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.19}/unreachable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/_constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/iterate_reader.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.js +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.js +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.js +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.js +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.js +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.js +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.js +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/assert_path.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.19}/assertion_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.19}/unreachable.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.5 → 1.0.12}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/_constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/iterate_reader.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.225.0 → 0.225.3}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.js +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.js +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.js +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.js +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.js +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.js +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.js +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.js +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.d.ts +0 -0
- /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/assert_path.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/normalize_string.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/_common/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/posix/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.8 → 1.1.4}/windows/to_file_url.d.ts +0 -0
|
@@ -0,0 +1,3444 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
4
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
5
|
+
*
|
|
6
|
+
* This file is part of MTKruto.
|
|
7
|
+
*
|
|
8
|
+
* This program is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU Lesser General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
19
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
22
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
23
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
24
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
25
|
+
};
|
|
26
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
27
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
28
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
29
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
30
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
31
|
+
};
|
|
32
|
+
var _Client_instances, _Client_clients, _Client_downloadPools, _Client_uploadPools, _Client_guaranteeUpdateDelivery, _Client_accountManager, _Client_botInfoManager, _Client_businessConnectionManager, _Client_fileManager, _Client_networkStatisticsManager, _Client_paymentManager, _Client_reactionManager, _Client_translationsManager, _Client_updateManager, _Client_messageManager, _Client_videoChatManager, _Client_callbackQueryManager, _Client_chatListManager, _Client_chatManager, _Client_checklistManager, _Client_forumManager, _Client_giftManager, _Client_inlineQueryManager, _Client_linkPreviewManager, _Client_pollManager, _Client_storyManager, _Client_managers, _Client_storage_, _Client_messageStorage_, _Client_parseMode, _Client_apiId, _Client_apiHash, _Client_transportProvider, _Client_publicKeys, _Client_outgoingMessages, _Client_persistCache, _Client_disableUpdates, _Client_authString, _Client_initialDc, _Client_L, _Client_LsignIn, _Client_LupdateGapRecoveryLoop, _Client_LstorageWriteLoop, _Client_LhandleMigrationError, _Client_Lmin, _Client_setMainClient, _Client_newClient, _Client_disconnectAllClients, _Client_client_get, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_getIsPremium, _Client_lastUpdates, _Client_updateGapRecoveryLoop, _Client_clientDisconnectionLoop, _Client_storageWriteLoop, _Client_checkAuthorization, _Client_getClient, _Client_getMainClientMutex, _Client_getMainClient, _Client_getDownloadClient, _Client_getUploadPoolSize, _Client_getUploadClient, _Client_setupClient, _Client_importAuthorization, _Client_invoke, _Client_handleInvokeError, _Client_authStringImported, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerChatId, _Client_getInputPeerInner, _Client_getMinInputPeer, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe, _Client_getMeInner, _Client_previouslyConnected, _Client_lastConnectionState, _Client_onConnectionStateChange;
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.Client = exports.handleMigrationError = exports.restartAuth = void 0;
|
|
35
|
+
const _0_deps_js_1 = require("../0_deps.js");
|
|
36
|
+
const _0_errors_js_1 = require("../0_errors.js");
|
|
37
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
38
|
+
const _2_storage_js_1 = require("../2_storage.js");
|
|
39
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
40
|
+
const _3_transport_js_1 = require("../3_transport.js");
|
|
41
|
+
const _3_types_js_1 = require("../3_types.js");
|
|
42
|
+
const _4_constants_js_1 = require("../4_constants.js");
|
|
43
|
+
const _4_errors_js_1 = require("../4_errors.js");
|
|
44
|
+
const _2_telegram_js_1 = require("../tl/2_telegram.js");
|
|
45
|
+
const _0_abortable_loop_js_1 = require("./0_abortable_loop.js");
|
|
46
|
+
const _0_storage_operations_js_1 = require("./0_storage_operations.js");
|
|
47
|
+
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
48
|
+
const _1_invoke_middleware_js_1 = require("./1_invoke_middleware.js");
|
|
49
|
+
const _2_account_manager_js_1 = require("./2_account_manager.js");
|
|
50
|
+
const _2_bot_info_manager_js_1 = require("./2_bot_info_manager.js");
|
|
51
|
+
const _2_business_connection_manager_js_1 = require("./2_business_connection_manager.js");
|
|
52
|
+
const _2_client_encrypted_js_1 = require("./2_client_encrypted.js");
|
|
53
|
+
const _2_file_manager_js_1 = require("./2_file_manager.js");
|
|
54
|
+
const _2_network_statistics_manager_js_1 = require("./2_network_statistics_manager.js");
|
|
55
|
+
const _2_payment_manager_js_1 = require("./2_payment_manager.js");
|
|
56
|
+
const _2_reaction_manager_js_1 = require("./2_reaction_manager.js");
|
|
57
|
+
const _2_sign_in_js_1 = require("./2_sign_in.js");
|
|
58
|
+
const _2_translations_manager_js_1 = require("./2_translations_manager.js");
|
|
59
|
+
const _2_update_manager_js_1 = require("./2_update_manager.js");
|
|
60
|
+
const _3_client_encrypted_pool_js_1 = require("./3_client_encrypted_pool.js");
|
|
61
|
+
const _3_message_manager_js_1 = require("./3_message_manager.js");
|
|
62
|
+
const _3_video_chat_manager_js_1 = require("./3_video_chat_manager.js");
|
|
63
|
+
const _4_callback_query_manager_js_1 = require("./4_callback_query_manager.js");
|
|
64
|
+
const _4_chat_list_manager_js_1 = require("./4_chat_list_manager.js");
|
|
65
|
+
const _4_chat_manager_js_1 = require("./4_chat_manager.js");
|
|
66
|
+
const _4_checklist_manager_js_1 = require("./4_checklist_manager.js");
|
|
67
|
+
const _4_forum_manager_js_1 = require("./4_forum_manager.js");
|
|
68
|
+
const _4_gift_manager_js_1 = require("./4_gift_manager.js");
|
|
69
|
+
const _4_inline_query_manager_js_1 = require("./4_inline_query_manager.js");
|
|
70
|
+
const _4_link_preview_manager_js_1 = require("./4_link_preview_manager.js");
|
|
71
|
+
const _4_poll_manager_js_1 = require("./4_poll_manager.js");
|
|
72
|
+
const _4_story_manager_js_1 = require("./4_story_manager.js");
|
|
73
|
+
const _5_composer_js_1 = require("./5_composer.js");
|
|
74
|
+
var _2_sign_in_js_2 = require("./2_sign_in.js");
|
|
75
|
+
Object.defineProperty(exports, "restartAuth", { enumerable: true, get: function () { return _2_sign_in_js_2.restartAuth; } });
|
|
76
|
+
exports.handleMigrationError = Symbol("handleMigrationError");
|
|
77
|
+
// global Client ID counter for logs
|
|
78
|
+
let id = 0;
|
|
79
|
+
const getPeer = Symbol();
|
|
80
|
+
const mustGetPeer = Symbol();
|
|
81
|
+
/**
|
|
82
|
+
* An MTKruto client.
|
|
83
|
+
*/
|
|
84
|
+
class Client extends _5_composer_js_1.Composer {
|
|
85
|
+
// deno-lint-ignore no-explicit-any
|
|
86
|
+
get managers() {
|
|
87
|
+
return __classPrivateFieldGet(this, _Client_managers, "f") ?? (__classPrivateFieldSet(this, _Client_managers, __classPrivateFieldGet(this, _Client_managers, "f") ?? {
|
|
88
|
+
// 2_
|
|
89
|
+
accountManager: __classPrivateFieldGet(this, _Client_accountManager, "f"),
|
|
90
|
+
botInfoManager: __classPrivateFieldGet(this, _Client_botInfoManager, "f"),
|
|
91
|
+
businessConnectionManager: __classPrivateFieldGet(this, _Client_businessConnectionManager, "f"),
|
|
92
|
+
fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"),
|
|
93
|
+
networkStatisticsManager: __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f"),
|
|
94
|
+
paymentManager: __classPrivateFieldGet(this, _Client_paymentManager, "f"),
|
|
95
|
+
reactionManager: __classPrivateFieldGet(this, _Client_reactionManager, "f"),
|
|
96
|
+
translationsManager: __classPrivateFieldGet(this, _Client_translationsManager, "f"),
|
|
97
|
+
updateManager: __classPrivateFieldGet(this, _Client_updateManager, "f"),
|
|
98
|
+
// 3_
|
|
99
|
+
messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f"),
|
|
100
|
+
videoChatManager: __classPrivateFieldGet(this, _Client_videoChatManager, "f"),
|
|
101
|
+
// 4_
|
|
102
|
+
callbackQueryManager: __classPrivateFieldGet(this, _Client_callbackQueryManager, "f"),
|
|
103
|
+
chatListManager: __classPrivateFieldGet(this, _Client_chatListManager, "f"),
|
|
104
|
+
chatManager: __classPrivateFieldGet(this, _Client_chatManager, "f"),
|
|
105
|
+
checklistManager: __classPrivateFieldGet(this, _Client_checklistManager, "f"),
|
|
106
|
+
forumManager: __classPrivateFieldGet(this, _Client_forumManager, "f"),
|
|
107
|
+
giftManager: __classPrivateFieldGet(this, _Client_giftManager, "f"),
|
|
108
|
+
inlineQueryManager: __classPrivateFieldGet(this, _Client_inlineQueryManager, "f"),
|
|
109
|
+
linkPreviewManager: __classPrivateFieldGet(this, _Client_linkPreviewManager, "f"),
|
|
110
|
+
pollManager: __classPrivateFieldGet(this, _Client_pollManager, "f"),
|
|
111
|
+
storyManager: __classPrivateFieldGet(this, _Client_storyManager, "f"),
|
|
112
|
+
}, "f"));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Constructs the client.
|
|
116
|
+
*/
|
|
117
|
+
constructor(params) {
|
|
118
|
+
super();
|
|
119
|
+
_Client_instances.add(this);
|
|
120
|
+
_Client_clients.set(this, new Array());
|
|
121
|
+
_Client_downloadPools.set(this, {});
|
|
122
|
+
_Client_uploadPools.set(this, {});
|
|
123
|
+
_Client_guaranteeUpdateDelivery.set(this, void 0);
|
|
124
|
+
// 2_
|
|
125
|
+
_Client_accountManager.set(this, void 0);
|
|
126
|
+
_Client_botInfoManager.set(this, void 0);
|
|
127
|
+
_Client_businessConnectionManager.set(this, void 0);
|
|
128
|
+
_Client_fileManager.set(this, void 0);
|
|
129
|
+
_Client_networkStatisticsManager.set(this, void 0);
|
|
130
|
+
_Client_paymentManager.set(this, void 0);
|
|
131
|
+
_Client_reactionManager.set(this, void 0);
|
|
132
|
+
_Client_translationsManager.set(this, void 0);
|
|
133
|
+
_Client_updateManager.set(this, void 0);
|
|
134
|
+
// 3_
|
|
135
|
+
_Client_messageManager.set(this, void 0);
|
|
136
|
+
_Client_videoChatManager.set(this, void 0);
|
|
137
|
+
// 4_
|
|
138
|
+
_Client_callbackQueryManager.set(this, void 0);
|
|
139
|
+
_Client_chatListManager.set(this, void 0);
|
|
140
|
+
_Client_chatManager.set(this, void 0);
|
|
141
|
+
_Client_checklistManager.set(this, void 0);
|
|
142
|
+
_Client_forumManager.set(this, void 0);
|
|
143
|
+
_Client_giftManager.set(this, void 0);
|
|
144
|
+
_Client_inlineQueryManager.set(this, void 0);
|
|
145
|
+
_Client_linkPreviewManager.set(this, void 0);
|
|
146
|
+
_Client_pollManager.set(this, void 0);
|
|
147
|
+
_Client_storyManager.set(this, void 0);
|
|
148
|
+
// deno-lint-ignore no-explicit-any
|
|
149
|
+
_Client_managers.set(this, void 0);
|
|
150
|
+
_Client_storage_.set(this, void 0);
|
|
151
|
+
_Client_messageStorage_.set(this, void 0);
|
|
152
|
+
Object.defineProperty(this, "storage", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
configurable: true,
|
|
155
|
+
writable: true,
|
|
156
|
+
value: void 0
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(this, "messageStorage", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
configurable: true,
|
|
161
|
+
writable: true,
|
|
162
|
+
value: void 0
|
|
163
|
+
});
|
|
164
|
+
_Client_parseMode.set(this, void 0);
|
|
165
|
+
_Client_apiId.set(this, void 0);
|
|
166
|
+
_Client_apiHash.set(this, void 0);
|
|
167
|
+
_Client_transportProvider.set(this, void 0);
|
|
168
|
+
Object.defineProperty(this, "appVersion", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
configurable: true,
|
|
171
|
+
writable: true,
|
|
172
|
+
value: void 0
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(this, "deviceModel", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
configurable: true,
|
|
177
|
+
writable: true,
|
|
178
|
+
value: void 0
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(this, "language", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
configurable: true,
|
|
183
|
+
writable: true,
|
|
184
|
+
value: void 0
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(this, "platform", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
configurable: true,
|
|
189
|
+
writable: true,
|
|
190
|
+
value: void 0
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(this, "systemLangCode", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
configurable: true,
|
|
195
|
+
writable: true,
|
|
196
|
+
value: void 0
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(this, "systemVersion", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
configurable: true,
|
|
201
|
+
writable: true,
|
|
202
|
+
value: void 0
|
|
203
|
+
});
|
|
204
|
+
_Client_publicKeys.set(this, void 0);
|
|
205
|
+
_Client_outgoingMessages.set(this, void 0);
|
|
206
|
+
_Client_persistCache.set(this, void 0);
|
|
207
|
+
_Client_disableUpdates.set(this, void 0);
|
|
208
|
+
_Client_authString.set(this, void 0);
|
|
209
|
+
_Client_initialDc.set(this, void 0);
|
|
210
|
+
_Client_L.set(this, void 0);
|
|
211
|
+
_Client_LsignIn.set(this, void 0);
|
|
212
|
+
_Client_LupdateGapRecoveryLoop.set(this, void 0);
|
|
213
|
+
_Client_LstorageWriteLoop.set(this, void 0);
|
|
214
|
+
_Client_LhandleMigrationError.set(this, void 0);
|
|
215
|
+
_Client_Lmin.set(this, void 0);
|
|
216
|
+
_Client_lastPropagatedConnectionState.set(this, null);
|
|
217
|
+
_Client_stateChangeHandler.set(this, ((isConnected) => {
|
|
218
|
+
const connectionState = isConnected ? "ready" : "notConnected";
|
|
219
|
+
if (__classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") !== connectionState) {
|
|
220
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).call(this, connectionState);
|
|
221
|
+
}
|
|
222
|
+
}).bind(this));
|
|
223
|
+
_Client_storageInited.set(this, false);
|
|
224
|
+
_Client_connectMutex.set(this, new _1_utilities_js_1.Mutex());
|
|
225
|
+
_Client_lastPropagatedAuthorizationState.set(this, null);
|
|
226
|
+
_Client_lastUpdates.set(this, new Date());
|
|
227
|
+
_Client_updateGapRecoveryLoop.set(this, new _0_abortable_loop_js_1.AbortableLoop(async (loop, signal) => {
|
|
228
|
+
await (0, _0_deps_js_1.delay)(60 * _0_deps_js_1.SECOND, { signal });
|
|
229
|
+
if (!this.isConnected) {
|
|
230
|
+
loop.abort();
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 * _0_deps_js_1.MINUTE) {
|
|
234
|
+
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("lastUpdates").then(() => {
|
|
235
|
+
__classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
|
|
236
|
+
}));
|
|
237
|
+
}
|
|
238
|
+
}, (loop, err) => {
|
|
239
|
+
if (!this.isConnected) {
|
|
240
|
+
loop.abort();
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
__classPrivateFieldGet(this, _Client_LupdateGapRecoveryLoop, "f").error(err);
|
|
244
|
+
}
|
|
245
|
+
}));
|
|
246
|
+
_Client_clientDisconnectionLoop.set(this, new _0_abortable_loop_js_1.AbortableLoop(async (loop, signal) => {
|
|
247
|
+
await (0, _0_deps_js_1.delay)(60 * _0_deps_js_1.SECOND, { signal });
|
|
248
|
+
if (!this.isConnected) {
|
|
249
|
+
loop.abort();
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
const now = Date.now();
|
|
253
|
+
const disconnectAfter = 5 * _0_deps_js_1.MINUTE;
|
|
254
|
+
for (const [i, client] of __classPrivateFieldGet(this, _Client_clients, "f").entries()) {
|
|
255
|
+
if (i > 0 && !client.isDisconnected && client.lastRequest && now - client.lastRequest.getTime() >= disconnectAfter) {
|
|
256
|
+
client?.disconnect();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}, (loop) => {
|
|
260
|
+
if (!this.isConnected) {
|
|
261
|
+
loop.abort();
|
|
262
|
+
}
|
|
263
|
+
}));
|
|
264
|
+
_Client_storageWriteLoop.set(this, new _0_abortable_loop_js_1.AbortableLoop(async (_loop, signal) => {
|
|
265
|
+
await (0, _0_deps_js_1.delay)(5 * _0_deps_js_1.SECOND, { signal });
|
|
266
|
+
await this.messageStorage.commit();
|
|
267
|
+
await this.storage.commit();
|
|
268
|
+
}, (err) => {
|
|
269
|
+
__classPrivateFieldGet(this, _Client_LstorageWriteLoop, "f").error(err);
|
|
270
|
+
}));
|
|
271
|
+
_Client_getMainClientMutex.set(this, new _1_utilities_js_1.Mutex());
|
|
272
|
+
_Client_handleInvokeError.set(this, (0, _1_invoke_middleware_js_1.skipInvoke)());
|
|
273
|
+
/**
|
|
274
|
+
* Invokes a function waiting and returning its reply.
|
|
275
|
+
* Requires the client to be connected.
|
|
276
|
+
*
|
|
277
|
+
* @param function_ The function to invoke.
|
|
278
|
+
*/
|
|
279
|
+
Object.defineProperty(this, "invoke", {
|
|
280
|
+
enumerable: true,
|
|
281
|
+
configurable: true,
|
|
282
|
+
writable: true,
|
|
283
|
+
value: Object.assign(__classPrivateFieldGet(this, _Client_instances, "m", _Client_invoke), {
|
|
284
|
+
use: (handler) => {
|
|
285
|
+
const handle = __classPrivateFieldGet(this, _Client_handleInvokeError, "f");
|
|
286
|
+
__classPrivateFieldSet(this, _Client_handleInvokeError, async (ctx, next) => {
|
|
287
|
+
let result = null;
|
|
288
|
+
return await handle(ctx, async () => {
|
|
289
|
+
if (result !== null)
|
|
290
|
+
return result;
|
|
291
|
+
result = await handler(ctx, next);
|
|
292
|
+
return result;
|
|
293
|
+
});
|
|
294
|
+
}, "f");
|
|
295
|
+
},
|
|
296
|
+
})
|
|
297
|
+
});
|
|
298
|
+
_Client_authStringImported.set(this, false);
|
|
299
|
+
_Client_lastGetMe.set(this, null);
|
|
300
|
+
_Client_previouslyConnected.set(this, false);
|
|
301
|
+
_Client_lastConnectionState.set(this, false);
|
|
302
|
+
__classPrivateFieldSet(this, _Client_apiId, params?.apiId ?? 0, "f");
|
|
303
|
+
__classPrivateFieldSet(this, _Client_apiHash, params?.apiHash ?? "", "f");
|
|
304
|
+
__classPrivateFieldSet(this, _Client_transportProvider, params?.transportProvider, "f");
|
|
305
|
+
__classPrivateFieldSet(this, _Client_initialDc, params?.initialDc ?? _4_constants_js_1.INITIAL_DC, "f");
|
|
306
|
+
__classPrivateFieldSet(this, _Client_storage_, params?.storage || new _2_storage_js_1.StorageMemory(), "f");
|
|
307
|
+
__classPrivateFieldSet(this, _Client_persistCache, params?.persistCache ?? false, "f");
|
|
308
|
+
if (!__classPrivateFieldGet(this, _Client_persistCache, "f")) {
|
|
309
|
+
__classPrivateFieldSet(this, _Client_messageStorage_, new _2_storage_js_1.StorageMemory(), "f");
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
__classPrivateFieldSet(this, _Client_messageStorage_, __classPrivateFieldGet(this, _Client_storage_, "f"), "f");
|
|
313
|
+
}
|
|
314
|
+
this.storage = new _0_storage_operations_js_1.StorageOperations(__classPrivateFieldGet(this, _Client_storage_, "f"));
|
|
315
|
+
this.messageStorage = new _0_storage_operations_js_1.StorageOperations(__classPrivateFieldGet(this, _Client_messageStorage_, "f"));
|
|
316
|
+
__classPrivateFieldSet(this, _Client_parseMode, params?.parseMode ?? null, "f");
|
|
317
|
+
__classPrivateFieldSet(this, _Client_disableUpdates, params?.disableUpdates ?? false, "f");
|
|
318
|
+
__classPrivateFieldSet(this, _Client_authString, params?.authString, "f");
|
|
319
|
+
this.appVersion = params?.appVersion ?? _4_constants_js_1.APP_VERSION;
|
|
320
|
+
this.deviceModel = params?.deviceModel ?? _4_constants_js_1.DEVICE_MODEL;
|
|
321
|
+
this.language = params?.language ?? _4_constants_js_1.LANG_CODE;
|
|
322
|
+
this.platform = params?.platform ?? _4_constants_js_1.LANG_PACK;
|
|
323
|
+
this.systemLangCode = params?.systemLangCode ?? _4_constants_js_1.SYSTEM_LANG_CODE;
|
|
324
|
+
this.systemVersion = params?.systemVersion ?? _4_constants_js_1.SYSTEM_VERSION;
|
|
325
|
+
__classPrivateFieldSet(this, _Client_publicKeys, params?.publicKeys, "f");
|
|
326
|
+
__classPrivateFieldSet(this, _Client_outgoingMessages, params?.outgoingMessages ?? false, "f");
|
|
327
|
+
__classPrivateFieldSet(this, _Client_guaranteeUpdateDelivery, params?.guaranteeUpdateDelivery ?? false, "f");
|
|
328
|
+
const L = __classPrivateFieldSet(this, _Client_L, (0, _1_utilities_js_1.getLogger)("Client").client(id++), "f");
|
|
329
|
+
__classPrivateFieldSet(this, _Client_LsignIn, L.branch("signIn"), "f");
|
|
330
|
+
__classPrivateFieldSet(this, _Client_LupdateGapRecoveryLoop, L.branch("updateGapRecoveryLoop"), "f");
|
|
331
|
+
__classPrivateFieldSet(this, _Client_LstorageWriteLoop, L.branch("storageWriteLoop"), "f");
|
|
332
|
+
__classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
|
|
333
|
+
__classPrivateFieldSet(this, _Client_Lmin, L.branch("min"), "f");
|
|
334
|
+
const c = {
|
|
335
|
+
id,
|
|
336
|
+
getUploadPoolSize: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUploadPoolSize).bind(this),
|
|
337
|
+
invoke: async (function_, params) => {
|
|
338
|
+
if (params?.businessConnectionId) {
|
|
339
|
+
if (_2_tl_js_1.Mtproto.is("ping", function_)) {
|
|
340
|
+
(0, _0_deps_js_1.unreachable)();
|
|
341
|
+
}
|
|
342
|
+
return await this.invoke({ _: "invokeWithBusinessConnection", connection_id: params.businessConnectionId, query: function_ }, params);
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
return await this.invoke(function_, params);
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
storage: this.storage,
|
|
349
|
+
messageStorage: this.messageStorage,
|
|
350
|
+
guaranteeUpdateDelivery: __classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f"),
|
|
351
|
+
setConnectionState: __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).bind(this),
|
|
352
|
+
resetConnectionState: () => __classPrivateFieldGet(this, _Client_stateChangeHandler, "f").call(this, this.isConnected),
|
|
353
|
+
getSelfId: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).bind(this),
|
|
354
|
+
getIsPremium: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getIsPremium).bind(this),
|
|
355
|
+
getInputPeer: this.getInputPeer.bind(this),
|
|
356
|
+
getInputChannel: this.getInputChannel.bind(this),
|
|
357
|
+
getInputUser: this.getInputUser.bind(this),
|
|
358
|
+
getInputPeerChatId: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerChatId).bind(this),
|
|
359
|
+
getPeer: this[mustGetPeer].bind(this),
|
|
360
|
+
handleUpdate: __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).bind(this),
|
|
361
|
+
parseMode: __classPrivateFieldGet(this, _Client_parseMode, "f"),
|
|
362
|
+
outgoingMessages: __classPrivateFieldGet(this, _Client_outgoingMessages, "f"),
|
|
363
|
+
dropPendingUpdates: params?.dropPendingUpdates,
|
|
364
|
+
isDisconnected: () => this.isDisconnected,
|
|
365
|
+
langPack: this.platform,
|
|
366
|
+
langCode: this.language,
|
|
367
|
+
};
|
|
368
|
+
// 2_
|
|
369
|
+
__classPrivateFieldSet(this, _Client_accountManager, new _2_account_manager_js_1.AccountManager(c), "f");
|
|
370
|
+
__classPrivateFieldSet(this, _Client_botInfoManager, new _2_bot_info_manager_js_1.BotInfoManager(c), "f");
|
|
371
|
+
__classPrivateFieldSet(this, _Client_businessConnectionManager, new _2_business_connection_manager_js_1.BusinessConnectionManager(c), "f");
|
|
372
|
+
const fileManager = __classPrivateFieldSet(this, _Client_fileManager, new _2_file_manager_js_1.FileManager(c), "f");
|
|
373
|
+
__classPrivateFieldSet(this, _Client_networkStatisticsManager, new _2_network_statistics_manager_js_1.NetworkStatisticsManager(c), "f");
|
|
374
|
+
__classPrivateFieldSet(this, _Client_paymentManager, new _2_payment_manager_js_1.PaymentManager(c), "f");
|
|
375
|
+
__classPrivateFieldSet(this, _Client_reactionManager, new _2_reaction_manager_js_1.ReactionManager(c), "f");
|
|
376
|
+
__classPrivateFieldSet(this, _Client_translationsManager, new _2_translations_manager_js_1.TranslationsManager(c), "f");
|
|
377
|
+
__classPrivateFieldSet(this, _Client_updateManager, new _2_update_manager_js_1.UpdateManager(c), "f");
|
|
378
|
+
// 3_
|
|
379
|
+
const messageManager = __classPrivateFieldSet(this, _Client_messageManager, new _3_message_manager_js_1.MessageManager({ ...c, fileManager }), "f");
|
|
380
|
+
__classPrivateFieldSet(this, _Client_videoChatManager, new _3_video_chat_manager_js_1.VideoChatManager({ ...c, fileManager }), "f");
|
|
381
|
+
// 4_
|
|
382
|
+
__classPrivateFieldSet(this, _Client_callbackQueryManager, new _4_callback_query_manager_js_1.CallbackQueryManager({ ...c, messageManager }), "f");
|
|
383
|
+
__classPrivateFieldSet(this, _Client_chatListManager, new _4_chat_list_manager_js_1.ChatListManager({ ...c, fileManager, messageManager }), "f");
|
|
384
|
+
__classPrivateFieldSet(this, _Client_chatManager, new _4_chat_manager_js_1.ChatManager({ ...c, fileManager, messageManager }), "f");
|
|
385
|
+
__classPrivateFieldSet(this, _Client_checklistManager, new _4_checklist_manager_js_1.ChecklistManager({ ...c, messageManager }), "f");
|
|
386
|
+
__classPrivateFieldSet(this, _Client_forumManager, new _4_forum_manager_js_1.ForumManager({ ...c, messageManager }), "f");
|
|
387
|
+
__classPrivateFieldSet(this, _Client_giftManager, new _4_gift_manager_js_1.GiftManager({ ...c, messageManager }), "f");
|
|
388
|
+
__classPrivateFieldSet(this, _Client_inlineQueryManager, new _4_inline_query_manager_js_1.InlineQueryManager({ ...c, messageManager }), "f");
|
|
389
|
+
__classPrivateFieldSet(this, _Client_linkPreviewManager, new _4_link_preview_manager_js_1.LinkPreviewManager({ ...c, messageManager }), "f");
|
|
390
|
+
__classPrivateFieldSet(this, _Client_pollManager, new _4_poll_manager_js_1.PollManager({ ...c, messageManager }), "f");
|
|
391
|
+
__classPrivateFieldSet(this, _Client_storyManager, new _4_story_manager_js_1.StoryManager({ ...c, fileManager, messageManager }), "f");
|
|
392
|
+
__classPrivateFieldGet(this, _Client_updateManager, "f").setUpdateHandler(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).bind(this));
|
|
393
|
+
if (params?.defaultHandlers ?? true) {
|
|
394
|
+
this.invoke.use(async ({ error }, next) => {
|
|
395
|
+
if (error instanceof _4_errors_js_1.FloodWait && error.seconds <= 10) {
|
|
396
|
+
L.warning("sleeping for", error.seconds, "because of:", error);
|
|
397
|
+
await (0, _0_deps_js_1.delay)(error.seconds * _0_deps_js_1.SECOND);
|
|
398
|
+
return true;
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
return next();
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
// direct ClientEncrypted property proxies
|
|
407
|
+
get isConnected() {
|
|
408
|
+
return __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.isConnected ?? false;
|
|
409
|
+
}
|
|
410
|
+
get isDisconnected() {
|
|
411
|
+
return __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.isDisconnected ?? true;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Loads the session if `setDc` was not called, initializes and connnects
|
|
415
|
+
* a `ClientPlain` to generate auth key if there was none, and connects the client.
|
|
416
|
+
* Before establishing the connection, the session is saved.
|
|
417
|
+
*/
|
|
418
|
+
async connect() {
|
|
419
|
+
const unlock = await __classPrivateFieldGet(this, _Client_connectMutex, "f").lock();
|
|
420
|
+
try {
|
|
421
|
+
if (this.isConnected) {
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
425
|
+
if (__classPrivateFieldGet(this, _Client_authString, "f") && !__classPrivateFieldGet(this, _Client_authStringImported, "f")) {
|
|
426
|
+
await this.importAuthString(__classPrivateFieldGet(this, _Client_authString, "f"));
|
|
427
|
+
}
|
|
428
|
+
const auth = this.storage.auth.mustGet();
|
|
429
|
+
if (auth.authKey !== null && auth.dc !== null) {
|
|
430
|
+
if (!__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get) || __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc !== auth.dc) {
|
|
431
|
+
__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.disconnect();
|
|
432
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_setMainClient).call(this, __classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, auth.dc, true, false));
|
|
433
|
+
}
|
|
434
|
+
await __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).setAuthKey(auth.authKey);
|
|
435
|
+
if (__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).serverSalt === 0n) {
|
|
436
|
+
__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).serverSalt = await this.storage.getServerSalt() ?? 0n;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
const dc = auth.dc ?? __classPrivateFieldGet(this, _Client_initialDc, "f");
|
|
441
|
+
if (!__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get) || __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc !== dc) {
|
|
442
|
+
__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.disconnect();
|
|
443
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_setMainClient).call(this, __classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, dc, true, false));
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
await __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).connect();
|
|
447
|
+
await this.storage.auth.update((v) => {
|
|
448
|
+
v.authKey = __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).authKey;
|
|
449
|
+
v.dc = __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc;
|
|
450
|
+
});
|
|
451
|
+
await this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).serverSalt);
|
|
452
|
+
__classPrivateFieldGet(this, _Client_updateGapRecoveryLoop, "f").start();
|
|
453
|
+
__classPrivateFieldGet(this, _Client_clientDisconnectionLoop, "f").start();
|
|
454
|
+
if (!__classPrivateFieldGet(this, _Client_messageStorage_, "f").isMemory) {
|
|
455
|
+
__classPrivateFieldGet(this, _Client_storageWriteLoop, "f").start();
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
__classPrivateFieldGet(this, _Client_L, "f").debug("not starting storageWriteLoop");
|
|
459
|
+
}
|
|
460
|
+
await this.storage.commit(true);
|
|
461
|
+
}
|
|
462
|
+
finally {
|
|
463
|
+
unlock();
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
async [(_Client_clients = new WeakMap(), _Client_downloadPools = new WeakMap(), _Client_uploadPools = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_businessConnectionManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_paymentManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_translationsManager = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_videoChatManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_chatManager = new WeakMap(), _Client_checklistManager = new WeakMap(), _Client_forumManager = new WeakMap(), _Client_giftManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_linkPreviewManager = new WeakMap(), _Client_pollManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_managers = new WeakMap(), _Client_storage_ = new WeakMap(), _Client_messageStorage_ = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_apiId = new WeakMap(), _Client_apiHash = new WeakMap(), _Client_transportProvider = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_outgoingMessages = new WeakMap(), _Client_persistCache = new WeakMap(), _Client_disableUpdates = new WeakMap(), _Client_authString = new WeakMap(), _Client_initialDc = new WeakMap(), _Client_L = new WeakMap(), _Client_LsignIn = new WeakMap(), _Client_LupdateGapRecoveryLoop = new WeakMap(), _Client_LstorageWriteLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_Lmin = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_updateGapRecoveryLoop = new WeakMap(), _Client_clientDisconnectionLoop = new WeakMap(), _Client_storageWriteLoop = new WeakMap(), _Client_getMainClientMutex = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_authStringImported = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_previouslyConnected = new WeakMap(), _Client_lastConnectionState = new WeakMap(), _Client_instances = new WeakSet(), _Client_setMainClient = function _Client_setMainClient(client) {
|
|
467
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_disconnectAllClients).call(this);
|
|
468
|
+
__classPrivateFieldSet(this, _Client_clients, [client], "f");
|
|
469
|
+
client.handlers.onUpdate = (updates) => {
|
|
470
|
+
__classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(updates, true, null);
|
|
471
|
+
__classPrivateFieldSet(this, _Client_lastUpdates, new Date(), "f");
|
|
472
|
+
};
|
|
473
|
+
client.handlers.onDeserializationError = async () => {
|
|
474
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("deserialization error");
|
|
475
|
+
};
|
|
476
|
+
client.handlers.onNewServerSalt = async (serverSalt) => {
|
|
477
|
+
await this.storage.setServerSalt(serverSalt);
|
|
478
|
+
};
|
|
479
|
+
client.onConnectionStateChange = __classPrivateFieldGet(this, _Client_instances, "m", _Client_onConnectionStateChange).bind(this);
|
|
480
|
+
}, _Client_newClient = function _Client_newClient(dc, main, isCdn) {
|
|
481
|
+
const client = new _2_client_encrypted_js_1.ClientEncrypted(dc, __classPrivateFieldGet(this, _Client_apiId, "f"), {
|
|
482
|
+
appVersion: this.appVersion,
|
|
483
|
+
deviceModel: this.deviceModel,
|
|
484
|
+
langCode: this.language,
|
|
485
|
+
langPack: this.platform,
|
|
486
|
+
systemLangCode: this.systemLangCode,
|
|
487
|
+
systemVersion: this.systemVersion,
|
|
488
|
+
transportProvider: __classPrivateFieldGet(this, _Client_transportProvider, "f"),
|
|
489
|
+
isCdn: isCdn,
|
|
490
|
+
disableUpdates: !main || isCdn,
|
|
491
|
+
publicKeys: __classPrivateFieldGet(this, _Client_publicKeys, "f"),
|
|
492
|
+
});
|
|
493
|
+
client.connectionCallback = __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f").getTransportReadWriteCallback(isCdn);
|
|
494
|
+
return client;
|
|
495
|
+
}, _Client_disconnectAllClients = function _Client_disconnectAllClients() {
|
|
496
|
+
for (const client of __classPrivateFieldGet(this, _Client_clients, "f")) {
|
|
497
|
+
client.disconnect();
|
|
498
|
+
}
|
|
499
|
+
for (const pool of Object.values(__classPrivateFieldGet(this, _Client_downloadPools, "f"))) {
|
|
500
|
+
pool.disconnect();
|
|
501
|
+
}
|
|
502
|
+
for (const pool of Object.values(__classPrivateFieldGet(this, _Client_uploadPools, "f"))) {
|
|
503
|
+
pool.disconnect();
|
|
504
|
+
}
|
|
505
|
+
}, _Client_client_get = function _Client_client_get() {
|
|
506
|
+
return __classPrivateFieldGet(this, _Client_clients, "f")[0];
|
|
507
|
+
}, _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
|
|
508
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
|
|
509
|
+
__classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
|
|
510
|
+
}, _Client_initStorage = async function _Client_initStorage() {
|
|
511
|
+
if (!__classPrivateFieldGet(this, _Client_storageInited, "f")) {
|
|
512
|
+
await this.storage.initialize();
|
|
513
|
+
if (!__classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f")) {
|
|
514
|
+
await this.storage.deleteUpdates();
|
|
515
|
+
await this.storage.commit(true);
|
|
516
|
+
}
|
|
517
|
+
__classPrivateFieldSet(this, _Client_storageInited, true, "f");
|
|
518
|
+
}
|
|
519
|
+
}, exports.handleMigrationError)](err) {
|
|
520
|
+
let newDc = String(err.dc);
|
|
521
|
+
if (Math.abs((0, _3_transport_js_1.getDcId)(__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc, __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).isCdn)) >= 10_000) {
|
|
522
|
+
newDc += "-test";
|
|
523
|
+
}
|
|
524
|
+
this.disconnect();
|
|
525
|
+
await this.storage.auth.update((v) => {
|
|
526
|
+
v.authKey = null;
|
|
527
|
+
v.dc = newDc;
|
|
528
|
+
});
|
|
529
|
+
await this.connect();
|
|
530
|
+
__classPrivateFieldGet(this, _Client_LhandleMigrationError, "f").debug(`migrated to DC${newDc}`);
|
|
531
|
+
}
|
|
532
|
+
async disconnect() {
|
|
533
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_disconnectAllClients).call(this);
|
|
534
|
+
__classPrivateFieldGet(this, _Client_clientDisconnectionLoop, "f").abort();
|
|
535
|
+
__classPrivateFieldGet(this, _Client_updateGapRecoveryLoop, "f").abort();
|
|
536
|
+
__classPrivateFieldGet(this, _Client_storageWriteLoop, "f").abort();
|
|
537
|
+
__classPrivateFieldGet(this, _Client_updateManager, "f").closeAllChats();
|
|
538
|
+
await this.storage.commit(true);
|
|
539
|
+
await this.messageStorage.commit(true);
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Send a user verification code.
|
|
543
|
+
*
|
|
544
|
+
* @param phoneNumber The phone number to send the code to.
|
|
545
|
+
* @method ac
|
|
546
|
+
*/
|
|
547
|
+
async sendCode(phoneNumber) {
|
|
548
|
+
const me = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkAuthorization).call(this);
|
|
549
|
+
if (me) {
|
|
550
|
+
return;
|
|
551
|
+
}
|
|
552
|
+
try {
|
|
553
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").sendCode(phoneNumber, __classPrivateFieldGet(this, _Client_apiId, "f"), __classPrivateFieldGet(this, _Client_apiHash, "f"));
|
|
554
|
+
}
|
|
555
|
+
catch (err) {
|
|
556
|
+
if (err instanceof _4_errors_js_1.Migrate) {
|
|
557
|
+
await this[exports.handleMigrationError](err);
|
|
558
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").sendCode(phoneNumber, __classPrivateFieldGet(this, _Client_apiId, "f"), __classPrivateFieldGet(this, _Client_apiHash, "f"));
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
throw err;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Check if a code entered by the user was the same as the verification code.
|
|
567
|
+
*
|
|
568
|
+
* @param code A code entered by the user.
|
|
569
|
+
* @method ac
|
|
570
|
+
*/
|
|
571
|
+
async checkCode(code) {
|
|
572
|
+
const result = await __classPrivateFieldGet(this, _Client_accountManager, "f").checkCode(code);
|
|
573
|
+
if (result.type === "signedIn") {
|
|
574
|
+
await this.storage.auth.update((v) => {
|
|
575
|
+
v.userId = result.userId;
|
|
576
|
+
v.isBot = false;
|
|
577
|
+
});
|
|
578
|
+
__classPrivateFieldGet(this, _Client_LsignIn, "f").debug("signed in as user");
|
|
579
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
580
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("checkCode");
|
|
581
|
+
}
|
|
582
|
+
return result;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Get the user account password's hint.
|
|
586
|
+
*
|
|
587
|
+
* @method ac
|
|
588
|
+
*/
|
|
589
|
+
async getPasswordHint() {
|
|
590
|
+
return await __classPrivateFieldGet(this, _Client_accountManager, "f").getPasswordHint();
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Check whether a password entered by the user is the same as the account's one.
|
|
594
|
+
*
|
|
595
|
+
* @param password The password to check
|
|
596
|
+
* @returns The result of the check.
|
|
597
|
+
* @method ac
|
|
598
|
+
*/
|
|
599
|
+
async checkPassword(password) {
|
|
600
|
+
const result = await __classPrivateFieldGet(this, _Client_accountManager, "f").checkPassword(password);
|
|
601
|
+
if (result.type === "signedIn") {
|
|
602
|
+
await this.storage.auth.update((v) => {
|
|
603
|
+
v.userId = result.userId;
|
|
604
|
+
v.isBot = false;
|
|
605
|
+
});
|
|
606
|
+
await this.storage.commit(true);
|
|
607
|
+
__classPrivateFieldGet(this, _Client_LsignIn, "f").debug("signed in as user");
|
|
608
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
609
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("checkPassword");
|
|
610
|
+
}
|
|
611
|
+
return result;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Check whether a bot token is valid.
|
|
615
|
+
*
|
|
616
|
+
* @param password The password to check
|
|
617
|
+
* @returns The result of the check.
|
|
618
|
+
* @method ac
|
|
619
|
+
*/
|
|
620
|
+
async checkBotToken(botToken) {
|
|
621
|
+
const me = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkAuthorization).call(this);
|
|
622
|
+
if (me) {
|
|
623
|
+
return {
|
|
624
|
+
type: "signedIn",
|
|
625
|
+
userId: me.id,
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
while (true) {
|
|
629
|
+
try {
|
|
630
|
+
const result = await __classPrivateFieldGet(this, _Client_accountManager, "f").checkBotToken(botToken, __classPrivateFieldGet(this, _Client_apiId, "f"), __classPrivateFieldGet(this, _Client_apiHash, "f"));
|
|
631
|
+
if (result.type === "signedIn") {
|
|
632
|
+
await this.storage.auth.update((v) => {
|
|
633
|
+
v.userId = result.userId;
|
|
634
|
+
v.isBot = true;
|
|
635
|
+
});
|
|
636
|
+
await this.storage.commit(true);
|
|
637
|
+
__classPrivateFieldGet(this, _Client_LsignIn, "f").debug("signed in as bot");
|
|
638
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
639
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("checkBotToken");
|
|
640
|
+
}
|
|
641
|
+
return result;
|
|
642
|
+
}
|
|
643
|
+
catch (err) {
|
|
644
|
+
if (err instanceof _4_errors_js_1.Migrate) {
|
|
645
|
+
await this[exports.handleMigrationError](err);
|
|
646
|
+
continue;
|
|
647
|
+
}
|
|
648
|
+
else {
|
|
649
|
+
throw err;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Signs in using the provided parameters if not already signed in.
|
|
656
|
+
* If no parameters are provided, the credentials will be prompted in runtime.
|
|
657
|
+
*
|
|
658
|
+
* Notes:
|
|
659
|
+
* 1. Requires the `apiId` and `apiHash` paramters to be passed when constructing the client.
|
|
660
|
+
* 3. Reconnects the client to the appropriate DC in case of MIGRATE_X errors.
|
|
661
|
+
*/
|
|
662
|
+
async signIn(params) {
|
|
663
|
+
await (0, _2_sign_in_js_1.signIn)(this, __classPrivateFieldGet(this, _Client_LsignIn, "f"), params);
|
|
664
|
+
}
|
|
665
|
+
async signOut() {
|
|
666
|
+
try {
|
|
667
|
+
await Promise.all([
|
|
668
|
+
this.storage.reset(),
|
|
669
|
+
this.invoke({ _: "auth.logOut" }).then(() => {
|
|
670
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, false);
|
|
671
|
+
}),
|
|
672
|
+
]);
|
|
673
|
+
}
|
|
674
|
+
finally {
|
|
675
|
+
__classPrivateFieldSet(this, _Client_lastGetMe, null, "f");
|
|
676
|
+
this.disconnect();
|
|
677
|
+
await this.connect();
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* Same as calling `.connect()` followed by `.signIn(params)`.
|
|
682
|
+
*/
|
|
683
|
+
async start(params) {
|
|
684
|
+
await this.connect();
|
|
685
|
+
await this.signIn(params);
|
|
686
|
+
}
|
|
687
|
+
exportAuthString() {
|
|
688
|
+
return this.storage.exportAuthString(__classPrivateFieldGet(this, _Client_apiId, "f"));
|
|
689
|
+
}
|
|
690
|
+
async importAuthString(authString) {
|
|
691
|
+
if (this.isConnected) {
|
|
692
|
+
throw new Error("Cannot import auth string while the client is connected");
|
|
693
|
+
}
|
|
694
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
695
|
+
await this.storage.importAuthString(authString);
|
|
696
|
+
__classPrivateFieldSet(this, _Client_authStringImported, true, "f");
|
|
697
|
+
if (!__classPrivateFieldGet(this, _Client_apiId, "f")) {
|
|
698
|
+
__classPrivateFieldSet(this, _Client_apiId, this.storage.auth.mustGet().apiId, "f");
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Get a chat's inputPeer. Useful when calling API functions directly.
|
|
703
|
+
*
|
|
704
|
+
* @param id The identifier of a chat.
|
|
705
|
+
*/
|
|
706
|
+
async getInputPeer(id) {
|
|
707
|
+
if (id === "me" || id === await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) {
|
|
708
|
+
return { _: "inputPeerSelf" };
|
|
709
|
+
}
|
|
710
|
+
const inputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerInner).call(this, id);
|
|
711
|
+
if (((_2_tl_js_1.Api.is("inputPeerUser", inputPeer) || _2_tl_js_1.Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash === 0n) && this.storage.isBot) {
|
|
712
|
+
if ("channel_id" in inputPeer) {
|
|
713
|
+
inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChannelAccessHash).call(this, inputPeer.channel_id);
|
|
714
|
+
}
|
|
715
|
+
else {
|
|
716
|
+
inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUserAccessHash).call(this, inputPeer.user_id);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
if ((_2_tl_js_1.Api.is("inputPeerUser", inputPeer) || _2_tl_js_1.Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash === 0n) {
|
|
720
|
+
throw new _0_errors_js_1.AccessError(`The chat ${id} cannot be accessed.`);
|
|
721
|
+
}
|
|
722
|
+
return inputPeer;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Get a channel or a supergroup's inputChannel. Useful when calling API functions directly.
|
|
726
|
+
*
|
|
727
|
+
* @param id The identifier of the channel or the supergroup.
|
|
728
|
+
*/
|
|
729
|
+
async getInputChannel(id) {
|
|
730
|
+
const inputPeer = await this.getInputPeer(id);
|
|
731
|
+
if (!(0, _0_utilities_js_1.canBeInputChannel)(inputPeer)) {
|
|
732
|
+
throw new TypeError(`The chat ${id} is not a channel neither a supergroup.`);
|
|
733
|
+
}
|
|
734
|
+
return (0, _0_utilities_js_1.toInputChannel)(inputPeer);
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Get a user's inputUser. Useful when calling API functions directly.
|
|
738
|
+
*
|
|
739
|
+
* @param id The identifier of the user.
|
|
740
|
+
*/
|
|
741
|
+
async getInputUser(id) {
|
|
742
|
+
const inputPeer = await this.getInputPeer(id);
|
|
743
|
+
if (!(0, _0_utilities_js_1.canBeInputUser)(inputPeer)) {
|
|
744
|
+
throw new TypeError(`The chat ${id} is not a private chat.`);
|
|
745
|
+
}
|
|
746
|
+
return (0, _0_utilities_js_1.toInputUser)(inputPeer);
|
|
747
|
+
}
|
|
748
|
+
async [(_Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
|
|
749
|
+
if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") !== authorized) {
|
|
750
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, { authorizationState: { isAuthorized: authorized } });
|
|
751
|
+
__classPrivateFieldSet(this, _Client_lastPropagatedAuthorizationState, authorized, "f");
|
|
752
|
+
}
|
|
753
|
+
}, _Client_getSelfId = async function _Client_getSelfId() {
|
|
754
|
+
const id = await this.storage.getAccountId();
|
|
755
|
+
if (id === null) {
|
|
756
|
+
throw new Error("Unauthorized");
|
|
757
|
+
}
|
|
758
|
+
return id;
|
|
759
|
+
}, _Client_getIsPremium = async function _Client_getIsPremium() {
|
|
760
|
+
const maybeIsPremium = await this.storage.getIsPremium();
|
|
761
|
+
if (maybeIsPremium !== null) {
|
|
762
|
+
return maybeIsPremium;
|
|
763
|
+
}
|
|
764
|
+
return __classPrivateFieldGet(this, _Client_lastGetMe, "f")?.isPremium ?? false;
|
|
765
|
+
}, _Client_checkAuthorization = async function _Client_checkAuthorization() {
|
|
766
|
+
if (__classPrivateFieldGet(this, _Client_lastGetMe, "f")) {
|
|
767
|
+
return __classPrivateFieldGet(this, _Client_lastGetMe, "f");
|
|
768
|
+
}
|
|
769
|
+
try {
|
|
770
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("#checkAuthorization");
|
|
771
|
+
const me = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMe).call(this);
|
|
772
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
773
|
+
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("#checkAuthorization"));
|
|
774
|
+
return me;
|
|
775
|
+
}
|
|
776
|
+
catch (err) {
|
|
777
|
+
if (!(err instanceof _4_errors_js_1.AuthKeyUnregistered) && !(err instanceof _4_errors_js_1.SessionRevoked)) {
|
|
778
|
+
throw err;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}, _Client_getClient = async function _Client_getClient(params) {
|
|
782
|
+
let client;
|
|
783
|
+
switch (params.type) {
|
|
784
|
+
case undefined:
|
|
785
|
+
client = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMainClient).call(this, params.dc);
|
|
786
|
+
break;
|
|
787
|
+
case "download":
|
|
788
|
+
client = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getDownloadClient).call(this, params.dc);
|
|
789
|
+
break;
|
|
790
|
+
case "upload":
|
|
791
|
+
client = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUploadClient).call(this);
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
if (client !== __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get) && !this.isDisconnected && client.isDisconnected) {
|
|
795
|
+
await client.connect();
|
|
796
|
+
}
|
|
797
|
+
return client;
|
|
798
|
+
}, _Client_getMainClient = async function _Client_getMainClient(dc) {
|
|
799
|
+
if (dc === undefined || dc === __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)?.dc) {
|
|
800
|
+
return __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get);
|
|
801
|
+
}
|
|
802
|
+
let client = __classPrivateFieldGet(this, _Client_clients, "f").find((v) => v.dc === dc);
|
|
803
|
+
if (client) {
|
|
804
|
+
return client;
|
|
805
|
+
}
|
|
806
|
+
const unlock = await __classPrivateFieldGet(this, _Client_getMainClientMutex, "f").lock();
|
|
807
|
+
client = __classPrivateFieldGet(this, _Client_clients, "f").find((v) => v.dc === dc);
|
|
808
|
+
if (client) {
|
|
809
|
+
return client;
|
|
810
|
+
}
|
|
811
|
+
try {
|
|
812
|
+
client = __classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, dc, false, false);
|
|
813
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setupClient).call(this, client);
|
|
814
|
+
__classPrivateFieldGet(this, _Client_clients, "f").push(client);
|
|
815
|
+
return client;
|
|
816
|
+
}
|
|
817
|
+
finally {
|
|
818
|
+
unlock();
|
|
819
|
+
}
|
|
820
|
+
}, _Client_getDownloadClient = async function _Client_getDownloadClient(dc) {
|
|
821
|
+
dc ??= __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc;
|
|
822
|
+
const pool = __classPrivateFieldGet(this, _Client_downloadPools, "f")[dc] ??= new _3_client_encrypted_pool_js_1.ClientEncryptedPool();
|
|
823
|
+
if (!pool.size) {
|
|
824
|
+
if (!pool.size) {
|
|
825
|
+
for (let i = 0; i < _0_utilities_js_1.DOWNLOAD_POOL_SIZE; ++i) {
|
|
826
|
+
pool.add(__classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, dc, false, true));
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
const client = pool.nextClient();
|
|
831
|
+
if (client.authKey.length) {
|
|
832
|
+
return client;
|
|
833
|
+
}
|
|
834
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setupClient).call(this, client);
|
|
835
|
+
return client;
|
|
836
|
+
}, _Client_getUploadPoolSize = async function _Client_getUploadPoolSize() {
|
|
837
|
+
const dc = __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc;
|
|
838
|
+
return (dc !== "2" && dc !== "4") || await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getIsPremium).call(this) ? 8 : 4;
|
|
839
|
+
}, _Client_getUploadClient = async function _Client_getUploadClient() {
|
|
840
|
+
const dc = __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc;
|
|
841
|
+
const poolSize = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUploadPoolSize).call(this);
|
|
842
|
+
const pool = __classPrivateFieldGet(this, _Client_uploadPools, "f")[dc] ??= new _3_client_encrypted_pool_js_1.ClientEncryptedPool();
|
|
843
|
+
if (!pool.size) {
|
|
844
|
+
for (let i = 0; i < poolSize; ++i) {
|
|
845
|
+
pool.add(await __classPrivateFieldGet(this, _Client_instances, "m", _Client_newClient).call(this, dc, false, true));
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
const client = pool.nextClient();
|
|
849
|
+
if (client.authKey.length) {
|
|
850
|
+
return client;
|
|
851
|
+
}
|
|
852
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_setupClient).call(this, client);
|
|
853
|
+
return client;
|
|
854
|
+
}, _Client_setupClient = async function _Client_setupClient(client) {
|
|
855
|
+
const storage = client.dc === __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc ? this.storage : new _0_storage_operations_js_1.StorageOperations(this.storage.provider.branch(client.dc + (client.isCdn ? "_cdn" : "")));
|
|
856
|
+
await storage.initialize();
|
|
857
|
+
const auth = storage.auth.mustGet();
|
|
858
|
+
const serverSalt = await storage.getServerSalt();
|
|
859
|
+
if (auth.authKey !== null) {
|
|
860
|
+
await client.setAuthKey(auth.authKey);
|
|
861
|
+
if (serverSalt) {
|
|
862
|
+
client.serverSalt = serverSalt;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
await client.connect();
|
|
866
|
+
if (auth.authKey === null) {
|
|
867
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_importAuthorization).call(this, client);
|
|
868
|
+
}
|
|
869
|
+
await storage.auth.update((v) => v.authKey = client.authKey);
|
|
870
|
+
if (client.dc !== __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc) {
|
|
871
|
+
await storage.setServerSalt(client.serverSalt);
|
|
872
|
+
client.handlers.onNewServerSalt = async (serverSalt) => {
|
|
873
|
+
await storage.setServerSalt(serverSalt);
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
}, _Client_importAuthorization = async function _Client_importAuthorization(client) {
|
|
877
|
+
if (__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).dc === client.dc && __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).isCdn === client.isCdn) {
|
|
878
|
+
const auth = this.storage.auth.mustGet();
|
|
879
|
+
const serverSalt = await this.storage.getServerSalt();
|
|
880
|
+
if (auth.authKey !== null) {
|
|
881
|
+
await client.setAuthKey(auth.authKey);
|
|
882
|
+
if (serverSalt) {
|
|
883
|
+
client.serverSalt = serverSalt;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
const exportedAuthorization = await __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get).invoke({ _: "auth.exportAuthorization", dc_id: (0, _3_transport_js_1.getDcId)(client.dc, client.isCdn) });
|
|
889
|
+
await client.invoke({ ...exportedAuthorization, _: "auth.importAuthorization" });
|
|
890
|
+
}, _Client_invoke = async function _Client_invoke(function_, params) {
|
|
891
|
+
if (!__classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get)) {
|
|
892
|
+
throw new _0_errors_js_1.ConnectionError("The connection is not open.");
|
|
893
|
+
}
|
|
894
|
+
let n = 1;
|
|
895
|
+
let client;
|
|
896
|
+
while (true) {
|
|
897
|
+
client = params ? await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getClient).call(this, params) : __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get);
|
|
898
|
+
const main = client === __classPrivateFieldGet(this, _Client_instances, "a", _Client_client_get);
|
|
899
|
+
try {
|
|
900
|
+
const result = await client.invoke(function_);
|
|
901
|
+
if (main) {
|
|
902
|
+
try {
|
|
903
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").processResult(result);
|
|
904
|
+
}
|
|
905
|
+
catch (err) {
|
|
906
|
+
__classPrivateFieldGet(this, _Client_L, "f").error("failed to process result:", err);
|
|
907
|
+
}
|
|
908
|
+
if (_2_tl_js_1.Api.isOfEnum("Update", result) || _2_tl_js_1.Api.isOfEnum("Updates", result)) {
|
|
909
|
+
return new Promise((resolve) => {
|
|
910
|
+
__classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(result, true, _2_tl_js_1.Mtproto.is("ping", function_) ? null : function_, () => resolve(result));
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
return result;
|
|
915
|
+
}
|
|
916
|
+
catch (err) {
|
|
917
|
+
if (err instanceof _4_errors_js_1.AuthKeyUnregistered && !main) {
|
|
918
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_importAuthorization).call(this, client);
|
|
919
|
+
continue;
|
|
920
|
+
}
|
|
921
|
+
else if (err instanceof _0_errors_js_1.ConnectionError && !main && !this.isDisconnected) {
|
|
922
|
+
continue;
|
|
923
|
+
}
|
|
924
|
+
else if (await __classPrivateFieldGet(this, _Client_handleInvokeError, "f").call(this, Object.freeze({ client: this, error: err, function: function_, n: n++ }), () => Promise.resolve(false))) {
|
|
925
|
+
continue;
|
|
926
|
+
}
|
|
927
|
+
else {
|
|
928
|
+
throw err;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}, _Client_getUserAccessHash = async function _Client_getUserAccessHash(userId) {
|
|
933
|
+
const users = await this.invoke({ _: "users.getUsers", id: [{ _: "inputUser", user_id: userId, access_hash: 0n }] });
|
|
934
|
+
const user = _2_tl_js_1.Api.is("user", users[0]) ? users[0] : undefined;
|
|
935
|
+
return user?.access_hash ?? 0n;
|
|
936
|
+
}, _Client_getChannelAccessHash = async function _Client_getChannelAccessHash(channelId) {
|
|
937
|
+
const channels = await this.invoke({ _: "channels.getChannels", id: [{ _: "inputChannel", channel_id: channelId, access_hash: 0n }] });
|
|
938
|
+
const channel = _2_tl_js_1.Api.is("channel", channels.chats[0]) ? channels.chats[0] : undefined;
|
|
939
|
+
return channel?.access_hash ?? 0n;
|
|
940
|
+
}, _Client_getInputPeerChatId = async function _Client_getInputPeerChatId(inputPeer) {
|
|
941
|
+
if (_2_tl_js_1.Api.isOneOf(["inputPeerSelf", "inputUserSelf"], inputPeer)) {
|
|
942
|
+
return await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this);
|
|
943
|
+
}
|
|
944
|
+
else if (_2_tl_js_1.Api.isOneOf(["inputPeerEmpty", "inputUserEmpty", "inputChannelEmpty"], inputPeer)) {
|
|
945
|
+
(0, _0_deps_js_1.unreachable)();
|
|
946
|
+
}
|
|
947
|
+
else {
|
|
948
|
+
return _2_tl_js_1.Api.peerToChatId(inputPeer);
|
|
949
|
+
}
|
|
950
|
+
}, _Client_getInputPeerInner = async function _Client_getInputPeerInner(id) {
|
|
951
|
+
const idn = Number(id);
|
|
952
|
+
if (!isNaN(idn)) {
|
|
953
|
+
id = idn;
|
|
954
|
+
}
|
|
955
|
+
let peer;
|
|
956
|
+
if (typeof id === "string") {
|
|
957
|
+
id = (0, _0_utilities_js_1.getUsername)(id);
|
|
958
|
+
let resolvedId = 0;
|
|
959
|
+
const maybeUsername = await this.messageStorage.usernames.get([id]);
|
|
960
|
+
if (maybeUsername !== null && Date.now() - maybeUsername[1].getTime() < _4_constants_js_1.USERNAME_TTL) {
|
|
961
|
+
const [id] = maybeUsername;
|
|
962
|
+
resolvedId = id;
|
|
963
|
+
}
|
|
964
|
+
else {
|
|
965
|
+
const resolved = await this.invoke({ _: "contacts.resolveUsername", username: id });
|
|
966
|
+
__classPrivateFieldGet(this, _Client_updateManager, "f").processChats(resolved.chats, resolved);
|
|
967
|
+
__classPrivateFieldGet(this, _Client_updateManager, "f").processUsers(resolved.users, resolved);
|
|
968
|
+
if (_2_tl_js_1.Api.is("peerUser", resolved.peer)) {
|
|
969
|
+
resolvedId = _2_tl_js_1.Api.peerToChatId(resolved.peer);
|
|
970
|
+
}
|
|
971
|
+
else if (_2_tl_js_1.Api.is("peerChannel", resolved.peer)) {
|
|
972
|
+
resolvedId = _2_tl_js_1.Api.peerToChatId(resolved.peer);
|
|
973
|
+
}
|
|
974
|
+
else {
|
|
975
|
+
(0, _0_deps_js_1.unreachable)();
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
const resolvedIdType = _2_tl_js_1.Api.getChatIdPeerType(resolvedId);
|
|
979
|
+
if (resolvedIdType === "user") {
|
|
980
|
+
const accessHash = await this.messageStorage.getUserAccessHash(resolvedId);
|
|
981
|
+
peer = { _: "inputPeerUser", user_id: _2_tl_js_1.Api.chatIdToPeerId(resolvedId), access_hash: accessHash ?? 0n };
|
|
982
|
+
}
|
|
983
|
+
else if (resolvedIdType === "channel") {
|
|
984
|
+
const accessHash = await this.messageStorage.getChannelAccessHash(resolvedId);
|
|
985
|
+
peer = { _: "inputPeerChannel", channel_id: _2_tl_js_1.Api.chatIdToPeerId(resolvedId), access_hash: accessHash ?? 0n };
|
|
986
|
+
}
|
|
987
|
+
else {
|
|
988
|
+
(0, _0_deps_js_1.unreachable)();
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
else if (id > 0) {
|
|
992
|
+
const accessHash = await this.messageStorage.getUserAccessHash(id);
|
|
993
|
+
peer = { _: "inputPeerUser", user_id: _2_tl_js_1.Api.chatIdToPeerId(id), access_hash: accessHash ?? 0n };
|
|
994
|
+
}
|
|
995
|
+
else if (-_4_constants_js_1.MAX_CHAT_ID <= id) {
|
|
996
|
+
peer = { _: "inputPeerChat", chat_id: BigInt(Math.abs(id)) };
|
|
997
|
+
}
|
|
998
|
+
else if (_1_utilities_js_1.ZERO_CHANNEL_ID - _4_constants_js_1.MAX_CHANNEL_ID <= id && id !== _1_utilities_js_1.ZERO_CHANNEL_ID) {
|
|
999
|
+
const accessHash = await this.messageStorage.getChannelAccessHash(id);
|
|
1000
|
+
peer = { _: "inputPeerChannel", channel_id: _2_tl_js_1.Api.chatIdToPeerId(id), access_hash: accessHash ?? 0n };
|
|
1001
|
+
}
|
|
1002
|
+
else {
|
|
1003
|
+
throw new _0_errors_js_1.InputError("The ID is of an format unknown.");
|
|
1004
|
+
}
|
|
1005
|
+
if (!_2_tl_js_1.Api.is("inputPeerChat", peer) && !peer.access_hash) {
|
|
1006
|
+
// TODO
|
|
1007
|
+
// const chatId = Api.peerToChatId(peer);
|
|
1008
|
+
// const minPeerReference = await this.messageStorage.getLastMinPeerReference(chatId);
|
|
1009
|
+
// if (minPeerReference) {
|
|
1010
|
+
// const minInputPeer = await this.#getMinInputPeer(canBeInputChannel(peer) ? "channel" : "user", { ...minPeerReference, senderId: chatId });
|
|
1011
|
+
// if (minInputPeer) {
|
|
1012
|
+
// this.#Lmin.debug("resolved input min peer", minInputPeer);
|
|
1013
|
+
// peer = minInputPeer;
|
|
1014
|
+
// }
|
|
1015
|
+
// }
|
|
1016
|
+
}
|
|
1017
|
+
return peer;
|
|
1018
|
+
}, _Client_getMinInputPeer = async function _Client_getMinInputPeer(type, reference) {
|
|
1019
|
+
const peer_ = await this.messageStorage.peers.get([reference.chatId]);
|
|
1020
|
+
if (peer_ !== null && (peer_[0].type === "channel" || peer_[0].type === "supergroup")) {
|
|
1021
|
+
const peer = { _: "inputPeerChannel", channel_id: BigInt(peer_[0].id), access_hash: peer_[1] };
|
|
1022
|
+
if (type === "user") {
|
|
1023
|
+
return { _: "inputPeerUserFromMessage", peer, msg_id: reference.messageId, user_id: _2_tl_js_1.Api.chatIdToPeerId(reference.senderId) };
|
|
1024
|
+
}
|
|
1025
|
+
else {
|
|
1026
|
+
return { _: "inputPeerChannelFromMessage", peer, msg_id: reference.messageId, channel_id: _2_tl_js_1.Api.chatIdToPeerId(reference.senderId) };
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
else {
|
|
1030
|
+
return null;
|
|
1031
|
+
}
|
|
1032
|
+
}, getPeer)](peer) {
|
|
1033
|
+
const id = _2_tl_js_1.Api.peerToChatId(peer);
|
|
1034
|
+
const entity = await this.messageStorage.peers.get([id]);
|
|
1035
|
+
if (entity === null) {
|
|
1036
|
+
if (entity === null && this.storage.isBot && _2_tl_js_1.Api.is("peerUser", peer) || _2_tl_js_1.Api.is("peerChannel", peer)) {
|
|
1037
|
+
await this.getInputPeer(id);
|
|
1038
|
+
}
|
|
1039
|
+
else {
|
|
1040
|
+
return entity;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
return await this.messageStorage.peers.get([id]);
|
|
1044
|
+
}
|
|
1045
|
+
[mustGetPeer](peer) {
|
|
1046
|
+
return this.messageStorage.peers.mustGet([(0, _2_telegram_js_1.peerToChatId)(peer)]);
|
|
1047
|
+
}
|
|
1048
|
+
//
|
|
1049
|
+
// ========================= ACCOUNT ========================= //
|
|
1050
|
+
//
|
|
1051
|
+
/**
|
|
1052
|
+
* Get information on the currently authorized user.
|
|
1053
|
+
*
|
|
1054
|
+
* @method ac
|
|
1055
|
+
* @returns Information on the currently authorized user.
|
|
1056
|
+
*/
|
|
1057
|
+
async getMe() {
|
|
1058
|
+
if (__classPrivateFieldGet(this, _Client_lastGetMe, "f") === null) {
|
|
1059
|
+
const me = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_checkAuthorization).call(this);
|
|
1060
|
+
if (!me) {
|
|
1061
|
+
throw new _0_errors_js_1.InputError("Not signed in.");
|
|
1062
|
+
}
|
|
1063
|
+
else {
|
|
1064
|
+
return me;
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
return await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMeInner).call(this);
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Show a username in the current account, a bot account, a supergroup, or a channel's profile. User-only.
|
|
1071
|
+
*
|
|
1072
|
+
* @method ac
|
|
1073
|
+
* @param id `"me"`, a bot ID, a supergroup ID, or a channel ID.
|
|
1074
|
+
* @param username The username to show.
|
|
1075
|
+
*/
|
|
1076
|
+
async showUsername(id, username) {
|
|
1077
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").showUsername(id, username);
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Hide a username from the current account, a bot account, a supergroup, or a channel's profile. User-only.
|
|
1081
|
+
*
|
|
1082
|
+
* @method ac
|
|
1083
|
+
* @param id `"me"`, a bot ID, a supergroup ID, or a channel ID.
|
|
1084
|
+
* @param username The username to hide.
|
|
1085
|
+
*/
|
|
1086
|
+
async hideUsername(id, username) {
|
|
1087
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").hideUsername(id, username);
|
|
1088
|
+
}
|
|
1089
|
+
/**
|
|
1090
|
+
* Check the availability of a username. User-only.
|
|
1091
|
+
*
|
|
1092
|
+
* @method ac
|
|
1093
|
+
* @param username The username to check.
|
|
1094
|
+
* @returns Whether the username is available.
|
|
1095
|
+
*/
|
|
1096
|
+
async checkUsername(username, params) {
|
|
1097
|
+
return await __classPrivateFieldGet(this, _Client_accountManager, "f").checkUsername(username, params);
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Set the username of the current account. User-only.
|
|
1101
|
+
*
|
|
1102
|
+
* @method ac
|
|
1103
|
+
* @param username The username to set.
|
|
1104
|
+
*/
|
|
1105
|
+
async setUsername(username) {
|
|
1106
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setUsername(username);
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Remove the current account's username. User-only.
|
|
1110
|
+
*
|
|
1111
|
+
* @method ac
|
|
1112
|
+
*/
|
|
1113
|
+
async removeUsername() {
|
|
1114
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").removeUsername();
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Reorder the usernames of the current account, a bot account, a supergroup, or a channel's profile. User-only.
|
|
1118
|
+
*
|
|
1119
|
+
* @method ac
|
|
1120
|
+
* @param id `"me"`, a bot ID, a supergroup ID, or a channel ID.
|
|
1121
|
+
* @param order The new order to use.
|
|
1122
|
+
* @returns Whether the order was changed.
|
|
1123
|
+
*/
|
|
1124
|
+
async reorderUsernames(id, order) {
|
|
1125
|
+
return await __classPrivateFieldGet(this, _Client_accountManager, "f").reorderUsernames(id, order);
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Hide all usernames from a supergroup or a channel's profile. User-only.
|
|
1129
|
+
*
|
|
1130
|
+
* @method ac
|
|
1131
|
+
* @param id A supergroup ID or a channel ID.
|
|
1132
|
+
* @returns Whether any username was hidden.
|
|
1133
|
+
*/
|
|
1134
|
+
async hideUsernames(id) {
|
|
1135
|
+
return await __classPrivateFieldGet(this, _Client_accountManager, "f").hideUsernames(id);
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Get a business connection. Bot-only.
|
|
1139
|
+
*
|
|
1140
|
+
* @method ac
|
|
1141
|
+
* @param id The identifier of the business connection.
|
|
1142
|
+
* @cache
|
|
1143
|
+
*/
|
|
1144
|
+
async getBusinessConnection(id) {
|
|
1145
|
+
return await __classPrivateFieldGet(this, _Client_businessConnectionManager, "f").getBusinessConnection(id);
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Set the current account's online status. User-only.
|
|
1149
|
+
*
|
|
1150
|
+
* @method ac
|
|
1151
|
+
* @param isOnline The new online status.
|
|
1152
|
+
*/
|
|
1153
|
+
async setIsOnline(isOnline) {
|
|
1154
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setIsOnline(isOnline);
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Set the current account's emoji status. User-only.
|
|
1158
|
+
*
|
|
1159
|
+
* @method ac
|
|
1160
|
+
* @param emojiStatus The emoji or gift to set as the new emoji status.
|
|
1161
|
+
*/
|
|
1162
|
+
async setEmojiStatus(emojiStatus, params) {
|
|
1163
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setEmojiStatus(emojiStatus, params);
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Remove the current account's emoji status. User-only.
|
|
1167
|
+
*
|
|
1168
|
+
* @method ac
|
|
1169
|
+
*/
|
|
1170
|
+
async removeEmojiStatus() {
|
|
1171
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").removeEmojiStatus();
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Set the emoji status of a channel. User-only.
|
|
1175
|
+
*
|
|
1176
|
+
* @method ac
|
|
1177
|
+
* @param chatId The identifier of a channel.
|
|
1178
|
+
* @param emojiStatus The emoji or gift to set as the new emoji status.
|
|
1179
|
+
*/
|
|
1180
|
+
async setChannelEmojiStatus(chatId, emojiStatus, params) {
|
|
1181
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setChannelEmojiStatus(chatId, emojiStatus, params);
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Remove the emoji status of a channel. User-only.
|
|
1185
|
+
*
|
|
1186
|
+
* @method ac
|
|
1187
|
+
* @param chatId The identifier of a channel.
|
|
1188
|
+
*/
|
|
1189
|
+
async removeChannelEmojiStatus(chatId) {
|
|
1190
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").removeChannelEmojiStatus(chatId);
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Set the emoji status of a bot's user. Bot-only.
|
|
1194
|
+
*
|
|
1195
|
+
* @method ac
|
|
1196
|
+
* @param userId The identifier of a user of the bot.
|
|
1197
|
+
* @param emojiStatus The emoji or gift to set as the new emoji status.
|
|
1198
|
+
*/
|
|
1199
|
+
async setUserEmojiStatus(userId, emojiStatus, params) {
|
|
1200
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setUserEmojiStatus(userId, emojiStatus, params);
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
* Remove the emoji status of a bot's user. Bot-only.
|
|
1204
|
+
*
|
|
1205
|
+
* @method ac
|
|
1206
|
+
* @param userId The identifier of a user of the bot.
|
|
1207
|
+
*/
|
|
1208
|
+
async removeUserEmojiStatus(userId) {
|
|
1209
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").removeUserEmojiStatus(userId);
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Update the profile of the current user. At least one parameter must be specified. User-only.
|
|
1213
|
+
*
|
|
1214
|
+
* @method ac
|
|
1215
|
+
*/
|
|
1216
|
+
async updateProfile(params) {
|
|
1217
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").updateProfile(params);
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Set the birthday of the current user. User-only.
|
|
1221
|
+
*
|
|
1222
|
+
* @method ac
|
|
1223
|
+
*/
|
|
1224
|
+
async setBirthday(params) {
|
|
1225
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setBirthday(params);
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Set the personal channel of the current user. User-only.
|
|
1229
|
+
*
|
|
1230
|
+
* @method ac
|
|
1231
|
+
*/
|
|
1232
|
+
async setPersonalChannel(params) {
|
|
1233
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setPersonalChannel(params);
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* Set the name color of the current user. User-only.
|
|
1237
|
+
*
|
|
1238
|
+
* @method ac
|
|
1239
|
+
* @param color The identifier of the color to set.
|
|
1240
|
+
*/
|
|
1241
|
+
async setNameColor(color, params) {
|
|
1242
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setNameColor(color, params);
|
|
1243
|
+
}
|
|
1244
|
+
/**
|
|
1245
|
+
* Set the profile color of the current user. User-only.
|
|
1246
|
+
*
|
|
1247
|
+
* @method ac
|
|
1248
|
+
* @param color The identifier of the color to set.
|
|
1249
|
+
*/
|
|
1250
|
+
async setProfileColor(color, params) {
|
|
1251
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setProfileColor(color, params);
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Set the location of the current user. User-only.
|
|
1255
|
+
*
|
|
1256
|
+
* @method ac
|
|
1257
|
+
*/
|
|
1258
|
+
async setLocation(params) {
|
|
1259
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setLocation(params);
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* Set the working hours of the current user. User-only.
|
|
1263
|
+
*
|
|
1264
|
+
* @method ac
|
|
1265
|
+
*/
|
|
1266
|
+
async setWorkingHours(params) {
|
|
1267
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").setWorkingHours(params);
|
|
1268
|
+
}
|
|
1269
|
+
/**
|
|
1270
|
+
* Enable sponsored messages on the current user. User-only.
|
|
1271
|
+
*
|
|
1272
|
+
* @method ac
|
|
1273
|
+
*/
|
|
1274
|
+
async enableSponsoredMessages() {
|
|
1275
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").enableSponsoredMessages();
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
* Disable sponsored messages on the current user. User-only.
|
|
1279
|
+
*
|
|
1280
|
+
* @method ac
|
|
1281
|
+
*/
|
|
1282
|
+
async disableSponsoredMessages() {
|
|
1283
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").disableSponsoredMessages();
|
|
1284
|
+
}
|
|
1285
|
+
/**
|
|
1286
|
+
* Pause the business bot in a chat. User-only.
|
|
1287
|
+
*
|
|
1288
|
+
* @method ac
|
|
1289
|
+
*/
|
|
1290
|
+
async pauseBusinessBotConnection(chatId) {
|
|
1291
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").pauseBusinessBotConnection(chatId);
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* Resume the business bot in a chat. User-only.
|
|
1295
|
+
*
|
|
1296
|
+
* @method ac
|
|
1297
|
+
*/
|
|
1298
|
+
async resumeBusinessBotConnection(chatId) {
|
|
1299
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").resumeBusinessBotConnection(chatId);
|
|
1300
|
+
}
|
|
1301
|
+
//
|
|
1302
|
+
// ========================= MESSAGES ========================= //
|
|
1303
|
+
//
|
|
1304
|
+
/**
|
|
1305
|
+
* Send a text message.
|
|
1306
|
+
*
|
|
1307
|
+
* @method ms
|
|
1308
|
+
* @param chatId The identifier of a chat to send the message to.
|
|
1309
|
+
* @param text The message's text.
|
|
1310
|
+
* @returns The sent text message.
|
|
1311
|
+
*/
|
|
1312
|
+
async sendMessage(chatId, text, params) {
|
|
1313
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendMessage(chatId, text, params);
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Stream a drafted text message. Bot-only.
|
|
1317
|
+
*
|
|
1318
|
+
* @method ms
|
|
1319
|
+
* @param chatId The identifier of a chat to send the message to.
|
|
1320
|
+
* @param draftId The identifier of the draft.
|
|
1321
|
+
* @param text The message's text.
|
|
1322
|
+
*/
|
|
1323
|
+
async sendMessageDraft(chatId, draftId, text, params) {
|
|
1324
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").sendMessageDraft(chatId, draftId, text, params);
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Send a photo.
|
|
1328
|
+
*
|
|
1329
|
+
* @method ms
|
|
1330
|
+
* @param chatId The identifier of a chat to send the photo to.
|
|
1331
|
+
* @param photo The photo to send.
|
|
1332
|
+
* @returns The sent photo.
|
|
1333
|
+
*/
|
|
1334
|
+
async sendPhoto(chatId, photo, params) {
|
|
1335
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendPhoto(chatId, photo, params);
|
|
1336
|
+
}
|
|
1337
|
+
/**
|
|
1338
|
+
* Send a document.
|
|
1339
|
+
*
|
|
1340
|
+
* @method ms
|
|
1341
|
+
* @param chatId The identifier of a chat to send the document to.
|
|
1342
|
+
* @param document The document to send.
|
|
1343
|
+
* @returns The sent document.
|
|
1344
|
+
*/
|
|
1345
|
+
async sendDocument(chatId, document, params) {
|
|
1346
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendDocument(chatId, document, params);
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Send a sticker.
|
|
1350
|
+
*
|
|
1351
|
+
* @method ms
|
|
1352
|
+
* @param chatId The identifier of a chat to send the sticker to.
|
|
1353
|
+
* @param document The sticker to send.
|
|
1354
|
+
* @returns The sent sticker.
|
|
1355
|
+
*/
|
|
1356
|
+
async sendSticker(chatId, sticker, params) {
|
|
1357
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendSticker(chatId, sticker, params);
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Send a video.
|
|
1361
|
+
*
|
|
1362
|
+
* @method ms
|
|
1363
|
+
* @param chatId The identifier of a chat to send the video to.
|
|
1364
|
+
* @param video The video to send.
|
|
1365
|
+
* @returns The sent video.
|
|
1366
|
+
*/
|
|
1367
|
+
async sendVideo(chatId, video, params) {
|
|
1368
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVideo(chatId, video, params);
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* Send an animation.
|
|
1372
|
+
*
|
|
1373
|
+
* @method ms
|
|
1374
|
+
* @param chatId The identifier of a chat to send the animation to.
|
|
1375
|
+
* @param animation The animation to send.
|
|
1376
|
+
* @returns The sent animation.
|
|
1377
|
+
*/
|
|
1378
|
+
async sendAnimation(chatId, animation, params) {
|
|
1379
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendAnimation(chatId, animation, params);
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* Send a voice message.
|
|
1383
|
+
*
|
|
1384
|
+
* @method ms
|
|
1385
|
+
* @param chatId The identifier of a chat to send the voice message to.
|
|
1386
|
+
* @param voice The voice to send.
|
|
1387
|
+
* @returns The sent voice message.
|
|
1388
|
+
*/
|
|
1389
|
+
async sendVoice(chatId, voice, params) {
|
|
1390
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVoice(chatId, voice, params);
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Send an audio file.
|
|
1394
|
+
*
|
|
1395
|
+
* @method ms
|
|
1396
|
+
* @param chatId The identifier of a chat to send the audio file to.
|
|
1397
|
+
* @param audio The audio to send.
|
|
1398
|
+
* @returns The sent audio filr.
|
|
1399
|
+
*/
|
|
1400
|
+
async sendAudio(chatId, audio, params) {
|
|
1401
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendAudio(chatId, audio, params);
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* Send a media group.
|
|
1405
|
+
*
|
|
1406
|
+
* @method ms
|
|
1407
|
+
* @param chatId The identifier of a chat to send the media group to.
|
|
1408
|
+
* @param media The media to include in the media group. Animations are not allowed. All of them must be of the same media type, but an exception is that photos and videos can be mixed.
|
|
1409
|
+
* @returns The sent messages.
|
|
1410
|
+
*/
|
|
1411
|
+
async sendMediaGroup(chatId, media, params) {
|
|
1412
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendMediaGroup(chatId, media, params);
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* Send a video note.
|
|
1416
|
+
*
|
|
1417
|
+
* @method ms
|
|
1418
|
+
* @param chatId The identifier of a chat to send the video note to.
|
|
1419
|
+
* @param videoNote The video note to send.
|
|
1420
|
+
* @returns The sent video note.
|
|
1421
|
+
*/
|
|
1422
|
+
async sendVideoNote(chatId, videoNote, params) {
|
|
1423
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVideoNote(chatId, videoNote, params);
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* Send a location.
|
|
1427
|
+
*
|
|
1428
|
+
* @method ms
|
|
1429
|
+
* @param chatId The identifier of a chat to send the location to.
|
|
1430
|
+
* @param latitude The location's latitude.
|
|
1431
|
+
* @param longitude The location's longitude.
|
|
1432
|
+
* @returns The sent location.
|
|
1433
|
+
*/
|
|
1434
|
+
async sendLocation(chatId, latitude, longitude, params) {
|
|
1435
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendLocation(chatId, latitude, longitude, params);
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Send a contact.
|
|
1439
|
+
*
|
|
1440
|
+
* @method ms
|
|
1441
|
+
* @param chatId The identifier of a chat to send the contact to.
|
|
1442
|
+
* @param firstName The contact's first name.
|
|
1443
|
+
* @param number The contact's phone number.
|
|
1444
|
+
* @returns The sent contact.
|
|
1445
|
+
*/
|
|
1446
|
+
async sendContact(chatId, firstName, number, params) {
|
|
1447
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendContact(chatId, firstName, number, params);
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Send a dice.
|
|
1451
|
+
*
|
|
1452
|
+
* @method ms
|
|
1453
|
+
* @param chatId The identifier of a chat to send the dice to.
|
|
1454
|
+
* @returns The sent dice.
|
|
1455
|
+
*/
|
|
1456
|
+
async sendDice(chatId, params) {
|
|
1457
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendDice(chatId, params);
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Send a venue.
|
|
1461
|
+
*
|
|
1462
|
+
* @method ms
|
|
1463
|
+
* @param chatId The identifier of a chat to send the venue to.
|
|
1464
|
+
* @param latitude The latitude of the venue.
|
|
1465
|
+
* @param longitude The longitude of the venue.
|
|
1466
|
+
* @param title The title of the venue.
|
|
1467
|
+
* @param address The written address of the venue.
|
|
1468
|
+
* @returns The sent venue.
|
|
1469
|
+
*/
|
|
1470
|
+
async sendVenue(chatId, latitude, longitude, title, address, params) {
|
|
1471
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendVenue(chatId, latitude, longitude, title, address, params);
|
|
1472
|
+
}
|
|
1473
|
+
/**
|
|
1474
|
+
* Send a poll.
|
|
1475
|
+
*
|
|
1476
|
+
* @method ms
|
|
1477
|
+
* @param chatId The identifier of a chat to send the poll to.
|
|
1478
|
+
* @param question The poll's question.
|
|
1479
|
+
* @param options The poll's options.
|
|
1480
|
+
* @returns The sent poll.
|
|
1481
|
+
*/
|
|
1482
|
+
async sendPoll(chatId, question, options, params) {
|
|
1483
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendPoll(chatId, question, options, params);
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Send a checklist. User-only.
|
|
1487
|
+
*
|
|
1488
|
+
* @method ms
|
|
1489
|
+
* @param chatId The identifier of a chat to send the checklist to.
|
|
1490
|
+
* @param title The checklist's title.
|
|
1491
|
+
* @param items The checklist's items.
|
|
1492
|
+
* @returns The sent checklist.
|
|
1493
|
+
*/
|
|
1494
|
+
async sendChecklist(chatId, title, items, params) {
|
|
1495
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendChecklist(chatId, title, items, params);
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* Send an invoice. Bot-only.
|
|
1499
|
+
*
|
|
1500
|
+
* @method ms
|
|
1501
|
+
* @param chatId The identifier of a chat to send the invoice to.
|
|
1502
|
+
* @param title The invoice's title.
|
|
1503
|
+
* @param description The invoice's description.
|
|
1504
|
+
* @param payload The invoice's payload.
|
|
1505
|
+
* @param currency The invoice's currency.
|
|
1506
|
+
* @param prices The invoice's price tags.
|
|
1507
|
+
* @returns The sent invoice.
|
|
1508
|
+
*/
|
|
1509
|
+
async sendInvoice(chatId, title, description, payload, currency, prices, params) {
|
|
1510
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendInvoice(chatId, title, description, payload, currency, prices, params);
|
|
1511
|
+
}
|
|
1512
|
+
/**
|
|
1513
|
+
* Edit a message's text.
|
|
1514
|
+
*
|
|
1515
|
+
* @method ms
|
|
1516
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
1517
|
+
* @param messageId The identifier of the message.
|
|
1518
|
+
* @param text The new text of the message.
|
|
1519
|
+
* @returns The edited text message.
|
|
1520
|
+
*/
|
|
1521
|
+
async editMessageText(chatId, messageId, text, params) {
|
|
1522
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Edit a message's caption.
|
|
1526
|
+
*
|
|
1527
|
+
* @method ms
|
|
1528
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
1529
|
+
* @param messageId The identifier of the message.
|
|
1530
|
+
* @param text The new caption of the message.
|
|
1531
|
+
* @returns The edited message.
|
|
1532
|
+
*/
|
|
1533
|
+
async editMessageCaption(chatId, messageId, params) {
|
|
1534
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageCaption(chatId, messageId, params);
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Edit a message's media.
|
|
1538
|
+
*
|
|
1539
|
+
* @method ms
|
|
1540
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
1541
|
+
* @param messageId The identifier of the message.
|
|
1542
|
+
* @param media The new media of the message.
|
|
1543
|
+
* @returns The edited message.
|
|
1544
|
+
*/
|
|
1545
|
+
async editMessageMedia(chatId, messageId, media, params) {
|
|
1546
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageMedia(chatId, messageId, media, params);
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* Edit an inline message's media.
|
|
1550
|
+
*
|
|
1551
|
+
* @method ms
|
|
1552
|
+
* @param inlineMessageId The identifier of the inline message.
|
|
1553
|
+
* @param media The new media of the message.
|
|
1554
|
+
*/
|
|
1555
|
+
async editInlineMessageMedia(inlineMessageId, media, params) {
|
|
1556
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageMedia(inlineMessageId, media, params);
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* Edit an inline message's text. Bot-only.
|
|
1560
|
+
*
|
|
1561
|
+
* @method ms
|
|
1562
|
+
* @param inlineMessageId The identifier of the inline message.
|
|
1563
|
+
* @param text The new text of the message.
|
|
1564
|
+
*/
|
|
1565
|
+
async editInlineMessageText(inlineMessageId, text, params) {
|
|
1566
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageText(inlineMessageId, text, params);
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* Edit an inline message's caption. Bot-only.
|
|
1570
|
+
*
|
|
1571
|
+
* @method ms
|
|
1572
|
+
* @param inlineMessageId The identifier of the inline message.
|
|
1573
|
+
*/
|
|
1574
|
+
async editInlineMessageCaption(inlineMessageId, params) {
|
|
1575
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageCaption(inlineMessageId, params);
|
|
1576
|
+
}
|
|
1577
|
+
/**
|
|
1578
|
+
* Edit a message's reply markup.
|
|
1579
|
+
*
|
|
1580
|
+
* @method ms
|
|
1581
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
1582
|
+
* @param messageId The identifier of the message.
|
|
1583
|
+
* @returns The edited message.
|
|
1584
|
+
*/
|
|
1585
|
+
async editMessageReplyMarkup(chatId, messageId, params) {
|
|
1586
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageReplyMarkup(chatId, messageId, params);
|
|
1587
|
+
}
|
|
1588
|
+
/**
|
|
1589
|
+
* Edit an inline message's reply markup. Bot-only.
|
|
1590
|
+
*
|
|
1591
|
+
* @method ms
|
|
1592
|
+
* @param inlineMessageId The identifier of the inline message.
|
|
1593
|
+
*/
|
|
1594
|
+
async editInlineMessageReplyMarkup(inlineMessageId, params) {
|
|
1595
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageReplyMarkup(inlineMessageId, params);
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* Edit a message's live location.
|
|
1599
|
+
*
|
|
1600
|
+
* @method ms
|
|
1601
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
1602
|
+
* @param messageId The identifier of the message.
|
|
1603
|
+
* @param latitude The new latitude.
|
|
1604
|
+
* @param longitude The new longitude.
|
|
1605
|
+
* @returns The edited location message.
|
|
1606
|
+
*/
|
|
1607
|
+
async editMessageLiveLocation(chatId, messageId, latitude, longitude, params) {
|
|
1608
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
|
|
1609
|
+
}
|
|
1610
|
+
/**
|
|
1611
|
+
* Edit an inline message's live location. Bot-only.
|
|
1612
|
+
*
|
|
1613
|
+
* @method ms
|
|
1614
|
+
* @param inlineMessageId The identifier of the inline message.
|
|
1615
|
+
* @param latitude The new latitude.
|
|
1616
|
+
* @param longitude The new longitude.
|
|
1617
|
+
* @returns The edited location message.
|
|
1618
|
+
*/
|
|
1619
|
+
async editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params) {
|
|
1620
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
|
|
1621
|
+
}
|
|
1622
|
+
/**
|
|
1623
|
+
* Retrieve multiple messages.
|
|
1624
|
+
*
|
|
1625
|
+
* @method ms
|
|
1626
|
+
* @param chatId The identifier of a chat to retrieve the messages from.
|
|
1627
|
+
* @param messageIds The identifiers of the messages to retrieve.
|
|
1628
|
+
* @example ```ts
|
|
1629
|
+
* const message = await client.getMessages("@MTKruto", [210, 212]);
|
|
1630
|
+
* ```
|
|
1631
|
+
* @returns The retrieved messages.
|
|
1632
|
+
* @cache
|
|
1633
|
+
*/
|
|
1634
|
+
async getMessages(chatId, messageIds) {
|
|
1635
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").getMessages(chatId, messageIds);
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Retrieve a single message.
|
|
1639
|
+
*
|
|
1640
|
+
* @method ms
|
|
1641
|
+
* @param chatId The identifier of a chat.
|
|
1642
|
+
* @param messageId The identifier of the message to retrieve.
|
|
1643
|
+
* @example ```ts
|
|
1644
|
+
* const message = await client.getMessage("@MTKruto", 212);
|
|
1645
|
+
* ```
|
|
1646
|
+
* @returns The retrieved message.
|
|
1647
|
+
* @cache
|
|
1648
|
+
*/
|
|
1649
|
+
async getMessage(chatId, messageId) {
|
|
1650
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").getMessage(chatId, messageId);
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Retrieve a message using its link.
|
|
1654
|
+
*
|
|
1655
|
+
* @method ms
|
|
1656
|
+
* @param link A message link.
|
|
1657
|
+
* @example ```ts
|
|
1658
|
+
* const message = await client.resolveMessageLink("https://t.me/MTKruto/212");
|
|
1659
|
+
* ```
|
|
1660
|
+
* @returns The message that was linked to.
|
|
1661
|
+
*/
|
|
1662
|
+
async resolveMessageLink(link) {
|
|
1663
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").resolveMessageLink(link);
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
* Delete multiple messages.
|
|
1667
|
+
*
|
|
1668
|
+
* @method ms
|
|
1669
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
1670
|
+
* @param messageIds The identifiers of the messages to delete.
|
|
1671
|
+
*/
|
|
1672
|
+
async deleteMessages(chatId, messageIds, params) {
|
|
1673
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteMessages(chatId, messageIds, params);
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
* Delete a single message.
|
|
1677
|
+
*
|
|
1678
|
+
* @method ms
|
|
1679
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
1680
|
+
* @param messageId The identifier of the message to delete.
|
|
1681
|
+
*/
|
|
1682
|
+
async deleteMessage(chatId, messageId, params) {
|
|
1683
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteMessages(chatId, [messageId], params);
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Delete all messages sent by a specific member of a chat. User-only.
|
|
1687
|
+
*
|
|
1688
|
+
* @method ms
|
|
1689
|
+
* @param chatId The identifier of a chat. Must be a supergroup.
|
|
1690
|
+
* @param memberId The identifier of the member.
|
|
1691
|
+
*/
|
|
1692
|
+
async deleteChatMemberMessages(chatId, memberId) {
|
|
1693
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatMemberMessages(chatId, memberId);
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Delete multiple scheduled messages.
|
|
1697
|
+
*
|
|
1698
|
+
* @method ms
|
|
1699
|
+
* @param chatId The identifier of a chat.
|
|
1700
|
+
* @param messageIds The identifiers of the scheduled messages to delete.
|
|
1701
|
+
*/
|
|
1702
|
+
async deleteScheduledMessages(chatId, messageIds) {
|
|
1703
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteScheduledMessages(chatId, messageIds);
|
|
1704
|
+
}
|
|
1705
|
+
/**
|
|
1706
|
+
* Delete a scheduled message.
|
|
1707
|
+
*
|
|
1708
|
+
* @method ms
|
|
1709
|
+
* @param chatId The identifier of a chat.
|
|
1710
|
+
* @param messageId The identifier of the scheduled message to delete.
|
|
1711
|
+
*/
|
|
1712
|
+
async deleteScheduledMessage(chatId, messageId) {
|
|
1713
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteScheduledMessage(chatId, messageId);
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* Send multiple scheduled messages before their schedule.
|
|
1717
|
+
*
|
|
1718
|
+
* @method ms
|
|
1719
|
+
* @param chatId The identifier of a chat.
|
|
1720
|
+
* @param messageIds The identifiers of the scheduled messages to send.
|
|
1721
|
+
*/
|
|
1722
|
+
async sendScheduledMessages(chatId, messageIds) {
|
|
1723
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendScheduledMessages(chatId, messageIds);
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* Send a scheduled message before its schedule.
|
|
1727
|
+
*
|
|
1728
|
+
* @method ms
|
|
1729
|
+
* @param chatId The identifier of a chat.
|
|
1730
|
+
* @param messageId The identifier of the scheduled message to send.
|
|
1731
|
+
*/
|
|
1732
|
+
async sendScheduledMessage(chatId, messageId) {
|
|
1733
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendScheduledMessage(chatId, messageId);
|
|
1734
|
+
}
|
|
1735
|
+
/**
|
|
1736
|
+
* Pin a message in a chat.
|
|
1737
|
+
*
|
|
1738
|
+
* @method ms
|
|
1739
|
+
* @param chatId The identifier of a chat.
|
|
1740
|
+
* @param messageId The identifier of the message.
|
|
1741
|
+
*/
|
|
1742
|
+
async pinMessage(chatId, messageId, params) {
|
|
1743
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").pinMessage(chatId, messageId, params);
|
|
1744
|
+
}
|
|
1745
|
+
/**
|
|
1746
|
+
* Unpin a pinned message.
|
|
1747
|
+
*
|
|
1748
|
+
* @method ms
|
|
1749
|
+
* @param chatId The identifier of a chat.
|
|
1750
|
+
* @param messageId The identifier of the message.
|
|
1751
|
+
*/
|
|
1752
|
+
async unpinMessage(chatId, messageId, params) {
|
|
1753
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").unpinMessage(chatId, messageId, params);
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* Unpin all pinned messages.
|
|
1757
|
+
*
|
|
1758
|
+
* @method ms
|
|
1759
|
+
* @param chatId The identifier of a chat.
|
|
1760
|
+
*/
|
|
1761
|
+
async unpinMessages(chatId, params) {
|
|
1762
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").unpinMessages(chatId, params);
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Forward multiple messages.
|
|
1766
|
+
*
|
|
1767
|
+
* @method ms
|
|
1768
|
+
* @param from The identifier of a chat to forward the messages from.
|
|
1769
|
+
* @param to The identifier of a chat to forward the messages to.
|
|
1770
|
+
* @param messageIds The identifiers of the messages to forward.
|
|
1771
|
+
* @returns The forwarded messages.
|
|
1772
|
+
*/
|
|
1773
|
+
async forwardMessages(from, to, messageIds, params) {
|
|
1774
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").forwardMessages(from, to, messageIds, params);
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Forward a single message.
|
|
1778
|
+
*
|
|
1779
|
+
* @method ms
|
|
1780
|
+
* @param from The identifier of a chat to forward the message from.
|
|
1781
|
+
* @param to The identifier of a chat to forward the message to.
|
|
1782
|
+
* @param messageId The identifier of the message to forward.
|
|
1783
|
+
* @returns The forwarded message.
|
|
1784
|
+
*/
|
|
1785
|
+
async forwardMessage(from, to, messageId, params) {
|
|
1786
|
+
return (await this.forwardMessages(from, to, [messageId], params))[0];
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1789
|
+
* Stop a poll.
|
|
1790
|
+
*
|
|
1791
|
+
* @method ms
|
|
1792
|
+
* @param chatId The chat that includes the poll.
|
|
1793
|
+
* @param messageId The idenfifier of the poll's message.
|
|
1794
|
+
* @returns The new state of the poll.
|
|
1795
|
+
*/
|
|
1796
|
+
async stopPoll(chatId, messageId, params) {
|
|
1797
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").stopPoll(chatId, messageId, params);
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* Send a chat action.
|
|
1801
|
+
*
|
|
1802
|
+
* @method ms
|
|
1803
|
+
* @param chatId The identifier of a chat to send the chat action to.
|
|
1804
|
+
* @param action The chat action.
|
|
1805
|
+
* @param messageThreadId The thread to send the chat action to.
|
|
1806
|
+
*/
|
|
1807
|
+
async sendChatAction(chatId, action, params) {
|
|
1808
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").sendChatAction(chatId, action, params);
|
|
1809
|
+
}
|
|
1810
|
+
/**
|
|
1811
|
+
* Search for messages. User-only.
|
|
1812
|
+
*
|
|
1813
|
+
* @method ms
|
|
1814
|
+
*/
|
|
1815
|
+
async searchMessages(params) {
|
|
1816
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").searchMessages(params);
|
|
1817
|
+
}
|
|
1818
|
+
/**
|
|
1819
|
+
* Mark messages as read. User-only.
|
|
1820
|
+
*
|
|
1821
|
+
* @method ms
|
|
1822
|
+
* @param chatId The identifier of the chat which the messages belong to.
|
|
1823
|
+
* @param untilMessageId The identifier of the message that will be marked as read, along with any other unread messages before it.
|
|
1824
|
+
*/
|
|
1825
|
+
async readMessages(chatId, untilMessageId) {
|
|
1826
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").readMessages(chatId, untilMessageId);
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Start a bot. User-only.
|
|
1830
|
+
*
|
|
1831
|
+
* @method ms
|
|
1832
|
+
* @param botId The identifier of the bot to start.
|
|
1833
|
+
* @returns The start message.
|
|
1834
|
+
*/
|
|
1835
|
+
async startBot(botId, params) {
|
|
1836
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").startBot(botId, params);
|
|
1837
|
+
}
|
|
1838
|
+
/**
|
|
1839
|
+
* Transcribe a voice message. User-only.
|
|
1840
|
+
*
|
|
1841
|
+
* @method ms
|
|
1842
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
1843
|
+
* @param messageId The identifier of the message.
|
|
1844
|
+
* @cache
|
|
1845
|
+
*/
|
|
1846
|
+
async transcribeVoice(chatId, messageId) {
|
|
1847
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").transcribeVoice(chatId, messageId);
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
* Get a sticker set.
|
|
1851
|
+
*
|
|
1852
|
+
* @method ms
|
|
1853
|
+
* @param name The name of the sticker set or its link.
|
|
1854
|
+
*/
|
|
1855
|
+
async getStickerSet(name) {
|
|
1856
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").getStickerSet(name);
|
|
1857
|
+
}
|
|
1858
|
+
/*
|
|
1859
|
+
* Get the link preview for a message that is about to be sent. User-only.
|
|
1860
|
+
*
|
|
1861
|
+
* @method ms
|
|
1862
|
+
* @param text The message's text.
|
|
1863
|
+
*/
|
|
1864
|
+
async getLinkPreview(text, params) {
|
|
1865
|
+
return await __classPrivateFieldGet(this, _Client_linkPreviewManager, "f").getLinkPreview(text, params);
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Open a mini app. User-only.
|
|
1869
|
+
*
|
|
1870
|
+
* @method ms
|
|
1871
|
+
* @param botId The identifier of a bot with the mini app.
|
|
1872
|
+
* @param chatId The identifier of the chat from which the mini app is opened.
|
|
1873
|
+
* @cache
|
|
1874
|
+
*/
|
|
1875
|
+
async openMiniApp(botId, chatId, params) {
|
|
1876
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").openMiniApp(botId, chatId, params);
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
* Get a progress ID that can be passed to relevant send* methods to receive upload progress updates for them.
|
|
1880
|
+
*
|
|
1881
|
+
* @method ms
|
|
1882
|
+
* @cache
|
|
1883
|
+
*/
|
|
1884
|
+
async getProgressId() {
|
|
1885
|
+
return await __classPrivateFieldGet(this, _Client_fileManager, "f").getProgressId();
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* Get messages saved from a specific chat.
|
|
1889
|
+
*
|
|
1890
|
+
* @method ms
|
|
1891
|
+
* @param chatId The identifier of a chat.
|
|
1892
|
+
*/
|
|
1893
|
+
async getSavedMessages(chatId, params) {
|
|
1894
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").getSavedMessages(chatId, params);
|
|
1895
|
+
}
|
|
1896
|
+
/**
|
|
1897
|
+
* Get a list of saved chats.
|
|
1898
|
+
*
|
|
1899
|
+
* @method ms
|
|
1900
|
+
*/
|
|
1901
|
+
async getSavedChats(params) {
|
|
1902
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").getSavedChats(params);
|
|
1903
|
+
}
|
|
1904
|
+
/**
|
|
1905
|
+
* Get a list of reactions made to a message. User-only.
|
|
1906
|
+
*
|
|
1907
|
+
* @param chatId The identifier of a chat.
|
|
1908
|
+
* @param messageId The identifier of the message.
|
|
1909
|
+
* @method ms
|
|
1910
|
+
*/
|
|
1911
|
+
async getMessageReactions(chatId, messageId, params) {
|
|
1912
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").getMessageReactions(chatId, messageId, params);
|
|
1913
|
+
}
|
|
1914
|
+
//
|
|
1915
|
+
// ========================= POLLS ========================= //
|
|
1916
|
+
//
|
|
1917
|
+
/**
|
|
1918
|
+
* Cast a vote. User-only.
|
|
1919
|
+
*
|
|
1920
|
+
* @method pl
|
|
1921
|
+
* @param chatId The identifier of the chat that includes the poll.
|
|
1922
|
+
* @param messageId The identifier of the message that includes the poll.
|
|
1923
|
+
* @param optionIndexes The indexes of the options to cast for.
|
|
1924
|
+
*/
|
|
1925
|
+
async vote(chatId, messageId, optionIndexes) {
|
|
1926
|
+
await __classPrivateFieldGet(this, _Client_pollManager, "f").vote(chatId, messageId, optionIndexes);
|
|
1927
|
+
}
|
|
1928
|
+
/**
|
|
1929
|
+
* Retract a vote. User-only.
|
|
1930
|
+
*
|
|
1931
|
+
* @method pl
|
|
1932
|
+
* @param chatId The identifier of the chat that includes the poll.
|
|
1933
|
+
* @param messageId The identifier of the message that includes the poll.
|
|
1934
|
+
*/
|
|
1935
|
+
async retractVote(chatId, messageId) {
|
|
1936
|
+
await __classPrivateFieldGet(this, _Client_pollManager, "f").retractVote(chatId, messageId);
|
|
1937
|
+
}
|
|
1938
|
+
//
|
|
1939
|
+
// ========================= CHECKLISTS ========================= //
|
|
1940
|
+
//
|
|
1941
|
+
/**
|
|
1942
|
+
* Add items to a checklist. User-only.
|
|
1943
|
+
*
|
|
1944
|
+
* @param chatId The identifier of a chat.
|
|
1945
|
+
* @param messageId The identifier of the checklist message.
|
|
1946
|
+
* @param items The items to add.
|
|
1947
|
+
* @method cl
|
|
1948
|
+
*/
|
|
1949
|
+
async addToChecklist(chatId, messageId, items) {
|
|
1950
|
+
await __classPrivateFieldGet(this, _Client_checklistManager, "f").addToChecklist(chatId, messageId, items);
|
|
1951
|
+
}
|
|
1952
|
+
/**
|
|
1953
|
+
* Update a checklist. User-only.
|
|
1954
|
+
*
|
|
1955
|
+
* @param chatId The identifier of a chat.
|
|
1956
|
+
* @param messageId The identifier of the checklist message.
|
|
1957
|
+
* @method cl
|
|
1958
|
+
*/
|
|
1959
|
+
async updateChecklist(chatId, messageId, params) {
|
|
1960
|
+
await __classPrivateFieldGet(this, _Client_checklistManager, "f").updateChecklist(chatId, messageId, params);
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* Check multiple items of a checklist. User-only.
|
|
1964
|
+
*
|
|
1965
|
+
* @param chatId The identifier of a chat.
|
|
1966
|
+
* @param messageId The identifier of the checklist message.
|
|
1967
|
+
* @param items The identifiers of the items to check.
|
|
1968
|
+
* @method cl
|
|
1969
|
+
*/
|
|
1970
|
+
async checkChecklistItems(chatId, messageId, items) {
|
|
1971
|
+
await __classPrivateFieldGet(this, _Client_checklistManager, "f").checkChecklistItems(chatId, messageId, items);
|
|
1972
|
+
}
|
|
1973
|
+
/**
|
|
1974
|
+
* Uncheck multiple items of a checklist. User-only.
|
|
1975
|
+
*
|
|
1976
|
+
* @param chatId The identifier of a chat.
|
|
1977
|
+
* @param messageId The identifier of the checklist message.
|
|
1978
|
+
* @param items The identifiers of the items to uncheck.
|
|
1979
|
+
* @method cl
|
|
1980
|
+
*/
|
|
1981
|
+
async uncheckChecklistItems(chatId, messageId, items) {
|
|
1982
|
+
await __classPrivateFieldGet(this, _Client_checklistManager, "f").uncheckChecklistItems(chatId, messageId, items);
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Check a single item of a checklist. User-only.
|
|
1986
|
+
*
|
|
1987
|
+
* @param chatId The identifier of a chat.
|
|
1988
|
+
* @param messageId The identifier of the checklist message.
|
|
1989
|
+
* @param item The identifier of the item to check.
|
|
1990
|
+
* @method cl
|
|
1991
|
+
*/
|
|
1992
|
+
async checkChecklistItem(chatId, messageId, item) {
|
|
1993
|
+
await __classPrivateFieldGet(this, _Client_checklistManager, "f").checkChecklistItem(chatId, messageId, item);
|
|
1994
|
+
}
|
|
1995
|
+
/**
|
|
1996
|
+
* Uncheck a single item of a checklist. User-only.
|
|
1997
|
+
*
|
|
1998
|
+
* @param chatId The identifier of a chat.
|
|
1999
|
+
* @param messageId The identifier of the checklist message.
|
|
2000
|
+
* @param item The identifier of the item to uncheck.
|
|
2001
|
+
* @method cl
|
|
2002
|
+
*/
|
|
2003
|
+
async uncheckChecklistItem(chatId, messageId, item) {
|
|
2004
|
+
await __classPrivateFieldGet(this, _Client_checklistManager, "f").uncheckChecklistItem(chatId, messageId, item);
|
|
2005
|
+
}
|
|
2006
|
+
//
|
|
2007
|
+
// ========================= FILES ========================= //
|
|
2008
|
+
//
|
|
2009
|
+
/**
|
|
2010
|
+
* Download a chunk of a file.
|
|
2011
|
+
*
|
|
2012
|
+
* @method fs
|
|
2013
|
+
* @param fileId The identifier of a file.
|
|
2014
|
+
* @example ```ts
|
|
2015
|
+
* const chunk = await client.downloadChunk(fileId, { chunkSize: 256 * 1024 });
|
|
2016
|
+
* ```
|
|
2017
|
+
* @returns The downloaded chunk.
|
|
2018
|
+
* @cache file
|
|
2019
|
+
*/
|
|
2020
|
+
async downloadChunk(fileId, params) {
|
|
2021
|
+
const controller = new AbortController();
|
|
2022
|
+
for await (const chunk of __classPrivateFieldGet(this, _Client_fileManager, "f").download(fileId, { ...params, signal: controller.signal })) {
|
|
2023
|
+
controller.abort();
|
|
2024
|
+
return chunk;
|
|
2025
|
+
}
|
|
2026
|
+
(0, _0_deps_js_1.unreachable)();
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* Download a file.
|
|
2030
|
+
*
|
|
2031
|
+
* @method fs
|
|
2032
|
+
* @param fileId The identifier of the file to download.
|
|
2033
|
+
* @example ```ts
|
|
2034
|
+
* for await (const chunk of client.download(fileId, { chunkSize: 256 * 1024 })) {
|
|
2035
|
+
* await outFile.write(chunk);
|
|
2036
|
+
* }
|
|
2037
|
+
* ```
|
|
2038
|
+
* @returns A generator yielding the contents of the file.
|
|
2039
|
+
* @cache file
|
|
2040
|
+
*/
|
|
2041
|
+
async *download(fileId, params) {
|
|
2042
|
+
for await (const chunk of __classPrivateFieldGet(this, _Client_fileManager, "f").download(fileId, params)) {
|
|
2043
|
+
yield chunk;
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
/**
|
|
2047
|
+
* Get custom emoji documents for download.
|
|
2048
|
+
*
|
|
2049
|
+
* @method fs
|
|
2050
|
+
* @param id Identifier of one or more of custom emojis.
|
|
2051
|
+
* @returns The custom emoji documents.
|
|
2052
|
+
* @cache
|
|
2053
|
+
*/
|
|
2054
|
+
async getCustomEmojiStickers(id) {
|
|
2055
|
+
return await __classPrivateFieldGet(this, _Client_fileManager, "f").getCustomEmojiStickers(id);
|
|
2056
|
+
}
|
|
2057
|
+
//
|
|
2058
|
+
// ========================= CHATS ========================= //
|
|
2059
|
+
//
|
|
2060
|
+
/**
|
|
2061
|
+
* Get chats from a chat list. User-only.
|
|
2062
|
+
*
|
|
2063
|
+
* @method ch
|
|
2064
|
+
*/
|
|
2065
|
+
async getChats(params) {
|
|
2066
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChats(params?.from, params?.after, params?.limit);
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* Get pinned chats from a chat list. User-only.
|
|
2070
|
+
*
|
|
2071
|
+
* @method ch
|
|
2072
|
+
* @param from The chat list to get the pinned chats from. Defaults to main.
|
|
2073
|
+
*/
|
|
2074
|
+
async getPinnedChats(from) {
|
|
2075
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getPinnedChats(from);
|
|
2076
|
+
}
|
|
2077
|
+
/**
|
|
2078
|
+
* Get a chat.
|
|
2079
|
+
*
|
|
2080
|
+
* @method ch
|
|
2081
|
+
* @cache
|
|
2082
|
+
*/
|
|
2083
|
+
async getChat(chatId) {
|
|
2084
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChat(chatId);
|
|
2085
|
+
}
|
|
2086
|
+
/**
|
|
2087
|
+
* Get chat history. User-only.
|
|
2088
|
+
*
|
|
2089
|
+
* @method ch
|
|
2090
|
+
* @param chatId The identifier of a chat.
|
|
2091
|
+
*/
|
|
2092
|
+
async getHistory(chatId, params) {
|
|
2093
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").getHistory(chatId, params);
|
|
2094
|
+
}
|
|
2095
|
+
/**
|
|
2096
|
+
* Set a chat's available reactions. User-only.
|
|
2097
|
+
*
|
|
2098
|
+
* @method ch
|
|
2099
|
+
* @param chatId The identifier of a chat.
|
|
2100
|
+
* @param availableReactions The new available reactions.
|
|
2101
|
+
*/
|
|
2102
|
+
async setAvailableReactions(chatId, availableReactions) {
|
|
2103
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").setAvailableReactions(chatId, availableReactions);
|
|
2104
|
+
}
|
|
2105
|
+
/**
|
|
2106
|
+
* Set a chat's photo.
|
|
2107
|
+
*
|
|
2108
|
+
* @method ch
|
|
2109
|
+
* @param chatId The identifier of a chat.
|
|
2110
|
+
* @param photo A photo to set as the chat's photo.
|
|
2111
|
+
*/
|
|
2112
|
+
async setChatPhoto(chatId, photo, params) {
|
|
2113
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatPhoto(chatId, photo, params);
|
|
2114
|
+
}
|
|
2115
|
+
/**
|
|
2116
|
+
* Delete a chat's photo.
|
|
2117
|
+
*
|
|
2118
|
+
* @method ch
|
|
2119
|
+
* @param chatId The identifier of a chat.
|
|
2120
|
+
*/
|
|
2121
|
+
async deleteChatPhoto(chatId) {
|
|
2122
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").deleteChatPhoto(chatId);
|
|
2123
|
+
}
|
|
2124
|
+
/**
|
|
2125
|
+
* Ban a member from a chat.
|
|
2126
|
+
*
|
|
2127
|
+
* @method ch
|
|
2128
|
+
* @param chatId The identifier of a chat.
|
|
2129
|
+
* @param memberId The identifier of the member.
|
|
2130
|
+
*/
|
|
2131
|
+
async banChatMember(chatId, memberId, params) {
|
|
2132
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").banChatMember(chatId, memberId, params);
|
|
2133
|
+
}
|
|
2134
|
+
/**
|
|
2135
|
+
* Unban a member from a chat.
|
|
2136
|
+
*
|
|
2137
|
+
* @method ch
|
|
2138
|
+
* @param chatId The identifier of a chat. Must be a supergroup.
|
|
2139
|
+
* @param memberId The identifier of the member.
|
|
2140
|
+
*/
|
|
2141
|
+
async unbanChatMember(chatId, memberId) {
|
|
2142
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").unbanChatMember(chatId, memberId);
|
|
2143
|
+
}
|
|
2144
|
+
/**
|
|
2145
|
+
* Kick a member from a chat. Same as a banChatMember call followed by unbanChatMember.
|
|
2146
|
+
*
|
|
2147
|
+
* @method ch
|
|
2148
|
+
* @param chatId The identifier of a chat. Must be a supergroup.
|
|
2149
|
+
* @param memberId The identifier of the member.
|
|
2150
|
+
*/
|
|
2151
|
+
async kickChatMember(chatId, memberId) {
|
|
2152
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").banChatMember(chatId, memberId);
|
|
2153
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").unbanChatMember(chatId, memberId);
|
|
2154
|
+
}
|
|
2155
|
+
/**
|
|
2156
|
+
* Set the rights of a chat member.
|
|
2157
|
+
*
|
|
2158
|
+
* @method ch
|
|
2159
|
+
* @param chatId The identifier of a chat. Must be a supergroup.
|
|
2160
|
+
* @param memberId The identifier of the member.
|
|
2161
|
+
*/
|
|
2162
|
+
async setChatMemberRights(chatId, memberId, params) {
|
|
2163
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatMemberRights(chatId, memberId, params);
|
|
2164
|
+
}
|
|
2165
|
+
/**
|
|
2166
|
+
* Get the administrators of a chat.
|
|
2167
|
+
*
|
|
2168
|
+
* @method ch
|
|
2169
|
+
* @param chatId The identifier of a chat.
|
|
2170
|
+
* @returns The chat's administrators.
|
|
2171
|
+
*/
|
|
2172
|
+
async getChatAdministrators(chatId) {
|
|
2173
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatAdministrators(chatId);
|
|
2174
|
+
}
|
|
2175
|
+
/**
|
|
2176
|
+
* Enable join requests in a chat. User-only.
|
|
2177
|
+
*
|
|
2178
|
+
* @method ch
|
|
2179
|
+
* @param chatId The identifier of a chat. Must be a channel or a supergroup.
|
|
2180
|
+
*/
|
|
2181
|
+
async enableJoinRequests(chatId) {
|
|
2182
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").enableJoinRequests(chatId);
|
|
2183
|
+
}
|
|
2184
|
+
/**
|
|
2185
|
+
* Disable join requests in a chat. User-only.
|
|
2186
|
+
*
|
|
2187
|
+
* @method ch
|
|
2188
|
+
* @param chatId The identifier of a chat. Must be a channel or a supergroup.
|
|
2189
|
+
*/
|
|
2190
|
+
async disableJoinRequests(chatId) {
|
|
2191
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").disableJoinRequests(chatId);
|
|
2192
|
+
}
|
|
2193
|
+
/**
|
|
2194
|
+
* Get inactive chats. User-only.
|
|
2195
|
+
*
|
|
2196
|
+
* @method ch
|
|
2197
|
+
* @retuns A list of inactive chats the current user is member of.
|
|
2198
|
+
*/
|
|
2199
|
+
async getInactiveChats() {
|
|
2200
|
+
return await __classPrivateFieldGet(this, _Client_accountManager, "f").getInactiveChats();
|
|
2201
|
+
}
|
|
2202
|
+
/**
|
|
2203
|
+
* Get the invite links created for a chat. User-only.
|
|
2204
|
+
*
|
|
2205
|
+
* @method ch
|
|
2206
|
+
* @param chatId The identifier of a chat.
|
|
2207
|
+
* @returns The invite links created for the chat. This might be a subset of the results if they were less than `limit`. The parameters `afterDate` and `afterInviteLink` can be used for pagination.
|
|
2208
|
+
*/
|
|
2209
|
+
async getCreatedInviteLinks(chatId, params) {
|
|
2210
|
+
return await __classPrivateFieldGet(this, _Client_chatManager, "f").getCreatedInviteLinks(chatId, params);
|
|
2211
|
+
}
|
|
2212
|
+
/**
|
|
2213
|
+
* Join a chat. User-only.
|
|
2214
|
+
*
|
|
2215
|
+
* @method ch
|
|
2216
|
+
* @param chatId The identifier of a chat.
|
|
2217
|
+
*/
|
|
2218
|
+
async joinChat(chatId) {
|
|
2219
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").joinChat(chatId);
|
|
2220
|
+
}
|
|
2221
|
+
/**
|
|
2222
|
+
* Leave a chat.
|
|
2223
|
+
*
|
|
2224
|
+
* @method ch
|
|
2225
|
+
* @param chatId The identifier of a chat.
|
|
2226
|
+
*/
|
|
2227
|
+
async leaveChat(chatId) {
|
|
2228
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").leaveChat(chatId);
|
|
2229
|
+
}
|
|
2230
|
+
/**
|
|
2231
|
+
* Get information on a user's chat membership.
|
|
2232
|
+
*
|
|
2233
|
+
* @method ch
|
|
2234
|
+
* @param chatId The identifier of a chat.
|
|
2235
|
+
* @param userId The identifier of the user.
|
|
2236
|
+
*/
|
|
2237
|
+
async getChatMember(chatId, userId) {
|
|
2238
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatMember(chatId, userId);
|
|
2239
|
+
}
|
|
2240
|
+
/**
|
|
2241
|
+
* Get the members of a chat.
|
|
2242
|
+
*
|
|
2243
|
+
* @method ch
|
|
2244
|
+
* @param chatId The identifier of a chat.
|
|
2245
|
+
*/
|
|
2246
|
+
async getChatMembers(chatId, params) {
|
|
2247
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatMembers(chatId, params);
|
|
2248
|
+
}
|
|
2249
|
+
/**
|
|
2250
|
+
* Set a chat's sticker set.
|
|
2251
|
+
*
|
|
2252
|
+
* @method ch
|
|
2253
|
+
* @param chatId The identifier of a chat. Must be a supergroup.
|
|
2254
|
+
* @param setName The name of the set.
|
|
2255
|
+
*/
|
|
2256
|
+
async setChatStickerSet(chatId, setName) {
|
|
2257
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatStickerSet(chatId, setName);
|
|
2258
|
+
}
|
|
2259
|
+
/**
|
|
2260
|
+
* Delete a chat's sticker set.
|
|
2261
|
+
*
|
|
2262
|
+
* @method ch
|
|
2263
|
+
* @param chatId The identifier of a chat. Must be a supergroup.
|
|
2264
|
+
*/
|
|
2265
|
+
async deleteChatStickerSet(chatId) {
|
|
2266
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatStickerSet(chatId);
|
|
2267
|
+
}
|
|
2268
|
+
/**
|
|
2269
|
+
* Set the number of boosts required to circument a chat's default restrictions. User-only.
|
|
2270
|
+
*
|
|
2271
|
+
* @method ch
|
|
2272
|
+
* @param chatId The identifier of a chat.
|
|
2273
|
+
* @param boosts The number of boosts required to circumvent its restrictions.
|
|
2274
|
+
*/
|
|
2275
|
+
async setBoostsRequiredToCircumventRestrictions(chatId, boosts) {
|
|
2276
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").setBoostsRequiredToCircumventRestrictions(chatId, boosts);
|
|
2277
|
+
}
|
|
2278
|
+
/**
|
|
2279
|
+
* Create an invite link.
|
|
2280
|
+
*
|
|
2281
|
+
* @method ch
|
|
2282
|
+
* @param chatId The identifier of a chat to create the invite link for.
|
|
2283
|
+
* @returns The newly created invite link.
|
|
2284
|
+
*/
|
|
2285
|
+
async createInviteLink(chatId, params) {
|
|
2286
|
+
return await __classPrivateFieldGet(this, _Client_chatManager, "f").createInviteLink(chatId, params);
|
|
2287
|
+
}
|
|
2288
|
+
/**
|
|
2289
|
+
* Approve a join request.
|
|
2290
|
+
*
|
|
2291
|
+
* @method ch
|
|
2292
|
+
* @param chatId The identifier of a chat with the join request.
|
|
2293
|
+
* @param userId The user who made the join request.
|
|
2294
|
+
*/
|
|
2295
|
+
async approveJoinRequest(chatId, userId) {
|
|
2296
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").approveJoinRequest(chatId, userId);
|
|
2297
|
+
}
|
|
2298
|
+
/**
|
|
2299
|
+
* Decline a join request.
|
|
2300
|
+
*
|
|
2301
|
+
* @method ch
|
|
2302
|
+
* @param chatId The identifier of a chat with the join request.
|
|
2303
|
+
* @param userId The user who made the join request.
|
|
2304
|
+
*/
|
|
2305
|
+
async declineJoinRequest(chatId, userId) {
|
|
2306
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").declineJoinRequest(chatId, userId);
|
|
2307
|
+
}
|
|
2308
|
+
/**
|
|
2309
|
+
* Approve all join requests. User-only.
|
|
2310
|
+
*
|
|
2311
|
+
* @method ch
|
|
2312
|
+
* @param chatId The identifier of a chat with the join requests.
|
|
2313
|
+
*/
|
|
2314
|
+
async approveJoinRequests(chatId, params) {
|
|
2315
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").approveJoinRequests(chatId, params);
|
|
2316
|
+
}
|
|
2317
|
+
/**
|
|
2318
|
+
* Decline all join requests. User-only.
|
|
2319
|
+
*
|
|
2320
|
+
* @method ch
|
|
2321
|
+
* @param chatId The identifier of a chat with the join requests.
|
|
2322
|
+
*/
|
|
2323
|
+
async declineJoinRequests(chatId, params) {
|
|
2324
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").declineJoinRequests(chatId, params);
|
|
2325
|
+
}
|
|
2326
|
+
/**
|
|
2327
|
+
* Get pending join requests in a chat. User-only.
|
|
2328
|
+
*
|
|
2329
|
+
* @method ch
|
|
2330
|
+
* @param chatId The identifier of a chat with the join requests.
|
|
2331
|
+
*/
|
|
2332
|
+
async getJoinRequests(chatId, params) {
|
|
2333
|
+
return await __classPrivateFieldGet(this, _Client_chatManager, "f").getJoinRequests(chatId, params);
|
|
2334
|
+
}
|
|
2335
|
+
/**
|
|
2336
|
+
* Add a single user to a chat.
|
|
2337
|
+
*
|
|
2338
|
+
* @method ch
|
|
2339
|
+
* @param chatId The identifier of a chat to add the user to.
|
|
2340
|
+
* @param userId The identifier of the user to add to the chat.
|
|
2341
|
+
* @returns An array of FailedInvitation that has at most a length of 1. If empty, it means that the user was added.
|
|
2342
|
+
*/
|
|
2343
|
+
async addChatMember(chatId, userId, params) {
|
|
2344
|
+
return await __classPrivateFieldGet(this, _Client_chatManager, "f").addChatMember(chatId, userId, params);
|
|
2345
|
+
}
|
|
2346
|
+
/**
|
|
2347
|
+
* Add multiple users at once to a channel or a supergroup.
|
|
2348
|
+
*
|
|
2349
|
+
* @method ch
|
|
2350
|
+
* @param chatId The identifier of the channel or supergroup to add the users to.
|
|
2351
|
+
* @param userId The identifiers of the users to add to the channel or supergroup.
|
|
2352
|
+
* @returns An array of FailedInvitation that has at most a length that is the same as that of the parameter userIds. If empty, it means that all the provided users were added.
|
|
2353
|
+
*/
|
|
2354
|
+
async addChatMembers(chatId, userIds) {
|
|
2355
|
+
return await __classPrivateFieldGet(this, _Client_chatManager, "f").addChatMembers(chatId, userIds);
|
|
2356
|
+
}
|
|
2357
|
+
/**
|
|
2358
|
+
* Open a chat.
|
|
2359
|
+
*
|
|
2360
|
+
* @method ch
|
|
2361
|
+
* @param chatId The identifier of a chat to open.
|
|
2362
|
+
*/
|
|
2363
|
+
async openChat(chatId, params) {
|
|
2364
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").openChat(chatId, params);
|
|
2365
|
+
}
|
|
2366
|
+
/**
|
|
2367
|
+
* Close a chat previously opened by openChat.
|
|
2368
|
+
*
|
|
2369
|
+
* @method ch
|
|
2370
|
+
* @param chatId The identifier of a chat to close.
|
|
2371
|
+
*/
|
|
2372
|
+
async closeChat(chatId) {
|
|
2373
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").closeChat(chatId);
|
|
2374
|
+
}
|
|
2375
|
+
/**
|
|
2376
|
+
* Create a group. User-only.
|
|
2377
|
+
*
|
|
2378
|
+
* @method ch
|
|
2379
|
+
* @param title The title of the group.
|
|
2380
|
+
* @returns The created group.
|
|
2381
|
+
*/
|
|
2382
|
+
async createGroup(title, params) {
|
|
2383
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").createGroup(title, params);
|
|
2384
|
+
}
|
|
2385
|
+
/**
|
|
2386
|
+
* Create a supergroup. User-only.
|
|
2387
|
+
*
|
|
2388
|
+
* @method ch
|
|
2389
|
+
* @param title The title of the supergroup.
|
|
2390
|
+
* @returns The created supergroup.
|
|
2391
|
+
*/
|
|
2392
|
+
async createSupergroup(title, params) {
|
|
2393
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").createSupergroup(title, params);
|
|
2394
|
+
}
|
|
2395
|
+
/**
|
|
2396
|
+
* Create a channel. User-only.
|
|
2397
|
+
*
|
|
2398
|
+
* @method ch
|
|
2399
|
+
* @param title The title of the channel.
|
|
2400
|
+
* @returns The created channel.
|
|
2401
|
+
*/
|
|
2402
|
+
async createChannel(title, params) {
|
|
2403
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").createChannel(title, params);
|
|
2404
|
+
}
|
|
2405
|
+
/**
|
|
2406
|
+
* Set the time to live of the messages of a chat. User-only.
|
|
2407
|
+
*
|
|
2408
|
+
* @method ch
|
|
2409
|
+
* @param chatId The identifier of a chat.
|
|
2410
|
+
* @param messageTtl The time to live of the messages in seconds.
|
|
2411
|
+
*/
|
|
2412
|
+
async setMessageTtl(chatId, messageTtl) {
|
|
2413
|
+
await __classPrivateFieldGet(this, _Client_chatListManager, "f").setMessageTtl(chatId, messageTtl);
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* Archive multiple chats. User-only.
|
|
2417
|
+
*
|
|
2418
|
+
* @method ch
|
|
2419
|
+
* @param chatIds The identifiers of the chats to archive.
|
|
2420
|
+
*/
|
|
2421
|
+
async archiveChats(chatIds) {
|
|
2422
|
+
await __classPrivateFieldGet(this, _Client_chatListManager, "f").archiveChats(chatIds);
|
|
2423
|
+
}
|
|
2424
|
+
/**
|
|
2425
|
+
* Archive a single chat. User-only.
|
|
2426
|
+
*
|
|
2427
|
+
* @method ch
|
|
2428
|
+
* @param chatId The identifier of a chat.
|
|
2429
|
+
*/
|
|
2430
|
+
async archiveChat(chatId) {
|
|
2431
|
+
await __classPrivateFieldGet(this, _Client_chatListManager, "f").archiveChat(chatId);
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* Unarchive multiple chats. User-only.
|
|
2435
|
+
*
|
|
2436
|
+
* @method ch
|
|
2437
|
+
* @param chatIds The identifiers of the chats to unarchive.
|
|
2438
|
+
*/
|
|
2439
|
+
async unarchiveChats(chatIds) {
|
|
2440
|
+
await __classPrivateFieldGet(this, _Client_chatListManager, "f").unarchiveChats(chatIds);
|
|
2441
|
+
}
|
|
2442
|
+
/**
|
|
2443
|
+
* Unarchive a single chat. User-only.
|
|
2444
|
+
*
|
|
2445
|
+
* @method ch
|
|
2446
|
+
* @param chatId The identifier of a chat.
|
|
2447
|
+
*/
|
|
2448
|
+
async unarchiveChat(chatId) {
|
|
2449
|
+
await __classPrivateFieldGet(this, _Client_chatListManager, "f").unarchiveChat(chatId);
|
|
2450
|
+
}
|
|
2451
|
+
/**
|
|
2452
|
+
* Get common chats between a user and the current one. User-only.
|
|
2453
|
+
*
|
|
2454
|
+
* @method ch
|
|
2455
|
+
* @param userId The identifier of the user to get the common chats with them.
|
|
2456
|
+
*/
|
|
2457
|
+
async getCommonChats(userId, params) {
|
|
2458
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getCommonChats(userId, params);
|
|
2459
|
+
}
|
|
2460
|
+
/**
|
|
2461
|
+
* Get the settings of a chat. User-only.
|
|
2462
|
+
*
|
|
2463
|
+
* @method ch
|
|
2464
|
+
* @param chatId The identifier of a chat.
|
|
2465
|
+
*/
|
|
2466
|
+
async getChatSettings(chatId) {
|
|
2467
|
+
return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatSettings(chatId);
|
|
2468
|
+
}
|
|
2469
|
+
/**
|
|
2470
|
+
* Disable business bots in a private chat. User-only.
|
|
2471
|
+
*
|
|
2472
|
+
* @method ch
|
|
2473
|
+
* @param chatId The identifier of the private chat to disable business bots in.
|
|
2474
|
+
*/
|
|
2475
|
+
async disableBusinessBots(chatId) {
|
|
2476
|
+
await __classPrivateFieldGet(this, _Client_chatListManager, "f").disableBusinessBots(chatId);
|
|
2477
|
+
}
|
|
2478
|
+
/**
|
|
2479
|
+
* Enable business bots in a private chat. User-only.
|
|
2480
|
+
*
|
|
2481
|
+
* @method ch
|
|
2482
|
+
* @param chatId The identifier of the private chat to enable business bots in.
|
|
2483
|
+
*/
|
|
2484
|
+
async enableBusinessBots(chatId) {
|
|
2485
|
+
await __classPrivateFieldGet(this, _Client_chatListManager, "f").enableBusinessBots(chatId);
|
|
2486
|
+
}
|
|
2487
|
+
/**
|
|
2488
|
+
* Disable slow mode in a group. User-only.
|
|
2489
|
+
*
|
|
2490
|
+
* @method ch
|
|
2491
|
+
* @param chatId The identifier of the group to disable slow mode in.
|
|
2492
|
+
*/
|
|
2493
|
+
async disableSlowMode(chatId) {
|
|
2494
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").disableSlowMode(chatId);
|
|
2495
|
+
}
|
|
2496
|
+
/**
|
|
2497
|
+
* Change slow mode in a group. User-only.
|
|
2498
|
+
*
|
|
2499
|
+
* @method ch
|
|
2500
|
+
* @param chatId The identifier of the group to change slow mode in.
|
|
2501
|
+
* @param duration New slow mode duration.
|
|
2502
|
+
*/
|
|
2503
|
+
async setSlowMode(chatId, duration) {
|
|
2504
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").setSlowMode(chatId, duration);
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* Change the title of a chat.
|
|
2508
|
+
*
|
|
2509
|
+
* @method ch
|
|
2510
|
+
* @param chatId The identifier of a chat.
|
|
2511
|
+
* @param title The new title.
|
|
2512
|
+
*/
|
|
2513
|
+
async setChatTitle(chatId, title) {
|
|
2514
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatTitle(chatId, title);
|
|
2515
|
+
}
|
|
2516
|
+
/**
|
|
2517
|
+
* Change the description of a chat.
|
|
2518
|
+
*
|
|
2519
|
+
* @method ch
|
|
2520
|
+
* @param chatId The identifier of a chat.
|
|
2521
|
+
* @param description The new description.
|
|
2522
|
+
*/
|
|
2523
|
+
async setChatDescription(chatId, description) {
|
|
2524
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatDescription(chatId, description);
|
|
2525
|
+
}
|
|
2526
|
+
/**
|
|
2527
|
+
* Hide the member list of a group to non-admins. User-only.
|
|
2528
|
+
*
|
|
2529
|
+
* @method ch
|
|
2530
|
+
* @param chatId The identifier of the group.
|
|
2531
|
+
*/
|
|
2532
|
+
async hideMemberList(chatId) {
|
|
2533
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").hideMemberList(chatId);
|
|
2534
|
+
}
|
|
2535
|
+
/**
|
|
2536
|
+
* Show the member list of a group to non-admins. User-only.
|
|
2537
|
+
*
|
|
2538
|
+
* @method ch
|
|
2539
|
+
* @param chatId The identifier of the group.
|
|
2540
|
+
*/
|
|
2541
|
+
async showMemberList(chatId) {
|
|
2542
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").showMemberList(chatId);
|
|
2543
|
+
}
|
|
2544
|
+
/**
|
|
2545
|
+
* Enable topics in a group. User-only.
|
|
2546
|
+
*
|
|
2547
|
+
* @method ch
|
|
2548
|
+
* @param chatId The identifier of the group.
|
|
2549
|
+
* @param isShownAsTabs Whether topics should be displayed as tabs.
|
|
2550
|
+
*/
|
|
2551
|
+
async enableTopics(chatId, isShownAsTabs) {
|
|
2552
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").enableTopics(chatId, isShownAsTabs);
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* Disable topics in a group. User-only.
|
|
2556
|
+
*
|
|
2557
|
+
* @method ch
|
|
2558
|
+
* @param chatId The identifier of the group.
|
|
2559
|
+
*/
|
|
2560
|
+
async disableTopics(chatId) {
|
|
2561
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").disableTopics(chatId);
|
|
2562
|
+
}
|
|
2563
|
+
/**
|
|
2564
|
+
* Enable automatic anti-spam in a group. User-only.
|
|
2565
|
+
*
|
|
2566
|
+
* @method ch
|
|
2567
|
+
* @param chatId The identifier of the group.
|
|
2568
|
+
*/
|
|
2569
|
+
async enableAntispam(chatId) {
|
|
2570
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").enableAntispam(chatId);
|
|
2571
|
+
}
|
|
2572
|
+
/**
|
|
2573
|
+
* Disable automatic anti-spam in a group. User-only.
|
|
2574
|
+
*
|
|
2575
|
+
* @method ch
|
|
2576
|
+
* @param chatId The identifier of the group.
|
|
2577
|
+
*/
|
|
2578
|
+
async disableAntispam(chatId) {
|
|
2579
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").disableAntispam(chatId);
|
|
2580
|
+
}
|
|
2581
|
+
/**
|
|
2582
|
+
* Enable post signatures in a channel. User-only.
|
|
2583
|
+
*
|
|
2584
|
+
* @method ch
|
|
2585
|
+
* @param chatId The identifier of the channel.
|
|
2586
|
+
*/
|
|
2587
|
+
async enableSignatures(chatId, params) {
|
|
2588
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").enableSignatures(chatId, params);
|
|
2589
|
+
}
|
|
2590
|
+
/**
|
|
2591
|
+
* Disable post signatures in a channel. User-only.
|
|
2592
|
+
*
|
|
2593
|
+
* @method ch
|
|
2594
|
+
* @param chatId The identifier of the channel.
|
|
2595
|
+
*/
|
|
2596
|
+
async disableSignatures(chatId) {
|
|
2597
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").disableSignatures(chatId);
|
|
2598
|
+
}
|
|
2599
|
+
/**
|
|
2600
|
+
* Delete a chat. User-only.
|
|
2601
|
+
*
|
|
2602
|
+
* @method ch
|
|
2603
|
+
* @param chatId The identifier of a chat.
|
|
2604
|
+
*/
|
|
2605
|
+
async deleteChat(chatId) {
|
|
2606
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").deleteChat(chatId);
|
|
2607
|
+
}
|
|
2608
|
+
/**
|
|
2609
|
+
* Get discussion chat suggestions. User-only.
|
|
2610
|
+
*
|
|
2611
|
+
* @method ch
|
|
2612
|
+
*/
|
|
2613
|
+
async getDiscussionChatSuggestions() {
|
|
2614
|
+
return await __classPrivateFieldGet(this, _Client_chatManager, "f").getDiscussionChatSuggestions();
|
|
2615
|
+
}
|
|
2616
|
+
/**
|
|
2617
|
+
* Set a channel's discussion chat. User-only.
|
|
2618
|
+
*
|
|
2619
|
+
* @method ch
|
|
2620
|
+
* @param chatId The identifier of a channel.
|
|
2621
|
+
* @param discussionChatId The identifier of a chat to use as discussion for the channel.
|
|
2622
|
+
*/
|
|
2623
|
+
async setDiscussionChat(chatId, discussionChatId) {
|
|
2624
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").setDiscussionChat(chatId, discussionChatId);
|
|
2625
|
+
}
|
|
2626
|
+
/**
|
|
2627
|
+
* Transfer the ownership of a chat. User-only.
|
|
2628
|
+
*
|
|
2629
|
+
* @method ch
|
|
2630
|
+
* @param chatId The identifier of a chat.
|
|
2631
|
+
* @param userId The identifier of the new owner.
|
|
2632
|
+
* @param password The password of the current account.
|
|
2633
|
+
*/
|
|
2634
|
+
async transferChatOwnership(chatId, userId, password) {
|
|
2635
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").transferChatOwnership(chatId, userId, password);
|
|
2636
|
+
}
|
|
2637
|
+
/**
|
|
2638
|
+
* Create a forum topic.
|
|
2639
|
+
*
|
|
2640
|
+
* @method ch
|
|
2641
|
+
* @param chatId The identifier of a chat.
|
|
2642
|
+
* @param title The title of the topic.
|
|
2643
|
+
* @returns The created topic.
|
|
2644
|
+
*/
|
|
2645
|
+
async createTopic(chatId, title, params) {
|
|
2646
|
+
return await __classPrivateFieldGet(this, _Client_forumManager, "f").createTopic(chatId, title, params);
|
|
2647
|
+
}
|
|
2648
|
+
/**
|
|
2649
|
+
* Edit a forum topic.
|
|
2650
|
+
*
|
|
2651
|
+
* @method ch
|
|
2652
|
+
* @param chatId The identifier of a chat.
|
|
2653
|
+
* @param topicId The identifier of the topic.
|
|
2654
|
+
* @param title The new title of the topic.
|
|
2655
|
+
* @returns The new topic.
|
|
2656
|
+
*/
|
|
2657
|
+
async editTopic(chatId, topicId, title, params) {
|
|
2658
|
+
return await __classPrivateFieldGet(this, _Client_forumManager, "f").editTopic(chatId, topicId, title, params);
|
|
2659
|
+
}
|
|
2660
|
+
/**
|
|
2661
|
+
* Hide the general forum topic.
|
|
2662
|
+
*
|
|
2663
|
+
* @method ch
|
|
2664
|
+
* @param chatId The identifier of a chat.
|
|
2665
|
+
*/
|
|
2666
|
+
async hideGeneralTopic(chatId) {
|
|
2667
|
+
await __classPrivateFieldGet(this, _Client_forumManager, "f").hideGeneralTopic(chatId);
|
|
2668
|
+
}
|
|
2669
|
+
/**
|
|
2670
|
+
* Show the general forum topic.
|
|
2671
|
+
*
|
|
2672
|
+
* @method ch
|
|
2673
|
+
* @param chatId The identifier of a chat.
|
|
2674
|
+
*/
|
|
2675
|
+
async showGeneralTopic(chatId) {
|
|
2676
|
+
await __classPrivateFieldGet(this, _Client_forumManager, "f").showGeneralTopic(chatId);
|
|
2677
|
+
}
|
|
2678
|
+
/**
|
|
2679
|
+
* Close a forum topic.
|
|
2680
|
+
*
|
|
2681
|
+
* @method ch
|
|
2682
|
+
* @param chatId The identifier of a chat.
|
|
2683
|
+
* @param topicId The identifier of the topic.
|
|
2684
|
+
*/
|
|
2685
|
+
async closeTopic(chatId, topicId) {
|
|
2686
|
+
await __classPrivateFieldGet(this, _Client_forumManager, "f").closeTopic(chatId, topicId);
|
|
2687
|
+
}
|
|
2688
|
+
/**
|
|
2689
|
+
* Reopen a forum topic.
|
|
2690
|
+
*
|
|
2691
|
+
* @method ch
|
|
2692
|
+
* @param chatId The identifier of a chat.
|
|
2693
|
+
* @param topicId The identifier of the topic.
|
|
2694
|
+
*/
|
|
2695
|
+
async reopenTopic(chatId, topicId) {
|
|
2696
|
+
await __classPrivateFieldGet(this, _Client_forumManager, "f").reopenTopic(chatId, topicId);
|
|
2697
|
+
}
|
|
2698
|
+
/**
|
|
2699
|
+
* Pin a forum topic.
|
|
2700
|
+
*
|
|
2701
|
+
* @method ch
|
|
2702
|
+
* @param chatId The identifier of a chat.
|
|
2703
|
+
* @param topicId The identifier of the topic.
|
|
2704
|
+
*/
|
|
2705
|
+
async pinTopic(chatId, topicId) {
|
|
2706
|
+
await __classPrivateFieldGet(this, _Client_forumManager, "f").pinTopic(chatId, topicId);
|
|
2707
|
+
}
|
|
2708
|
+
/**
|
|
2709
|
+
* Unpin a forum topic.
|
|
2710
|
+
*
|
|
2711
|
+
* @method ch
|
|
2712
|
+
* @param chatId The identifier of a chat.
|
|
2713
|
+
* @param topicId The identifier of the topic.
|
|
2714
|
+
*/
|
|
2715
|
+
async unpinTopic(chatId, topicId) {
|
|
2716
|
+
await __classPrivateFieldGet(this, _Client_forumManager, "f").unpinTopic(chatId, topicId);
|
|
2717
|
+
}
|
|
2718
|
+
/**
|
|
2719
|
+
* Promote a chat member.
|
|
2720
|
+
*
|
|
2721
|
+
* @method ch
|
|
2722
|
+
* @param chatId The identifier of a chat.
|
|
2723
|
+
* @param userId The identifier of the user to promote.
|
|
2724
|
+
*/
|
|
2725
|
+
async promoteChatMember(chatId, userId, params) {
|
|
2726
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").promoteChatMember(chatId, userId, params);
|
|
2727
|
+
}
|
|
2728
|
+
/**
|
|
2729
|
+
* Change the tag of a chat member.
|
|
2730
|
+
*
|
|
2731
|
+
* @method ch
|
|
2732
|
+
* @param chatId The identifier of a chat.
|
|
2733
|
+
* @param userId The identifier of the user that is a member of the chat.
|
|
2734
|
+
*/
|
|
2735
|
+
async setChatMemberTag(chatId, userId, params) {
|
|
2736
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatMemberTag(chatId, userId, params);
|
|
2737
|
+
}
|
|
2738
|
+
/**
|
|
2739
|
+
* Enable sharing in a chat. User-only.
|
|
2740
|
+
*
|
|
2741
|
+
* @method ch
|
|
2742
|
+
* @param chatId The identifier of a chat.
|
|
2743
|
+
*/
|
|
2744
|
+
async enableSharing(chatId) {
|
|
2745
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").enableSharing(chatId);
|
|
2746
|
+
}
|
|
2747
|
+
/**
|
|
2748
|
+
* Disable sharing in a chat. User-only.
|
|
2749
|
+
*
|
|
2750
|
+
* @method ch
|
|
2751
|
+
* @param chatId The identifier of a chat.
|
|
2752
|
+
*/
|
|
2753
|
+
async disableSharing(chatId) {
|
|
2754
|
+
await __classPrivateFieldGet(this, _Client_chatManager, "f").disableSharing(chatId);
|
|
2755
|
+
}
|
|
2756
|
+
/**
|
|
2757
|
+
* Get recommended channels. User-only.
|
|
2758
|
+
*
|
|
2759
|
+
* @method ch
|
|
2760
|
+
* @returns A list of recommended channels.
|
|
2761
|
+
*/
|
|
2762
|
+
async getRecommendedChannels() {
|
|
2763
|
+
return await __classPrivateFieldGet(this, _Client_chatManager, "f").getRecommendedChannels();
|
|
2764
|
+
}
|
|
2765
|
+
/**
|
|
2766
|
+
* Get similar channels. User-only.
|
|
2767
|
+
*
|
|
2768
|
+
* @method ch
|
|
2769
|
+
* @param chatId The identifier of a channel to get similar channels for.
|
|
2770
|
+
* @returns A list of similar channels.
|
|
2771
|
+
*/
|
|
2772
|
+
async getSimilarChannels(chatId) {
|
|
2773
|
+
return await __classPrivateFieldGet(this, _Client_chatManager, "f").getSimilarChannels(chatId);
|
|
2774
|
+
}
|
|
2775
|
+
/**
|
|
2776
|
+
* Get similar bots. User-only.
|
|
2777
|
+
*
|
|
2778
|
+
* @method ch
|
|
2779
|
+
* @param chatId The identifier of a bot to get similar bots for.
|
|
2780
|
+
* @returns A list of similar bots.
|
|
2781
|
+
*/
|
|
2782
|
+
async getSimilarBots(chatId) {
|
|
2783
|
+
return await __classPrivateFieldGet(this, _Client_chatManager, "f").getSimilarBots(chatId);
|
|
2784
|
+
}
|
|
2785
|
+
//
|
|
2786
|
+
// ========================= CALLBACK QUERIES ========================= //
|
|
2787
|
+
//
|
|
2788
|
+
/**
|
|
2789
|
+
* Send a callback query. User-only.
|
|
2790
|
+
*
|
|
2791
|
+
* @method cq
|
|
2792
|
+
* @param botId The identifier of the bot to send the callback query to.
|
|
2793
|
+
* @param messageId The identifier of the message that includes at a button responsible for the callback query question.
|
|
2794
|
+
* @param question The callback query's question.
|
|
2795
|
+
* @returns The bot's answer to the callback query.
|
|
2796
|
+
* @cache
|
|
2797
|
+
*/
|
|
2798
|
+
async sendCallbackQuery(botId, messageId, question) {
|
|
2799
|
+
return await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").sendCallbackQuery(botId, messageId, question);
|
|
2800
|
+
}
|
|
2801
|
+
/**
|
|
2802
|
+
* Answer a callback query. Bot-only.
|
|
2803
|
+
*
|
|
2804
|
+
* @method cq
|
|
2805
|
+
* @param id ID of the callback query to answer.
|
|
2806
|
+
*/
|
|
2807
|
+
async answerCallbackQuery(id, params) {
|
|
2808
|
+
await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").answerCallbackQuery(id, params);
|
|
2809
|
+
}
|
|
2810
|
+
//
|
|
2811
|
+
// ========================= INLINE QUERIES ========================= //
|
|
2812
|
+
//
|
|
2813
|
+
/**
|
|
2814
|
+
* Send an inline query. User-only.
|
|
2815
|
+
*
|
|
2816
|
+
* @method iq
|
|
2817
|
+
* @param botId The identifier of a bot to send the inline query to.
|
|
2818
|
+
* @param chatId The identifier of the chat from which the inline query is sent.
|
|
2819
|
+
* @returns The bot's answer to the inline query.
|
|
2820
|
+
* @cache
|
|
2821
|
+
*/
|
|
2822
|
+
async sendInlineQuery(botId, chatId, params) {
|
|
2823
|
+
return await __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").sendInlineQuery(botId, chatId, params);
|
|
2824
|
+
}
|
|
2825
|
+
/**
|
|
2826
|
+
* Answer an inline query. Bot-only.
|
|
2827
|
+
*
|
|
2828
|
+
* @method iq
|
|
2829
|
+
* @param id The identifier of the inline query to answer.
|
|
2830
|
+
* @param results The results to answer with.
|
|
2831
|
+
*/
|
|
2832
|
+
async answerInlineQuery(id, results, params) {
|
|
2833
|
+
await __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").answerInlineQuery(id, results, params);
|
|
2834
|
+
}
|
|
2835
|
+
//
|
|
2836
|
+
// ========================= BOTS ========================= //
|
|
2837
|
+
//
|
|
2838
|
+
/**
|
|
2839
|
+
* Set the bot's description in the given language. Bot-only.
|
|
2840
|
+
*
|
|
2841
|
+
* @method bs
|
|
2842
|
+
*/
|
|
2843
|
+
async setMyDescription(params) {
|
|
2844
|
+
await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyDescription(params);
|
|
2845
|
+
}
|
|
2846
|
+
/**
|
|
2847
|
+
* Set the bot's name in the given language. Bot-only.
|
|
2848
|
+
*
|
|
2849
|
+
* @method bs
|
|
2850
|
+
*/
|
|
2851
|
+
async setMyName(params) {
|
|
2852
|
+
await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyName(params);
|
|
2853
|
+
}
|
|
2854
|
+
/**
|
|
2855
|
+
* Set the bot's short description in the given language. Bot-only.
|
|
2856
|
+
*
|
|
2857
|
+
* @method bs
|
|
2858
|
+
*/
|
|
2859
|
+
async setMyShortDescription(params) {
|
|
2860
|
+
await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyShortDescription(params);
|
|
2861
|
+
}
|
|
2862
|
+
/**
|
|
2863
|
+
* Get the bot's description in the given language. Bot-only.
|
|
2864
|
+
*
|
|
2865
|
+
* @method bs
|
|
2866
|
+
* @returns The current bot's description in the specified language.
|
|
2867
|
+
*/
|
|
2868
|
+
async getMyDescription(params) {
|
|
2869
|
+
return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyDescription(params);
|
|
2870
|
+
}
|
|
2871
|
+
/**
|
|
2872
|
+
* Get the bot's name in the given language. Bot-only.
|
|
2873
|
+
*
|
|
2874
|
+
* @method bs
|
|
2875
|
+
* @returns The current bot's name in the specified language.
|
|
2876
|
+
*/
|
|
2877
|
+
async getMyName(params) {
|
|
2878
|
+
return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyName(params);
|
|
2879
|
+
}
|
|
2880
|
+
/**
|
|
2881
|
+
* Get the bot's short description in the given language. Bot-only.
|
|
2882
|
+
*
|
|
2883
|
+
* @method bs
|
|
2884
|
+
* @returns The current bot's short description in the specified language.
|
|
2885
|
+
*/
|
|
2886
|
+
async getMyShortDescription(params) {
|
|
2887
|
+
return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyShortDescription(params);
|
|
2888
|
+
}
|
|
2889
|
+
/**
|
|
2890
|
+
* Set the bot's commands in the given scope and/or language. Bot-only.
|
|
2891
|
+
*
|
|
2892
|
+
* @method bs
|
|
2893
|
+
* @param commands The commands to set.
|
|
2894
|
+
*/
|
|
2895
|
+
async setMyCommands(commands, params) {
|
|
2896
|
+
await __classPrivateFieldGet(this, _Client_botInfoManager, "f").setMyCommands(commands, params);
|
|
2897
|
+
}
|
|
2898
|
+
/**
|
|
2899
|
+
* Get the bot's commands in the given scope and/or language. Bot-only.
|
|
2900
|
+
*
|
|
2901
|
+
* @method bs
|
|
2902
|
+
* @returns The current bot's commands in the specified language.
|
|
2903
|
+
*/
|
|
2904
|
+
async getMyCommands(params) {
|
|
2905
|
+
return await __classPrivateFieldGet(this, _Client_botInfoManager, "f").getMyCommands(params);
|
|
2906
|
+
}
|
|
2907
|
+
//
|
|
2908
|
+
// ========================= REACTIONS ========================= //
|
|
2909
|
+
//
|
|
2910
|
+
/**
|
|
2911
|
+
* Change reactions made to a message.
|
|
2912
|
+
*
|
|
2913
|
+
* @method re
|
|
2914
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
2915
|
+
* @param messageId The identifier of the message to add the reaction to.
|
|
2916
|
+
* @param reactions The new reactions.
|
|
2917
|
+
*/
|
|
2918
|
+
async setReactions(chatId, messageId, reactions, params) {
|
|
2919
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").setReactions(chatId, messageId, reactions, params);
|
|
2920
|
+
}
|
|
2921
|
+
/**
|
|
2922
|
+
* Make a reaction to a message.
|
|
2923
|
+
*
|
|
2924
|
+
* @method re
|
|
2925
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
2926
|
+
* @param messageId The identifier of the message to add the reaction to.
|
|
2927
|
+
* @param reaction The reaction to add.
|
|
2928
|
+
*/
|
|
2929
|
+
async addReaction(chatId, messageId, reaction, params) {
|
|
2930
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").addReaction(chatId, messageId, reaction, params);
|
|
2931
|
+
}
|
|
2932
|
+
/**
|
|
2933
|
+
* Undo a reaction made to a message.
|
|
2934
|
+
*
|
|
2935
|
+
* @method re
|
|
2936
|
+
* @param chatId The identifier of the chat which the message belongs to.
|
|
2937
|
+
* @param messageId The identifier of the message which the reaction was made to.
|
|
2938
|
+
* @param reaction The reaction to remove.
|
|
2939
|
+
*/
|
|
2940
|
+
async removeReaction(chatId, messageId, reaction) {
|
|
2941
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").removeReaction(chatId, messageId, reaction);
|
|
2942
|
+
}
|
|
2943
|
+
//
|
|
2944
|
+
// ========================= STORIES ========================= //
|
|
2945
|
+
//
|
|
2946
|
+
/**
|
|
2947
|
+
* Create a story. User-only.
|
|
2948
|
+
*
|
|
2949
|
+
* @method st
|
|
2950
|
+
* @param content The content of the story.
|
|
2951
|
+
* @returns The created story.
|
|
2952
|
+
*/
|
|
2953
|
+
async createStory(chatId, content, params) {
|
|
2954
|
+
return await __classPrivateFieldGet(this, _Client_storyManager, "f").createStory(chatId, content, params);
|
|
2955
|
+
}
|
|
2956
|
+
/**
|
|
2957
|
+
* Retrieve multiple stories. User-only.
|
|
2958
|
+
*
|
|
2959
|
+
* @method st
|
|
2960
|
+
* @param chatId The identifier of a chat.
|
|
2961
|
+
* @param storyIds The identifiers of the stories to retrieve.
|
|
2962
|
+
* @returns The retrieved stories.
|
|
2963
|
+
*/
|
|
2964
|
+
async getStories(chatId, storyIds) {
|
|
2965
|
+
if (!storyIds.length) {
|
|
2966
|
+
return [];
|
|
2967
|
+
}
|
|
2968
|
+
return await __classPrivateFieldGet(this, _Client_storyManager, "f").getStories(chatId, storyIds);
|
|
2969
|
+
}
|
|
2970
|
+
/**
|
|
2971
|
+
* Retrieve a single story. User-only.
|
|
2972
|
+
*
|
|
2973
|
+
* @method st
|
|
2974
|
+
* @param chatId The identifier of a chat.
|
|
2975
|
+
* @param storyId The identifier of the story to retrieve.
|
|
2976
|
+
* @returns The retrieved story.
|
|
2977
|
+
*/
|
|
2978
|
+
async getStory(chatId, storyId) {
|
|
2979
|
+
return await __classPrivateFieldGet(this, _Client_storyManager, "f").getStory(chatId, storyId);
|
|
2980
|
+
}
|
|
2981
|
+
/**
|
|
2982
|
+
* Delete multiple stories. User-only.
|
|
2983
|
+
*
|
|
2984
|
+
* @method st
|
|
2985
|
+
* @param chatId The identifier of a chat.
|
|
2986
|
+
* @param storyIds The identifiers of the stories to delete.
|
|
2987
|
+
*/
|
|
2988
|
+
async deleteStories(chatId, storyIds) {
|
|
2989
|
+
await __classPrivateFieldGet(this, _Client_storyManager, "f").deleteStories(chatId, storyIds);
|
|
2990
|
+
}
|
|
2991
|
+
/**
|
|
2992
|
+
* Delete a single story. User-only.
|
|
2993
|
+
*
|
|
2994
|
+
* @method st
|
|
2995
|
+
* @param chatId The identifier of a chat.
|
|
2996
|
+
* @param storyId The identifier of the story to delete.
|
|
2997
|
+
*/
|
|
2998
|
+
async deleteStory(chatId, storyId) {
|
|
2999
|
+
await __classPrivateFieldGet(this, _Client_storyManager, "f").deleteStory(chatId, storyId);
|
|
3000
|
+
}
|
|
3001
|
+
/**
|
|
3002
|
+
* Add multiple stories to highlights. User-only.
|
|
3003
|
+
*
|
|
3004
|
+
* @method st
|
|
3005
|
+
* @param chatId The identifier of a chat.
|
|
3006
|
+
* @param storyIds The identifiers of the stories to add to highlights.
|
|
3007
|
+
*/
|
|
3008
|
+
async addStoriesToHighlights(chatId, storyIds) {
|
|
3009
|
+
await __classPrivateFieldGet(this, _Client_storyManager, "f").addStoriesToHighlights(chatId, storyIds);
|
|
3010
|
+
}
|
|
3011
|
+
/**
|
|
3012
|
+
* Add a single story to highlights. User-only.
|
|
3013
|
+
*
|
|
3014
|
+
* @method st
|
|
3015
|
+
* @param chatId The identifier of a chat.
|
|
3016
|
+
* @param storyId The identifier of the story to add to highlights.
|
|
3017
|
+
*/
|
|
3018
|
+
async addStoryToHighlights(chatId, storyId) {
|
|
3019
|
+
await __classPrivateFieldGet(this, _Client_storyManager, "f").addStoryToHighlights(chatId, storyId);
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Remove multiple stories from highlights. User-only.
|
|
3023
|
+
*
|
|
3024
|
+
* @method st
|
|
3025
|
+
* @param chatId The identifier of a chat.
|
|
3026
|
+
* @param storyIds The identifiers of the stories to remove from highlights.
|
|
3027
|
+
*/
|
|
3028
|
+
async removeStoriesFromHighlights(chatId, storyIds) {
|
|
3029
|
+
await __classPrivateFieldGet(this, _Client_storyManager, "f").removeStoriesFromHighlights(chatId, storyIds);
|
|
3030
|
+
}
|
|
3031
|
+
/**
|
|
3032
|
+
* Remove a single story from highlights. User-only.
|
|
3033
|
+
*
|
|
3034
|
+
* @method st
|
|
3035
|
+
* @param chatId The identifier of a chat.
|
|
3036
|
+
* @param storyId The identifier of the story to remove from highlights.
|
|
3037
|
+
*/
|
|
3038
|
+
async removeStoryFromHighlights(chatId, storyId) {
|
|
3039
|
+
await __classPrivateFieldGet(this, _Client_storyManager, "f").removeStoryFromHighlights(chatId, storyId);
|
|
3040
|
+
}
|
|
3041
|
+
//
|
|
3042
|
+
// ========================= MISC ========================= //
|
|
3043
|
+
//
|
|
3044
|
+
/**
|
|
3045
|
+
* Get network statistics. This might not always be available.
|
|
3046
|
+
*
|
|
3047
|
+
* @method mc
|
|
3048
|
+
*/
|
|
3049
|
+
async getNetworkStatistics() {
|
|
3050
|
+
return await __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f").getNetworkStatistics();
|
|
3051
|
+
}
|
|
3052
|
+
/**
|
|
3053
|
+
* Block a user. User-only.
|
|
3054
|
+
*
|
|
3055
|
+
* @method mc
|
|
3056
|
+
* @param userId The identifier of the user to block.
|
|
3057
|
+
*/
|
|
3058
|
+
async blockUser(userId) {
|
|
3059
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").blockUser(userId);
|
|
3060
|
+
}
|
|
3061
|
+
/**
|
|
3062
|
+
* Unblock a user. User-only.
|
|
3063
|
+
*
|
|
3064
|
+
* @method mc
|
|
3065
|
+
* @param userId The identifier of the user to unblock.
|
|
3066
|
+
*/
|
|
3067
|
+
async unblockUser(userId) {
|
|
3068
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").unblockUser(userId);
|
|
3069
|
+
}
|
|
3070
|
+
//
|
|
3071
|
+
// ========================= VIDEO CHATS ========================= //
|
|
3072
|
+
//
|
|
3073
|
+
/**
|
|
3074
|
+
* Start a video chat. User-only.
|
|
3075
|
+
*
|
|
3076
|
+
* @method vc
|
|
3077
|
+
* @param chatId The identifier of a chat to start the video chat in.
|
|
3078
|
+
* @returns The started video chat.
|
|
3079
|
+
*/
|
|
3080
|
+
async startVideoChat(chatId, params) {
|
|
3081
|
+
return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").startVideoChat(chatId, params);
|
|
3082
|
+
}
|
|
3083
|
+
/**
|
|
3084
|
+
* Schedule a video chat. User-only.
|
|
3085
|
+
*
|
|
3086
|
+
* @method vc
|
|
3087
|
+
* @param chatId The identifier of a chat to schedule the video chat in.
|
|
3088
|
+
* @param startAt A point in time within the future in which the video chat will be started.
|
|
3089
|
+
* @returns The scheduled video chat.
|
|
3090
|
+
*/
|
|
3091
|
+
async scheduleVideoChat(chatId, startAt, params) {
|
|
3092
|
+
return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").scheduleVideoChat(chatId, startAt, params);
|
|
3093
|
+
}
|
|
3094
|
+
/**
|
|
3095
|
+
* Join a video chat. User-only.
|
|
3096
|
+
*
|
|
3097
|
+
* @method vc
|
|
3098
|
+
* @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
|
|
3099
|
+
* @param params_ WebRTC connection parameters.
|
|
3100
|
+
* @returns Parameters to be passed to the used WebRTC library.
|
|
3101
|
+
*/
|
|
3102
|
+
async joinVideoChat(id, params_, params) {
|
|
3103
|
+
return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").joinVideoChat(id, params_, params);
|
|
3104
|
+
}
|
|
3105
|
+
/**
|
|
3106
|
+
* Leave a video chat. User-only.
|
|
3107
|
+
*
|
|
3108
|
+
* @method vc
|
|
3109
|
+
* @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
|
|
3110
|
+
*/
|
|
3111
|
+
async leaveVideoChat(id) {
|
|
3112
|
+
await __classPrivateFieldGet(this, _Client_videoChatManager, "f").leaveVideoChat(id);
|
|
3113
|
+
}
|
|
3114
|
+
/**
|
|
3115
|
+
* Join a live stream. User-only.
|
|
3116
|
+
*
|
|
3117
|
+
* @method vc
|
|
3118
|
+
* @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
|
|
3119
|
+
*/
|
|
3120
|
+
async joinLiveStream(id) {
|
|
3121
|
+
await __classPrivateFieldGet(this, _Client_videoChatManager, "f").joinLiveStream(id);
|
|
3122
|
+
}
|
|
3123
|
+
/**
|
|
3124
|
+
* Get a video chat. User-only.
|
|
3125
|
+
*
|
|
3126
|
+
* @method vc
|
|
3127
|
+
* @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
|
|
3128
|
+
* @cache
|
|
3129
|
+
*/
|
|
3130
|
+
async getVideoChat(id) {
|
|
3131
|
+
return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").getVideoChat(id);
|
|
3132
|
+
}
|
|
3133
|
+
/**
|
|
3134
|
+
* Get live stream channels. User-only.
|
|
3135
|
+
*
|
|
3136
|
+
* @method vc
|
|
3137
|
+
* @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
|
|
3138
|
+
*/
|
|
3139
|
+
async getLiveStreamChannels(id) {
|
|
3140
|
+
return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").getLiveStreamChannels(id);
|
|
3141
|
+
}
|
|
3142
|
+
/**
|
|
3143
|
+
* Download a live stream segment. User-only.
|
|
3144
|
+
*
|
|
3145
|
+
* @method vc
|
|
3146
|
+
* @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
|
|
3147
|
+
* @param channelId Stream channel ID.
|
|
3148
|
+
* @param scale Stream channel scale.
|
|
3149
|
+
* @param timestamp Millisecond timestamp of the chunk to download.
|
|
3150
|
+
*/
|
|
3151
|
+
async downloadLiveStreamSegment(id, channelId, scale, timestamp, params) {
|
|
3152
|
+
return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").downloadLiveStreamSegment(id, channelId, scale, timestamp, params);
|
|
3153
|
+
}
|
|
3154
|
+
//
|
|
3155
|
+
// ========================= PAYMENTS ========================= //
|
|
3156
|
+
//
|
|
3157
|
+
/**
|
|
3158
|
+
* Answer a pre-checkout query. Bot-only.
|
|
3159
|
+
*
|
|
3160
|
+
* @method pa
|
|
3161
|
+
* @param preCheckoutQueryId The identifier of the pre-checkout query.
|
|
3162
|
+
* @param ok Whether the checkout is going to be processed.
|
|
3163
|
+
*/
|
|
3164
|
+
async answerPreCheckoutQuery(preCheckoutQueryId, ok, params) {
|
|
3165
|
+
await __classPrivateFieldGet(this, _Client_paymentManager, "f").answerPreCheckoutQuery(preCheckoutQueryId, ok, params);
|
|
3166
|
+
}
|
|
3167
|
+
/**
|
|
3168
|
+
* Refund a star payment. Bot-only.
|
|
3169
|
+
*
|
|
3170
|
+
* @method pa
|
|
3171
|
+
* @param userId The identifier of the user that was charged.
|
|
3172
|
+
* @param telegramPaymentChargeId The identifier of the charge.
|
|
3173
|
+
*/
|
|
3174
|
+
async refundStarPayment(userId, telegramPaymentChargeId) {
|
|
3175
|
+
await __classPrivateFieldGet(this, _Client_paymentManager, "f").refundStarPayment(userId, telegramPaymentChargeId);
|
|
3176
|
+
}
|
|
3177
|
+
//
|
|
3178
|
+
// ========================= CONTACTS ========================= //
|
|
3179
|
+
//
|
|
3180
|
+
/**
|
|
3181
|
+
* Get contacts. User-only.
|
|
3182
|
+
*
|
|
3183
|
+
* @method co
|
|
3184
|
+
*/
|
|
3185
|
+
async getContacts() {
|
|
3186
|
+
return await __classPrivateFieldGet(this, _Client_accountManager, "f").getContacts();
|
|
3187
|
+
}
|
|
3188
|
+
/**
|
|
3189
|
+
* Delete multiple contacts. User-only.
|
|
3190
|
+
*
|
|
3191
|
+
* @method co
|
|
3192
|
+
* @param userIds The identifiers of contacts to delete.
|
|
3193
|
+
*/
|
|
3194
|
+
async deleteContacts(userIds) {
|
|
3195
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").deleteContacts(userIds);
|
|
3196
|
+
}
|
|
3197
|
+
/**
|
|
3198
|
+
* Delete a single contact. User-only.
|
|
3199
|
+
*
|
|
3200
|
+
* @method co
|
|
3201
|
+
* @param userId The identifier of the contact to delete.
|
|
3202
|
+
*/
|
|
3203
|
+
async deleteContact(userId) {
|
|
3204
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").deleteContact(userId);
|
|
3205
|
+
}
|
|
3206
|
+
/**
|
|
3207
|
+
* Add a contact. User-only.
|
|
3208
|
+
*
|
|
3209
|
+
* @method co
|
|
3210
|
+
* @param userId The identifier of the user to add as contact.
|
|
3211
|
+
*/
|
|
3212
|
+
async addContact(userId, params) {
|
|
3213
|
+
await __classPrivateFieldGet(this, _Client_accountManager, "f").addContact(userId, params);
|
|
3214
|
+
}
|
|
3215
|
+
//
|
|
3216
|
+
// ========================= TRANSLATIONS ========================= //
|
|
3217
|
+
//
|
|
3218
|
+
/**
|
|
3219
|
+
* Get translations. User-only.
|
|
3220
|
+
*
|
|
3221
|
+
* @method ta
|
|
3222
|
+
* @cache
|
|
3223
|
+
*/
|
|
3224
|
+
async getTranslations(params) {
|
|
3225
|
+
return await __classPrivateFieldGet(this, _Client_translationsManager, "f").getTranslations(params);
|
|
3226
|
+
}
|
|
3227
|
+
//
|
|
3228
|
+
// ========================= GIFTS ========================= //
|
|
3229
|
+
//
|
|
3230
|
+
/**
|
|
3231
|
+
* Get available gifts.
|
|
3232
|
+
*
|
|
3233
|
+
* @method gf
|
|
3234
|
+
*/
|
|
3235
|
+
async getGifts() {
|
|
3236
|
+
return await __classPrivateFieldGet(this, _Client_giftManager, "f").getGifts();
|
|
3237
|
+
}
|
|
3238
|
+
/**
|
|
3239
|
+
* Get gifts claimed by a user or a channel. User-only.
|
|
3240
|
+
*
|
|
3241
|
+
* @method gf
|
|
3242
|
+
* @param chatId The identifier of a user or a channel to get gifts for.
|
|
3243
|
+
*/
|
|
3244
|
+
async getClaimedGifts(chatId, params) {
|
|
3245
|
+
return await __classPrivateFieldGet(this, _Client_giftManager, "f").getClaimedGifts(chatId, params);
|
|
3246
|
+
}
|
|
3247
|
+
/**
|
|
3248
|
+
* Send a gift.
|
|
3249
|
+
*
|
|
3250
|
+
* @method gf
|
|
3251
|
+
* @param chatId The identifier of a user or a channel to send the gift to.
|
|
3252
|
+
* @param giftId The identifier of the gift to send.
|
|
3253
|
+
*/
|
|
3254
|
+
async sendGift(chatId, giftId, params) {
|
|
3255
|
+
await __classPrivateFieldGet(this, _Client_giftManager, "f").sendGift(chatId, giftId, params);
|
|
3256
|
+
}
|
|
3257
|
+
/**
|
|
3258
|
+
* Sell a gift.
|
|
3259
|
+
*
|
|
3260
|
+
* @method gf
|
|
3261
|
+
* @param gift The gift to sell.
|
|
3262
|
+
*/
|
|
3263
|
+
async sellGift(gift) {
|
|
3264
|
+
await __classPrivateFieldGet(this, _Client_giftManager, "f").sellGift(gift);
|
|
3265
|
+
}
|
|
3266
|
+
/**
|
|
3267
|
+
* Craft gifts.
|
|
3268
|
+
*
|
|
3269
|
+
* @method gf
|
|
3270
|
+
* @param gift The gifts to craft.
|
|
3271
|
+
*/
|
|
3272
|
+
async craftGifts(gifts) {
|
|
3273
|
+
await __classPrivateFieldGet(this, _Client_giftManager, "f").craftGifts(gifts);
|
|
3274
|
+
}
|
|
3275
|
+
/**
|
|
3276
|
+
* Get a gift using its slug.
|
|
3277
|
+
*
|
|
3278
|
+
* @method gf
|
|
3279
|
+
* @param slug The slug of a gift.
|
|
3280
|
+
*/
|
|
3281
|
+
async getGift(slug) {
|
|
3282
|
+
return await __classPrivateFieldGet(this, _Client_giftManager, "f").getGift(slug);
|
|
3283
|
+
}
|
|
3284
|
+
/**
|
|
3285
|
+
* Transfer a gift. User-only.
|
|
3286
|
+
*
|
|
3287
|
+
* @method gf
|
|
3288
|
+
* @param chatId The identifier of a chat to transfer the gift to.
|
|
3289
|
+
* @param gift The gift to transfer.
|
|
3290
|
+
*/
|
|
3291
|
+
async transferGift(chatId, gift) {
|
|
3292
|
+
return await __classPrivateFieldGet(this, _Client_giftManager, "f").transferGift(chatId, gift);
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
exports.Client = Client;
|
|
3296
|
+
_Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
3297
|
+
if (__classPrivateFieldGet(this, _Client_disableUpdates, "f") && !("authorizationState" in update) && !("connectionState" in update)) {
|
|
3298
|
+
return;
|
|
3299
|
+
}
|
|
3300
|
+
try {
|
|
3301
|
+
await this.handleUpdate(this, update);
|
|
3302
|
+
}
|
|
3303
|
+
catch (err) {
|
|
3304
|
+
__classPrivateFieldGet(this, _Client_L, "f").error("Failed to handle update:", err);
|
|
3305
|
+
throw err;
|
|
3306
|
+
}
|
|
3307
|
+
}, _Client_queueHandleCtxUpdate = function _Client_queueHandleCtxUpdate(update) {
|
|
3308
|
+
__classPrivateFieldGet(this, _Client_updateManager, "f").getHandleUpdateQueue(_2_update_manager_js_1.UpdateManager.MAIN_BOX_ID).add(async () => {
|
|
3309
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, update);
|
|
3310
|
+
});
|
|
3311
|
+
}, _Client_handleUpdate = async function _Client_handleUpdate(update) {
|
|
3312
|
+
const maybePromises = new Array();
|
|
3313
|
+
if (_2_tl_js_1.Api.is("updateUserName", update)) {
|
|
3314
|
+
const value = [Number(update.user_id), new Date()];
|
|
3315
|
+
for (const username_ of update.usernames) {
|
|
3316
|
+
const username = username_.username.toLowerCase();
|
|
3317
|
+
this.messageStorage.usernames.set([username], value);
|
|
3318
|
+
}
|
|
3319
|
+
const peer = { ...update, _: "peerUser" };
|
|
3320
|
+
const peer_ = await this[getPeer](peer);
|
|
3321
|
+
if (peer_ !== null) {
|
|
3322
|
+
const username = update.usernames[0];
|
|
3323
|
+
if (username !== undefined) {
|
|
3324
|
+
peer_[0].username = username.username;
|
|
3325
|
+
const also = update.usernames.filter((v) => v !== username);
|
|
3326
|
+
if (also.length) {
|
|
3327
|
+
peer_[0].also = also.map((v) => v.username);
|
|
3328
|
+
}
|
|
3329
|
+
else {
|
|
3330
|
+
delete peer_[0].also;
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
else {
|
|
3334
|
+
delete peer_[0].username;
|
|
3335
|
+
}
|
|
3336
|
+
this.messageStorage.setPeer2(peer_[0], peer_[1]);
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
if (__classPrivateFieldGet(this, _Client_messageManager, "f").canHandleUpdate(update)) {
|
|
3340
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_messageManager, "f").handleUpdate(update));
|
|
3341
|
+
}
|
|
3342
|
+
if (__classPrivateFieldGet(this, _Client_chatManager, "f").canHandleUpdate(update)) {
|
|
3343
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_chatManager, "f").handleUpdate(update));
|
|
3344
|
+
}
|
|
3345
|
+
if (__classPrivateFieldGet(this, _Client_pollManager, "f").canHandleUpdate(update)) {
|
|
3346
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_pollManager, "f").handleUpdate(update));
|
|
3347
|
+
}
|
|
3348
|
+
if (__classPrivateFieldGet(this, _Client_videoChatManager, "f").canHandleUpdate(update)) {
|
|
3349
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_videoChatManager, "f").handleUpdate(update));
|
|
3350
|
+
}
|
|
3351
|
+
if (__classPrivateFieldGet(this, _Client_callbackQueryManager, "f").canHandleUpdate(update)) {
|
|
3352
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").handleUpdate(update));
|
|
3353
|
+
}
|
|
3354
|
+
if (__classPrivateFieldGet(this, _Client_inlineQueryManager, "f").canHandleUpdate(update)) {
|
|
3355
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").handleUpdate(update));
|
|
3356
|
+
}
|
|
3357
|
+
if (__classPrivateFieldGet(this, _Client_linkPreviewManager, "f").canHandleUpdate(update)) {
|
|
3358
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_linkPreviewManager, "f").handleUpdate(update));
|
|
3359
|
+
}
|
|
3360
|
+
if (__classPrivateFieldGet(this, _Client_reactionManager, "f").canHandleUpdate(update)) {
|
|
3361
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_reactionManager, "f").handleUpdate(update));
|
|
3362
|
+
}
|
|
3363
|
+
if (__classPrivateFieldGet(this, _Client_chatListManager, "f").canHandleUpdate(update)) {
|
|
3364
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_chatListManager, "f").handleUpdate(update));
|
|
3365
|
+
}
|
|
3366
|
+
if (__classPrivateFieldGet(this, _Client_storyManager, "f").canHandleUpdate(update)) {
|
|
3367
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_storyManager, "f").handleUpdate(update));
|
|
3368
|
+
}
|
|
3369
|
+
if (__classPrivateFieldGet(this, _Client_businessConnectionManager, "f").canHandleUpdate(update)) {
|
|
3370
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_businessConnectionManager, "f").handleUpdate(update));
|
|
3371
|
+
}
|
|
3372
|
+
if (__classPrivateFieldGet(this, _Client_storyManager, "f").canHandleUpdate(update)) {
|
|
3373
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_storyManager, "f").handleUpdate(update));
|
|
3374
|
+
}
|
|
3375
|
+
if (__classPrivateFieldGet(this, _Client_paymentManager, "f").canHandleUpdate(update)) {
|
|
3376
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_paymentManager, "f").handleUpdate(update));
|
|
3377
|
+
}
|
|
3378
|
+
if (__classPrivateFieldGet(this, _Client_translationsManager, "f").canHandleUpdate(update)) {
|
|
3379
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_translationsManager, "f").handleUpdate(update));
|
|
3380
|
+
}
|
|
3381
|
+
if (__classPrivateFieldGet(this, _Client_botInfoManager, "f").canHandleUpdate(update)) {
|
|
3382
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_botInfoManager, "f").handleUpdate(update));
|
|
3383
|
+
}
|
|
3384
|
+
if (__classPrivateFieldGet(this, _Client_accountManager, "f").canHandleUpdate(update)) {
|
|
3385
|
+
maybePromises.push(() => __classPrivateFieldGet(this, _Client_accountManager, "f").handleUpdate(update));
|
|
3386
|
+
}
|
|
3387
|
+
return () => Promise.resolve().then(async () => {
|
|
3388
|
+
const updates = [{ update }];
|
|
3389
|
+
for (const maybePromise of maybePromises) {
|
|
3390
|
+
try {
|
|
3391
|
+
const value = maybePromise();
|
|
3392
|
+
const update = value instanceof Promise ? await value : value;
|
|
3393
|
+
if (update) {
|
|
3394
|
+
updates.push(update);
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
catch (err) {
|
|
3398
|
+
__classPrivateFieldGet(this, _Client_L, "f").error("failed to construct update:", err);
|
|
3399
|
+
}
|
|
3400
|
+
}
|
|
3401
|
+
for (const update of updates) {
|
|
3402
|
+
try {
|
|
3403
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, update);
|
|
3404
|
+
}
|
|
3405
|
+
finally {
|
|
3406
|
+
if ("deletedMessages" in update) {
|
|
3407
|
+
for (const { chatId, messageId } of update.deletedMessages) {
|
|
3408
|
+
await this.messageStorage.setMessage(chatId, messageId, null);
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
});
|
|
3414
|
+
}, _Client_getMe = async function _Client_getMe() {
|
|
3415
|
+
if (__classPrivateFieldGet(this, _Client_lastGetMe, "f") !== null) {
|
|
3416
|
+
return __classPrivateFieldGet(this, _Client_lastGetMe, "f");
|
|
3417
|
+
}
|
|
3418
|
+
else {
|
|
3419
|
+
const user = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMeInner).call(this);
|
|
3420
|
+
__classPrivateFieldSet(this, _Client_lastGetMe, user, "f");
|
|
3421
|
+
return user;
|
|
3422
|
+
}
|
|
3423
|
+
}, _Client_getMeInner = async function _Client_getMeInner() {
|
|
3424
|
+
let chatP = (await this[getPeer]({ _: "peerUser", user_id: BigInt(await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) }))?.[0] ?? null;
|
|
3425
|
+
if (chatP === null) {
|
|
3426
|
+
const users = await this.invoke({ _: "users.getUsers", id: [{ _: "inputUserSelf" }] });
|
|
3427
|
+
chatP = (0, _3_types_js_1.constructChatP)(_2_tl_js_1.Api.as("user", users[0]));
|
|
3428
|
+
await this.storage.setIsPremium(chatP.isPremium);
|
|
3429
|
+
}
|
|
3430
|
+
const user = (0, _3_types_js_1.constructUser2)(chatP);
|
|
3431
|
+
__classPrivateFieldSet(this, _Client_lastGetMe, user, "f");
|
|
3432
|
+
return user;
|
|
3433
|
+
}, _Client_onConnectionStateChange = function _Client_onConnectionStateChange(isConnected) {
|
|
3434
|
+
if (__classPrivateFieldGet(this, _Client_lastConnectionState, "f") !== isConnected) {
|
|
3435
|
+
if (isConnected) {
|
|
3436
|
+
if (__classPrivateFieldGet(this, _Client_previouslyConnected, "f")) {
|
|
3437
|
+
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("reconnect"));
|
|
3438
|
+
}
|
|
3439
|
+
__classPrivateFieldSet(this, _Client_previouslyConnected, true, "f");
|
|
3440
|
+
}
|
|
3441
|
+
const connectionState = isConnected ? "ready" : "notConnected";
|
|
3442
|
+
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
|
|
3443
|
+
}
|
|
3444
|
+
};
|