@mtkruto/node 0.68.0 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/0_deps.d.ts +14 -12
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +16 -14
- package/esm/3_types.d.ts +36 -33
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +36 -33
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.d.ts.map +1 -1
- package/esm/4_errors.d.ts +2 -2
- package/esm/4_errors.d.ts.map +1 -1
- package/esm/_dnt.polyfills.d.ts +7 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +109 -0
- 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 +49 -0
- package/esm/client/0_client_abstract.d.ts +3 -3
- package/esm/client/0_client_abstract.d.ts.map +1 -1
- package/esm/client/0_filters.d.ts +10 -4
- package/esm/client/0_filters.d.ts.map +1 -1
- package/esm/client/0_filters.js +6 -3
- package/esm/client/0_html.d.ts +1 -1
- package/esm/client/0_html.d.ts.map +1 -1
- package/esm/client/0_html.js +1 -1
- package/esm/client/0_markdown.d.ts +1 -1
- package/esm/client/0_markdown.d.ts.map +1 -1
- package/esm/client/0_markdown.js +8 -8
- package/esm/client/0_params.d.ts +42 -8
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_password.d.ts +2 -2
- package/esm/client/0_password.d.ts.map +1 -1
- package/esm/client/0_password.js +1 -1
- package/esm/client/0_storage_operations.d.ts +55 -73
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +254 -251
- package/esm/client/0_update_processor.d.ts +4 -4
- package/esm/client/0_update_processor.d.ts.map +1 -1
- package/esm/client/0_utilities.d.ts +2 -2
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/0_utilities.js +8 -8
- package/esm/client/1_client_plain.d.ts +3 -3
- package/esm/client/1_client_plain.d.ts.map +1 -1
- package/esm/client/1_client_plain.js +2 -2
- package/esm/client/1_composer.d.ts +3 -3
- package/esm/client/1_composer.d.ts.map +1 -1
- package/esm/client/1_composer.js +7 -7
- package/esm/client/1_types.d.ts +5 -5
- package/esm/client/1_types.d.ts.map +1 -1
- package/esm/client/2_account_manager.d.ts +3 -3
- package/esm/client/2_account_manager.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +7 -7
- package/esm/client/2_bot_info_manager.d.ts +3 -3
- package/esm/client/2_bot_info_manager.d.ts.map +1 -1
- package/esm/client/2_business_connection_manager.d.ts +4 -4
- package/esm/client/2_business_connection_manager.d.ts.map +1 -1
- package/esm/client/2_business_connection_manager.js +3 -3
- package/esm/client/2_client_encrypted.d.ts +3 -3
- package/esm/client/2_client_encrypted.d.ts.map +1 -1
- package/esm/client/2_file_manager.d.ts +3 -3
- package/esm/client/2_file_manager.d.ts.map +1 -1
- package/esm/client/2_file_manager.js +45 -31
- package/esm/client/2_network_statistics_manager.d.ts +1 -1
- package/esm/client/2_network_statistics_manager.d.ts.map +1 -1
- package/esm/client/2_payment_manager.d.ts +5 -5
- package/esm/client/2_payment_manager.d.ts.map +1 -1
- package/esm/client/2_payment_manager.js +2 -2
- package/esm/client/2_reaction_manager.d.ts +4 -4
- package/esm/client/2_reaction_manager.d.ts.map +1 -1
- package/esm/client/2_reaction_manager.js +2 -2
- package/esm/client/2_translations_manager.d.ts +5 -5
- package/esm/client/2_translations_manager.d.ts.map +1 -1
- package/esm/client/2_translations_manager.js +20 -16
- package/esm/client/2_update_manager.d.ts +6 -4
- package/esm/client/2_update_manager.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +76 -94
- package/esm/client/3_client_encrypted_pool.d.ts +1 -1
- package/esm/client/3_client_encrypted_pool.d.ts.map +1 -1
- package/esm/client/3_message_manager.d.ts +12 -9
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +166 -45
- package/esm/client/3_video_chat_manager.d.ts +6 -6
- package/esm/client/3_video_chat_manager.d.ts.map +1 -1
- package/esm/client/3_video_chat_manager.js +7 -7
- package/esm/client/4_callback_query_manager.d.ts +6 -6
- package/esm/client/4_callback_query_manager.d.ts.map +1 -1
- package/esm/client/4_callback_query_manager.js +3 -3
- package/esm/client/4_chat_list_manager.d.ts +8 -9
- package/esm/client/4_chat_list_manager.d.ts.map +1 -1
- package/esm/client/4_chat_list_manager.js +18 -273
- package/esm/client/4_chat_manager.d.ts +9 -9
- package/esm/client/4_chat_manager.d.ts.map +1 -1
- package/esm/client/4_chat_manager.js +11 -11
- package/esm/client/4_forum_manager.d.ts +4 -4
- package/esm/client/4_forum_manager.d.ts.map +1 -1
- package/esm/client/4_gift_manager.d.ts +4 -4
- package/esm/client/4_gift_manager.d.ts.map +1 -1
- package/esm/client/4_gift_manager.js +4 -4
- package/esm/client/4_inline_query_manager.d.ts +6 -6
- package/esm/client/4_inline_query_manager.d.ts.map +1 -1
- package/esm/client/4_inline_query_manager.js +4 -4
- package/esm/client/4_link_preview_manager.d.ts +6 -6
- package/esm/client/4_link_preview_manager.d.ts.map +1 -1
- package/esm/client/4_link_preview_manager.js +3 -3
- package/esm/client/4_poll_manager.d.ts +5 -5
- package/esm/client/4_poll_manager.d.ts.map +1 -1
- package/esm/client/4_poll_manager.js +2 -2
- package/esm/client/4_story_manager.d.ts +8 -8
- package/esm/client/4_story_manager.d.ts.map +1 -1
- package/esm/client/4_story_manager.js +9 -9
- package/esm/client/5_client.d.ts +41 -23
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +476 -411
- package/esm/connection/0_connection.d.ts +1 -1
- package/esm/connection/0_connection.d.ts.map +1 -1
- package/esm/connection/1_connection_tcp.node.d.ts +1 -1
- package/esm/connection/1_connection_tcp.node.d.ts.map +1 -1
- package/esm/connection/1_connection_tcp.node.js +4 -4
- package/esm/connection/1_connection_web_socket.d.ts +1 -1
- package/esm/connection/1_connection_web_socket.d.ts.map +1 -1
- package/esm/connection/1_connection_web_socket.js +3 -3
- package/esm/deps/jsr.io/@std/assert/1.0.14/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.14/assertion_error.d.ts +26 -0
- package/esm/deps/jsr.io/@std/assert/1.0.14/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.14/assertion_error.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.14/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.14/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.14/unreachable.d.ts +15 -0
- package/esm/deps/jsr.io/@std/assert/1.0.14/unreachable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.14/unreachable.js +20 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/abortable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/deadline.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/debounce.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/delay.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/delay.js +80 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/mux_async_iterator.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/pool.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/retry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.14/tee.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
- package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +69 -0
- package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
- package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +140 -0
- package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
- package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.js +82 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.js +109 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/os.d.ts +3 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/os.js +5 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/basename.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/extname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.11/to_array_buffer.d.ts.map +1 -0
- package/esm/session/1_session.d.ts +2 -2
- package/esm/session/1_session.d.ts.map +1 -1
- package/esm/session/2_session_encrypted.d.ts +3 -3
- package/esm/session/2_session_encrypted.d.ts.map +1 -1
- package/esm/session/2_session_encrypted.js +76 -77
- package/esm/session/2_session_plain.js +1 -1
- package/esm/storage/0_storage.d.ts +2 -1
- package/esm/storage/0_storage.d.ts.map +1 -1
- package/esm/storage/1_utilities.d.ts +14 -11
- package/esm/storage/1_utilities.d.ts.map +1 -1
- package/esm/storage/1_utilities.js +17 -17
- package/esm/storage/2_storage_indexed_db.d.ts +2 -1
- package/esm/storage/2_storage_indexed_db.d.ts.map +1 -1
- package/esm/storage/2_storage_indexed_db.js +6 -3
- package/esm/storage/2_storage_local_storage.node.d.ts +2 -1
- package/esm/storage/2_storage_local_storage.node.d.ts.map +1 -1
- package/esm/storage/2_storage_local_storage.node.js +6 -3
- package/esm/storage/2_storage_memory.d.ts +3 -2
- package/esm/storage/2_storage_memory.d.ts.map +1 -1
- package/esm/storage/2_storage_memory.js +5 -2
- package/esm/storage/2_storage_session_storage.d.ts +3 -2
- package/esm/storage/2_storage_session_storage.d.ts.map +1 -1
- package/esm/storage/2_storage_session_storage.js +6 -3
- package/esm/tl/0_utilities.d.ts +1 -0
- package/esm/tl/0_utilities.d.ts.map +1 -1
- package/esm/tl/0_utilities.js +21 -2
- package/esm/tl/1_telegram_api.d.ts +810 -254
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +912 -213
- package/esm/tl/1_tl_reader.d.ts +3 -3
- package/esm/tl/1_tl_reader.d.ts.map +1 -1
- package/esm/tl/1_tl_reader.js +8 -8
- package/esm/tl/1_tl_writer.d.ts +3 -3
- package/esm/tl/1_tl_writer.d.ts.map +1 -1
- package/esm/tl/1_tl_writer.js +6 -6
- package/esm/tl/1_utilities.d.ts +1 -1
- package/esm/tl/1_utilities.d.ts.map +1 -1
- package/esm/tl/1_utilities.js +2 -2
- package/esm/tl/2_message.js +1 -1
- package/esm/tl/2_mtproto.d.ts +2 -2
- package/esm/tl/2_mtproto.d.ts.map +1 -1
- package/esm/tl/2_telegram.d.ts +1 -1
- package/esm/tl/2_telegram.d.ts.map +1 -1
- package/esm/transport/0_obfuscation.d.ts +1 -1
- package/esm/transport/0_obfuscation.d.ts.map +1 -1
- package/esm/transport/0_obfuscation.js +2 -2
- package/esm/transport/0_transport.d.ts +1 -1
- package/esm/transport/0_transport.d.ts.map +1 -1
- package/esm/transport/1_transport_abridged.d.ts +1 -1
- package/esm/transport/1_transport_abridged.d.ts.map +1 -1
- package/esm/transport/1_transport_intermediate.d.ts +1 -1
- package/esm/transport/1_transport_intermediate.d.ts.map +1 -1
- package/esm/transport/1_transport_provider.d.ts +2 -2
- package/esm/transport/1_transport_provider.d.ts.map +1 -1
- package/esm/transport/2_transport_provider_tcp.d.ts +1 -1
- package/esm/transport/2_transport_provider_tcp.d.ts.map +1 -1
- package/esm/transport/2_transport_provider_web_socket.d.ts +1 -1
- package/esm/transport/2_transport_provider_web_socket.d.ts.map +1 -1
- package/esm/transport/2_transport_provider_web_socket.js +1 -1
- package/esm/types/0_birthday.d.ts +1 -1
- package/esm/types/0_birthday.d.ts.map +1 -1
- package/esm/types/0_callback_query_answer.d.ts +1 -1
- package/esm/types/0_callback_query_answer.d.ts.map +1 -1
- package/esm/types/0_callback_query_question.js +2 -2
- package/esm/types/0_chat_administrator_rights.d.ts +1 -1
- package/esm/types/0_chat_administrator_rights.d.ts.map +1 -1
- package/esm/types/0_chat_member_rights.d.ts +1 -1
- package/esm/types/0_chat_member_rights.d.ts.map +1 -1
- package/esm/types/0_contact.d.ts +1 -1
- package/esm/types/0_contact.d.ts.map +1 -1
- package/esm/types/0_dice.d.ts +1 -1
- package/esm/types/0_dice.d.ts.map +1 -1
- package/esm/types/0_failed_invitation.d.ts +1 -1
- package/esm/types/0_failed_invitation.d.ts.map +1 -1
- package/esm/types/0_file_source.d.ts +1 -1
- package/esm/types/0_file_source.d.ts.map +1 -1
- package/esm/types/0_invoice.d.ts +1 -1
- package/esm/types/0_invoice.d.ts.map +1 -1
- package/esm/types/0_live_stream_channel.d.ts +1 -1
- package/esm/types/0_live_stream_channel.d.ts.map +1 -1
- package/esm/types/0_mask_position.d.ts +1 -1
- package/esm/types/0_mask_position.d.ts.map +1 -1
- package/esm/types/0_mask_position.js +1 -1
- package/esm/types/0_message_search_filter.d.ts +1 -1
- package/esm/types/0_message_search_filter.d.ts.map +1 -1
- package/esm/types/0_opening_hours.d.ts +1 -1
- package/esm/types/0_opening_hours.d.ts.map +1 -1
- package/esm/types/0_reaction.js +5 -5
- package/esm/types/0_refunded_payment.d.ts +1 -1
- package/esm/types/0_refunded_payment.d.ts.map +1 -1
- package/esm/types/0_restriction_reason.d.ts +1 -1
- package/esm/types/0_restriction_reason.d.ts.map +1 -1
- package/esm/types/0_self_destruct_option.js +3 -3
- package/esm/types/0_shipping_address.d.ts +1 -1
- package/esm/types/0_shipping_address.d.ts.map +1 -1
- package/esm/types/0_slow_mode_duration.js +2 -2
- package/esm/types/0_voice.d.ts +1 -1
- package/esm/types/0_voice.d.ts.map +1 -1
- package/esm/types/0_voice_transcription.d.ts +1 -1
- package/esm/types/0_voice_transcription.d.ts.map +1 -1
- package/esm/types/1_animation.d.ts +1 -1
- package/esm/types/1_animation.d.ts.map +1 -1
- package/esm/types/1_audio.d.ts +1 -1
- package/esm/types/1_audio.d.ts.map +1 -1
- package/esm/types/1_bot_command_scope.d.ts +2 -2
- package/esm/types/1_bot_command_scope.d.ts.map +1 -1
- package/esm/types/1_chat_p.d.ts +12 -2
- package/esm/types/1_chat_p.d.ts.map +1 -1
- package/esm/types/1_chat_p.js +6 -2
- package/esm/types/1_document.d.ts +1 -1
- package/esm/types/1_document.d.ts.map +1 -1
- package/esm/types/1_giveaway.d.ts +2 -2
- package/esm/types/1_giveaway.d.ts.map +1 -1
- package/esm/types/1_inline_keyboard_button.d.ts +3 -3
- package/esm/types/1_inline_keyboard_button.d.ts.map +1 -1
- package/esm/types/1_inline_keyboard_button.js +4 -4
- package/esm/types/1_inline_query_result_button.d.ts +1 -1
- package/esm/types/1_inline_query_result_button.d.ts.map +1 -1
- package/esm/types/1_input_story_content.d.ts +1 -1
- package/esm/types/1_input_story_content.d.ts.map +1 -1
- package/esm/types/1_keyboard_button.d.ts +3 -3
- package/esm/types/1_keyboard_button.d.ts.map +1 -1
- package/esm/types/1_keyboard_button.js +1 -1
- package/esm/types/1_message_reaction.d.ts +1 -1
- package/esm/types/1_message_reaction.d.ts.map +1 -1
- package/esm/types/1_message_reaction.js +2 -2
- package/esm/types/1_mini_app_info.d.ts +2 -2
- package/esm/types/1_mini_app_info.d.ts.map +1 -1
- package/esm/types/1_network_statistics.d.ts +1 -1
- package/esm/types/1_network_statistics.d.ts.map +1 -1
- package/esm/types/1_order_info.d.ts +2 -2
- package/esm/types/1_order_info.d.ts.map +1 -1
- package/esm/types/1_photo.d.ts +1 -1
- package/esm/types/1_photo.d.ts.map +1 -1
- package/esm/types/1_reaction_count.d.ts +2 -2
- package/esm/types/1_reaction_count.d.ts.map +1 -1
- package/esm/types/1_sticker.d.ts +3 -3
- package/esm/types/1_sticker.d.ts.map +1 -1
- package/esm/types/1_sticker.js +2 -2
- package/esm/types/1_story_reaction.d.ts +2 -2
- package/esm/types/1_story_reaction.d.ts.map +1 -1
- package/esm/types/1_venue.d.ts +1 -1
- package/esm/types/1_venue.d.ts.map +1 -1
- package/esm/types/1_video.d.ts +1 -1
- package/esm/types/1_video.d.ts.map +1 -1
- package/esm/types/1_video_note.d.ts +1 -1
- package/esm/types/1_video_note.d.ts.map +1 -1
- package/esm/types/2_chat.d.ts +6 -9
- package/esm/types/2_chat.d.ts.map +1 -1
- package/esm/types/2_chat.js +10 -15
- package/esm/types/2_inactive_chat.d.ts +1 -1
- package/esm/types/2_inactive_chat.d.ts.map +1 -1
- package/esm/types/2_message_entity.d.ts +139 -0
- package/esm/types/2_message_entity.d.ts.map +1 -0
- package/esm/types/2_message_entity.js +183 -0
- package/esm/types/2_message_interactions.d.ts +1 -1
- package/esm/types/2_message_interactions.d.ts.map +1 -1
- package/esm/types/2_message_reaction_count.d.ts +4 -5
- package/esm/types/2_message_reaction_count.d.ts.map +1 -1
- package/esm/types/2_message_reaction_count.js +4 -6
- package/esm/types/2_poll_answer.d.ts +3 -4
- package/esm/types/2_poll_answer.d.ts.map +1 -1
- package/esm/types/2_poll_answer.js +4 -5
- package/esm/types/2_reply_markup.d.ts +3 -3
- package/esm/types/2_reply_markup.d.ts.map +1 -1
- 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 +2 -2
- package/esm/types/2_story_content.d.ts.map +1 -1
- package/esm/types/2_story_interactions.d.ts +2 -2
- package/esm/types/2_story_interactions.d.ts.map +1 -1
- package/esm/types/2_story_interactive_area.d.ts +6 -6
- package/esm/types/2_story_interactive_area.d.ts.map +1 -1
- package/esm/types/2_story_interactive_area.js +2 -2
- 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 +2 -2
- package/esm/types/2_successful_payment.d.ts.map +1 -1
- package/esm/types/2_user.d.ts +65 -0
- package/esm/types/2_user.d.ts.map +1 -0
- package/esm/types/2_user.js +73 -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_member.d.ts +70 -0
- package/esm/types/3_chat_member.d.ts.map +1 -0
- package/esm/types/3_chat_member.js +114 -0
- package/esm/types/3_chat_settings.d.ts +46 -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_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 +58 -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_gift_upgraded_component.d.ts +95 -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_media.d.ts +122 -0
- package/esm/types/3_input_media.d.ts.map +1 -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_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 +34 -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 +8 -9
- package/esm/types/3_story.d.ts.map +1 -1
- package/esm/types/3_story.js +6 -7
- 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_gift.d.ts +94 -0
- package/esm/types/4_gift.d.ts.map +1 -0
- package/esm/types/4_gift.js +105 -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 +35 -0
- package/esm/types/4_reply_to.d.ts.map +1 -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 +48 -0
- package/esm/types/5_link_preview.d.ts +188 -0
- package/esm/types/5_link_preview.d.ts.map +1 -0
- package/esm/types/5_link_preview.js +218 -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 +616 -0
- package/esm/types/6_message.d.ts.map +1 -0
- package/esm/types/6_message.js +520 -0
- package/esm/types/6_message_content.d.ts +119 -0
- package/esm/types/6_message_content.d.ts.map +1 -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 +35 -0
- package/esm/types/7_chat_list_item.d.ts.map +1 -0
- package/esm/types/7_chat_list_item.js +87 -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_saved_chat.d.ts +35 -0
- package/esm/types/7_saved_chat.d.ts.map +1 -0
- package/esm/types/7_saved_chat.js +43 -0
- package/esm/types/7_topic.d.ts +34 -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 +528 -0
- package/esm/types/8_update.d.ts.map +1 -0
- package/esm/types/_file_id.d.ts +61 -50
- package/esm/types/_file_id.d.ts.map +1 -1
- package/esm/types/_file_id.js +92 -73
- package/esm/types/_getters.d.ts +3 -10
- package/esm/types/_getters.d.ts.map +1 -1
- package/esm/utilities/0_bigint.js +5 -5
- package/esm/utilities/0_buffer.js +3 -3
- package/esm/utilities/0_env.js +1 -1
- package/esm/utilities/0_hash.d.ts +2 -2
- package/esm/utilities/0_hash.d.ts.map +1 -1
- package/esm/utilities/0_misc.d.ts +1 -0
- package/esm/utilities/0_misc.d.ts.map +1 -1
- package/esm/utilities/0_misc.js +18 -4
- package/esm/utilities/0_part_stream.d.ts +1 -1
- package/esm/utilities/0_part_stream.d.ts.map +1 -1
- package/esm/utilities/0_rle.js +1 -1
- package/esm/utilities/1_auth.js +1 -1
- package/esm/utilities/1_base64.js +1 -1
- package/esm/utilities/1_logger.js +2 -2
- package/esm/utilities/1_math.js +2 -2
- package/esm/utilities/2_queue.js +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +14 -12
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +20 -15
- package/script/3_types.d.ts +36 -33
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +36 -33
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.d.ts.map +1 -1
- package/script/4_errors.d.ts +2 -2
- package/script/4_errors.d.ts.map +1 -1
- package/script/_dnt.polyfills.d.ts +7 -0
- package/script/_dnt.polyfills.d.ts.map +1 -1
- package/script/_dnt.polyfills.js +109 -0
- 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 +53 -0
- package/script/client/0_client_abstract.d.ts +3 -3
- package/script/client/0_client_abstract.d.ts.map +1 -1
- package/script/client/0_filters.d.ts +10 -4
- package/script/client/0_filters.d.ts.map +1 -1
- package/script/client/0_filters.js +6 -3
- package/script/client/0_html.d.ts +1 -1
- package/script/client/0_html.d.ts.map +1 -1
- package/script/client/0_html.js +1 -1
- package/script/client/0_markdown.d.ts +1 -1
- package/script/client/0_markdown.d.ts.map +1 -1
- package/script/client/0_markdown.js +8 -8
- package/script/client/0_params.d.ts +42 -8
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_password.d.ts +2 -2
- package/script/client/0_password.d.ts.map +1 -1
- package/script/client/0_password.js +1 -1
- package/script/client/0_storage_operations.d.ts +55 -73
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +252 -249
- package/script/client/0_update_processor.d.ts +4 -4
- package/script/client/0_update_processor.d.ts.map +1 -1
- package/script/client/0_utilities.d.ts +2 -2
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/0_utilities.js +8 -8
- package/script/client/1_client_plain.d.ts +3 -3
- package/script/client/1_client_plain.d.ts.map +1 -1
- package/script/client/1_client_plain.js +2 -2
- package/script/client/1_composer.d.ts +3 -3
- package/script/client/1_composer.d.ts.map +1 -1
- package/script/client/1_composer.js +7 -7
- package/script/client/1_types.d.ts +5 -5
- package/script/client/1_types.d.ts.map +1 -1
- package/script/client/2_account_manager.d.ts +3 -3
- package/script/client/2_account_manager.d.ts.map +1 -1
- package/script/client/2_account_manager.js +7 -7
- package/script/client/2_bot_info_manager.d.ts +3 -3
- package/script/client/2_bot_info_manager.d.ts.map +1 -1
- package/script/client/2_business_connection_manager.d.ts +4 -4
- package/script/client/2_business_connection_manager.d.ts.map +1 -1
- package/script/client/2_business_connection_manager.js +3 -3
- package/script/client/2_client_encrypted.d.ts +3 -3
- package/script/client/2_client_encrypted.d.ts.map +1 -1
- package/script/client/2_file_manager.d.ts +3 -3
- package/script/client/2_file_manager.d.ts.map +1 -1
- package/script/client/2_file_manager.js +45 -31
- package/script/client/2_network_statistics_manager.d.ts +1 -1
- package/script/client/2_network_statistics_manager.d.ts.map +1 -1
- package/script/client/2_payment_manager.d.ts +5 -5
- package/script/client/2_payment_manager.d.ts.map +1 -1
- package/script/client/2_payment_manager.js +2 -2
- package/script/client/2_reaction_manager.d.ts +4 -4
- package/script/client/2_reaction_manager.d.ts.map +1 -1
- package/script/client/2_reaction_manager.js +2 -2
- package/script/client/2_translations_manager.d.ts +5 -5
- package/script/client/2_translations_manager.d.ts.map +1 -1
- package/script/client/2_translations_manager.js +20 -16
- package/script/client/2_update_manager.d.ts +6 -4
- package/script/client/2_update_manager.d.ts.map +1 -1
- package/script/client/2_update_manager.js +76 -94
- package/script/client/3_client_encrypted_pool.d.ts +1 -1
- package/script/client/3_client_encrypted_pool.d.ts.map +1 -1
- package/script/client/3_message_manager.d.ts +12 -9
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +165 -44
- package/script/client/3_video_chat_manager.d.ts +6 -6
- package/script/client/3_video_chat_manager.d.ts.map +1 -1
- package/script/client/3_video_chat_manager.js +7 -7
- package/script/client/4_callback_query_manager.d.ts +6 -6
- package/script/client/4_callback_query_manager.d.ts.map +1 -1
- package/script/client/4_callback_query_manager.js +3 -3
- package/script/client/4_chat_list_manager.d.ts +8 -9
- package/script/client/4_chat_list_manager.d.ts.map +1 -1
- package/script/client/4_chat_list_manager.js +17 -272
- package/script/client/4_chat_manager.d.ts +9 -9
- package/script/client/4_chat_manager.d.ts.map +1 -1
- package/script/client/4_chat_manager.js +11 -11
- package/script/client/4_forum_manager.d.ts +4 -4
- package/script/client/4_forum_manager.d.ts.map +1 -1
- package/script/client/4_gift_manager.d.ts +4 -4
- package/script/client/4_gift_manager.d.ts.map +1 -1
- package/script/client/4_gift_manager.js +4 -4
- package/script/client/4_inline_query_manager.d.ts +6 -6
- package/script/client/4_inline_query_manager.d.ts.map +1 -1
- package/script/client/4_inline_query_manager.js +4 -4
- package/script/client/4_link_preview_manager.d.ts +6 -6
- package/script/client/4_link_preview_manager.d.ts.map +1 -1
- package/script/client/4_link_preview_manager.js +3 -3
- package/script/client/4_poll_manager.d.ts +5 -5
- package/script/client/4_poll_manager.d.ts.map +1 -1
- package/script/client/4_poll_manager.js +2 -2
- package/script/client/4_story_manager.d.ts +8 -8
- package/script/client/4_story_manager.d.ts.map +1 -1
- package/script/client/4_story_manager.js +9 -9
- package/script/client/5_client.d.ts +41 -23
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +474 -409
- package/script/connection/0_connection.d.ts +1 -1
- package/script/connection/0_connection.d.ts.map +1 -1
- package/script/connection/1_connection_tcp.node.d.ts +1 -1
- package/script/connection/1_connection_tcp.node.d.ts.map +1 -1
- package/script/connection/1_connection_tcp.node.js +4 -4
- package/script/connection/1_connection_web_socket.d.ts +1 -1
- package/script/connection/1_connection_web_socket.d.ts.map +1 -1
- package/script/connection/1_connection_web_socket.js +3 -3
- package/script/deps/jsr.io/@std/assert/1.0.14/assert.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.14/assertion_error.d.ts +26 -0
- package/script/deps/jsr.io/@std/assert/1.0.14/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.14/assertion_error.js +34 -0
- package/script/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.14/equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.14/false.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.14/unreachable.d.ts +15 -0
- package/script/deps/jsr.io/@std/assert/1.0.14/unreachable.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.14/unreachable.js +23 -0
- package/script/deps/jsr.io/@std/async/1.0.14/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.0.14/abortable.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.0.14/deadline.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.0.14/debounce.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.0.14/delay.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.0.14/delay.js +116 -0
- package/script/deps/jsr.io/@std/async/1.0.14/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.0.14/mux_async_iterator.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.0.14/pool.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.0.14/retry.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/1.0.14/tee.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
- package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +72 -0
- package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
- package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +144 -0
- package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
- package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/0.2.0/memoize.js +85 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/hex.js +113 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/_os.js +48 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/os.d.ts +3 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/os.js +8 -0
- package/script/deps/jsr.io/@std/path/1.1.2/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/basename.js +38 -0
- package/script/deps/jsr.io/@std/path/1.1.2/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/extname.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.2/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.2/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.2/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.11/to_array_buffer.d.ts.map +1 -0
- package/script/session/1_session.d.ts +2 -2
- package/script/session/1_session.d.ts.map +1 -1
- package/script/session/2_session_encrypted.d.ts +3 -3
- package/script/session/2_session_encrypted.d.ts.map +1 -1
- package/script/session/2_session_encrypted.js +75 -76
- package/script/session/2_session_plain.js +1 -1
- package/script/storage/0_storage.d.ts +2 -1
- package/script/storage/0_storage.d.ts.map +1 -1
- package/script/storage/1_utilities.d.ts +14 -11
- package/script/storage/1_utilities.d.ts.map +1 -1
- package/script/storage/1_utilities.js +39 -39
- package/script/storage/2_storage_indexed_db.d.ts +2 -1
- package/script/storage/2_storage_indexed_db.d.ts.map +1 -1
- package/script/storage/2_storage_indexed_db.js +6 -3
- package/script/storage/2_storage_local_storage.node.d.ts +2 -1
- package/script/storage/2_storage_local_storage.node.d.ts.map +1 -1
- package/script/storage/2_storage_local_storage.node.js +6 -3
- package/script/storage/2_storage_memory.d.ts +3 -2
- package/script/storage/2_storage_memory.d.ts.map +1 -1
- package/script/storage/2_storage_memory.js +5 -2
- package/script/storage/2_storage_session_storage.d.ts +3 -2
- package/script/storage/2_storage_session_storage.d.ts.map +1 -1
- package/script/storage/2_storage_session_storage.js +6 -3
- package/script/tl/0_utilities.d.ts +1 -0
- package/script/tl/0_utilities.d.ts.map +1 -1
- package/script/tl/0_utilities.js +21 -1
- package/script/tl/1_telegram_api.d.ts +810 -254
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +912 -213
- package/script/tl/1_tl_reader.d.ts +3 -3
- package/script/tl/1_tl_reader.d.ts.map +1 -1
- package/script/tl/1_tl_reader.js +8 -8
- package/script/tl/1_tl_writer.d.ts +3 -3
- package/script/tl/1_tl_writer.d.ts.map +1 -1
- package/script/tl/1_tl_writer.js +6 -6
- package/script/tl/1_utilities.d.ts +1 -1
- package/script/tl/1_utilities.d.ts.map +1 -1
- package/script/tl/1_utilities.js +2 -2
- package/script/tl/2_message.js +1 -1
- package/script/tl/2_mtproto.d.ts +2 -2
- package/script/tl/2_mtproto.d.ts.map +1 -1
- package/script/tl/2_telegram.d.ts +1 -1
- package/script/tl/2_telegram.d.ts.map +1 -1
- package/script/transport/0_obfuscation.d.ts +1 -1
- package/script/transport/0_obfuscation.d.ts.map +1 -1
- package/script/transport/0_obfuscation.js +2 -2
- package/script/transport/0_transport.d.ts +1 -1
- package/script/transport/0_transport.d.ts.map +1 -1
- package/script/transport/1_transport_abridged.d.ts +1 -1
- package/script/transport/1_transport_abridged.d.ts.map +1 -1
- package/script/transport/1_transport_intermediate.d.ts +1 -1
- package/script/transport/1_transport_intermediate.d.ts.map +1 -1
- package/script/transport/1_transport_provider.d.ts +2 -2
- package/script/transport/1_transport_provider.d.ts.map +1 -1
- package/script/transport/2_transport_provider_tcp.d.ts +1 -1
- package/script/transport/2_transport_provider_tcp.d.ts.map +1 -1
- package/script/transport/2_transport_provider_web_socket.d.ts +1 -1
- package/script/transport/2_transport_provider_web_socket.d.ts.map +1 -1
- package/script/transport/2_transport_provider_web_socket.js +1 -1
- package/script/types/0_birthday.d.ts +1 -1
- package/script/types/0_birthday.d.ts.map +1 -1
- package/script/types/0_callback_query_answer.d.ts +1 -1
- package/script/types/0_callback_query_answer.d.ts.map +1 -1
- package/script/types/0_callback_query_question.js +2 -2
- package/script/types/0_chat_administrator_rights.d.ts +1 -1
- package/script/types/0_chat_administrator_rights.d.ts.map +1 -1
- package/script/types/0_chat_member_rights.d.ts +1 -1
- package/script/types/0_chat_member_rights.d.ts.map +1 -1
- package/script/types/0_contact.d.ts +1 -1
- package/script/types/0_contact.d.ts.map +1 -1
- package/script/types/0_dice.d.ts +1 -1
- package/script/types/0_dice.d.ts.map +1 -1
- package/script/types/0_failed_invitation.d.ts +1 -1
- package/script/types/0_failed_invitation.d.ts.map +1 -1
- package/script/types/0_file_source.d.ts +1 -1
- package/script/types/0_file_source.d.ts.map +1 -1
- package/script/types/0_invoice.d.ts +1 -1
- package/script/types/0_invoice.d.ts.map +1 -1
- package/script/types/0_live_stream_channel.d.ts +1 -1
- package/script/types/0_live_stream_channel.d.ts.map +1 -1
- package/script/types/0_mask_position.d.ts +1 -1
- package/script/types/0_mask_position.d.ts.map +1 -1
- package/script/types/0_mask_position.js +1 -1
- package/script/types/0_message_search_filter.d.ts +1 -1
- package/script/types/0_message_search_filter.d.ts.map +1 -1
- package/script/types/0_opening_hours.d.ts +1 -1
- package/script/types/0_opening_hours.d.ts.map +1 -1
- package/script/types/0_reaction.js +5 -5
- package/script/types/0_refunded_payment.d.ts +1 -1
- package/script/types/0_refunded_payment.d.ts.map +1 -1
- package/script/types/0_restriction_reason.d.ts +1 -1
- package/script/types/0_restriction_reason.d.ts.map +1 -1
- package/script/types/0_self_destruct_option.js +3 -3
- package/script/types/0_shipping_address.d.ts +1 -1
- package/script/types/0_shipping_address.d.ts.map +1 -1
- package/script/types/0_slow_mode_duration.js +2 -2
- package/script/types/0_voice.d.ts +1 -1
- package/script/types/0_voice.d.ts.map +1 -1
- package/script/types/0_voice_transcription.d.ts +1 -1
- package/script/types/0_voice_transcription.d.ts.map +1 -1
- package/script/types/1_animation.d.ts +1 -1
- package/script/types/1_animation.d.ts.map +1 -1
- package/script/types/1_audio.d.ts +1 -1
- package/script/types/1_audio.d.ts.map +1 -1
- package/script/types/1_bot_command_scope.d.ts +2 -2
- package/script/types/1_bot_command_scope.d.ts.map +1 -1
- package/script/types/1_chat_p.d.ts +12 -2
- package/script/types/1_chat_p.d.ts.map +1 -1
- package/script/types/1_chat_p.js +7 -2
- package/script/types/1_document.d.ts +1 -1
- package/script/types/1_document.d.ts.map +1 -1
- package/script/types/1_giveaway.d.ts +2 -2
- package/script/types/1_giveaway.d.ts.map +1 -1
- package/script/types/1_inline_keyboard_button.d.ts +3 -3
- package/script/types/1_inline_keyboard_button.d.ts.map +1 -1
- package/script/types/1_inline_keyboard_button.js +4 -4
- package/script/types/1_inline_query_result_button.d.ts +1 -1
- package/script/types/1_inline_query_result_button.d.ts.map +1 -1
- package/script/types/1_input_story_content.d.ts +1 -1
- package/script/types/1_input_story_content.d.ts.map +1 -1
- package/script/types/1_keyboard_button.d.ts +3 -3
- package/script/types/1_keyboard_button.d.ts.map +1 -1
- package/script/types/1_keyboard_button.js +1 -1
- package/script/types/1_message_reaction.d.ts +1 -1
- package/script/types/1_message_reaction.d.ts.map +1 -1
- package/script/types/1_message_reaction.js +2 -2
- package/script/types/1_mini_app_info.d.ts +2 -2
- package/script/types/1_mini_app_info.d.ts.map +1 -1
- package/script/types/1_network_statistics.d.ts +1 -1
- package/script/types/1_network_statistics.d.ts.map +1 -1
- package/script/types/1_order_info.d.ts +2 -2
- package/script/types/1_order_info.d.ts.map +1 -1
- package/script/types/1_photo.d.ts +1 -1
- package/script/types/1_photo.d.ts.map +1 -1
- package/script/types/1_reaction_count.d.ts +2 -2
- package/script/types/1_reaction_count.d.ts.map +1 -1
- package/script/types/1_sticker.d.ts +3 -3
- package/script/types/1_sticker.d.ts.map +1 -1
- package/script/types/1_sticker.js +2 -2
- package/script/types/1_story_reaction.d.ts +2 -2
- package/script/types/1_story_reaction.d.ts.map +1 -1
- package/script/types/1_venue.d.ts +1 -1
- package/script/types/1_venue.d.ts.map +1 -1
- package/script/types/1_video.d.ts +1 -1
- package/script/types/1_video.d.ts.map +1 -1
- package/script/types/1_video_note.d.ts +1 -1
- package/script/types/1_video_note.d.ts.map +1 -1
- package/script/types/2_chat.d.ts +6 -9
- package/script/types/2_chat.d.ts.map +1 -1
- package/script/types/2_chat.js +10 -15
- package/script/types/2_inactive_chat.d.ts +1 -1
- package/script/types/2_inactive_chat.d.ts.map +1 -1
- package/script/types/2_message_entity.d.ts +139 -0
- package/script/types/2_message_entity.d.ts.map +1 -0
- package/script/types/2_message_entity.js +188 -0
- package/script/types/2_message_interactions.d.ts +1 -1
- package/script/types/2_message_interactions.d.ts.map +1 -1
- package/script/types/2_message_reaction_count.d.ts +4 -5
- package/script/types/2_message_reaction_count.d.ts.map +1 -1
- package/script/types/2_message_reaction_count.js +4 -6
- package/script/types/2_poll_answer.d.ts +3 -4
- package/script/types/2_poll_answer.d.ts.map +1 -1
- package/script/types/2_poll_answer.js +4 -5
- package/script/types/2_reply_markup.d.ts +3 -3
- package/script/types/2_reply_markup.d.ts.map +1 -1
- 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 +2 -2
- package/script/types/2_story_content.d.ts.map +1 -1
- package/script/types/2_story_interactions.d.ts +2 -2
- package/script/types/2_story_interactions.d.ts.map +1 -1
- package/script/types/2_story_interactive_area.d.ts +6 -6
- package/script/types/2_story_interactive_area.d.ts.map +1 -1
- package/script/types/2_story_interactive_area.js +2 -2
- 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 +2 -2
- package/script/types/2_successful_payment.d.ts.map +1 -1
- package/script/types/2_user.d.ts +65 -0
- package/script/types/2_user.d.ts.map +1 -0
- package/script/types/2_user.js +77 -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_member.d.ts +70 -0
- package/script/types/3_chat_member.d.ts.map +1 -0
- package/script/types/3_chat_member.js +117 -0
- package/script/types/3_chat_settings.d.ts +46 -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_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 +58 -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_gift_upgraded_component.d.ts +95 -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_media.d.ts +122 -0
- package/script/types/3_input_media.d.ts.map +1 -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_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 +34 -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 +8 -9
- package/script/types/3_story.d.ts.map +1 -1
- package/script/types/3_story.js +8 -9
- 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_gift.d.ts +94 -0
- package/script/types/4_gift.d.ts.map +1 -0
- package/script/types/4_gift.js +110 -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 +35 -0
- package/script/types/4_reply_to.d.ts.map +1 -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 +51 -0
- package/script/types/5_link_preview.d.ts +188 -0
- package/script/types/5_link_preview.d.ts.map +1 -0
- package/script/types/5_link_preview.js +221 -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 +616 -0
- package/script/types/6_message.d.ts.map +1 -0
- package/script/types/6_message.js +525 -0
- package/script/types/6_message_content.d.ts +119 -0
- package/script/types/6_message_content.d.ts.map +1 -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 +35 -0
- package/script/types/7_chat_list_item.d.ts.map +1 -0
- package/script/types/7_chat_list_item.js +94 -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_saved_chat.d.ts +35 -0
- package/script/types/7_saved_chat.d.ts.map +1 -0
- package/script/types/7_saved_chat.js +46 -0
- package/script/types/7_topic.d.ts +34 -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 +528 -0
- package/script/types/8_update.d.ts.map +1 -0
- package/script/types/_file_id.d.ts +61 -50
- package/script/types/_file_id.d.ts.map +1 -1
- package/script/types/_file_id.js +155 -136
- package/script/types/_getters.d.ts +3 -10
- package/script/types/_getters.d.ts.map +1 -1
- package/script/utilities/0_bigint.js +5 -5
- package/script/utilities/0_buffer.js +3 -3
- package/script/utilities/0_env.js +1 -1
- package/script/utilities/0_hash.d.ts +2 -2
- package/script/utilities/0_hash.d.ts.map +1 -1
- package/script/utilities/0_misc.d.ts +1 -0
- package/script/utilities/0_misc.d.ts.map +1 -1
- package/script/utilities/0_misc.js +18 -3
- package/script/utilities/0_part_stream.d.ts +1 -1
- package/script/utilities/0_part_stream.d.ts.map +1 -1
- package/script/utilities/0_rle.js +1 -1
- package/script/utilities/1_auth.js +1 -1
- package/script/utilities/1_base64.js +1 -1
- package/script/utilities/1_logger.js +2 -2
- package/script/utilities/1_math.js +2 -2
- package/script/utilities/2_queue.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/assert.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/abortable.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/deadline.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/debounce.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/delay.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/delay.js +0 -65
- package/esm/deps/jsr.io/@std/async/1.0.13/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/mux_async_iterator.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/pool.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/retry.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.13/tee.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/assert_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/normalize_string.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/strip_trailing_separators.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_os.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.0/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_os.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.1.0/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/basename.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.0/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/extname.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.0/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/is_absolute.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.0/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/join.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/to_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.10/to_array_buffer.d.ts.map +0 -1
- 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/1_input_media.d.ts +0 -122
- package/esm/types/1_input_media.d.ts.map +0 -1
- package/esm/types/1_poll_option.d.ts +0 -34
- package/esm/types/1_poll_option.d.ts.map +0 -1
- package/esm/types/1_poll_option.js +0 -29
- 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 -61
- package/esm/types/1_user.d.ts.map +0 -1
- package/esm/types/1_user.js +0 -49
- 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 -29
- package/esm/types/2_chat_member.d.ts +0 -68
- package/esm/types/2_chat_member.d.ts.map +0 -1
- package/esm/types/2_chat_member.js +0 -114
- package/esm/types/2_chat_settings.d.ts +0 -46
- package/esm/types/2_chat_settings.d.ts.map +0 -1
- package/esm/types/2_chat_settings.js +0 -51
- 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 -59
- package/esm/types/2_forward_header.d.ts.map +0 -1
- package/esm/types/2_forward_header.js +0 -74
- package/esm/types/2_game.d.ts +0 -40
- package/esm/types/2_game.d.ts.map +0 -1
- package/esm/types/2_gift_upgraded_component.d.ts +0 -95
- package/esm/types/2_gift_upgraded_component.d.ts.map +0 -1
- package/esm/types/2_gift_upgraded_component.js +0 -88
- 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/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_gift.d.ts +0 -94
- package/esm/types/3_gift.d.ts.map +0 -1
- package/esm/types/3_gift.js +0 -105
- package/esm/types/3_join_request.d.ts +0 -40
- package/esm/types/3_join_request.d.ts.map +0 -1
- package/esm/types/3_join_request.js +0 -63
- package/esm/types/4_claimed_gift.d.ts +0 -45
- package/esm/types/4_claimed_gift.d.ts.map +0 -1
- package/esm/types/4_claimed_gift.js +0 -48
- package/esm/types/4_link_preview.d.ts +0 -188
- package/esm/types/4_link_preview.d.ts.map +0 -1
- package/esm/types/4_link_preview.js +0 -218
- package/esm/types/5_claimed_gifts.d.ts +0 -33
- package/esm/types/5_claimed_gifts.d.ts.map +0 -1
- package/esm/types/5_claimed_gifts.js +0 -43
- package/esm/types/5_message.d.ts +0 -617
- package/esm/types/5_message.d.ts.map +0 -1
- package/esm/types/5_message.js +0 -545
- package/esm/types/5_message_content.d.ts +0 -119
- package/esm/types/5_message_content.d.ts.map +0 -1
- package/esm/types/6_callback_query.d.ts +0 -43
- package/esm/types/6_callback_query.d.ts.map +0 -1
- package/esm/types/6_callback_query.js +0 -59
- package/esm/types/6_chat_list_item.d.ts +0 -36
- package/esm/types/6_chat_list_item.d.ts.map +0 -1
- package/esm/types/6_chat_list_item.js +0 -87
- package/esm/types/6_inline_query_result.d.ts +0 -251
- package/esm/types/6_inline_query_result.d.ts.map +0 -1
- package/esm/types/6_inline_query_result.js +0 -380
- package/esm/types/6_topic.d.ts +0 -34
- package/esm/types/6_topic.d.ts.map +0 -1
- package/esm/types/6_topic.js +0 -61
- package/esm/types/7_inline_query_answer.d.ts +0 -32
- package/esm/types/7_inline_query_answer.d.ts.map +0 -1
- package/esm/types/7_inline_query_answer.js +0 -28
- package/esm/types/7_update.d.ts +0 -509
- package/esm/types/7_update.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.13/assert.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.13/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.13/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.13/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/abortable.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/deadline.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/debounce.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/delay.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/delay.js +0 -101
- package/script/deps/jsr.io/@std/async/1.0.13/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/mux_async_iterator.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/pool.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/retry.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.13/tee.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_common/assert_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_common/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_common/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_common/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_common/normalize_string.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_common/strip_trailing_separators.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_common/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_os.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.0/_os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_os.js +0 -45
- package/script/deps/jsr.io/@std/path/1.1.0/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/basename.js +0 -38
- package/script/deps/jsr.io/@std/path/1.1.0/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/extname.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.0/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/is_absolute.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.0/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/join.js +0 -32
- package/script/deps/jsr.io/@std/path/1.1.0/posix/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/posix/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/posix/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/posix/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/posix/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/posix/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/posix/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/to_file_url.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.0/windows/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/windows/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/windows/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/windows/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/windows/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.0/windows/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.10/to_array_buffer.d.ts.map +0 -1
- 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/1_input_media.d.ts +0 -122
- package/script/types/1_input_media.d.ts.map +0 -1
- package/script/types/1_poll_option.d.ts +0 -34
- package/script/types/1_poll_option.d.ts.map +0 -1
- package/script/types/1_poll_option.js +0 -32
- 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 -61
- package/script/types/1_user.d.ts.map +0 -1
- package/script/types/1_user.js +0 -52
- 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 -32
- package/script/types/2_chat_member.d.ts +0 -68
- package/script/types/2_chat_member.d.ts.map +0 -1
- package/script/types/2_chat_member.js +0 -117
- package/script/types/2_chat_settings.d.ts +0 -46
- package/script/types/2_chat_settings.d.ts.map +0 -1
- package/script/types/2_chat_settings.js +0 -54
- 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 -59
- package/script/types/2_forward_header.d.ts.map +0 -1
- package/script/types/2_forward_header.js +0 -77
- package/script/types/2_game.d.ts +0 -40
- package/script/types/2_game.d.ts.map +0 -1
- package/script/types/2_gift_upgraded_component.d.ts +0 -95
- package/script/types/2_gift_upgraded_component.d.ts.map +0 -1
- package/script/types/2_gift_upgraded_component.js +0 -91
- 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/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_gift.d.ts +0 -94
- package/script/types/3_gift.d.ts.map +0 -1
- package/script/types/3_gift.js +0 -110
- package/script/types/3_join_request.d.ts +0 -40
- package/script/types/3_join_request.d.ts.map +0 -1
- package/script/types/3_join_request.js +0 -67
- package/script/types/4_claimed_gift.d.ts +0 -45
- package/script/types/4_claimed_gift.d.ts.map +0 -1
- package/script/types/4_claimed_gift.js +0 -51
- package/script/types/4_link_preview.d.ts +0 -188
- package/script/types/4_link_preview.d.ts.map +0 -1
- package/script/types/4_link_preview.js +0 -221
- package/script/types/5_claimed_gifts.d.ts +0 -33
- package/script/types/5_claimed_gifts.d.ts.map +0 -1
- package/script/types/5_claimed_gifts.js +0 -46
- package/script/types/5_message.d.ts +0 -617
- package/script/types/5_message.d.ts.map +0 -1
- package/script/types/5_message.js +0 -550
- package/script/types/5_message_content.d.ts +0 -119
- package/script/types/5_message_content.d.ts.map +0 -1
- package/script/types/6_callback_query.d.ts +0 -43
- package/script/types/6_callback_query.d.ts.map +0 -1
- package/script/types/6_callback_query.js +0 -63
- package/script/types/6_chat_list_item.d.ts +0 -36
- package/script/types/6_chat_list_item.d.ts.map +0 -1
- package/script/types/6_chat_list_item.js +0 -94
- package/script/types/6_inline_query_result.d.ts +0 -251
- package/script/types/6_inline_query_result.d.ts.map +0 -1
- package/script/types/6_inline_query_result.js +0 -384
- package/script/types/6_topic.d.ts +0 -34
- package/script/types/6_topic.d.ts.map +0 -1
- package/script/types/6_topic.js +0 -64
- package/script/types/7_inline_query_answer.d.ts +0 -32
- package/script/types/7_inline_query_answer.d.ts.map +0 -1
- package/script/types/7_inline_query_answer.js +0 -31
- package/script/types/7_update.d.ts +0 -509
- package/script/types/7_update.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/assert.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/assert.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equal.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equals.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/false.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/false.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/abortable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/abortable.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/deadline.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/deadline.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/debounce.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/debounce.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/delay.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mod.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mux_async_iterator.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mux_async_iterator.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/pool.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/pool.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/retry.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/retry.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/tee.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/tee.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/assert_path.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/assert_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize_string.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/extname.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/extname.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/extname.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/streams/{1.0.10 → 1.0.11}/to_array_buffer.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/streams/{1.0.10 → 1.0.11}/to_array_buffer.js +0 -0
- /package/esm/types/{2_game.js → 3_game.js} +0 -0
- /package/esm/types/{1_input_media.js → 3_input_media.js} +0 -0
- /package/esm/types/{2_reply_to.js → 4_reply_to.js} +0 -0
- /package/esm/types/{5_message_content.js → 6_message_content.js} +0 -0
- /package/esm/types/{7_update.js → 8_update.js} +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/assert.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/assert.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equal.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equals.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/false.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/false.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/_util.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/abortable.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/abortable.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/deadline.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/deadline.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/debounce.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/debounce.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/delay.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mod.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mod.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mux_async_iterator.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mux_async_iterator.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/pool.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/pool.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/retry.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/retry.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/tee.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/tee.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/assert_path.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/assert_path.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/constants.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize_string.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize_string.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/extname.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/extname.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/extname.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/extname.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/extname.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/streams/{1.0.10 → 1.0.11}/to_array_buffer.d.ts +0 -0
- /package/script/deps/jsr.io/@std/streams/{1.0.10 → 1.0.11}/to_array_buffer.js +0 -0
- /package/script/types/{2_game.js → 3_game.js} +0 -0
- /package/script/types/{1_input_media.js → 3_input_media.js} +0 -0
- /package/script/types/{2_reply_to.js → 4_reply_to.js} +0 -0
- /package/script/types/{5_message_content.js → 6_message_content.js} +0 -0
- /package/script/types/{7_update.js → 8_update.js} +0 -0
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2025 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { unreachable } from "../0_deps.js";
|
|
21
|
-
import { cleanObject } from "../1_utilities.js";
|
|
22
|
-
import { Api } from "../2_tl.js";
|
|
23
|
-
import { deserializeFileId, FileType, getPhotoFileId, serializeFileId } from "./_file_id.js";
|
|
24
|
-
import { constructMessageEntity } from "./0_message_entity.js";
|
|
25
|
-
import { constructThumbnail } from "./0_thumbnail.js";
|
|
26
|
-
import { getPhotoSizes } from "./1_photo.js";
|
|
27
|
-
import { constructReplyMarkup, replyMarkupToTlObject } from "./2_reply_markup.js";
|
|
28
|
-
export function constructInlineQueryResult(result) {
|
|
29
|
-
const id = result.id, title = result.title ?? "", type = result.type, description = result.description;
|
|
30
|
-
if (Api.is("botInlineMessageMediaGeo", result.send_message)) {
|
|
31
|
-
const geoPoint = result.send_message.geo;
|
|
32
|
-
return cleanObject({
|
|
33
|
-
type: "location",
|
|
34
|
-
id,
|
|
35
|
-
title,
|
|
36
|
-
latitude: geoPoint.lat,
|
|
37
|
-
longitude: geoPoint.long,
|
|
38
|
-
horizontalAccuracy: geoPoint.accuracy_radius,
|
|
39
|
-
livePeriod: result.send_message.period,
|
|
40
|
-
heading: result.send_message.heading,
|
|
41
|
-
proximityAlertRadius: result.send_message.proximity_notification_radius,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
else if (Api.is("botInlineMessageMediaVenue", result.send_message)) {
|
|
45
|
-
const geoPoint = result.send_message.geo;
|
|
46
|
-
return cleanObject({
|
|
47
|
-
type: "venue",
|
|
48
|
-
id,
|
|
49
|
-
title,
|
|
50
|
-
latitude: geoPoint.lat,
|
|
51
|
-
longitude: geoPoint.long,
|
|
52
|
-
address: result.send_message.address,
|
|
53
|
-
foursquareId: result.send_message.venue_id,
|
|
54
|
-
foursquareType: result.send_message.venue_type,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
else if (Api.is("botInlineMessageMediaWebPage", result.send_message) || Api.is("botInlineMessageText", result.send_message)) {
|
|
58
|
-
return cleanObject({
|
|
59
|
-
type: "article",
|
|
60
|
-
id,
|
|
61
|
-
title,
|
|
62
|
-
description,
|
|
63
|
-
messageContent: cleanObject({
|
|
64
|
-
type: "text",
|
|
65
|
-
text: result.send_message.message,
|
|
66
|
-
entities: (result.send_message.entities ?? []).map(constructMessageEntity).filter((v) => v != null),
|
|
67
|
-
linkPreview: Api.is("botInlineMessageMediaWebPage", result.send_message) ? { type: "unknown", id: "", url: result.send_message.url, smallMedia: result.send_message.force_small_media ?? false, largeMedia: result.send_message.force_large_media ?? false, aboveText: result.send_message.invert_media ?? false } : undefined,
|
|
68
|
-
}),
|
|
69
|
-
replyMarkup: result.send_message.reply_markup ? constructReplyMarkup(result.send_message.reply_markup) : undefined,
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
else if (Api.is("botInlineMessageMediaAuto", result.send_message)) {
|
|
73
|
-
let ref;
|
|
74
|
-
let attributes;
|
|
75
|
-
const thumbnailUrl = "thumb" in result ? result.thumb?.url : undefined;
|
|
76
|
-
let photoSizes;
|
|
77
|
-
let photo;
|
|
78
|
-
if (Api.is("botInlineMediaResult", result)) {
|
|
79
|
-
if (result.photo) {
|
|
80
|
-
photo = Api.as("photo", result.photo);
|
|
81
|
-
ref = { fileId: getPhotoFileId(photo).fileId };
|
|
82
|
-
const { largest } = photoSizes = getPhotoSizes(photo);
|
|
83
|
-
attributes = [{ _: "documentAttributeImageSize", w: largest.w, h: largest.h }];
|
|
84
|
-
}
|
|
85
|
-
else if (result.document) {
|
|
86
|
-
const document = Api.as("document", result.document);
|
|
87
|
-
ref = {
|
|
88
|
-
fileId: serializeFileId({
|
|
89
|
-
type: FileType.Document, // Should this be changed? The type is already known.
|
|
90
|
-
dcId: document.dc_id,
|
|
91
|
-
fileReference: document.file_reference,
|
|
92
|
-
location: { type: "common", id: document.id, accessHash: document.access_hash },
|
|
93
|
-
}),
|
|
94
|
-
};
|
|
95
|
-
attributes = document.attributes;
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
unreachable();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
else if (result.content) {
|
|
102
|
-
ref = { url: result.content.url };
|
|
103
|
-
attributes = result.content.attributes;
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
unreachable();
|
|
107
|
-
}
|
|
108
|
-
const messageContent = result.send_message.message
|
|
109
|
-
? {
|
|
110
|
-
type: "text",
|
|
111
|
-
text: result.send_message.message,
|
|
112
|
-
entities: (result.send_message.entities ?? []).map(constructMessageEntity).filter((v) => v != null),
|
|
113
|
-
}
|
|
114
|
-
: undefined;
|
|
115
|
-
const replyMarkup = result.send_message.reply_markup ? constructReplyMarkup(result.send_message.reply_markup) : undefined;
|
|
116
|
-
switch (type) {
|
|
117
|
-
case "audio": {
|
|
118
|
-
const a = attributes?.find((v) => Api.is("documentAttributeAudio", v));
|
|
119
|
-
return cleanObject({
|
|
120
|
-
id,
|
|
121
|
-
type,
|
|
122
|
-
title,
|
|
123
|
-
...ref,
|
|
124
|
-
messageContent,
|
|
125
|
-
replyMarkup,
|
|
126
|
-
performer: a?.performer,
|
|
127
|
-
audioDuration: a?.duration,
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
case "gif":
|
|
131
|
-
case "mpeg4Gif": {
|
|
132
|
-
const a = attributes.find((v) => Api.is("documentAttributeVideo", v));
|
|
133
|
-
return cleanObject({
|
|
134
|
-
id,
|
|
135
|
-
type,
|
|
136
|
-
title,
|
|
137
|
-
...ref,
|
|
138
|
-
messageContent,
|
|
139
|
-
replyMarkup,
|
|
140
|
-
thumbnailUrl,
|
|
141
|
-
width: a?.w,
|
|
142
|
-
height: a?.h,
|
|
143
|
-
duration: a?.duration,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
case "photo": {
|
|
147
|
-
const a = attributes.find((v) => Api.is("documentAttributeImageSize", v));
|
|
148
|
-
return cleanObject({
|
|
149
|
-
id,
|
|
150
|
-
type,
|
|
151
|
-
title,
|
|
152
|
-
description,
|
|
153
|
-
...ref,
|
|
154
|
-
messageContent,
|
|
155
|
-
replyMarkup,
|
|
156
|
-
thumbnailUrl: thumbnailUrl,
|
|
157
|
-
thumbnails: photo ? photoSizes?.sizes.slice(0, -1).map((v) => constructThumbnail(v, photo)) : undefined,
|
|
158
|
-
width: a?.w,
|
|
159
|
-
height: a?.h,
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
case "video": {
|
|
163
|
-
const a = attributes.find((v) => Api.is("documentAttributeVideo", v));
|
|
164
|
-
return cleanObject({
|
|
165
|
-
id,
|
|
166
|
-
type,
|
|
167
|
-
title,
|
|
168
|
-
description,
|
|
169
|
-
...ref,
|
|
170
|
-
messageContent,
|
|
171
|
-
replyMarkup,
|
|
172
|
-
mimeType: "content" in result && result.content ? result.content.mime_type : "video/mp4",
|
|
173
|
-
thumbnailUrl: thumbnailUrl,
|
|
174
|
-
width: a?.w,
|
|
175
|
-
height: a?.h,
|
|
176
|
-
videoDuration: a?.duration,
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
case "voice": {
|
|
180
|
-
const a = attributes.find((v) => Api.is("documentAttributeAudio", v));
|
|
181
|
-
return cleanObject({
|
|
182
|
-
id,
|
|
183
|
-
type,
|
|
184
|
-
title,
|
|
185
|
-
...ref,
|
|
186
|
-
messageContent,
|
|
187
|
-
replyMarkup,
|
|
188
|
-
thumbnailUrl,
|
|
189
|
-
voiceDuration: a?.duration,
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
case "document":
|
|
193
|
-
case "file": // Does it really return this?
|
|
194
|
-
return cleanObject({
|
|
195
|
-
type: "document",
|
|
196
|
-
id,
|
|
197
|
-
title: result.title ?? "",
|
|
198
|
-
...ref,
|
|
199
|
-
messageContent,
|
|
200
|
-
replyMarkup,
|
|
201
|
-
thumbnailUrl,
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
unreachable();
|
|
206
|
-
}
|
|
207
|
-
// deno-lint-ignore no-explicit-any
|
|
208
|
-
export async function inlineQueryResultToTlObject(result_, parseText, usernameResolver) {
|
|
209
|
-
let document = null;
|
|
210
|
-
let thumb = null;
|
|
211
|
-
let fileId_ = null;
|
|
212
|
-
switch (result_.type) {
|
|
213
|
-
case "audio":
|
|
214
|
-
if ("url" in result_) {
|
|
215
|
-
document = {
|
|
216
|
-
_: "inputWebDocument",
|
|
217
|
-
url: result_.url,
|
|
218
|
-
size: 0,
|
|
219
|
-
mime_type: "audio/mpeg",
|
|
220
|
-
attributes: [
|
|
221
|
-
{ _: "documentAttributeAudio", duration: result_.audioDuration ?? 0, title: result_.title, performer: result_.performer },
|
|
222
|
-
],
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
fileId_ = result_.fileId;
|
|
227
|
-
}
|
|
228
|
-
break;
|
|
229
|
-
case "video":
|
|
230
|
-
if ("url" in result_) {
|
|
231
|
-
document = {
|
|
232
|
-
_: "inputWebDocument",
|
|
233
|
-
url: result_.url,
|
|
234
|
-
size: 0,
|
|
235
|
-
mime_type: result_.mimeType ?? "video/mp4",
|
|
236
|
-
attributes: [
|
|
237
|
-
{ _: "documentAttributeVideo", duration: result_.videoDuration ?? 0, h: result_.height ?? 0, w: result_.width ?? 0 },
|
|
238
|
-
],
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
fileId_ = result_.fileId;
|
|
243
|
-
}
|
|
244
|
-
break;
|
|
245
|
-
case "document":
|
|
246
|
-
if ("url" in result_) {
|
|
247
|
-
document = { _: "inputWebDocument", url: result_.url, mime_type: "application/octet-stream", attributes: [], size: 0 };
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
fileId_ = result_.fileId;
|
|
251
|
-
}
|
|
252
|
-
break;
|
|
253
|
-
case "gif":
|
|
254
|
-
if ("url" in result_) {
|
|
255
|
-
document = {
|
|
256
|
-
_: "inputWebDocument",
|
|
257
|
-
url: result_.url,
|
|
258
|
-
size: 0,
|
|
259
|
-
mime_type: "image/gif",
|
|
260
|
-
attributes: [
|
|
261
|
-
{ _: "documentAttributeVideo", duration: result_.duration ?? 0, w: result_.width ?? 0, h: result_.height ?? 0 },
|
|
262
|
-
],
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
else {
|
|
266
|
-
fileId_ = result_.fileId;
|
|
267
|
-
}
|
|
268
|
-
break;
|
|
269
|
-
case "mpeg4Gif":
|
|
270
|
-
if ("url" in result_) {
|
|
271
|
-
document = {
|
|
272
|
-
_: "inputWebDocument",
|
|
273
|
-
url: result_.url,
|
|
274
|
-
size: 0,
|
|
275
|
-
mime_type: "video/mp4",
|
|
276
|
-
attributes: [
|
|
277
|
-
{ _: "documentAttributeVideo", nosound: true, duration: result_.duration ?? 0, w: result_.width ?? 0, h: result_.height ?? 0, supports_streaming: true },
|
|
278
|
-
],
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
fileId_ = result_.fileId;
|
|
283
|
-
}
|
|
284
|
-
break;
|
|
285
|
-
case "photo":
|
|
286
|
-
if ("url" in result_) {
|
|
287
|
-
document = { _: "inputWebDocument", url: result_.url, size: 0, mime_type: "image/jpeg", attributes: [{ _: "documentAttributeImageSize", w: result_.width ?? 0, h: result_.height ?? 0 }] };
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
fileId_ = result_.fileId;
|
|
291
|
-
}
|
|
292
|
-
break;
|
|
293
|
-
case "sticker":
|
|
294
|
-
fileId_ = result_.fileId;
|
|
295
|
-
break;
|
|
296
|
-
case "voice":
|
|
297
|
-
if ("url" in result_) {
|
|
298
|
-
document = {
|
|
299
|
-
_: "inputWebDocument",
|
|
300
|
-
url: result_.url,
|
|
301
|
-
size: 0,
|
|
302
|
-
mime_type: "audio/mpeg",
|
|
303
|
-
attributes: [
|
|
304
|
-
{ _: "documentAttributeAudio", duration: result_.voiceDuration ?? 0, voice: true },
|
|
305
|
-
],
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
fileId_ = result_.fileId;
|
|
310
|
-
}
|
|
311
|
-
break;
|
|
312
|
-
}
|
|
313
|
-
const replyMarkup = "replyMarkup" in result_ && result_.replyMarkup ? await replyMarkupToTlObject(result_.replyMarkup, usernameResolver) : undefined;
|
|
314
|
-
if ("thumbnailUrl" in result_ && result_.thumbnailUrl) {
|
|
315
|
-
thumb = { _: "inputWebDocument", url: result_.thumbnailUrl, size: 0, mime_type: "image/jpeg", attributes: [] };
|
|
316
|
-
}
|
|
317
|
-
else if (result_.type == "photo") {
|
|
318
|
-
thumb = document;
|
|
319
|
-
}
|
|
320
|
-
let ret = ["", []];
|
|
321
|
-
if ("caption" in result_ && result_.caption) {
|
|
322
|
-
ret = await parseText(result_.caption, { parseMode: result_.parseMode, entities: result_.captionEntities });
|
|
323
|
-
}
|
|
324
|
-
const { type, id } = result_;
|
|
325
|
-
const [message, entities] = ret;
|
|
326
|
-
const sendMessage = { _: "inputBotInlineMessageMediaAuto", message, entities, reply_markup: replyMarkup };
|
|
327
|
-
const title = "title" in result_ ? result_.title : undefined;
|
|
328
|
-
const description = "description" in result_ ? result_.description : undefined;
|
|
329
|
-
if (document != null) {
|
|
330
|
-
return { _: "inputBotInlineResult", id, type, title, description, thumb: thumb == null ? undefined : thumb, content: document, send_message: ({ _: "inputBotInlineMessageMediaAuto", message, entities, reply_markup: replyMarkup }) };
|
|
331
|
-
}
|
|
332
|
-
else if (fileId_ != null) {
|
|
333
|
-
const fileId = deserializeFileId(fileId_);
|
|
334
|
-
return {
|
|
335
|
-
_: "inputBotInlineResultDocument",
|
|
336
|
-
id,
|
|
337
|
-
type: type == "document" ? "file" : type,
|
|
338
|
-
title,
|
|
339
|
-
description,
|
|
340
|
-
document: ({
|
|
341
|
-
_: "inputDocument",
|
|
342
|
-
id: "id" in fileId.location ? fileId.location.id : unreachable(),
|
|
343
|
-
access_hash: fileId.location.accessHash,
|
|
344
|
-
file_reference: fileId.fileReference ?? new Uint8Array(),
|
|
345
|
-
}),
|
|
346
|
-
send_message: sendMessage,
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
else if (result_.type == "location") {
|
|
350
|
-
return { _: "inputBotInlineResult", id, type, title, description, thumb: thumb == null ? undefined : thumb, send_message: ({ _: "inputBotInlineMessageMediaGeo", geo_point: ({ _: "inputGeoPoint", lat: result_.latitude, long: result_.longitude, accuracy_radius: result_.horizontalAccuracy }), heading: result_.heading, period: result_.livePeriod, proximity_notification_radius: result_.proximityAlertRadius, reply_markup: replyMarkup }) };
|
|
351
|
-
}
|
|
352
|
-
else if (result_.type == "game") {
|
|
353
|
-
return { _: "inputBotInlineResult", id, type, title, description, thumb: thumb == null ? undefined : thumb, send_message: ({ _: "inputBotInlineMessageGame", reply_markup: replyMarkup }) };
|
|
354
|
-
}
|
|
355
|
-
else if (result_.type == "article") {
|
|
356
|
-
if (!("text" in result_.messageContent)) {
|
|
357
|
-
unreachable();
|
|
358
|
-
}
|
|
359
|
-
const [message, entities] = await parseText(result_.messageContent.text, { entities: result_.messageContent.entities, parseMode: result_.messageContent.parseMode });
|
|
360
|
-
const noWebpage = result_.messageContent?.linkPreview && result_.messageContent?.linkPreview.type == "input" && result_.messageContent?.linkPreview.disable ? true : undefined;
|
|
361
|
-
const invertMedia = result_.messageContent?.linkPreview?.aboveText ? true : undefined;
|
|
362
|
-
let sendMessage;
|
|
363
|
-
if (result_.messageContent.linkPreview?.url) {
|
|
364
|
-
sendMessage = { _: "inputBotInlineMessageMediaWebPage", url: result_.messageContent.linkPreview.url, force_large_media: result_.messageContent.linkPreview.largeMedia ? true : undefined, force_small_media: result_.messageContent.linkPreview.smallMedia ? true : undefined, optional: message.length ? undefined : true, message, entities, invert_media: invertMedia, reply_markup: replyMarkup };
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
sendMessage = { _: "inputBotInlineMessageText", message, entities, no_webpage: noWebpage, invert_media: invertMedia, reply_markup: replyMarkup };
|
|
368
|
-
}
|
|
369
|
-
return { _: "inputBotInlineResult", id, type, title, description, thumb: thumb == null ? undefined : thumb, send_message: sendMessage };
|
|
370
|
-
}
|
|
371
|
-
else if (result_.type == "venue") {
|
|
372
|
-
if (!result_.foursquareId || !result_.foursquareType) {
|
|
373
|
-
unreachable();
|
|
374
|
-
}
|
|
375
|
-
return { _: "inputBotInlineResult", id, type, title, description, thumb: thumb == null ? undefined : thumb, send_message: ({ _: "inputBotInlineMessageMediaVenue", geo_point: ({ _: "inputGeoPoint", long: result_.longitude, lat: result_.latitude }), address: result_.address, provider: "foursquare", title: result_.title, venue_id: result_.foursquareId, venue_type: result_.foursquareType, reply_markup: replyMarkup }) };
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
unreachable();
|
|
379
|
-
}
|
|
380
|
-
}
|
package/esm/types/6_topic.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2025 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { ChatP } from "./1_chat_p.js";
|
|
21
|
-
import { Message } from "./5_message.js";
|
|
22
|
-
export interface Topic {
|
|
23
|
-
id: number;
|
|
24
|
-
date: number;
|
|
25
|
-
creator: ChatP;
|
|
26
|
-
general: boolean;
|
|
27
|
-
closed: boolean;
|
|
28
|
-
hidden: boolean;
|
|
29
|
-
name: string;
|
|
30
|
-
color: number;
|
|
31
|
-
customEmojiId?: string;
|
|
32
|
-
}
|
|
33
|
-
export declare function constructTopic(message: Message): Topic;
|
|
34
|
-
//# sourceMappingURL=6_topic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"6_topic.d.ts","sourceRoot":"","sources":["../../src/types/6_topic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,OAAO,EAAqD,MAAM,gBAAgB,CAAC;AAE5F,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAqCtD"}
|
package/esm/types/6_topic.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2025 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { unreachable } from "../0_deps.js";
|
|
21
|
-
import { cleanObject } from "../1_utilities.js";
|
|
22
|
-
export function constructTopic(message) {
|
|
23
|
-
let forumTopicCreated;
|
|
24
|
-
let forumTopicEdited;
|
|
25
|
-
if ("forumTopicCreated" in message) {
|
|
26
|
-
forumTopicCreated = message;
|
|
27
|
-
}
|
|
28
|
-
else if (message.replyToMessage && "forumTopicCreated" in message.replyToMessage) {
|
|
29
|
-
forumTopicCreated = message.replyToMessage;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
unreachable();
|
|
33
|
-
}
|
|
34
|
-
if ("forumTopicEdited" in message) {
|
|
35
|
-
forumTopicEdited = message;
|
|
36
|
-
}
|
|
37
|
-
const id = forumTopicCreated.id;
|
|
38
|
-
const date = forumTopicCreated.date;
|
|
39
|
-
const creator = forumTopicCreated.from ? forumTopicCreated.from : message.from;
|
|
40
|
-
const general = forumTopicCreated.id == 1;
|
|
41
|
-
const closed = false;
|
|
42
|
-
const hidden = false;
|
|
43
|
-
let name = forumTopicCreated.forumTopicCreated.name;
|
|
44
|
-
const color = forumTopicCreated.forumTopicCreated.color;
|
|
45
|
-
let customEmoijId = forumTopicCreated.forumTopicCreated.customEmojiId;
|
|
46
|
-
if (forumTopicEdited) {
|
|
47
|
-
name = forumTopicEdited.forumTopicEdited.name;
|
|
48
|
-
customEmoijId = forumTopicEdited.forumTopicEdited.customEmojiId;
|
|
49
|
-
}
|
|
50
|
-
return cleanObject({
|
|
51
|
-
id,
|
|
52
|
-
date,
|
|
53
|
-
creator: creator,
|
|
54
|
-
general,
|
|
55
|
-
closed,
|
|
56
|
-
hidden,
|
|
57
|
-
name,
|
|
58
|
-
color,
|
|
59
|
-
customEmoijId,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2025 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { Api } from "../2_tl.js";
|
|
21
|
-
import { InlineQueryResult } from "./6_inline_query_result.js";
|
|
22
|
-
/** An answer to an inline query. */
|
|
23
|
-
export interface InlineQueryAnswer {
|
|
24
|
-
/** The ID of the inline query that yielded these results. */
|
|
25
|
-
id: string;
|
|
26
|
-
/** The inline query results. */
|
|
27
|
-
results: InlineQueryResult[];
|
|
28
|
-
/** A parameter that can be passed to next queries with the same text to yield more results. */
|
|
29
|
-
nextOffset?: string;
|
|
30
|
-
}
|
|
31
|
-
export declare function constructInlineQueryAnswer(results: Api.messages_BotResults): InlineQueryAnswer;
|
|
32
|
-
//# sourceMappingURL=7_inline_query_answer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"7_inline_query_answer.d.ts","sourceRoot":"","sources":["../../src/types/7_inline_query_answer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAA8B,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE3F,oCAAoC;AACpC,MAAM,WAAW,iBAAiB;IAChC,6DAA6D;IAC7D,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,+FAA+F;IAC/F,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,GAAG,CAAC,mBAAmB,GAAG,iBAAiB,CAM9F"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2025 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
import { cleanObject } from "../1_utilities.js";
|
|
21
|
-
import { constructInlineQueryResult } from "./6_inline_query_result.js";
|
|
22
|
-
export function constructInlineQueryAnswer(results) {
|
|
23
|
-
return cleanObject({
|
|
24
|
-
id: results.query_id + "",
|
|
25
|
-
results: results.results.map(constructInlineQueryResult),
|
|
26
|
-
nextOffset: results.next_offset,
|
|
27
|
-
});
|
|
28
|
-
}
|