@mtkruto/browser 0.6.1 → 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 +23 -13
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +25 -15
- 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 -7
- package/esm/1_utilities.d.ts.map +1 -1
- package/esm/1_utilities.js +6 -7
- 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 +324 -41
- 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 +238 -193
- 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/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 +2 -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 +16 -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 +18 -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.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 +9 -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 +21 -21
- 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 +1 -1
- 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 +6 -6
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +1 -1
- 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 -5
- package/script/0_deps.d.ts +23 -13
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +47 -41
- 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 -7
- package/script/1_utilities.d.ts.map +1 -1
- package/script/1_utilities.js +6 -7
- 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 +324 -41
- 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 +236 -214
- 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/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 +2 -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 +16 -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 +18 -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.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 +10 -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 +20 -20
- 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 +1 -1
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- 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/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.d.ts +0 -55
- package/esm/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.js +0 -167
- package/esm/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.d.ts +0 -3
- package/esm/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.d.ts.map +0 -1
- package/esm/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.js +0 -308
- package/esm/deps/jsr.io/@std/assert/1.0.8/almost_equals.d.ts +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.8/almost_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/almost_equals.js +0 -46
- package/esm/deps/jsr.io/@std/assert/1.0.8/array_includes.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.8/array_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/array_includes.js +0 -46
- package/esm/deps/jsr.io/@std/assert/1.0.8/assert.d.ts +0 -16
- package/esm/deps/jsr.io/@std/assert/1.0.8/assert.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/assert.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.8/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/assertion_error.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.8/equal.d.ts +0 -17
- package/esm/deps/jsr.io/@std/assert/1.0.8/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/equal.js +0 -183
- package/esm/deps/jsr.io/@std/assert/1.0.8/equals.d.ts +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.8/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/equals.js +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.8/exists.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.8/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/exists.js +0 -27
- package/esm/deps/jsr.io/@std/assert/1.0.8/fail.d.ts +0 -15
- package/esm/deps/jsr.io/@std/assert/1.0.8/fail.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/fail.js +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.8/false.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.8/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/false.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/instance_of.js +0 -52
- package/esm/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts +0 -25
- package/esm/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/is_error.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.8/less.d.ts +0 -19
- package/esm/deps/jsr.io/@std/assert/1.0.8/less.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/less.js +0 -28
- package/esm/deps/jsr.io/@std/assert/1.0.8/less_or_equal.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.8/less_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/less_or_equal.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.8/match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.8/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.8/mod.d.ts +0 -44
- package/esm/deps/jsr.io/@std/assert/1.0.8/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/mod.js +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_equals.d.ts +0 -21
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_instance_of.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.8/object_match.d.ts +0 -28
- package/esm/deps/jsr.io/@std/assert/1.0.8/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/object_match.js +0 -159
- package/esm/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts +0 -42
- package/esm/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/rejects.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/strict_equals.js +0 -57
- package/esm/deps/jsr.io/@std/assert/1.0.8/string_includes.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.8/string_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/string_includes.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.8/throws.d.ts +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.8/throws.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/throws.js +0 -44
- package/esm/deps/jsr.io/@std/assert/1.0.8/unimplemented.d.ts +0 -15
- package/esm/deps/jsr.io/@std/assert/1.0.8/unimplemented.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/unimplemented.js +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.8/unreachable.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/unreachable.js +0 -20
- package/esm/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts +0 -19
- package/esm/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.4/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/streams/1.0.8/to_array_buffer.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +0 -35
- 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 -25
- package/esm/transport/3_transport_provider_tcp.d.ts.map +0 -1
- package/esm/transport/3_transport_provider_tcp.js +0 -29
- 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/0_gunzip.d.ts +0 -2
- package/esm/utilities/0_gunzip.d.ts.map +0 -1
- package/esm/utilities/0_gunzip.js +0 -17
- 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/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.d.ts +0 -55
- package/script/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.js +0 -182
- package/script/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.d.ts +0 -3
- package/script/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.d.ts.map +0 -1
- package/script/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.js +0 -310
- package/script/deps/jsr.io/@std/assert/1.0.8/almost_equals.d.ts +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.8/almost_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/almost_equals.js +0 -49
- package/script/deps/jsr.io/@std/assert/1.0.8/array_includes.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.8/array_includes.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/array_includes.js +0 -49
- package/script/deps/jsr.io/@std/assert/1.0.8/assert.d.ts +0 -16
- package/script/deps/jsr.io/@std/assert/1.0.8/assert.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/assert.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.8/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/assertion_error.js +0 -34
- package/script/deps/jsr.io/@std/assert/1.0.8/equal.d.ts +0 -17
- package/script/deps/jsr.io/@std/assert/1.0.8/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/equal.js +0 -209
- package/script/deps/jsr.io/@std/assert/1.0.8/equals.d.ts +0 -22
- package/script/deps/jsr.io/@std/assert/1.0.8/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/equals.js +0 -48
- package/script/deps/jsr.io/@std/assert/1.0.8/exists.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.8/exists.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/exists.js +0 -30
- package/script/deps/jsr.io/@std/assert/1.0.8/fail.d.ts +0 -15
- package/script/deps/jsr.io/@std/assert/1.0.8/fail.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/fail.js +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.8/false.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.8/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/false.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.8/greater.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.8/greater.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/greater.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/instance_of.js +0 -55
- package/script/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/is_error.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.8/less.d.ts +0 -19
- package/script/deps/jsr.io/@std/assert/1.0.8/less.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/less.js +0 -31
- package/script/deps/jsr.io/@std/assert/1.0.8/less_or_equal.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.8/less_or_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/less_or_equal.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.8/match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.8/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.8/mod.d.ts +0 -44
- package/script/deps/jsr.io/@std/assert/1.0.8/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/mod.js +0 -61
- package/script/deps/jsr.io/@std/assert/1.0.8/not_equals.d.ts +0 -21
- package/script/deps/jsr.io/@std/assert/1.0.8/not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/not_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/not_instance_of.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/not_match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.8/object_match.d.ts +0 -28
- package/script/deps/jsr.io/@std/assert/1.0.8/object_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/object_match.js +0 -162
- package/script/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts +0 -42
- package/script/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/rejects.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/strict_equals.js +0 -60
- package/script/deps/jsr.io/@std/assert/1.0.8/string_includes.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.8/string_includes.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/string_includes.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.8/throws.d.ts +0 -45
- package/script/deps/jsr.io/@std/assert/1.0.8/throws.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/throws.js +0 -47
- package/script/deps/jsr.io/@std/assert/1.0.8/unimplemented.d.ts +0 -15
- package/script/deps/jsr.io/@std/assert/1.0.8/unimplemented.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/unimplemented.js +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.8/unreachable.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.8/unreachable.js +0 -23
- package/script/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts +0 -19
- package/script/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/bytes/1.0.4/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/streams/1.0.8/to_array_buffer.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +0 -38
- 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 -25
- package/script/transport/3_transport_provider_tcp.d.ts.map +0 -1
- package/script/transport/3_transport_provider_tcp.js +0 -32
- 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/0_gunzip.d.ts +0 -2
- package/script/utilities/0_gunzip.d.ts.map +0 -1
- package/script/utilities/0_gunzip.js +0 -20
- 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.8 → 1.0.19}/assertion_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.8 → 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/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/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/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/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/esm/deps/jsr.io/@std/streams/{1.0.8 → 1.0.17}/to_array_buffer.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.8 → 1.0.19}/assertion_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.8 → 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/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/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/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/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
- /package/script/deps/jsr.io/@std/streams/{1.0.8 → 1.0.17}/to_array_buffer.d.ts +0 -0
|
@@ -0,0 +1,1425 @@
|
|
|
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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
22
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
23
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
24
|
+
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");
|
|
25
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
26
|
+
};
|
|
27
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
28
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
29
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
30
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
31
|
+
};
|
|
32
|
+
var _Context_instances, _Context_client, _Context_me, _Context_update, _Context_mustGetMsg, _Context_mustGetChatId, _Context_mustGetUserId, _Context_mustGetInlineMsgId, _Context_getReplyTo;
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.Context = void 0;
|
|
35
|
+
const _0_deps_js_1 = require("../0_deps.js");
|
|
36
|
+
const _0_errors_js_1 = require("../0_errors.js");
|
|
37
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
38
|
+
const _3_filters_js_1 = require("./3_filters.js");
|
|
39
|
+
const staticHas = {
|
|
40
|
+
filterQuery(filter) {
|
|
41
|
+
return (ctx) => {
|
|
42
|
+
return (0, _3_filters_js_1.match)(filter, ctx.update);
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
command(commands, fallbackPrefixes) {
|
|
46
|
+
const hasText = staticHas.filterQuery("message:text");
|
|
47
|
+
const commands__ = typeof commands === "object" && "names" in commands ? commands.names : commands;
|
|
48
|
+
const commands_ = Array.isArray(commands__) ? commands__ : [commands__];
|
|
49
|
+
const prefixes_ = typeof commands === "object" && "prefixes" in commands ? commands.prefixes : (fallbackPrefixes ?? []);
|
|
50
|
+
const prefixes = Array.isArray(prefixes_) ? prefixes_ : [prefixes_];
|
|
51
|
+
for (const left of prefixes) {
|
|
52
|
+
for (const right of prefixes) {
|
|
53
|
+
if (left === right) {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
if (left.startsWith(right) || right.startsWith(left)) {
|
|
57
|
+
throw new _0_errors_js_1.InputError("Intersecting prefixes");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return (ctx) => {
|
|
62
|
+
if (!hasText(ctx)) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
const prefixes_ = prefixes.length === 0 ? [!ctx.me?.isBot ? "\\" : "/"] : prefixes;
|
|
66
|
+
if (prefixes_.length === 0) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
const cmd = ctx.update.message.text.split(/\s/, 1)[0];
|
|
70
|
+
const prefix = prefixes_.find((v) => cmd.startsWith(v));
|
|
71
|
+
if (prefix === undefined) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
if (cmd.includes("@")) {
|
|
75
|
+
const username = cmd.split("@", 2)[1];
|
|
76
|
+
if (username.toLowerCase() !== ctx.me.username?.toLowerCase()) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const command_ = cmd.split("@", 1)[0].split(prefix, 2)[1].toLowerCase();
|
|
81
|
+
for (const command of commands_) {
|
|
82
|
+
if (typeof command === "string" && (command.toLowerCase() === command_)) {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
else if (command instanceof RegExp && command.test(command_)) {
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return false;
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
callbackQuery(data) {
|
|
93
|
+
const hasCallbackQueryData = staticHas.filterQuery("callbackQuery:data");
|
|
94
|
+
const data_ = Array.isArray(data) ? data : [data];
|
|
95
|
+
return (ctx) => {
|
|
96
|
+
if (!hasCallbackQueryData(ctx)) {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
for (const data of data_) {
|
|
100
|
+
if (typeof data === "string" && data === ctx.update.callbackQuery.data) {
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
else if (data instanceof RegExp && data.test(ctx.update.callbackQuery.data)) {
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return false;
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
inlineQuery(queries) {
|
|
111
|
+
const hasInlineQuery = staticHas.filterQuery("inlineQuery");
|
|
112
|
+
const queries_ = Array.isArray(queries) ? queries : [queries];
|
|
113
|
+
return (ctx) => {
|
|
114
|
+
if (!hasInlineQuery(ctx)) {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
for (const query of queries_) {
|
|
118
|
+
if (typeof query === "string" && query === ctx.update.inlineQuery.query) {
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
else if (query instanceof RegExp && query.test(ctx.update.inlineQuery.query)) {
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return false;
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
chosenInlineResult(queries) {
|
|
129
|
+
const hasChosenInlineResult = staticHas.filterQuery("chosenInlineResult");
|
|
130
|
+
const queries_ = Array.isArray(queries) ? queries : [queries];
|
|
131
|
+
return (ctx) => {
|
|
132
|
+
if (!hasChosenInlineResult(ctx)) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
for (const query of queries_) {
|
|
136
|
+
if (typeof query === "string" && query === ctx.update.chosenInlineResult.query) {
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
else if (query instanceof RegExp && query.test(ctx.update.chosenInlineResult.query)) {
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return false;
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
chatType(chatType) {
|
|
147
|
+
const set = new Set(Array.isArray(chatType) ? chatType : [chatType]);
|
|
148
|
+
return (ctx) => {
|
|
149
|
+
return ctx.chat !== undefined && set.has(ctx.chat.type);
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* The context object that is passed to the client's update handlers.
|
|
155
|
+
*
|
|
156
|
+
* It wraps the {@link Update} type with shortcuts and method aliases.
|
|
157
|
+
*/
|
|
158
|
+
class Context {
|
|
159
|
+
constructor(client, me, update) {
|
|
160
|
+
_Context_instances.add(this);
|
|
161
|
+
_Context_client.set(this, void 0);
|
|
162
|
+
_Context_me.set(this, void 0);
|
|
163
|
+
_Context_update.set(this, void 0);
|
|
164
|
+
_Context_getReplyTo.set(this, (isQuoted, chatId, messageId) => {
|
|
165
|
+
if ("story" in this.update) {
|
|
166
|
+
return { replyTo: { chatId: this.update.story.chat.id, storyId: this.update.story.id } };
|
|
167
|
+
}
|
|
168
|
+
let messageThreadId = undefined;
|
|
169
|
+
if ("message" in this.update) {
|
|
170
|
+
messageThreadId = this.update.message.threadId;
|
|
171
|
+
}
|
|
172
|
+
else if ("editedMessage" in this.update) {
|
|
173
|
+
messageThreadId = this.update.editedMessage.threadId;
|
|
174
|
+
}
|
|
175
|
+
else if ("scheduledMessage" in this.update) {
|
|
176
|
+
messageThreadId = this.update.scheduledMessage.threadId;
|
|
177
|
+
}
|
|
178
|
+
const isPrivate = chatId > 0;
|
|
179
|
+
const shouldQuote = isQuoted === undefined ? !isPrivate : isQuoted;
|
|
180
|
+
return { messageThreadId, replyTo: shouldQuote ? { messageId } : undefined };
|
|
181
|
+
});
|
|
182
|
+
__classPrivateFieldSet(this, _Context_client, client, "f");
|
|
183
|
+
__classPrivateFieldSet(this, _Context_me, me, "f");
|
|
184
|
+
__classPrivateFieldSet(this, _Context_update, update, "f");
|
|
185
|
+
}
|
|
186
|
+
get update() {
|
|
187
|
+
return __classPrivateFieldGet(this, _Context_update, "f");
|
|
188
|
+
}
|
|
189
|
+
get me() {
|
|
190
|
+
return __classPrivateFieldGet(this, _Context_me, "f");
|
|
191
|
+
}
|
|
192
|
+
get client() {
|
|
193
|
+
return __classPrivateFieldGet(this, _Context_client, "f");
|
|
194
|
+
}
|
|
195
|
+
get msg() {
|
|
196
|
+
return "message" in this.update ? this.update.message : "editedMessage" in this.update ? this.update.editedMessage : "scheduledMessage" in this.update ? this.update.scheduledMessage : "callbackQuery" in this.update ? this.update.callbackQuery.message : undefined;
|
|
197
|
+
}
|
|
198
|
+
get message() {
|
|
199
|
+
return "message" in this.update ? this.update.message : undefined;
|
|
200
|
+
}
|
|
201
|
+
get editedMessage() {
|
|
202
|
+
return "editedMessage" in this.update ? this.update.editedMessage : undefined;
|
|
203
|
+
}
|
|
204
|
+
get callbackQuery() {
|
|
205
|
+
return "callbackQuery" in this.update ? this.update.callbackQuery : undefined;
|
|
206
|
+
}
|
|
207
|
+
get inlineQuery() {
|
|
208
|
+
return "inlineQuery" in this.update ? this.update.inlineQuery : undefined;
|
|
209
|
+
}
|
|
210
|
+
get chosenInlineResult() {
|
|
211
|
+
return "chosenInlineResult" in this.update ? this.update.chosenInlineResult : undefined;
|
|
212
|
+
}
|
|
213
|
+
get chat() {
|
|
214
|
+
return this.msg?.chat ?? ("messageReactions" in this.update ? this.update.messageReactions.chat : "messageReactionCount" in this.update ? this.update.messageReactionCount.chat : "chatMember" in this.update ? this.update.chatMember.chat : "myChatMember" in this.update ? this.update.myChatMember.chat : "joinRequest" in this.update ? this.update.joinRequest.chat : "story" in this.update ? this.update.story.chat : undefined);
|
|
215
|
+
}
|
|
216
|
+
get from() {
|
|
217
|
+
const from = "callbackQuery" in this.update ? this.update.callbackQuery.from : "inlineQuery" in this.update ? this.update.inlineQuery.from : "chatMember" in this.update ? this.update.chatMember.from : "myChatMember" in this.update ? this.update.myChatMember.from : "messageReactions" in this.update ? this.update.messageReactions.user : "preCheckoutQuery" in this.update ? this.update.preCheckoutQuery.from : "joinRequest" in this.update ? this.update.joinRequest.from : "businessConnection" in this.update ? this.update.businessConnection.user : "pollAnswer" in this.update ? this.update.pollAnswer.from : this.msg?.from;
|
|
218
|
+
return from;
|
|
219
|
+
}
|
|
220
|
+
hasFilterQuery(filter) {
|
|
221
|
+
return Context.has.filterQuery(filter)(this);
|
|
222
|
+
}
|
|
223
|
+
hasCommand(commands, fallbackPrefixes) {
|
|
224
|
+
return Context.has.command(commands, fallbackPrefixes)(this);
|
|
225
|
+
}
|
|
226
|
+
hasCallbackQuery(data) {
|
|
227
|
+
return Context.has.callbackQuery(data)(this);
|
|
228
|
+
}
|
|
229
|
+
hasInlineQuery(queries) {
|
|
230
|
+
return Context.has.inlineQuery(queries)(this);
|
|
231
|
+
}
|
|
232
|
+
hasChosenInlineResult(queries) {
|
|
233
|
+
return Context.has.chosenInlineResult(queries)(this);
|
|
234
|
+
}
|
|
235
|
+
hasChatType(chatType) {
|
|
236
|
+
return Context.has.chatType(chatType)(this);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Returns a representation of the update held in the context that can be converted to JSON.
|
|
240
|
+
*
|
|
241
|
+
* @returns A representation of the update in a way that can be converted to JSON.
|
|
242
|
+
*/
|
|
243
|
+
toJSON() {
|
|
244
|
+
if ("update" in this.update) {
|
|
245
|
+
return { update: (0, _2_tl_js_1.toJSON)(this.update.update) };
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
return this.update;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Context-aware alias for {@link Client.addContact}.
|
|
253
|
+
*/
|
|
254
|
+
async addAsContact(params) {
|
|
255
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
256
|
+
return await this.client.addContact(chatId, params);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Context-aware alias for {@link Client.addChatMember}.
|
|
260
|
+
*/
|
|
261
|
+
async addMember(userId, params) {
|
|
262
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
263
|
+
return await this.client.addChatMember(chatId, userId, params);
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Context-aware alias for {@link Client.addChatMembers}.
|
|
267
|
+
*/
|
|
268
|
+
async addMembers(userIds) {
|
|
269
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
270
|
+
return await this.client.addChatMembers(chatId, userIds);
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Context-aware alias for {@link Client.addReaction}.
|
|
274
|
+
*/
|
|
275
|
+
async addReaction(messageId, reaction, params) {
|
|
276
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
277
|
+
return await this.client.addReaction(chatId, messageId, reaction, params);
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Context-aware alias for {@link Client.addStoriesToHighlights}.
|
|
281
|
+
*/
|
|
282
|
+
async addStoriesToHighlights(storyIds) {
|
|
283
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
284
|
+
return await this.client.addStoriesToHighlights(chatId, storyIds);
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Context-aware alias for {@link Client.addStoryToHighlights}.
|
|
288
|
+
*/
|
|
289
|
+
async addStoryToHighlights(storyId) {
|
|
290
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
291
|
+
return await this.client.addStoryToHighlights(chatId, storyId);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Context-aware alias for {@link Client.addToChecklist}.
|
|
295
|
+
*/
|
|
296
|
+
async addToChecklist(messageId, items) {
|
|
297
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
298
|
+
return await this.client.addToChecklist(chatId, messageId, items);
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Context-aware alias for {@link Client.answerCallbackQuery}.
|
|
302
|
+
*/
|
|
303
|
+
async answerCallbackQuery(params) {
|
|
304
|
+
if (!("callbackQuery" in this.update)) {
|
|
305
|
+
(0, _0_deps_js_1.unreachable)();
|
|
306
|
+
}
|
|
307
|
+
return await this.client.answerCallbackQuery(this.update.callbackQuery.id, params);
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Context-aware alias for {@link Client.answerInlineQuery}.
|
|
311
|
+
*/
|
|
312
|
+
async answerInlineQuery(results, params) {
|
|
313
|
+
if (!("inlineQuery" in this.update)) {
|
|
314
|
+
(0, _0_deps_js_1.unreachable)();
|
|
315
|
+
}
|
|
316
|
+
return await this.client.answerInlineQuery(this.update.inlineQuery.id, results, params);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Context-aware alias for {@link Client.answerPreCheckoutQuery}.
|
|
320
|
+
*/
|
|
321
|
+
async answerPreCheckoutQuery(ok, params) {
|
|
322
|
+
if (!("preCheckoutQuery" in this.update)) {
|
|
323
|
+
(0, _0_deps_js_1.unreachable)();
|
|
324
|
+
}
|
|
325
|
+
return await this.client.answerPreCheckoutQuery(this.update.preCheckoutQuery.id, ok, params);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Context-aware alias for {@link Client.approveJoinRequest}.
|
|
329
|
+
*/
|
|
330
|
+
async approveJoinRequest() {
|
|
331
|
+
const { chatId, userId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
332
|
+
if (!userId) {
|
|
333
|
+
(0, _0_deps_js_1.unreachable)();
|
|
334
|
+
}
|
|
335
|
+
return await this.client.approveJoinRequest(chatId, userId);
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Context-aware alias for {@link Client.approveJoinRequests}.
|
|
339
|
+
*/
|
|
340
|
+
async approveJoinRequests(params) {
|
|
341
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
342
|
+
return await this.client.approveJoinRequests(chatId, params);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Context-aware alias for {@link Client.archiveChat}.
|
|
346
|
+
*/
|
|
347
|
+
async archive() {
|
|
348
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
349
|
+
return await this.client.archiveChat(chatId);
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Context-aware alias for {@link Client.banChatMember}.
|
|
353
|
+
*/
|
|
354
|
+
async banChatMember(memberId, params) {
|
|
355
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
356
|
+
return await this.client.banChatMember(chatId, memberId, params);
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Context-aware alias for {@link Client.banChatMember}.
|
|
360
|
+
*/
|
|
361
|
+
async banSender(params) {
|
|
362
|
+
const { chatId, senderId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
363
|
+
if (!senderId) {
|
|
364
|
+
(0, _0_deps_js_1.unreachable)();
|
|
365
|
+
}
|
|
366
|
+
return await this.client.banChatMember(chatId, senderId, params);
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Context-aware alias for {@link Client.blockUser}.
|
|
370
|
+
*/
|
|
371
|
+
async blockUser() {
|
|
372
|
+
return await this.client.blockUser(__classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetUserId).call(this));
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Context-aware alias for {@link Client.checkChecklistItem}.
|
|
376
|
+
*/
|
|
377
|
+
async checkChecklistItem(messageId, item) {
|
|
378
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
379
|
+
return await this.client.checkChecklistItem(chatId, messageId, item);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Context-aware alias for {@link Client.checkChecklistItems}.
|
|
383
|
+
*/
|
|
384
|
+
async checkChecklistItems(messageId, items) {
|
|
385
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
386
|
+
return await this.client.checkChecklistItems(chatId, messageId, items);
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Context-aware alias for {@link Client.closeChat}.
|
|
390
|
+
*/
|
|
391
|
+
async close() {
|
|
392
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
393
|
+
return await this.client.closeChat(chatId);
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Context-aware alias for {@link Client.closeTopic}.
|
|
397
|
+
*/
|
|
398
|
+
async closeTopic(topicId) {
|
|
399
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
400
|
+
return await this.client.closeTopic(chatId, topicId);
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Context-aware alias for {@link Client.createInviteLink}.
|
|
404
|
+
*/
|
|
405
|
+
async createInviteLink(params) {
|
|
406
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
407
|
+
return await this.client.createInviteLink(chatId, params);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Context-aware alias for {@link Client.createStory}.
|
|
411
|
+
*/
|
|
412
|
+
async createStory(content, params) {
|
|
413
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
414
|
+
return await this.client.createStory(chatId, content, params);
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Context-aware alias for {@link Client.createTopic}.
|
|
418
|
+
*/
|
|
419
|
+
async createTopic(title, params) {
|
|
420
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
421
|
+
return await this.client.createTopic(chatId, title, params);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Context-aware alias for {@link Client.declineJoinRequest}.
|
|
425
|
+
*/
|
|
426
|
+
async declineJoinRequest() {
|
|
427
|
+
const { chatId, userId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
428
|
+
if (!userId) {
|
|
429
|
+
(0, _0_deps_js_1.unreachable)();
|
|
430
|
+
}
|
|
431
|
+
return await this.client.declineJoinRequest(chatId, userId);
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Context-aware alias for {@link Client.declineJoinRequests}.
|
|
435
|
+
*/
|
|
436
|
+
async declineJoinRequests(params) {
|
|
437
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
438
|
+
return await this.client.declineJoinRequests(chatId, params);
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Context-aware alias for {@link Client.deleteChatPhoto}.
|
|
442
|
+
*/
|
|
443
|
+
async deletChatPhoto() {
|
|
444
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
445
|
+
return await this.client.deleteChatPhoto(chatId);
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Context-aware alias for {@link Client.deleteMessage}.
|
|
449
|
+
*/
|
|
450
|
+
async delete() {
|
|
451
|
+
const { chatId, messageId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
452
|
+
return await this.client.deleteMessage(chatId, messageId);
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Context-aware alias for {@link Client.deleteChat}.
|
|
456
|
+
*/
|
|
457
|
+
async deleteChat() {
|
|
458
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
459
|
+
return await this.client.deleteChat(chatId);
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Context-aware alias for {@link Client.deleteChatMemberMessages}.
|
|
463
|
+
*/
|
|
464
|
+
async deleteChatMemberMessages(userId) {
|
|
465
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
466
|
+
return await this.client.deleteChatMemberMessages(chatId, userId);
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Context-aware alias for {@link Client.deleteChatStickerSet}.
|
|
470
|
+
*/
|
|
471
|
+
async deleteChatStickerSet() {
|
|
472
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
473
|
+
return await this.client.deleteChatStickerSet(chatId);
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Context-aware alias for {@link Client.deleteMessage}.
|
|
477
|
+
*/
|
|
478
|
+
async deleteMessage(messageId, params) {
|
|
479
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
480
|
+
return await this.client.deleteMessage(chatId, messageId, params);
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Context-aware alias for {@link Client.deleteMessages}.
|
|
484
|
+
*/
|
|
485
|
+
async deleteMessages(messageIds, params) {
|
|
486
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
487
|
+
return await this.client.deleteMessages(chatId, messageIds, params);
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Context-aware alias for {@link Client.deleteScheduledMessage}.
|
|
491
|
+
*/
|
|
492
|
+
async deleteScheduledMessage(messageId) {
|
|
493
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
494
|
+
return await this.client.deleteScheduledMessage(chatId, messageId);
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Context-aware alias for {@link Client.deleteScheduledMessages}.
|
|
498
|
+
*/
|
|
499
|
+
async deleteScheduledMessages(messageIds) {
|
|
500
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
501
|
+
return await this.client.deleteScheduledMessages(chatId, messageIds);
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Context-aware alias for {@link Client.deleteStories}.
|
|
505
|
+
*/
|
|
506
|
+
async deleteStories(storyIds) {
|
|
507
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
508
|
+
return await this.client.deleteStories(chatId, storyIds);
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Context-aware alias for {@link Client.deleteStory}.
|
|
512
|
+
*/
|
|
513
|
+
async deleteStory(storyId) {
|
|
514
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
515
|
+
return await this.client.deleteStory(chatId, storyId);
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Context-aware alias for {@link Client.disableAntispam}.
|
|
519
|
+
*/
|
|
520
|
+
async disableAntispam() {
|
|
521
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
522
|
+
return await this.client.disableAntispam(chatId);
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* Context-aware alias for {@link Client.disableBusinessBots}.
|
|
526
|
+
*/
|
|
527
|
+
async disableBusinessBots() {
|
|
528
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
529
|
+
return await this.client.disableBusinessBots(chatId);
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Context-aware alias for {@link Client.disableJoinRequests}.
|
|
533
|
+
*/
|
|
534
|
+
async disableJoinRequests() {
|
|
535
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
536
|
+
return await this.client.disableJoinRequests(chatId);
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Context-aware alias for {@link Client.disableSharing}.
|
|
540
|
+
*/
|
|
541
|
+
async disableSharing() {
|
|
542
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
543
|
+
return await this.client.disableSharing(chatId);
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Context-aware alias for {@link Client.disableSignatures}.
|
|
547
|
+
*/
|
|
548
|
+
async disableSignatures() {
|
|
549
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
550
|
+
return await this.client.disableSignatures(chatId);
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Context-aware alias for {@link Client.disableSlowMode}.
|
|
554
|
+
*/
|
|
555
|
+
async disableSlowMode() {
|
|
556
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
557
|
+
return await this.client.disableSlowMode(chatId);
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Context-aware alias for {@link Client.disableTopics}.
|
|
561
|
+
*/
|
|
562
|
+
async disableTopics() {
|
|
563
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
564
|
+
return await this.client.disableTopics(chatId);
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Context-aware alias for {@link Client.editInlineMessageCaption}.
|
|
568
|
+
*/
|
|
569
|
+
async editInlineMessageCaption(params) {
|
|
570
|
+
const inlineMessageId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetInlineMsgId).call(this);
|
|
571
|
+
return await this.client.editInlineMessageCaption(inlineMessageId, params);
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Context-aware alias for {@link Client.editInlineMessageLiveLocation}.
|
|
575
|
+
*/
|
|
576
|
+
async editInlineMessageLiveLocation(latitude, longitude, params) {
|
|
577
|
+
const inlineMessageId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetInlineMsgId).call(this);
|
|
578
|
+
return await this.client.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Context-aware alias for {@link Client.editInlineMessageMedia}.
|
|
582
|
+
*/
|
|
583
|
+
async editInlineMessageMedia(media, params) {
|
|
584
|
+
const inlineMessageId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetInlineMsgId).call(this);
|
|
585
|
+
return await this.client.editInlineMessageMedia(inlineMessageId, media, params);
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Context-aware alias for {@link Client.editInlineMessageReplyMarkup}.
|
|
589
|
+
*/
|
|
590
|
+
async editInlineMessageReplyMarkup(params) {
|
|
591
|
+
const inlineMessageId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetInlineMsgId).call(this);
|
|
592
|
+
return await this.client.editInlineMessageReplyMarkup(inlineMessageId, params);
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Context-aware alias for {@link Client.editInlineMessageText}.
|
|
596
|
+
*/
|
|
597
|
+
async editInlineMessageText(text, params) {
|
|
598
|
+
const inlineMessageId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetInlineMsgId).call(this);
|
|
599
|
+
return await this.client.editInlineMessageText(inlineMessageId, text, params);
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Context-aware alias for {@link Client.editMessageCaption}.
|
|
603
|
+
*/
|
|
604
|
+
async editMessageCaption(messageId, params) {
|
|
605
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
606
|
+
return await this.client.editMessageCaption(chatId, messageId, params);
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Context-aware alias for {@link Client.editMessageLiveLocation}.
|
|
610
|
+
*/
|
|
611
|
+
async editMessageLiveLocation(messageId, latitude, longitude, params) {
|
|
612
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
613
|
+
return await this.client.editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Context-aware alias for {@link Client.editMessageMedia}.
|
|
617
|
+
*/
|
|
618
|
+
async editMessageMedia(messageId, media, params) {
|
|
619
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
620
|
+
return await this.client.editMessageMedia(chatId, messageId, media, params);
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Context-aware alias for {@link Client.editMessageReplyMarkup}.
|
|
624
|
+
*/
|
|
625
|
+
async editMessageReplyMarkup(messageId, params) {
|
|
626
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
627
|
+
return await this.client.editMessageReplyMarkup(chatId, messageId, params);
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* Context-aware alias for {@link Client.editMessageText}.
|
|
631
|
+
*/
|
|
632
|
+
async editMessageText(messageId, text, params) {
|
|
633
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
634
|
+
return await this.client.editMessageText(chatId, messageId, text, params);
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* Context-aware alias for {@link Client.editTopic}.
|
|
638
|
+
*/
|
|
639
|
+
async editTopic(topicId, title, params) {
|
|
640
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
641
|
+
return await this.client.editTopic(chatId, topicId, title, params);
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* Context-aware alias for {@link Client.enableAntispam}.
|
|
645
|
+
*/
|
|
646
|
+
async enableAntispam() {
|
|
647
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
648
|
+
return await this.client.enableAntispam(chatId);
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Context-aware alias for {@link Client.enableBusinessBots}.
|
|
652
|
+
*/
|
|
653
|
+
async enableBusinessBots() {
|
|
654
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
655
|
+
return await this.client.enableBusinessBots(chatId);
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Context-aware alias for {@link Client.enableJoinRequests}.
|
|
659
|
+
*/
|
|
660
|
+
async enableJoinRequests() {
|
|
661
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
662
|
+
return await this.client.enableJoinRequests(chatId);
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* Context-aware alias for {@link Client.enableSharing}.
|
|
666
|
+
*/
|
|
667
|
+
async enableSharing() {
|
|
668
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
669
|
+
return await this.client.enableSharing(chatId);
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* Context-aware alias for {@link Client.enableSignatures}.
|
|
673
|
+
*/
|
|
674
|
+
async enableSignatures(params) {
|
|
675
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
676
|
+
return await this.client.enableSignatures(chatId, params);
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Context-aware alias for {@link Client.enableTopics}.
|
|
680
|
+
*/
|
|
681
|
+
async enableTopics(isShownAsTabs) {
|
|
682
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
683
|
+
return await this.client.enableTopics(chatId, isShownAsTabs);
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Context-aware alias for {@link Client.forwardMessage}.
|
|
687
|
+
*/
|
|
688
|
+
async forward(to, params) {
|
|
689
|
+
const { chatId, messageId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
690
|
+
return await this.client.forwardMessage(chatId, to, messageId, params);
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Context-aware alias for {@link Client.forwardMessage}.
|
|
694
|
+
*/
|
|
695
|
+
async forwardMessage(to, messageId, params) {
|
|
696
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
697
|
+
return await this.client.forwardMessage(chatId, to, messageId, params);
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* Context-aware alias for {@link Client.forwardMessages}.
|
|
701
|
+
*/
|
|
702
|
+
async forwardMessages(to, messageIds, params) {
|
|
703
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
704
|
+
return await this.client.forwardMessages(chatId, to, messageIds, params);
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* Context-aware alias for {@link Client.getBusinessConnection}.
|
|
708
|
+
*/
|
|
709
|
+
async getBusinessConnection() {
|
|
710
|
+
const { businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
711
|
+
if (!businessConnectionId) {
|
|
712
|
+
(0, _0_deps_js_1.unreachable)();
|
|
713
|
+
}
|
|
714
|
+
return await this.client.getBusinessConnection(businessConnectionId);
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Context-aware alias for {@link Client.getChat}.
|
|
718
|
+
*/
|
|
719
|
+
async getChat() {
|
|
720
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
721
|
+
return await this.client.getChat(chatId);
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Context-aware alias for {@link Client.getChatAdministrators}.
|
|
725
|
+
*/
|
|
726
|
+
async getChatAdministrators() {
|
|
727
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
728
|
+
return await this.client.getChatAdministrators(chatId);
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Context-aware alias for {@link Client.getChatMember}.
|
|
732
|
+
*/
|
|
733
|
+
async getChatMember(userId) {
|
|
734
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
735
|
+
return await this.client.getChatMember(chatId, userId);
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Context-aware alias for {@link Client.getChatMembers}.
|
|
739
|
+
*/
|
|
740
|
+
async getChatMembers(params) {
|
|
741
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
742
|
+
return await this.client.getChatMembers(chatId, params);
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Context-aware alias for {@link Client.getChatSettings}.
|
|
746
|
+
*/
|
|
747
|
+
async getChatSettings() {
|
|
748
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
749
|
+
return await this.client.getChatSettings(chatId);
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Context-aware alias for {@link Client.getClaimedGifts}.
|
|
753
|
+
*/
|
|
754
|
+
async getClaimedGifts(params) {
|
|
755
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
756
|
+
return await this.client.getClaimedGifts(chatId, params);
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Context-aware alias for {@link Client.getChatSettings}.
|
|
760
|
+
*/
|
|
761
|
+
async getCommonChats() {
|
|
762
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
763
|
+
return await this.client.getCommonChats(chatId);
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Context-aware alias for {@link Client.getCreatedInviteLinks}.
|
|
767
|
+
*/
|
|
768
|
+
async getCreatedInviteLinks(params) {
|
|
769
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
770
|
+
return await this.client.getCreatedInviteLinks(chatId, params);
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Context-aware alias for {@link Client.getHistory}.
|
|
774
|
+
*/
|
|
775
|
+
async getHistory(params) {
|
|
776
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
777
|
+
return await this.client.getHistory(chatId, params);
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* Context-aware alias for {@link Client.getJoinRequests}.
|
|
781
|
+
*/
|
|
782
|
+
async getJoinRequests(params) {
|
|
783
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
784
|
+
return await this.client.getJoinRequests(chatId, params);
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Context-aware alias for {@link Client.getMessage}.
|
|
788
|
+
*/
|
|
789
|
+
async getMessage(messageId) {
|
|
790
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
791
|
+
return await this.client.getMessage(chatId, messageId);
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Context-aware alias for {@link Client.getMessageReactions}.
|
|
795
|
+
*/
|
|
796
|
+
async getMessageReactions(messageId) {
|
|
797
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
798
|
+
return await this.client.getMessageReactions(chatId, messageId);
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Context-aware alias for {@link Client.getMessages}.
|
|
802
|
+
*/
|
|
803
|
+
async getMessages(messageIds) {
|
|
804
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
805
|
+
return await this.client.getMessages(chatId, messageIds);
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Context-aware alias for {@link Client.getSavedMessages}.
|
|
809
|
+
*/
|
|
810
|
+
async getSavedMessages(params) {
|
|
811
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
812
|
+
return await this.client.getSavedMessages(chatId, params);
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Context-aware alias for {@link Client.getSimilarBots}.
|
|
816
|
+
*/
|
|
817
|
+
async getSimilarBots() {
|
|
818
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
819
|
+
return await this.client.getSimilarBots(chatId);
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Context-aware alias for {@link Client.getSimilarChannels}.
|
|
823
|
+
*/
|
|
824
|
+
async getSimilarChannels() {
|
|
825
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
826
|
+
return await this.client.getSimilarChannels(chatId);
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Context-aware alias for {@link Client.getStories}.
|
|
830
|
+
*/
|
|
831
|
+
async getStories(storyIds) {
|
|
832
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
833
|
+
return await this.client.getStories(chatId, storyIds);
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Context-aware alias for {@link Client.getStory}.
|
|
837
|
+
*/
|
|
838
|
+
async getStory(storyId) {
|
|
839
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
840
|
+
return await this.client.getStory(chatId, storyId);
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* Context-aware alias for {@link Client.sendGift}.
|
|
844
|
+
*/
|
|
845
|
+
async gift(giftId, params) {
|
|
846
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
847
|
+
return await this.client.sendGift(chatId, giftId, params);
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Context-aware alias for {@link Client.hideGeneralTopic}.
|
|
851
|
+
*/
|
|
852
|
+
async hideGeneralTopic() {
|
|
853
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
854
|
+
return await this.client.hideGeneralTopic(chatId);
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* Context-aware alias for {@link Client.hideMemberList}.
|
|
858
|
+
*/
|
|
859
|
+
async hideMemberList() {
|
|
860
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
861
|
+
return await this.client.hideMemberList(chatId);
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Context-aware alias for {@link Client.kickChatMember}.
|
|
865
|
+
*/
|
|
866
|
+
async kickChatMember(memberId) {
|
|
867
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
868
|
+
return await this.client.kickChatMember(chatId, memberId);
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Context-aware alias for {@link Client.kickChatMember}.
|
|
872
|
+
*/
|
|
873
|
+
async kickSender() {
|
|
874
|
+
const { chatId, senderId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
875
|
+
if (!senderId) {
|
|
876
|
+
(0, _0_deps_js_1.unreachable)();
|
|
877
|
+
}
|
|
878
|
+
return await this.client.kickChatMember(chatId, senderId);
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Context-aware alias for {@link Client.leaveChat}.
|
|
882
|
+
*/
|
|
883
|
+
async leaveChat() {
|
|
884
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
885
|
+
return await this.client.leaveChat(chatId);
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Context-aware alias for {@link Client.openChat}.
|
|
889
|
+
*/
|
|
890
|
+
async open() {
|
|
891
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
892
|
+
return await this.client.openChat(chatId);
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Context-aware alias for {@link Client.pauseBusinessBotConnection}.
|
|
896
|
+
*/
|
|
897
|
+
async pauseBusinessBotConnection() {
|
|
898
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
899
|
+
return await this.client.pauseBusinessBotConnection(chatId);
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Context-aware alias for {@link Client.pinMessage}.
|
|
903
|
+
*/
|
|
904
|
+
async pin(params) {
|
|
905
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
906
|
+
return await this.client.pinMessage(chatId, messageId, { ...params, businessConnectionId });
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Context-aware alias for {@link Client.pinMessage}.
|
|
910
|
+
*/
|
|
911
|
+
async pinMessage(messageId, params) {
|
|
912
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
913
|
+
return await this.client.pinMessage(chatId, messageId, params);
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Context-aware alias for {@link Client.pinTopic}.
|
|
917
|
+
*/
|
|
918
|
+
async pinTopic(topicId) {
|
|
919
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
920
|
+
return await this.client.pinTopic(chatId, topicId);
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Context-aware alias for {@link Client.promoteChatMember}.
|
|
924
|
+
*/
|
|
925
|
+
async promoteChatMember(userId, params) {
|
|
926
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
927
|
+
return await this.client.promoteChatMember(chatId, userId, params);
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
* Context-aware alias for {@link Client.setReactions}.
|
|
931
|
+
*/
|
|
932
|
+
async react(reactions, params) {
|
|
933
|
+
const { chatId, messageId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
934
|
+
return await this.client.setReactions(chatId, messageId, reactions, params);
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Context-aware alias for {@link Client.readMessages}.
|
|
938
|
+
*/
|
|
939
|
+
async read() {
|
|
940
|
+
const { chatId, messageId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
941
|
+
return await this.client.readMessages(chatId, messageId);
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* Context-aware alias for {@link Client.refundStarPayment}.
|
|
945
|
+
*/
|
|
946
|
+
async refundStarPayment(telegramPaymentChargeId) {
|
|
947
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
948
|
+
return await this.client.refundStarPayment(chatId, telegramPaymentChargeId);
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* Context-aware alias for {@link Client.deleteContact}.
|
|
952
|
+
*/
|
|
953
|
+
async removeAsContact() {
|
|
954
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
955
|
+
return await this.client.deleteContact(chatId);
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Context-aware alias for {@link Client.removeReaction}.
|
|
959
|
+
*/
|
|
960
|
+
async removeReaction(messageId, reaction) {
|
|
961
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
962
|
+
return await this.client.removeReaction(chatId, messageId, reaction);
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Context-aware alias for {@link Client.removeStoriesFromHighlights}.
|
|
966
|
+
*/
|
|
967
|
+
async removeStoriesFromHighlights(storyIds) {
|
|
968
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
969
|
+
return await this.client.removeStoriesFromHighlights(chatId, storyIds);
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Context-aware alias for {@link Client.removeStoryFromHighlights}.
|
|
973
|
+
*/
|
|
974
|
+
async removeStoryFromHighlights(storyId) {
|
|
975
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
976
|
+
return await this.client.removeStoryFromHighlights(chatId, storyId);
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Context-aware alias for {@link Client.reopenTopic}.
|
|
980
|
+
*/
|
|
981
|
+
async reopenTopic(topicId) {
|
|
982
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
983
|
+
return await this.client.reopenTopic(chatId, topicId);
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Context-aware alias for {@link Client.sendMessage}.
|
|
987
|
+
*/
|
|
988
|
+
async reply(text, params) {
|
|
989
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
990
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
991
|
+
return await this.client.sendMessage(chatId, text, { ...params, ...replyTo, businessConnectionId });
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
* Context-aware alias for {@link Client.sendAnimation}.
|
|
995
|
+
*/
|
|
996
|
+
async replyAnimation(animation, params) {
|
|
997
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
998
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
999
|
+
return await this.client.sendAnimation(chatId, animation, { ...params, ...replyTo, businessConnectionId });
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Context-aware alias for {@link Client.sendAudio}.
|
|
1003
|
+
*/
|
|
1004
|
+
async replyAudio(audio, params) {
|
|
1005
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1006
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1007
|
+
return await this.client.sendAudio(chatId, audio, { ...params, ...replyTo, businessConnectionId });
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Context-aware alias for {@link Client.sendChecklist}.
|
|
1011
|
+
*/
|
|
1012
|
+
async replyChecklist(title, items, params) {
|
|
1013
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1014
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1015
|
+
return await this.client.sendChecklist(chatId, title, items, { ...params, ...replyTo, businessConnectionId });
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Context-aware alias for {@link Client.sendContact}.
|
|
1019
|
+
*/
|
|
1020
|
+
async replyContact(firstName, number, params) {
|
|
1021
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1022
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1023
|
+
return await this.client.sendContact(chatId, firstName, number, { ...params, ...replyTo, businessConnectionId });
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Context-aware alias for {@link Client.sendDice}.
|
|
1027
|
+
*/
|
|
1028
|
+
async replyDice(params) {
|
|
1029
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1030
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1031
|
+
return await this.client.sendDice(chatId, { ...params, ...replyTo, businessConnectionId });
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Context-aware alias for {@link Client.sendDocument}.
|
|
1035
|
+
*/
|
|
1036
|
+
async replyDocument(document, params) {
|
|
1037
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1038
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1039
|
+
return await this.client.sendDocument(chatId, document, { ...params, ...replyTo, businessConnectionId });
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Context-aware alias for {@link Client.sendMessageDraft}.
|
|
1043
|
+
*/
|
|
1044
|
+
async replyDraft(draftId, text, params) {
|
|
1045
|
+
const { chatId, messageId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1046
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1047
|
+
return await this.client.sendMessageDraft(chatId, draftId, text, { ...params, ...replyTo });
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* Context-aware alias for {@link Client.sendInvoice}.
|
|
1051
|
+
*/
|
|
1052
|
+
async replyInvoice(title, description, payload, currency, prices, params) {
|
|
1053
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1054
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1055
|
+
return await this.client.sendInvoice(chatId, title, description, payload, currency, prices, { ...params, ...replyTo, businessConnectionId });
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Context-aware alias for {@link Client.sendLocation}.
|
|
1059
|
+
*/
|
|
1060
|
+
async replyLocation(latitude, longitude, params) {
|
|
1061
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1062
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1063
|
+
return await this.client.sendLocation(chatId, latitude, longitude, { ...params, ...replyTo, businessConnectionId });
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* Context-aware alias for {@link Client.sendMediaGroup}.
|
|
1067
|
+
*/
|
|
1068
|
+
async replyMediaGroup(media, params) {
|
|
1069
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1070
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1071
|
+
return await this.client.sendMediaGroup(chatId, media, { ...params, ...replyTo, businessConnectionId });
|
|
1072
|
+
}
|
|
1073
|
+
/**
|
|
1074
|
+
* Context-aware alias for {@link Client.sendPhoto}.
|
|
1075
|
+
*/
|
|
1076
|
+
async replyPhoto(photo, params) {
|
|
1077
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1078
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1079
|
+
return await this.client.sendPhoto(chatId, photo, { ...params, ...replyTo, businessConnectionId });
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Context-aware alias for {@link Client.sendPoll}.
|
|
1083
|
+
*/
|
|
1084
|
+
async replyPoll(question, options, params) {
|
|
1085
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1086
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1087
|
+
return await this.client.sendPoll(chatId, question, options, { ...params, ...replyTo, businessConnectionId });
|
|
1088
|
+
}
|
|
1089
|
+
/**
|
|
1090
|
+
* Context-aware alias for {@link Client.sendSticker}.
|
|
1091
|
+
*/
|
|
1092
|
+
async replySticker(sticker, params) {
|
|
1093
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1094
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1095
|
+
return await this.client.sendSticker(chatId, sticker, { ...params, ...replyTo, businessConnectionId });
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Context-aware alias for {@link Client.sendVenue}.
|
|
1099
|
+
*/
|
|
1100
|
+
async replyVenue(latitude, longitude, title, address, params) {
|
|
1101
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1102
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1103
|
+
return await this.client.sendVenue(chatId, latitude, longitude, title, address, { ...params, ...replyTo, businessConnectionId });
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Context-aware alias for {@link Client.sendVideo}.
|
|
1107
|
+
*/
|
|
1108
|
+
async replyVideo(video, params) {
|
|
1109
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1110
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1111
|
+
return await this.client.sendVideo(chatId, video, { ...params, ...replyTo, businessConnectionId });
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Context-aware alias for {@link Client.sendVideoNote}.
|
|
1115
|
+
*/
|
|
1116
|
+
async replyVideoNote(videoNote, params) {
|
|
1117
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1118
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1119
|
+
return await this.client.sendVideoNote(chatId, videoNote, { ...params, ...replyTo, businessConnectionId });
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* Context-aware alias for {@link Client.sendVoice}.
|
|
1123
|
+
*/
|
|
1124
|
+
async replyVoice(voice, params) {
|
|
1125
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1126
|
+
const replyTo = __classPrivateFieldGet(this, _Context_getReplyTo, "f").call(this, params?.isQuoted, chatId, messageId);
|
|
1127
|
+
return await this.client.sendVoice(chatId, voice, { ...params, ...replyTo, businessConnectionId });
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Context-aware alias for {@link Client.resumeBusinessBotConnection}.
|
|
1131
|
+
*/
|
|
1132
|
+
async resumeBusinessBotConnection() {
|
|
1133
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1134
|
+
return await this.client.resumeBusinessBotConnection(chatId);
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* Context-aware alias for {@link Client.scheduleVideoChat}.
|
|
1138
|
+
*/
|
|
1139
|
+
async scheduleVideoChat(startAt, params) {
|
|
1140
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1141
|
+
return await this.client.scheduleVideoChat(chatId, startAt, params);
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Context-aware alias for {@link Client.searchMessages}.
|
|
1145
|
+
*/
|
|
1146
|
+
async searchMessages(params) {
|
|
1147
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1148
|
+
params ??= {};
|
|
1149
|
+
params.chatId = chatId;
|
|
1150
|
+
return await this.client.searchMessages(params);
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Context-aware alias for {@link Client.sendChatAction}.
|
|
1154
|
+
*/
|
|
1155
|
+
async sendChatAction(action, params) {
|
|
1156
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1157
|
+
return await this.client.sendChatAction(chatId, action, params);
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Context-aware alias for {@link Client.sendScheduledMessage}.
|
|
1161
|
+
*/
|
|
1162
|
+
async sendScheduledMessage(messageId) {
|
|
1163
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1164
|
+
return await this.client.sendScheduledMessage(chatId, messageId);
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Context-aware alias for {@link Client.setAvailableReactions}.
|
|
1168
|
+
*/
|
|
1169
|
+
async setAvailableReactions(availableReactions) {
|
|
1170
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1171
|
+
return await this.client.setAvailableReactions(chatId, availableReactions);
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Context-aware alias for {@link Client.setBoostsRequiredToCircumventRestrictions}.
|
|
1175
|
+
*/
|
|
1176
|
+
async setBoostsRequiredToCircumventRestrictions(boosts) {
|
|
1177
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1178
|
+
return await this.client.setBoostsRequiredToCircumventRestrictions(chatId, boosts);
|
|
1179
|
+
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Context-aware alias for {@link Client.setChatDescription}.
|
|
1182
|
+
*/
|
|
1183
|
+
async setChatDescription(description) {
|
|
1184
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1185
|
+
return await this.client.setChatDescription(chatId, description);
|
|
1186
|
+
}
|
|
1187
|
+
/**
|
|
1188
|
+
* Context-aware alias for {@link Client.setChatMemberRights}.
|
|
1189
|
+
*/
|
|
1190
|
+
async setChatMemberRights(memberId, params) {
|
|
1191
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1192
|
+
return await this.client.setChatMemberRights(chatId, memberId, params);
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Context-aware alias for {@link Client.setChatPhoto}.
|
|
1196
|
+
*/
|
|
1197
|
+
async setChatPhoto(photo, params) {
|
|
1198
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1199
|
+
return await this.client.setChatPhoto(chatId, photo, params);
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* Context-aware alias for {@link Client.setChatStickerSet}.
|
|
1203
|
+
*/
|
|
1204
|
+
async setChatStickerSet(setName) {
|
|
1205
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1206
|
+
return await this.client.setChatStickerSet(chatId, setName);
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Context-aware alias for {@link Client.setChatTitle}.
|
|
1210
|
+
*/
|
|
1211
|
+
async setChatTitle(title) {
|
|
1212
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1213
|
+
return await this.client.setChatTitle(chatId, title);
|
|
1214
|
+
}
|
|
1215
|
+
/**
|
|
1216
|
+
* Context-aware alias for {@link Client.setDiscussionChat}.
|
|
1217
|
+
*/
|
|
1218
|
+
async setDiscussionChat(discussionChatId) {
|
|
1219
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1220
|
+
return await this.client.setDiscussionChat(chatId, discussionChatId);
|
|
1221
|
+
}
|
|
1222
|
+
/**
|
|
1223
|
+
* Context-aware alias for {@link Client.setChatMemberTag}.
|
|
1224
|
+
*/
|
|
1225
|
+
async setMemberTag(params) {
|
|
1226
|
+
const { chatId, userId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1227
|
+
if (!userId) {
|
|
1228
|
+
(0, _0_deps_js_1.unreachable)();
|
|
1229
|
+
}
|
|
1230
|
+
return await this.client.setChatMemberTag(chatId, userId, params);
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Context-aware alias for {@link Client.setMessageTtl}.
|
|
1234
|
+
*/
|
|
1235
|
+
async setMessageTtl(messageTtl) {
|
|
1236
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1237
|
+
return await this.client.setMessageTtl(chatId, messageTtl);
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* Context-aware alias for {@link Client.setReactions}.
|
|
1241
|
+
*/
|
|
1242
|
+
async setReactions(messageId, reactions, params) {
|
|
1243
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1244
|
+
return await this.client.setReactions(chatId, messageId, reactions, params);
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Context-aware alias for {@link Client.setChatMemberRights}.
|
|
1248
|
+
*/
|
|
1249
|
+
async setSenderRights(params) {
|
|
1250
|
+
const { chatId, senderId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1251
|
+
if (!senderId) {
|
|
1252
|
+
(0, _0_deps_js_1.unreachable)();
|
|
1253
|
+
}
|
|
1254
|
+
return await this.client.setChatMemberRights(chatId, senderId, params);
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Context-aware alias for {@link Client.setSlowMode}.
|
|
1258
|
+
*/
|
|
1259
|
+
async setSlowMode(duration) {
|
|
1260
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1261
|
+
return await this.client.setSlowMode(chatId, duration);
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* Context-aware alias for {@link Client.showGeneralTopic}.
|
|
1265
|
+
*/
|
|
1266
|
+
async showGeneralTopic() {
|
|
1267
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1268
|
+
return await this.client.showGeneralTopic(chatId);
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Context-aware alias for {@link Client.showMemberList}.
|
|
1272
|
+
*/
|
|
1273
|
+
async showMemberList() {
|
|
1274
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1275
|
+
return await this.client.showMemberList(chatId);
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
* Context-aware alias for {@link Client.startVideoChat}.
|
|
1279
|
+
*/
|
|
1280
|
+
async startVideoChat(params) {
|
|
1281
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1282
|
+
return await this.client.startVideoChat(chatId, params);
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* Context-aware alias for {@link Client.stopPoll}.
|
|
1286
|
+
*/
|
|
1287
|
+
async stopPoll(messageId, params) {
|
|
1288
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1289
|
+
return await this.client.stopPoll(chatId, messageId, params);
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Context-aware alias for {@link Client.transcribeVoice}.
|
|
1293
|
+
*/
|
|
1294
|
+
async transcribeVoice(messageId) {
|
|
1295
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1296
|
+
return await this.client.transcribeVoice(chatId, messageId);
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* Context-aware alias for {@link Client.transferChatOwnership}.
|
|
1300
|
+
*/
|
|
1301
|
+
async transferOwnership(userId, password) {
|
|
1302
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1303
|
+
return await this.client.transferChatOwnership(chatId, userId, password);
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Context-aware alias for {@link Client.unarchiveChat}.
|
|
1307
|
+
*/
|
|
1308
|
+
async unarchive() {
|
|
1309
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1310
|
+
return await this.client.unarchiveChat(chatId);
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Context-aware alias for {@link Client.unbanChatMember}.
|
|
1314
|
+
*/
|
|
1315
|
+
async unbanChatMember(memberId) {
|
|
1316
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1317
|
+
return await this.client.unbanChatMember(chatId, memberId);
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Context-aware alias for {@link Client.unblockUser}.
|
|
1321
|
+
*/
|
|
1322
|
+
async unblockUser() {
|
|
1323
|
+
return await this.client.unblockUser(__classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetUserId).call(this));
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Context-aware alias for {@link Client.uncheckChecklistItem}.
|
|
1327
|
+
*/
|
|
1328
|
+
async uncheckChecklistItem(messageId, item) {
|
|
1329
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1330
|
+
return await this.client.uncheckChecklistItem(chatId, messageId, item);
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Context-aware alias for {@link Client.uncheckChecklistItems}.
|
|
1334
|
+
*/
|
|
1335
|
+
async uncheckChecklistItems(messageId, items) {
|
|
1336
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1337
|
+
return await this.client.uncheckChecklistItems(chatId, messageId, items);
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Context-aware alias for {@link Client.unpinMessage}.
|
|
1341
|
+
*/
|
|
1342
|
+
async unpin() {
|
|
1343
|
+
const { chatId, messageId, businessConnectionId } = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetMsg).call(this);
|
|
1344
|
+
return await this.client.unpinMessage(chatId, messageId, { businessConnectionId });
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* Context-aware alias for {@link Client.unpinMessage}.
|
|
1348
|
+
*/
|
|
1349
|
+
async unpinMessage(messageId) {
|
|
1350
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1351
|
+
return await this.client.unpinMessage(chatId, messageId);
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Context-aware alias for {@link Client.unpinMessages}.
|
|
1355
|
+
*/
|
|
1356
|
+
async unpinMessages() {
|
|
1357
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1358
|
+
return await this.client.unpinMessages(chatId);
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* Context-aware alias for {@link Client.unpinTopic}.
|
|
1362
|
+
*/
|
|
1363
|
+
async unpinTopic(topicId) {
|
|
1364
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1365
|
+
return await this.client.unpinTopic(chatId, topicId);
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* Context-aware alias for {@link Client.updateChecklist}.
|
|
1369
|
+
*/
|
|
1370
|
+
async updateChecklist(messageId, params) {
|
|
1371
|
+
const chatId = __classPrivateFieldGet(this, _Context_instances, "m", _Context_mustGetChatId).call(this);
|
|
1372
|
+
return await this.client.updateChecklist(chatId, messageId, params);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
exports.Context = Context;
|
|
1376
|
+
_Context_client = new WeakMap(), _Context_me = new WeakMap(), _Context_update = new WeakMap(), _Context_getReplyTo = new WeakMap(), _Context_instances = new WeakSet(), _Context_mustGetMsg = function _Context_mustGetMsg() {
|
|
1377
|
+
if (this.msg !== undefined) {
|
|
1378
|
+
return { chatId: this.msg.chat.id, messageId: this.msg.id, businessConnectionId: this.msg.businessConnectionId, senderId: this.msg.from?.id, userId: this.msg.from?.id };
|
|
1379
|
+
}
|
|
1380
|
+
const reactions = "messageInteractions" in this.update ? this.update.messageInteractions : undefined;
|
|
1381
|
+
if (reactions !== undefined) {
|
|
1382
|
+
return { chatId: reactions.chatId, messageId: reactions.messageId };
|
|
1383
|
+
}
|
|
1384
|
+
else {
|
|
1385
|
+
(0, _0_deps_js_1.unreachable)();
|
|
1386
|
+
}
|
|
1387
|
+
}, _Context_mustGetChatId = function _Context_mustGetChatId() {
|
|
1388
|
+
if (this.chat) {
|
|
1389
|
+
return this.chat.id;
|
|
1390
|
+
}
|
|
1391
|
+
else {
|
|
1392
|
+
(0, _0_deps_js_1.unreachable)();
|
|
1393
|
+
}
|
|
1394
|
+
}, _Context_mustGetUserId = function _Context_mustGetUserId() {
|
|
1395
|
+
if (this.msg?.from) {
|
|
1396
|
+
return this.msg.from.id;
|
|
1397
|
+
}
|
|
1398
|
+
else if ("callbackQuery" in this.update) {
|
|
1399
|
+
return this.update.callbackQuery.from.id;
|
|
1400
|
+
}
|
|
1401
|
+
else if ("chosenInlineResult" in this.update) {
|
|
1402
|
+
return this.update.chosenInlineResult.from.id;
|
|
1403
|
+
}
|
|
1404
|
+
else {
|
|
1405
|
+
(0, _0_deps_js_1.unreachable)();
|
|
1406
|
+
}
|
|
1407
|
+
}, _Context_mustGetInlineMsgId = function _Context_mustGetInlineMsgId() {
|
|
1408
|
+
if ("chosenInlineResult" in this.update) {
|
|
1409
|
+
if (this.update.chosenInlineResult.inlineMessageId) {
|
|
1410
|
+
return this.update.chosenInlineResult.inlineMessageId;
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
else if ("callbackQuery" in this.update) {
|
|
1414
|
+
if (this.update.callbackQuery.inlineMessageId) {
|
|
1415
|
+
return this.update.callbackQuery.inlineMessageId;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
(0, _0_deps_js_1.unreachable)();
|
|
1419
|
+
};
|
|
1420
|
+
Object.defineProperty(Context, "has", {
|
|
1421
|
+
enumerable: true,
|
|
1422
|
+
configurable: true,
|
|
1423
|
+
writable: true,
|
|
1424
|
+
value: staticHas
|
|
1425
|
+
});
|