@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
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
export declare class TLError extends Error {
|
|
21
|
-
}
|
|
22
|
-
export declare class TLRawReader {
|
|
23
|
-
protected _buffer: Uint8Array;
|
|
24
|
-
constructor(_buffer: Uint8Array);
|
|
25
|
-
get buffer(): Uint8Array;
|
|
26
|
-
read(count: number): Uint8Array;
|
|
27
|
-
readInt24(signed?: boolean): number;
|
|
28
|
-
readInt32(signed?: boolean): number;
|
|
29
|
-
readInt64(signed?: boolean): bigint;
|
|
30
|
-
readDouble(): number;
|
|
31
|
-
readInt128(signed?: boolean): bigint;
|
|
32
|
-
readInt256(signed?: boolean): bigint;
|
|
33
|
-
readBytes(): Uint8Array;
|
|
34
|
-
readString(): string;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=0_tl_raw_reader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"0_tl_raw_reader.d.ts","sourceRoot":"","sources":["../../src/tl/0_tl_raw_reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,qBAAa,OAAQ,SAAQ,KAAK;CAEjC;AAED,qBAAa,WAAW;IACV,SAAS,CAAC,OAAO,EAAE,UAAU;gBAAnB,OAAO,EAAE,UAAU;IAGzC,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU;IAS/B,SAAS,CAAC,MAAM,UAAO,GAAG,MAAM;IAKhC,SAAS,CAAC,MAAM,UAAO,GAAG,MAAM;IAKhC,SAAS,CAAC,MAAM,UAAO,GAAG,MAAM;IAKhC,UAAU,IAAI,MAAM;IAKpB,UAAU,CAAC,MAAM,UAAO,GAAG,MAAM;IAKjC,UAAU,CAAC,MAAM,UAAO,GAAG,MAAM;IAKjC,SAAS,IAAI,UAAU;IAiBvB,UAAU,IAAI,MAAM;CAGrB"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { bigIntFromBuffer } from "../1_utilities.js";
|
|
21
|
-
export class TLError extends Error {
|
|
22
|
-
}
|
|
23
|
-
export class TLRawReader {
|
|
24
|
-
constructor(_buffer) {
|
|
25
|
-
Object.defineProperty(this, "_buffer", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
value: _buffer
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
get buffer() {
|
|
33
|
-
return this._buffer;
|
|
34
|
-
}
|
|
35
|
-
read(count) {
|
|
36
|
-
if (this._buffer.length < count) {
|
|
37
|
-
throw new TLError("No data remaining");
|
|
38
|
-
}
|
|
39
|
-
const buffer = this._buffer.slice(0, count);
|
|
40
|
-
this._buffer = this._buffer.subarray(count);
|
|
41
|
-
return buffer;
|
|
42
|
-
}
|
|
43
|
-
readInt24(signed = true) {
|
|
44
|
-
const buffer = this.read(24 / 8);
|
|
45
|
-
return Number(bigIntFromBuffer(buffer, true, signed));
|
|
46
|
-
}
|
|
47
|
-
readInt32(signed = true) {
|
|
48
|
-
const buffer = this.read(32 / 8);
|
|
49
|
-
return Number(bigIntFromBuffer(buffer, true, signed));
|
|
50
|
-
}
|
|
51
|
-
readInt64(signed = true) {
|
|
52
|
-
const buffer = this.read(64 / 8);
|
|
53
|
-
return bigIntFromBuffer(buffer, true, signed);
|
|
54
|
-
}
|
|
55
|
-
readDouble() {
|
|
56
|
-
const buffer = this.read(8);
|
|
57
|
-
return new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength).getFloat64(0, true);
|
|
58
|
-
}
|
|
59
|
-
readInt128(signed = true) {
|
|
60
|
-
const buffer = this.read(128 / 8);
|
|
61
|
-
return bigIntFromBuffer(buffer, true, signed);
|
|
62
|
-
}
|
|
63
|
-
readInt256(signed = true) {
|
|
64
|
-
const buffer = this.read(256 / 8);
|
|
65
|
-
return bigIntFromBuffer(buffer, true, signed);
|
|
66
|
-
}
|
|
67
|
-
readBytes() {
|
|
68
|
-
let L = this.read(1)[0];
|
|
69
|
-
let padding;
|
|
70
|
-
if (L > 253) {
|
|
71
|
-
L = this.readInt24();
|
|
72
|
-
padding = L % 4;
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
padding = (L + 1) % 4;
|
|
76
|
-
}
|
|
77
|
-
const bytes = this.read(L);
|
|
78
|
-
if (padding > 0) {
|
|
79
|
-
padding = 4 - padding;
|
|
80
|
-
this.read(padding);
|
|
81
|
-
}
|
|
82
|
-
return bytes;
|
|
83
|
-
}
|
|
84
|
-
readString() {
|
|
85
|
-
return new TextDecoder().decode(this.readBytes());
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
export declare class TLRawWriter {
|
|
21
|
-
protected _buffer: Uint8Array;
|
|
22
|
-
constructor();
|
|
23
|
-
get buffer(): Uint8Array;
|
|
24
|
-
write(buffer: Uint8Array): typeof this;
|
|
25
|
-
writeInt24(int: number, signed?: boolean): typeof this;
|
|
26
|
-
writeInt32(int: number, signed?: boolean): typeof this;
|
|
27
|
-
writeInt64(int: bigint, signed?: boolean): typeof this;
|
|
28
|
-
writeDouble(double: number): typeof this;
|
|
29
|
-
writeInt128(int: bigint, signed?: boolean): typeof this;
|
|
30
|
-
writeInt256(int: bigint, signed?: boolean): typeof this;
|
|
31
|
-
writeBytes(bytes: Uint8Array): typeof this;
|
|
32
|
-
writeString(string: string): typeof this;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=0_tl_raw_writer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"0_tl_raw_writer.d.ts","sourceRoot":"","sources":["../../src/tl/0_tl_raw_writer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,qBAAa,WAAW;IACtB,SAAS,CAAC,OAAO,EAAE,UAAU,CAAoB;;IAKjD,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,KAAK,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,IAAI;IAKtC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,OAAO,IAAI;IAKnD,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,OAAO,IAAI;IAKnD,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,OAAO,IAAI;IAKnD,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,IAAI;IAOxC,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,OAAO,IAAI;IAKpD,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,OAAO,IAAI;IAKpD,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,IAAI;IAkB1C,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,IAAI;CAIzC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { concat } from "../0_deps.js";
|
|
21
|
-
import { bufferFromBigInt } from "../1_utilities.js";
|
|
22
|
-
export class TLRawWriter {
|
|
23
|
-
constructor() {
|
|
24
|
-
Object.defineProperty(this, "_buffer", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
configurable: true,
|
|
27
|
-
writable: true,
|
|
28
|
-
value: new Uint8Array()
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
get buffer() {
|
|
32
|
-
return this._buffer;
|
|
33
|
-
}
|
|
34
|
-
write(buffer) {
|
|
35
|
-
this._buffer = concat([this._buffer, buffer]);
|
|
36
|
-
return this;
|
|
37
|
-
}
|
|
38
|
-
writeInt24(int, signed = true) {
|
|
39
|
-
this.write(bufferFromBigInt(int, 24 / 8, true, signed));
|
|
40
|
-
return this;
|
|
41
|
-
}
|
|
42
|
-
writeInt32(int, signed = true) {
|
|
43
|
-
this.write(bufferFromBigInt(int, 32 / 8, true, signed));
|
|
44
|
-
return this;
|
|
45
|
-
}
|
|
46
|
-
writeInt64(int, signed = true) {
|
|
47
|
-
this.write(bufferFromBigInt(int, 64 / 8, true, signed));
|
|
48
|
-
return this;
|
|
49
|
-
}
|
|
50
|
-
writeDouble(double) {
|
|
51
|
-
const buffer = new Uint8Array(8);
|
|
52
|
-
new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength).setFloat64(0, double, true);
|
|
53
|
-
this.write(buffer);
|
|
54
|
-
return this;
|
|
55
|
-
}
|
|
56
|
-
writeInt128(int, signed = true) {
|
|
57
|
-
this.write(bufferFromBigInt(int, 128 / 8, true, signed));
|
|
58
|
-
return this;
|
|
59
|
-
}
|
|
60
|
-
writeInt256(int, signed = true) {
|
|
61
|
-
this.write(bufferFromBigInt(int, 256 / 8, true, signed));
|
|
62
|
-
return this;
|
|
63
|
-
}
|
|
64
|
-
writeBytes(bytes) {
|
|
65
|
-
let padding;
|
|
66
|
-
if (bytes.length > 253) {
|
|
67
|
-
this.write(new Uint8Array([254]));
|
|
68
|
-
this.writeInt24(bytes.length);
|
|
69
|
-
padding = bytes.length % 4;
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
this.write(new Uint8Array([bytes.length]));
|
|
73
|
-
padding = (bytes.length + 1) % 4;
|
|
74
|
-
}
|
|
75
|
-
this.write(bytes);
|
|
76
|
-
if (padding > 0) {
|
|
77
|
-
padding = 4 - padding;
|
|
78
|
-
this.write(new Uint8Array(padding));
|
|
79
|
-
}
|
|
80
|
-
return this;
|
|
81
|
-
}
|
|
82
|
-
writeString(string) {
|
|
83
|
-
this.writeBytes(new TextEncoder().encode(string));
|
|
84
|
-
return this;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { TLRawReader } from "./0_tl_raw_reader.js";
|
|
21
|
-
import { AnyType } from "./0_api.js";
|
|
22
|
-
export declare function deserialize(reader: TLRawReader, paramDesc: [string, unknown, string][], name: string): AnyType;
|
|
23
|
-
//# sourceMappingURL=2_deserialize.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"2_deserialize.d.ts","sourceRoot":"","sources":["../../src/tl/2_deserialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,OAAO,EAA+B,MAAM,YAAY,CAAC;AA+ClE,wBAAgB,WAAW,CACzB,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,EACtC,IAAI,EAAE,MAAM,GACX,OAAO,CAqCT"}
|
package/esm/tl/2_deserialize.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
// deno-lint-ignore-file no-explicit-any
|
|
21
|
-
import { assertEquals } from "../0_deps.js";
|
|
22
|
-
import { analyzeOptionalParam, isOptionalParam } from "./1_utilities.js";
|
|
23
|
-
import { flags, getType, getTypeName } from "./0_api.js";
|
|
24
|
-
function deserializeSingleParam(reader, type, ntype) {
|
|
25
|
-
if (type == Uint8Array) {
|
|
26
|
-
return reader.readBytes();
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
switch (type) {
|
|
30
|
-
case "bigint":
|
|
31
|
-
if (ntype == "int128") {
|
|
32
|
-
return reader.readInt128();
|
|
33
|
-
}
|
|
34
|
-
else if (ntype === "int256") {
|
|
35
|
-
return reader.readInt256();
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return reader.readInt64();
|
|
39
|
-
}
|
|
40
|
-
case "boolean":
|
|
41
|
-
return reader.readInt32(false) == 0x997275B5;
|
|
42
|
-
case "number":
|
|
43
|
-
if (ntype == "double") {
|
|
44
|
-
return reader.readDouble();
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return reader.readInt32();
|
|
48
|
-
}
|
|
49
|
-
case "string":
|
|
50
|
-
return reader.readString();
|
|
51
|
-
case "true":
|
|
52
|
-
return true;
|
|
53
|
-
default: {
|
|
54
|
-
const cid = reader.readInt32(false);
|
|
55
|
-
const name = getTypeName(cid);
|
|
56
|
-
if (!name) {
|
|
57
|
-
throw new Error(`Constructor with ID 0x${cid.toString(16).toUpperCase()} not found`);
|
|
58
|
-
}
|
|
59
|
-
return deserialize(reader, getType(name)[1], name);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export function deserialize(reader, paramDesc, name) {
|
|
65
|
-
const type_ = { _: name };
|
|
66
|
-
const flagFields = {};
|
|
67
|
-
for (const [name, type, ntype] of paramDesc) {
|
|
68
|
-
if (isOptionalParam(ntype)) {
|
|
69
|
-
const { flagField, bitIndex } = analyzeOptionalParam(ntype);
|
|
70
|
-
const bits = flagFields[flagField];
|
|
71
|
-
if ((bits & (1 << bitIndex)) == 0) {
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
if (type == flags && ntype == "#") {
|
|
76
|
-
flagFields[name] = reader.readInt32();
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
if (type instanceof Array) {
|
|
80
|
-
assertEquals(reader.readInt32(false), 0x1CB5C415);
|
|
81
|
-
const count = reader.readInt32();
|
|
82
|
-
const items = new Array();
|
|
83
|
-
for (let i = 0; i < count; i++) {
|
|
84
|
-
items.push(deserializeSingleParam(reader, type[0], ntype));
|
|
85
|
-
}
|
|
86
|
-
type_[name] = items;
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
const value = deserializeSingleParam(reader, type, ntype);
|
|
90
|
-
if (typeof value !== "boolean" || value) {
|
|
91
|
-
type_[name] = value;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return type_;
|
|
95
|
-
}
|
package/esm/tl/2_serialize.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { AnyObject } from "./0_api.js";
|
|
21
|
-
export declare function serialize(type_: AnyObject): Uint8Array;
|
|
22
|
-
//# sourceMappingURL=2_serialize.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"2_serialize.d.ts","sourceRoot":"","sources":["../../src/tl/2_serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAkB,MAAM,YAAY,CAAC;AA2FvD,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,CA0DtD"}
|
package/esm/tl/2_serialize.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
// deno-lint-ignore-file no-explicit-any
|
|
21
|
-
import { flags, getType } from "./0_api.js";
|
|
22
|
-
import { TLRawWriter } from "./0_tl_raw_writer.js";
|
|
23
|
-
import { analyzeOptionalParam, assertIsValidType, isOptionalParam } from "./1_utilities.js";
|
|
24
|
-
function serializeSingleParam(writer, value, type, ntype, debugInfo) {
|
|
25
|
-
const valueRepr = value == null ? null : (typeof value === "object" && "_" in value) ? value._ : value.constructor.name;
|
|
26
|
-
if (type == Uint8Array) {
|
|
27
|
-
if ((value instanceof Uint8Array)) {
|
|
28
|
-
writer.writeBytes(value);
|
|
29
|
-
return writer.buffer;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
throw new TypeError(`Expected Uint8Array but received ${valueRepr} ${debugInfo}`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
switch (type) {
|
|
36
|
-
case "bigint":
|
|
37
|
-
if (typeof value === "bigint") {
|
|
38
|
-
if (ntype == "int128") {
|
|
39
|
-
writer.writeInt128(value);
|
|
40
|
-
}
|
|
41
|
-
else if (ntype === "int256") {
|
|
42
|
-
writer.writeInt256(value);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
writer.writeInt64(value);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
throw new TypeError(`Expected bigint but received ${valueRepr} ${debugInfo}`);
|
|
50
|
-
}
|
|
51
|
-
break;
|
|
52
|
-
case "boolean":
|
|
53
|
-
if (typeof value === "boolean") {
|
|
54
|
-
if (value) {
|
|
55
|
-
writer.writeInt32(0x997275B5);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
writer.writeInt32(0xBC799737);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
throw new TypeError(`Expected boolean but received ${valueRepr} ${debugInfo}`);
|
|
63
|
-
}
|
|
64
|
-
break;
|
|
65
|
-
case "number":
|
|
66
|
-
//
|
|
67
|
-
if (value == null) {
|
|
68
|
-
value = 0;
|
|
69
|
-
}
|
|
70
|
-
//
|
|
71
|
-
if (typeof value === "number") {
|
|
72
|
-
if (ntype == "double") {
|
|
73
|
-
writer.writeDouble(value);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
writer.writeInt32(value);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
throw new TypeError(`Expected number but received ${valueRepr} ${debugInfo}`);
|
|
81
|
-
}
|
|
82
|
-
break;
|
|
83
|
-
case "string":
|
|
84
|
-
if (typeof value === "string") {
|
|
85
|
-
writer.writeString(value);
|
|
86
|
-
}
|
|
87
|
-
else if (value instanceof Uint8Array) {
|
|
88
|
-
writer.writeBytes(value);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
writer.writeString("");
|
|
92
|
-
}
|
|
93
|
-
// else {
|
|
94
|
-
// throw new TypeError(`Expected string or Uint8Array but received ${valueRepr}`);
|
|
95
|
-
// }
|
|
96
|
-
break;
|
|
97
|
-
case "true":
|
|
98
|
-
if (value !== true) {
|
|
99
|
-
throw new TypeError(`Expected true but received ${valueRepr} ${debugInfo}`);
|
|
100
|
-
}
|
|
101
|
-
break;
|
|
102
|
-
default:
|
|
103
|
-
// null = !X (generic)
|
|
104
|
-
if (type != null && typeof type !== "string") {
|
|
105
|
-
throw new TypeError(`Unexpected type: ${type} ${debugInfo}`);
|
|
106
|
-
}
|
|
107
|
-
writer.write(serialize(value));
|
|
108
|
-
}
|
|
109
|
-
return writer.buffer;
|
|
110
|
-
}
|
|
111
|
-
export function serialize(type_) {
|
|
112
|
-
assertIsValidType(type_);
|
|
113
|
-
const maybeParameters = getType(type_._);
|
|
114
|
-
if (!maybeParameters) {
|
|
115
|
-
throw new Error(`Unknown type: ${type_._}`);
|
|
116
|
-
}
|
|
117
|
-
const type__ = type_;
|
|
118
|
-
const writer = new TLRawWriter();
|
|
119
|
-
const [id, parameters_] = maybeParameters;
|
|
120
|
-
writer.writeInt32(id, false);
|
|
121
|
-
for (const [i, [name, type, ntype]] of parameters_.entries()) {
|
|
122
|
-
if (isOptionalParam(ntype) && type__[name] === undefined) {
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
const debugInfo = `[0x${id.toString(16).toUpperCase()}::${i}]`;
|
|
126
|
-
if (type == flags) {
|
|
127
|
-
let flags = 0;
|
|
128
|
-
const flagField_ = name;
|
|
129
|
-
for (const [name, _, ntype] of parameters_) {
|
|
130
|
-
if (isOptionalParam(ntype)) {
|
|
131
|
-
const { flagField, bitIndex } = analyzeOptionalParam(ntype);
|
|
132
|
-
if (flagField == flagField_) {
|
|
133
|
-
if (type__[name] !== undefined) {
|
|
134
|
-
flags |= 1 << bitIndex;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
writer.writeInt32(flags);
|
|
140
|
-
continue;
|
|
141
|
-
}
|
|
142
|
-
if (type__[name] === undefined && !isOptionalParam(ntype)) {
|
|
143
|
-
throw new Error(`Missing required parameter: ${name}`);
|
|
144
|
-
}
|
|
145
|
-
if (type instanceof Array) {
|
|
146
|
-
const itemsType = type[0];
|
|
147
|
-
if (!Array.isArray(type__[name])) {
|
|
148
|
-
throw new TypeError("Expected array");
|
|
149
|
-
}
|
|
150
|
-
writer.writeInt32(0x1CB5C415); // vector constructor
|
|
151
|
-
writer.writeInt32(type__[name].length);
|
|
152
|
-
for (const item of type__[name]) {
|
|
153
|
-
serializeSingleParam(writer, item, itemsType, ntype, debugInfo);
|
|
154
|
-
}
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
serializeSingleParam(writer, type__[name], type, ntype, debugInfo);
|
|
158
|
-
}
|
|
159
|
-
return writer.buffer;
|
|
160
|
-
}
|
package/esm/tl/3_tl_reader.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { TLRawReader } from "./0_tl_raw_reader.js";
|
|
21
|
-
import { AnyObject } from "./0_api.js";
|
|
22
|
-
export type ReadObject = boolean | AnyObject | Array<ReadObject>;
|
|
23
|
-
export declare class TLReader extends TLRawReader {
|
|
24
|
-
readObject(id?: number): ReadObject;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=3_tl_reader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"3_tl_reader.d.ts","sourceRoot":"","sources":["../../src/tl/3_tl_reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAW,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAwB,MAAM,YAAY,CAAC;AAG7D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;AAEjE,qBAAa,QAAS,SAAQ,WAAW;IACvC,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU;CAsBpC"}
|
package/esm/tl/3_tl_reader.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
// deno-lint-ignore-file no-explicit-any
|
|
21
|
-
import { TLError, TLRawReader } from "./0_tl_raw_reader.js";
|
|
22
|
-
import { getType, getTypeName } from "./0_api.js";
|
|
23
|
-
import { deserialize } from "./2_deserialize.js";
|
|
24
|
-
export class TLReader extends TLRawReader {
|
|
25
|
-
readObject(id) {
|
|
26
|
-
if (!id) {
|
|
27
|
-
id = this.readInt32(false);
|
|
28
|
-
}
|
|
29
|
-
if (id == 0x1CB5C415) {
|
|
30
|
-
const count = this.readInt32();
|
|
31
|
-
const items = new Array();
|
|
32
|
-
for (let i = 0; i < count; i++) {
|
|
33
|
-
items.push(this.readObject());
|
|
34
|
-
}
|
|
35
|
-
return items;
|
|
36
|
-
}
|
|
37
|
-
else if (id == 0x997275b5) {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
else if (id == 0xbc799737) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
const constructor = getTypeName(id);
|
|
44
|
-
if (constructor) {
|
|
45
|
-
return deserialize(this, getType(constructor)[1], constructor);
|
|
46
|
-
}
|
|
47
|
-
throw new TLError(`Unknown constructor ${id.toString(16)}`);
|
|
48
|
-
}
|
|
49
|
-
}
|
package/esm/tl/3_utilities.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import * as Api from "./0_api.js";
|
|
21
|
-
export declare function getChannelChatId(channelId: bigint): number;
|
|
22
|
-
export type AnyEntity = Api.user | Api.channel | Api.channelForbidden | Api.chat | Api.chatForbidden;
|
|
23
|
-
export declare function peerToChatId(peer: Api.Peer | Api.InputPeer | AnyEntity | Api.channelFull | Api.UserFull | Api.chatFull | {
|
|
24
|
-
channel_id: bigint;
|
|
25
|
-
} | {
|
|
26
|
-
user_id: bigint;
|
|
27
|
-
} | {
|
|
28
|
-
chat_id: bigint;
|
|
29
|
-
}): number;
|
|
30
|
-
export declare function chatIdToPeer(chatId: number): Api.Peer;
|
|
31
|
-
export declare function chatIdToPeerId(chatId: number): bigint;
|
|
32
|
-
export declare function getChatIdPeerType(chatId: number): "user" | "chat" | "channel";
|
|
33
|
-
export declare function inputPeerToPeer(inputPeer: Api.InputPeer): Api.Peer;
|
|
34
|
-
//# sourceMappingURL=3_utilities.d.ts.map
|