@mtkruto/node 0.69.0 → 0.70.1
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 +3 -1
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +3 -1
- package/esm/3_types.d.ts +35 -35
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +35 -35
- package/esm/_dnt.polyfills.d.ts +20 -13
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +120 -11
- 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 +1 -0
- package/esm/client/0_client_abstract.d.ts.map +1 -1
- package/esm/client/0_client_abstract.js +3 -0
- package/esm/client/0_filters.d.ts +9 -3
- package/esm/client/0_filters.d.ts.map +1 -1
- package/esm/client/0_filters.js +4 -1
- package/esm/client/0_params.d.ts +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_storage_operations.d.ts +53 -71
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +241 -238
- package/esm/client/0_update_processor.d.ts +2 -2
- 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/1_types.d.ts +2 -2
- package/esm/client/1_types.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +5 -5
- package/esm/client/2_business_connection_manager.d.ts +1 -1
- 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 +1 -1
- package/esm/client/2_client_encrypted.d.ts.map +1 -1
- package/esm/client/2_client_encrypted.js +26 -23
- package/esm/client/2_file_manager.js +2 -2
- package/esm/client/2_network_statistics_manager.d.ts +2 -2
- package/esm/client/2_network_statistics_manager.d.ts.map +1 -1
- package/esm/client/2_network_statistics_manager.js +30 -4
- package/esm/client/2_payment_manager.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/esm/client/2_translations_manager.d.ts.map +1 -1
- package/esm/client/2_translations_manager.js +15 -11
- package/esm/client/2_update_manager.d.ts +4 -2
- package/esm/client/2_update_manager.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +62 -80
- package/esm/client/3_message_manager.d.ts +2 -2
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +5 -5
- package/esm/client/3_video_chat_manager.d.ts +1 -1
- package/esm/client/3_video_chat_manager.d.ts.map +1 -1
- package/esm/client/4_callback_query_manager.d.ts +1 -1
- package/esm/client/4_callback_query_manager.d.ts.map +1 -1
- package/esm/client/4_callback_query_manager.js +1 -1
- package/esm/client/4_chat_list_manager.d.ts +2 -3
- package/esm/client/4_chat_list_manager.d.ts.map +1 -1
- package/esm/client/4_chat_list_manager.js +10 -265
- package/esm/client/4_chat_manager.d.ts +2 -2
- package/esm/client/4_chat_manager.d.ts.map +1 -1
- package/esm/client/4_chat_manager.js +7 -7
- package/esm/client/4_gift_manager.js +3 -3
- package/esm/client/4_inline_query_manager.d.ts +1 -1
- package/esm/client/4_inline_query_manager.d.ts.map +1 -1
- package/esm/client/4_inline_query_manager.js +3 -3
- package/esm/client/4_link_preview_manager.d.ts +1 -1
- 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 +1 -1
- package/esm/client/4_poll_manager.d.ts.map +1 -1
- package/esm/client/4_poll_manager.js +1 -1
- package/esm/client/4_story_manager.d.ts +1 -1
- package/esm/client/4_story_manager.d.ts.map +1 -1
- package/esm/client/4_story_manager.js +7 -7
- package/esm/client/5_client.d.ts +15 -9
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +420 -382
- 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/session/1_session.d.ts +1 -0
- package/esm/session/1_session.d.ts.map +1 -1
- package/esm/session/1_session.js +3 -0
- package/esm/session/2_session_encrypted.d.ts +2 -2
- package/esm/session/2_session_encrypted.d.ts.map +1 -1
- package/esm/session/2_session_encrypted.js +198 -135
- package/esm/storage/0_storage.d.ts +1 -0
- package/esm/storage/0_storage.d.ts.map +1 -1
- package/esm/storage/2_storage_indexed_db.d.ts +1 -0
- package/esm/storage/2_storage_indexed_db.d.ts.map +1 -1
- package/esm/storage/2_storage_indexed_db.js +3 -0
- package/esm/storage/2_storage_local_storage.node.d.ts +1 -0
- package/esm/storage/2_storage_local_storage.node.d.ts.map +1 -1
- package/esm/storage/2_storage_local_storage.node.js +3 -0
- package/esm/storage/2_storage_memory.d.ts +1 -0
- package/esm/storage/2_storage_memory.d.ts.map +1 -1
- package/esm/storage/2_storage_memory.js +3 -0
- package/esm/storage/2_storage_session_storage.d.ts +1 -0
- package/esm/storage/2_storage_session_storage.d.ts.map +1 -1
- package/esm/storage/2_storage_session_storage.js +3 -0
- 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 +20 -1
- 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 +2 -2
- package/esm/tl/1_tl_reader.d.ts.map +1 -1
- package/esm/tl/1_tl_writer.d.ts +2 -2
- package/esm/tl/1_tl_writer.d.ts.map +1 -1
- package/esm/tl/2_mtproto.d.ts +1 -1
- 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/types/0_file_source.d.ts +1 -1
- package/esm/types/0_file_source.d.ts.map +1 -1
- package/esm/types/1_chat_p.d.ts +10 -0
- package/esm/types/1_chat_p.d.ts.map +1 -1
- package/esm/types/1_chat_p.js +4 -0
- package/esm/types/2_chat.d.ts +2 -5
- package/esm/types/2_chat.d.ts.map +1 -1
- package/esm/types/2_chat.js +10 -15
- package/esm/types/{0_message_entity.d.ts → 2_message_entity.d.ts} +3 -3
- package/esm/types/{0_message_entity.d.ts.map → 2_message_entity.d.ts.map} +1 -1
- package/esm/types/{0_message_entity.js → 2_message_entity.js} +7 -7
- package/esm/types/2_message_reaction_count.d.ts +2 -3
- 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 +2 -3
- package/esm/types/2_poll_answer.d.ts.map +1 -1
- package/esm/types/2_poll_answer.js +4 -5
- package/esm/types/2_story_interactive_area.d.ts +2 -2
- 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/{1_story_privacy.d.ts → 2_story_privacy.d.ts} +3 -3
- package/esm/types/{1_story_privacy.d.ts.map → 2_story_privacy.d.ts.map} +1 -1
- package/esm/types/{1_story_privacy.js → 2_story_privacy.js} +10 -10
- package/{script/types/1_user.d.ts → esm/types/2_user.d.ts} +5 -1
- package/esm/types/2_user.d.ts.map +1 -0
- package/esm/types/{1_user.js → 2_user.js} +24 -0
- package/esm/types/{2_business_connection.d.ts → 3_business_connection.d.ts} +4 -4
- package/esm/types/3_business_connection.d.ts.map +1 -0
- package/esm/types/{2_business_connection.js → 3_business_connection.js} +10 -3
- package/{script/types/2_chat_member.d.ts → esm/types/3_chat_member.d.ts} +6 -4
- package/esm/types/{2_chat_member.d.ts.map → 3_chat_member.d.ts.map} +1 -1
- package/esm/types/{2_chat_member.js → 3_chat_member.js} +5 -5
- package/esm/types/{2_chat_settings.d.ts → 3_chat_settings.d.ts} +2 -2
- package/{script/types/2_chat_settings.d.ts.map → esm/types/3_chat_settings.d.ts.map} +1 -1
- package/esm/types/{2_chat_settings.js → 3_chat_settings.js} +1 -1
- package/esm/types/{2_chosen_inline_result.d.ts → 3_chosen_inline_result.d.ts} +4 -4
- package/esm/types/3_chosen_inline_result.d.ts.map +1 -0
- package/esm/types/{2_chosen_inline_result.js → 3_chosen_inline_result.js} +3 -3
- package/esm/types/{2_forward_header.d.ts → 3_forward_header.d.ts} +4 -5
- package/esm/types/3_forward_header.d.ts.map +1 -0
- package/esm/types/{2_forward_header.js → 3_forward_header.js} +11 -12
- package/{script/types/2_game.d.ts → esm/types/3_game.d.ts} +2 -2
- package/esm/types/3_game.d.ts.map +1 -0
- package/esm/types/{2_gift_upgraded_component.d.ts → 3_gift_upgraded_component.d.ts} +2 -2
- package/esm/types/{2_gift_upgraded_component.d.ts.map → 3_gift_upgraded_component.d.ts.map} +1 -1
- package/esm/types/{2_gift_upgraded_component.js → 3_gift_upgraded_component.js} +1 -1
- package/esm/types/{2_inline_query.d.ts → 3_inline_query.d.ts} +4 -4
- package/esm/types/3_inline_query.d.ts.map +1 -0
- package/esm/types/{2_inline_query.js → 3_inline_query.js} +5 -5
- package/{script/types/1_input_media.d.ts → esm/types/3_input_media.d.ts} +2 -2
- package/esm/types/{1_input_media.d.ts.map → 3_input_media.d.ts.map} +1 -1
- package/{script/types/2_invite_link.d.ts → esm/types/3_invite_link.d.ts} +4 -4
- package/{script/types/2_invite_link.d.ts.map → esm/types/3_invite_link.d.ts.map} +1 -1
- package/esm/types/{2_invite_link.js → 3_invite_link.js} +5 -5
- package/{script/types/2_message_reactions.d.ts → esm/types/3_message_reactions.d.ts} +5 -6
- package/esm/types/3_message_reactions.d.ts.map +1 -0
- package/esm/types/{2_message_reactions.js → 3_message_reactions.js} +10 -12
- package/esm/types/{1_poll_option.d.ts → 3_poll_option.d.ts} +2 -2
- package/esm/types/{1_poll_option.d.ts.map → 3_poll_option.d.ts.map} +1 -1
- package/esm/types/{1_poll_option.js → 3_poll_option.js} +1 -1
- package/esm/types/{2_pre_checkout_query.d.ts → 3_pre_checkout_query.d.ts} +4 -4
- package/esm/types/3_pre_checkout_query.d.ts.map +1 -0
- package/esm/types/{2_pre_checkout_query.js → 3_pre_checkout_query.js} +5 -5
- package/{script/types/1_reply_quote.d.ts → esm/types/3_reply_quote.d.ts} +2 -2
- package/esm/types/{1_reply_quote.d.ts.map → 3_reply_quote.d.ts.map} +1 -1
- package/esm/types/{1_reply_quote.js → 3_reply_quote.js} +1 -1
- package/esm/types/3_story.d.ts +4 -5
- package/esm/types/3_story.d.ts.map +1 -1
- package/esm/types/3_story.js +6 -7
- package/esm/types/{3_chat_member_updated.d.ts → 4_chat_member_updated.d.ts} +6 -7
- package/esm/types/4_chat_member_updated.d.ts.map +1 -0
- package/esm/types/{3_chat_member_updated.js → 4_chat_member_updated.js} +13 -14
- package/esm/types/{3_gift.d.ts → 4_gift.d.ts} +6 -6
- package/esm/types/{3_gift.d.ts.map → 4_gift.d.ts.map} +1 -1
- package/esm/types/{3_gift.js → 4_gift.js} +7 -7
- package/esm/types/{3_join_request.d.ts → 4_join_request.d.ts} +6 -7
- package/esm/types/4_join_request.d.ts.map +1 -0
- package/esm/types/{3_join_request.js → 4_join_request.js} +17 -18
- package/esm/types/{2_poll.d.ts → 4_poll.d.ts} +3 -3
- package/esm/types/{2_poll.d.ts.map → 4_poll.d.ts.map} +1 -1
- package/esm/types/{2_poll.js → 4_poll.js} +2 -2
- package/{script/types/2_reply_to.d.ts → esm/types/4_reply_to.d.ts} +2 -2
- package/esm/types/{2_reply_to.d.ts.map → 4_reply_to.d.ts.map} +1 -1
- package/esm/types/{4_claimed_gift.d.ts → 5_claimed_gift.d.ts} +5 -6
- package/esm/types/5_claimed_gift.d.ts.map +1 -0
- package/esm/types/{4_claimed_gift.js → 5_claimed_gift.js} +4 -4
- package/esm/types/{4_link_preview.d.ts → 5_link_preview.d.ts} +4 -4
- package/{script/types/4_link_preview.d.ts.map → esm/types/5_link_preview.d.ts.map} +1 -1
- package/esm/types/{4_link_preview.js → 5_link_preview.js} +3 -3
- package/esm/types/{5_claimed_gifts.d.ts → 6_claimed_gifts.d.ts} +4 -4
- package/esm/types/6_claimed_gifts.d.ts.map +1 -0
- package/esm/types/{5_claimed_gifts.js → 6_claimed_gifts.js} +4 -4
- package/esm/types/{5_message.d.ts → 6_message.d.ts} +10 -11
- package/esm/types/6_message.d.ts.map +1 -0
- package/esm/types/{5_message.js → 6_message.js} +41 -66
- package/{script/types/5_message_content.d.ts → esm/types/6_message_content.d.ts} +3 -3
- package/esm/types/{5_message_content.d.ts.map → 6_message_content.d.ts.map} +1 -1
- package/{script/types/6_callback_query.d.ts → esm/types/7_callback_query.d.ts} +5 -5
- package/esm/types/{6_callback_query.d.ts.map → 7_callback_query.d.ts.map} +1 -1
- package/esm/types/{6_callback_query.js → 7_callback_query.js} +5 -5
- package/{script/types/6_chat_list_item.d.ts → esm/types/7_chat_list_item.d.ts} +6 -7
- package/esm/types/7_chat_list_item.d.ts.map +1 -0
- package/esm/types/{6_chat_list_item.js → 7_chat_list_item.js} +11 -11
- package/{script/types/6_inline_query_result.d.ts → esm/types/7_inline_query_result.d.ts} +3 -3
- package/esm/types/{6_inline_query_result.d.ts.map → 7_inline_query_result.d.ts.map} +1 -1
- package/esm/types/{6_inline_query_result.js → 7_inline_query_result.js} +1 -1
- package/esm/types/{6_saved_chat.d.ts → 7_saved_chat.d.ts} +4 -5
- package/esm/types/7_saved_chat.d.ts.map +1 -0
- package/esm/types/{6_saved_chat.js → 7_saved_chat.js} +4 -4
- package/esm/types/{6_topic.d.ts → 7_topic.d.ts} +2 -2
- package/esm/types/{6_topic.d.ts.map → 7_topic.d.ts.map} +1 -1
- package/esm/types/{7_inline_query_answer.d.ts → 8_inline_query_answer.d.ts} +2 -2
- package/esm/types/{7_inline_query_answer.d.ts.map → 8_inline_query_answer.d.ts.map} +1 -1
- package/esm/types/{7_inline_query_answer.js → 8_inline_query_answer.js} +1 -1
- package/{script/types/7_saved_chats.d.ts → esm/types/8_saved_chats.d.ts} +5 -5
- package/esm/types/8_saved_chats.d.ts.map +1 -0
- package/esm/types/{7_saved_chats.js → 8_saved_chats.js} +3 -3
- package/esm/types/{7_update.d.ts → 8_update.d.ts} +35 -16
- package/esm/types/8_update.d.ts.map +1 -0
- package/esm/types/_file_id.d.ts +1 -1
- package/esm/types/_file_id.d.ts.map +1 -1
- package/esm/types/_getters.d.ts +0 -7
- package/esm/types/_getters.d.ts.map +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 +14 -1
- package/esm/utilities/0_part_stream.d.ts +1 -1
- package/esm/utilities/0_part_stream.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +3 -1
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +6 -1
- package/script/3_types.d.ts +35 -35
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +35 -35
- package/script/_dnt.polyfills.d.ts +20 -13
- package/script/_dnt.polyfills.d.ts.map +1 -1
- package/script/_dnt.polyfills.js +120 -11
- 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 +1 -0
- package/script/client/0_client_abstract.d.ts.map +1 -1
- package/script/client/0_client_abstract.js +3 -0
- package/script/client/0_filters.d.ts +9 -3
- package/script/client/0_filters.d.ts.map +1 -1
- package/script/client/0_filters.js +4 -1
- package/script/client/0_params.d.ts +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_storage_operations.d.ts +53 -71
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +239 -236
- package/script/client/0_update_processor.d.ts +2 -2
- 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/1_types.d.ts +2 -2
- package/script/client/1_types.d.ts.map +1 -1
- package/script/client/2_account_manager.js +5 -5
- package/script/client/2_business_connection_manager.d.ts +1 -1
- 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 +1 -1
- package/script/client/2_client_encrypted.d.ts.map +1 -1
- package/script/client/2_client_encrypted.js +26 -23
- package/script/client/2_file_manager.js +2 -2
- package/script/client/2_network_statistics_manager.d.ts +2 -2
- package/script/client/2_network_statistics_manager.d.ts.map +1 -1
- package/script/client/2_network_statistics_manager.js +30 -4
- package/script/client/2_payment_manager.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/script/client/2_translations_manager.d.ts.map +1 -1
- package/script/client/2_translations_manager.js +15 -11
- package/script/client/2_update_manager.d.ts +4 -2
- package/script/client/2_update_manager.d.ts.map +1 -1
- package/script/client/2_update_manager.js +62 -80
- package/script/client/3_message_manager.d.ts +2 -2
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +5 -5
- package/script/client/3_video_chat_manager.d.ts +1 -1
- package/script/client/3_video_chat_manager.d.ts.map +1 -1
- package/script/client/4_callback_query_manager.d.ts +1 -1
- package/script/client/4_callback_query_manager.d.ts.map +1 -1
- package/script/client/4_callback_query_manager.js +1 -1
- package/script/client/4_chat_list_manager.d.ts +2 -3
- package/script/client/4_chat_list_manager.d.ts.map +1 -1
- package/script/client/4_chat_list_manager.js +9 -264
- package/script/client/4_chat_manager.d.ts +2 -2
- package/script/client/4_chat_manager.d.ts.map +1 -1
- package/script/client/4_chat_manager.js +7 -7
- package/script/client/4_gift_manager.js +3 -3
- package/script/client/4_inline_query_manager.d.ts +1 -1
- package/script/client/4_inline_query_manager.d.ts.map +1 -1
- package/script/client/4_inline_query_manager.js +3 -3
- package/script/client/4_link_preview_manager.d.ts +1 -1
- 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 +1 -1
- package/script/client/4_poll_manager.d.ts.map +1 -1
- package/script/client/4_poll_manager.js +1 -1
- package/script/client/4_story_manager.d.ts +1 -1
- package/script/client/4_story_manager.d.ts.map +1 -1
- package/script/client/4_story_manager.js +7 -7
- package/script/client/5_client.d.ts +15 -9
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +418 -380
- 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/session/1_session.d.ts +1 -0
- package/script/session/1_session.d.ts.map +1 -1
- package/script/session/1_session.js +3 -0
- package/script/session/2_session_encrypted.d.ts +2 -2
- package/script/session/2_session_encrypted.d.ts.map +1 -1
- package/script/session/2_session_encrypted.js +197 -134
- package/script/storage/0_storage.d.ts +1 -0
- package/script/storage/0_storage.d.ts.map +1 -1
- package/script/storage/2_storage_indexed_db.d.ts +1 -0
- package/script/storage/2_storage_indexed_db.d.ts.map +1 -1
- package/script/storage/2_storage_indexed_db.js +3 -0
- package/script/storage/2_storage_local_storage.node.d.ts +1 -0
- package/script/storage/2_storage_local_storage.node.d.ts.map +1 -1
- package/script/storage/2_storage_local_storage.node.js +3 -0
- package/script/storage/2_storage_memory.d.ts +1 -0
- package/script/storage/2_storage_memory.d.ts.map +1 -1
- package/script/storage/2_storage_memory.js +3 -0
- package/script/storage/2_storage_session_storage.d.ts +1 -0
- package/script/storage/2_storage_session_storage.d.ts.map +1 -1
- package/script/storage/2_storage_session_storage.js +3 -0
- 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 +20 -0
- 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 +2 -2
- package/script/tl/1_tl_reader.d.ts.map +1 -1
- package/script/tl/1_tl_writer.d.ts +2 -2
- package/script/tl/1_tl_writer.d.ts.map +1 -1
- package/script/tl/2_mtproto.d.ts +1 -1
- 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/types/0_file_source.d.ts +1 -1
- package/script/types/0_file_source.d.ts.map +1 -1
- package/script/types/1_chat_p.d.ts +10 -0
- package/script/types/1_chat_p.d.ts.map +1 -1
- package/script/types/1_chat_p.js +5 -0
- package/script/types/2_chat.d.ts +2 -5
- package/script/types/2_chat.d.ts.map +1 -1
- package/script/types/2_chat.js +10 -15
- package/script/types/{0_message_entity.d.ts → 2_message_entity.d.ts} +3 -3
- package/script/types/{0_message_entity.d.ts.map → 2_message_entity.d.ts.map} +1 -1
- package/script/types/{0_message_entity.js → 2_message_entity.js} +7 -7
- package/script/types/2_message_reaction_count.d.ts +2 -3
- 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 +2 -3
- package/script/types/2_poll_answer.d.ts.map +1 -1
- package/script/types/2_poll_answer.js +4 -5
- package/script/types/2_story_interactive_area.d.ts +2 -2
- 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/{1_story_privacy.d.ts → 2_story_privacy.d.ts} +3 -3
- package/script/types/{1_story_privacy.d.ts.map → 2_story_privacy.d.ts.map} +1 -1
- package/script/types/{1_story_privacy.js → 2_story_privacy.js} +10 -10
- package/{esm/types/1_user.d.ts → script/types/2_user.d.ts} +5 -1
- package/script/types/2_user.d.ts.map +1 -0
- package/script/types/{1_user.js → 2_user.js} +25 -0
- package/script/types/{2_business_connection.d.ts → 3_business_connection.d.ts} +4 -4
- package/script/types/3_business_connection.d.ts.map +1 -0
- package/script/types/{2_business_connection.js → 3_business_connection.js} +10 -3
- package/{esm/types/2_chat_member.d.ts → script/types/3_chat_member.d.ts} +6 -4
- package/script/types/{2_chat_member.d.ts.map → 3_chat_member.d.ts.map} +1 -1
- package/script/types/{2_chat_member.js → 3_chat_member.js} +5 -5
- package/script/types/{2_chat_settings.d.ts → 3_chat_settings.d.ts} +2 -2
- package/{esm/types/2_chat_settings.d.ts.map → script/types/3_chat_settings.d.ts.map} +1 -1
- package/script/types/{2_chat_settings.js → 3_chat_settings.js} +2 -2
- package/script/types/{2_chosen_inline_result.d.ts → 3_chosen_inline_result.d.ts} +4 -4
- package/script/types/3_chosen_inline_result.d.ts.map +1 -0
- package/script/types/{2_chosen_inline_result.js → 3_chosen_inline_result.js} +4 -4
- package/script/types/{2_forward_header.d.ts → 3_forward_header.d.ts} +4 -5
- package/script/types/3_forward_header.d.ts.map +1 -0
- package/script/types/{2_forward_header.js → 3_forward_header.js} +11 -12
- package/{esm/types/2_game.d.ts → script/types/3_game.d.ts} +2 -2
- package/script/types/3_game.d.ts.map +1 -0
- package/script/types/{2_gift_upgraded_component.d.ts → 3_gift_upgraded_component.d.ts} +2 -2
- package/script/types/{2_gift_upgraded_component.d.ts.map → 3_gift_upgraded_component.d.ts.map} +1 -1
- package/script/types/{2_gift_upgraded_component.js → 3_gift_upgraded_component.js} +2 -2
- package/script/types/{2_inline_query.d.ts → 3_inline_query.d.ts} +4 -4
- package/script/types/3_inline_query.d.ts.map +1 -0
- package/script/types/{2_inline_query.js → 3_inline_query.js} +5 -5
- package/{esm/types/1_input_media.d.ts → script/types/3_input_media.d.ts} +2 -2
- package/script/types/{1_input_media.d.ts.map → 3_input_media.d.ts.map} +1 -1
- package/{esm/types/2_invite_link.d.ts → script/types/3_invite_link.d.ts} +4 -4
- package/{esm/types/2_invite_link.d.ts.map → script/types/3_invite_link.d.ts.map} +1 -1
- package/script/types/{2_invite_link.js → 3_invite_link.js} +5 -5
- package/{esm/types/2_message_reactions.d.ts → script/types/3_message_reactions.d.ts} +5 -6
- package/script/types/3_message_reactions.d.ts.map +1 -0
- package/script/types/{2_message_reactions.js → 3_message_reactions.js} +10 -12
- package/script/types/{1_poll_option.d.ts → 3_poll_option.d.ts} +2 -2
- package/script/types/{1_poll_option.d.ts.map → 3_poll_option.d.ts.map} +1 -1
- package/script/types/{1_poll_option.js → 3_poll_option.js} +2 -2
- package/script/types/{2_pre_checkout_query.d.ts → 3_pre_checkout_query.d.ts} +4 -4
- package/script/types/3_pre_checkout_query.d.ts.map +1 -0
- package/script/types/{2_pre_checkout_query.js → 3_pre_checkout_query.js} +5 -5
- package/{esm/types/1_reply_quote.d.ts → script/types/3_reply_quote.d.ts} +2 -2
- package/script/types/{1_reply_quote.d.ts.map → 3_reply_quote.d.ts.map} +1 -1
- package/script/types/{1_reply_quote.js → 3_reply_quote.js} +2 -2
- package/script/types/3_story.d.ts +4 -5
- package/script/types/3_story.d.ts.map +1 -1
- package/script/types/3_story.js +8 -9
- package/script/types/{3_chat_member_updated.d.ts → 4_chat_member_updated.d.ts} +6 -7
- package/script/types/4_chat_member_updated.d.ts.map +1 -0
- package/script/types/{3_chat_member_updated.js → 4_chat_member_updated.js} +13 -14
- package/script/types/{3_gift.d.ts → 4_gift.d.ts} +6 -6
- package/script/types/{3_gift.d.ts.map → 4_gift.d.ts.map} +1 -1
- package/script/types/{3_gift.js → 4_gift.js} +9 -9
- package/script/types/{3_join_request.d.ts → 4_join_request.d.ts} +6 -7
- package/script/types/4_join_request.d.ts.map +1 -0
- package/script/types/{3_join_request.js → 4_join_request.js} +17 -18
- package/script/types/{2_poll.d.ts → 4_poll.d.ts} +3 -3
- package/script/types/{2_poll.d.ts.map → 4_poll.d.ts.map} +1 -1
- package/script/types/{2_poll.js → 4_poll.js} +5 -5
- package/{esm/types/2_reply_to.d.ts → script/types/4_reply_to.d.ts} +2 -2
- package/script/types/{2_reply_to.d.ts.map → 4_reply_to.d.ts.map} +1 -1
- package/script/types/{4_claimed_gift.d.ts → 5_claimed_gift.d.ts} +5 -6
- package/script/types/5_claimed_gift.d.ts.map +1 -0
- package/script/types/{4_claimed_gift.js → 5_claimed_gift.js} +5 -5
- package/script/types/{4_link_preview.d.ts → 5_link_preview.d.ts} +4 -4
- package/{esm/types/4_link_preview.d.ts.map → script/types/5_link_preview.d.ts.map} +1 -1
- package/script/types/{4_link_preview.js → 5_link_preview.js} +3 -3
- package/script/types/{5_claimed_gifts.d.ts → 6_claimed_gifts.d.ts} +4 -4
- package/script/types/6_claimed_gifts.d.ts.map +1 -0
- package/script/types/{5_claimed_gifts.js → 6_claimed_gifts.js} +4 -4
- package/script/types/{5_message.d.ts → 6_message.d.ts} +10 -11
- package/script/types/6_message.d.ts.map +1 -0
- package/script/types/{5_message.js → 6_message.js} +45 -70
- package/{esm/types/5_message_content.d.ts → script/types/6_message_content.d.ts} +3 -3
- package/script/types/{5_message_content.d.ts.map → 6_message_content.d.ts.map} +1 -1
- package/{esm/types/6_callback_query.d.ts → script/types/7_callback_query.d.ts} +5 -5
- package/script/types/{6_callback_query.d.ts.map → 7_callback_query.d.ts.map} +1 -1
- package/script/types/{6_callback_query.js → 7_callback_query.js} +5 -5
- package/{esm/types/6_chat_list_item.d.ts → script/types/7_chat_list_item.d.ts} +6 -7
- package/script/types/7_chat_list_item.d.ts.map +1 -0
- package/script/types/{6_chat_list_item.js → 7_chat_list_item.js} +11 -11
- package/{esm/types/6_inline_query_result.d.ts → script/types/7_inline_query_result.d.ts} +3 -3
- package/script/types/{6_inline_query_result.d.ts.map → 7_inline_query_result.d.ts.map} +1 -1
- package/script/types/{6_inline_query_result.js → 7_inline_query_result.js} +3 -3
- package/script/types/{6_saved_chat.d.ts → 7_saved_chat.d.ts} +4 -5
- package/script/types/7_saved_chat.d.ts.map +1 -0
- package/script/types/{6_saved_chat.js → 7_saved_chat.js} +4 -4
- package/script/types/{6_topic.d.ts → 7_topic.d.ts} +2 -2
- package/script/types/{6_topic.d.ts.map → 7_topic.d.ts.map} +1 -1
- package/script/types/{7_inline_query_answer.d.ts → 8_inline_query_answer.d.ts} +2 -2
- package/script/types/{7_inline_query_answer.d.ts.map → 8_inline_query_answer.d.ts.map} +1 -1
- package/script/types/{7_inline_query_answer.js → 8_inline_query_answer.js} +2 -2
- package/{esm/types/7_saved_chats.d.ts → script/types/8_saved_chats.d.ts} +5 -5
- package/script/types/8_saved_chats.d.ts.map +1 -0
- package/script/types/{7_saved_chats.js → 8_saved_chats.js} +3 -3
- package/script/types/{7_update.d.ts → 8_update.d.ts} +35 -16
- package/script/types/8_update.d.ts.map +1 -0
- package/script/types/_file_id.d.ts +1 -1
- package/script/types/_file_id.d.ts.map +1 -1
- package/script/types/_getters.d.ts +0 -7
- package/script/types/_getters.d.ts.map +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 +14 -0
- package/script/utilities/0_part_stream.d.ts +1 -1
- package/script/utilities/0_part_stream.d.ts.map +1 -1
- package/esm/types/1_user.d.ts.map +0 -1
- package/esm/types/2_business_connection.d.ts.map +0 -1
- package/esm/types/2_chosen_inline_result.d.ts.map +0 -1
- package/esm/types/2_forward_header.d.ts.map +0 -1
- package/esm/types/2_game.d.ts.map +0 -1
- package/esm/types/2_inline_query.d.ts.map +0 -1
- package/esm/types/2_message_reactions.d.ts.map +0 -1
- package/esm/types/2_pre_checkout_query.d.ts.map +0 -1
- package/esm/types/3_chat_member_updated.d.ts.map +0 -1
- package/esm/types/3_join_request.d.ts.map +0 -1
- package/esm/types/4_claimed_gift.d.ts.map +0 -1
- package/esm/types/5_claimed_gifts.d.ts.map +0 -1
- package/esm/types/5_message.d.ts.map +0 -1
- package/esm/types/6_chat_list_item.d.ts.map +0 -1
- package/esm/types/6_saved_chat.d.ts.map +0 -1
- package/esm/types/7_saved_chats.d.ts.map +0 -1
- package/esm/types/7_update.d.ts.map +0 -1
- package/script/types/1_user.d.ts.map +0 -1
- package/script/types/2_business_connection.d.ts.map +0 -1
- package/script/types/2_chosen_inline_result.d.ts.map +0 -1
- package/script/types/2_forward_header.d.ts.map +0 -1
- package/script/types/2_game.d.ts.map +0 -1
- package/script/types/2_inline_query.d.ts.map +0 -1
- package/script/types/2_message_reactions.d.ts.map +0 -1
- package/script/types/2_pre_checkout_query.d.ts.map +0 -1
- package/script/types/3_chat_member_updated.d.ts.map +0 -1
- package/script/types/3_join_request.d.ts.map +0 -1
- package/script/types/4_claimed_gift.d.ts.map +0 -1
- package/script/types/5_claimed_gifts.d.ts.map +0 -1
- package/script/types/5_message.d.ts.map +0 -1
- package/script/types/6_chat_list_item.d.ts.map +0 -1
- package/script/types/6_saved_chat.d.ts.map +0 -1
- package/script/types/7_saved_chats.d.ts.map +0 -1
- package/script/types/7_update.d.ts.map +0 -1
- /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/{6_topic.js → 7_topic.js} +0 -0
- /package/esm/types/{7_update.js → 8_update.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/{6_topic.js → 7_topic.js} +0 -0
- /package/script/types/{7_update.js → 8_update.js} +0 -0
package/esm/0_deps.d.ts
CHANGED
|
@@ -27,13 +27,15 @@ export { extname } from "./deps/jsr.io/@std/path/1.1.2/extname.js";
|
|
|
27
27
|
export { basename } from "./deps/jsr.io/@std/path/1.1.2/basename.js";
|
|
28
28
|
export { toFileUrl } from "./deps/jsr.io/@std/path/1.1.2/to_file_url.js";
|
|
29
29
|
export { isAbsolute } from "./deps/jsr.io/@std/path/1.1.2/is_absolute.js";
|
|
30
|
-
export { delay } from "./deps/jsr.io/@std/async/1.0.14/mod.js";
|
|
30
|
+
export { delay, pooledMap } from "./deps/jsr.io/@std/async/1.0.14/mod.js";
|
|
31
31
|
export { concat } from "./deps/jsr.io/@std/bytes/1.0.6/concat.js";
|
|
32
|
+
export { LruCache } from "./deps/jsr.io/@std/cache/0.2.0/lru_cache.js";
|
|
32
33
|
export { iterateReader } from "./deps/jsr.io/@std/io/0.225.2/iterate_reader.js";
|
|
33
34
|
export { format } from "./deps/jsr.io/@std/datetime/0.225.5/format.js";
|
|
34
35
|
export { MINUTE, SECOND } from "./deps/jsr.io/@std/datetime/0.225.5/constants.js";
|
|
35
36
|
export { toArrayBuffer } from "./deps/jsr.io/@std/streams/1.0.11/to_array_buffer.js";
|
|
36
37
|
export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.7/base64.js";
|
|
38
|
+
export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.7/hex.js";
|
|
37
39
|
import { contentType as contentType_ } from "./deps/jsr.io/@std/media-types/1.1.0/content_type.js";
|
|
38
40
|
export declare const contentType: typeof contentType_;
|
|
39
41
|
export declare function extension(mimeType: string): string;
|
package/esm/0_deps.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_deps.d.ts","sourceRoot":"","sources":["../src/0_deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,iDAAiD,CA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AAE,MAAM,+CAA+C,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kDAAkD,CAAC;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAEzF,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAErE,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACnG,eAAO,MAAM,WAAW,EAAE,OAAO,YAMhC,CAAC;AAEF,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,UAMzC;AAED,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAEnH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
package/esm/0_deps.js
CHANGED
|
@@ -27,13 +27,15 @@ export { extname } from "./deps/jsr.io/@std/path/1.1.2/extname.js";
|
|
|
27
27
|
export { basename } from "./deps/jsr.io/@std/path/1.1.2/basename.js";
|
|
28
28
|
export { toFileUrl } from "./deps/jsr.io/@std/path/1.1.2/to_file_url.js";
|
|
29
29
|
export { isAbsolute } from "./deps/jsr.io/@std/path/1.1.2/is_absolute.js";
|
|
30
|
-
export { delay } from "./deps/jsr.io/@std/async/1.0.14/mod.js";
|
|
30
|
+
export { delay, pooledMap } from "./deps/jsr.io/@std/async/1.0.14/mod.js";
|
|
31
31
|
export { concat } from "./deps/jsr.io/@std/bytes/1.0.6/concat.js";
|
|
32
|
+
export { LruCache } from "./deps/jsr.io/@std/cache/0.2.0/lru_cache.js";
|
|
32
33
|
export { iterateReader } from "./deps/jsr.io/@std/io/0.225.2/iterate_reader.js";
|
|
33
34
|
export { format } from "./deps/jsr.io/@std/datetime/0.225.5/format.js";
|
|
34
35
|
export { MINUTE, SECOND } from "./deps/jsr.io/@std/datetime/0.225.5/constants.js";
|
|
35
36
|
export { toArrayBuffer } from "./deps/jsr.io/@std/streams/1.0.11/to_array_buffer.js";
|
|
36
37
|
export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.7/base64.js";
|
|
38
|
+
export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.7/hex.js";
|
|
37
39
|
import { contentType as contentType_ } from "./deps/jsr.io/@std/media-types/1.1.0/content_type.js";
|
|
38
40
|
export const contentType = (extentionOrType) => {
|
|
39
41
|
if (extentionOrType === "tgs") {
|
package/esm/3_types.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ export * from "./types/0_live_stream_channel.js";
|
|
|
41
41
|
export * from "./types/0_location.js";
|
|
42
42
|
export * from "./types/0_login_url.js";
|
|
43
43
|
export * from "./types/0_mask_position.js";
|
|
44
|
-
export * from "./types/0_message_entity.js";
|
|
45
44
|
export * from "./types/0_message_reference.js";
|
|
46
45
|
export * from "./types/0_message_search_filter.js";
|
|
47
46
|
export * from "./types/0_mini_app_button_info.js";
|
|
@@ -72,7 +71,6 @@ export * from "./types/1_document.js";
|
|
|
72
71
|
export * from "./types/1_giveaway.js";
|
|
73
72
|
export * from "./types/1_inline_keyboard_button.js";
|
|
74
73
|
export * from "./types/1_inline_query_result_button.js";
|
|
75
|
-
export * from "./types/1_input_media.js";
|
|
76
74
|
export * from "./types/1_input_story_content.js";
|
|
77
75
|
export * from "./types/1_keyboard_button.js";
|
|
78
76
|
export * from "./types/1_message_reaction.js";
|
|
@@ -80,55 +78,57 @@ export * from "./types/1_mini_app_info.js";
|
|
|
80
78
|
export * from "./types/1_network_statistics.js";
|
|
81
79
|
export * from "./types/1_order_info.js";
|
|
82
80
|
export * from "./types/1_photo.js";
|
|
83
|
-
export * from "./types/1_poll_option.js";
|
|
84
81
|
export * from "./types/1_reaction_count.js";
|
|
85
|
-
export * from "./types/1_reply_quote.js";
|
|
86
82
|
export * from "./types/1_sticker.js";
|
|
87
|
-
export * from "./types/1_story_privacy.js";
|
|
88
83
|
export * from "./types/1_story_reaction.js";
|
|
89
|
-
export * from "./types/1_user.js";
|
|
90
84
|
export * from "./types/1_venue.js";
|
|
91
85
|
export * from "./types/1_video_note.js";
|
|
92
86
|
export * from "./types/1_video.js";
|
|
93
|
-
export * from "./types/2_business_connection.js";
|
|
94
|
-
export * from "./types/2_chat_member.js";
|
|
95
|
-
export * from "./types/2_chat_settings.js";
|
|
96
87
|
export * from "./types/2_chat.js";
|
|
97
|
-
export * from "./types/2_chosen_inline_result.js";
|
|
98
|
-
export * from "./types/2_forward_header.js";
|
|
99
|
-
export * from "./types/2_game.js";
|
|
100
|
-
export * from "./types/2_gift_upgraded_component.js";
|
|
101
88
|
export * from "./types/2_inactive_chat.js";
|
|
102
|
-
export * from "./types/
|
|
103
|
-
export * from "./types/2_invite_link.js";
|
|
89
|
+
export * from "./types/2_message_entity.js";
|
|
104
90
|
export * from "./types/2_message_interactions.js";
|
|
105
91
|
export * from "./types/2_message_reaction_count.js";
|
|
106
|
-
export * from "./types/2_message_reactions.js";
|
|
107
92
|
export * from "./types/2_poll_answer.js";
|
|
108
|
-
export * from "./types/2_poll.js";
|
|
109
|
-
export * from "./types/2_pre_checkout_query.js";
|
|
110
93
|
export * from "./types/2_reply_markup.js";
|
|
111
|
-
export * from "./types/2_reply_to.js";
|
|
112
94
|
export * from "./types/2_sticker_set.js";
|
|
113
95
|
export * from "./types/2_story_content.js";
|
|
114
96
|
export * from "./types/2_story_interactions.js";
|
|
115
97
|
export * from "./types/2_story_interactive_area.js";
|
|
98
|
+
export * from "./types/2_story_privacy.js";
|
|
116
99
|
export * from "./types/2_successful_payment.js";
|
|
117
|
-
export * from "./types/
|
|
118
|
-
export * from "./types/
|
|
119
|
-
export * from "./types/
|
|
100
|
+
export * from "./types/2_user.js";
|
|
101
|
+
export * from "./types/3_business_connection.js";
|
|
102
|
+
export * from "./types/3_chat_member.js";
|
|
103
|
+
export * from "./types/3_chat_settings.js";
|
|
104
|
+
export * from "./types/3_chosen_inline_result.js";
|
|
105
|
+
export * from "./types/3_forward_header.js";
|
|
106
|
+
export * from "./types/3_game.js";
|
|
107
|
+
export * from "./types/3_gift_upgraded_component.js";
|
|
108
|
+
export * from "./types/3_inline_query.js";
|
|
109
|
+
export * from "./types/3_input_media.js";
|
|
110
|
+
export * from "./types/3_invite_link.js";
|
|
111
|
+
export * from "./types/3_message_reactions.js";
|
|
112
|
+
export * from "./types/3_poll_option.js";
|
|
113
|
+
export * from "./types/3_pre_checkout_query.js";
|
|
114
|
+
export * from "./types/3_reply_quote.js";
|
|
120
115
|
export * from "./types/3_story.js";
|
|
121
|
-
export * from "./types/
|
|
122
|
-
export * from "./types/
|
|
123
|
-
export * from "./types/
|
|
124
|
-
export * from "./types/
|
|
125
|
-
export * from "./types/
|
|
126
|
-
export * from "./types/
|
|
127
|
-
export * from "./types/
|
|
128
|
-
export * from "./types/
|
|
129
|
-
export * from "./types/
|
|
130
|
-
export * from "./types/
|
|
131
|
-
export * from "./types/
|
|
132
|
-
export * from "./types/
|
|
133
|
-
export * from "./types/
|
|
116
|
+
export * from "./types/4_chat_member_updated.js";
|
|
117
|
+
export * from "./types/4_gift.js";
|
|
118
|
+
export * from "./types/4_join_request.js";
|
|
119
|
+
export * from "./types/4_poll.js";
|
|
120
|
+
export * from "./types/4_reply_to.js";
|
|
121
|
+
export * from "./types/5_claimed_gift.js";
|
|
122
|
+
export * from "./types/5_link_preview.js";
|
|
123
|
+
export * from "./types/6_claimed_gifts.js";
|
|
124
|
+
export * from "./types/6_message_content.js";
|
|
125
|
+
export * from "./types/6_message.js";
|
|
126
|
+
export * from "./types/7_callback_query.js";
|
|
127
|
+
export * from "./types/7_chat_list_item.js";
|
|
128
|
+
export * from "./types/7_inline_query_result.js";
|
|
129
|
+
export * from "./types/7_saved_chat.js";
|
|
130
|
+
export * from "./types/7_topic.js";
|
|
131
|
+
export * from "./types/8_inline_query_answer.js";
|
|
132
|
+
export * from "./types/8_saved_chats.js";
|
|
133
|
+
export * from "./types/8_update.js";
|
|
134
134
|
//# sourceMappingURL=3_types.d.ts.map
|
package/esm/3_types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_types.d.ts","sourceRoot":"","sources":["../src/3_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,
|
|
1
|
+
{"version":3,"file":"3_types.d.ts","sourceRoot":"","sources":["../src/3_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cA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C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
|
package/esm/3_types.js
CHANGED
|
@@ -41,7 +41,6 @@ export * from "./types/0_live_stream_channel.js";
|
|
|
41
41
|
export * from "./types/0_location.js";
|
|
42
42
|
export * from "./types/0_login_url.js";
|
|
43
43
|
export * from "./types/0_mask_position.js";
|
|
44
|
-
export * from "./types/0_message_entity.js";
|
|
45
44
|
export * from "./types/0_message_reference.js";
|
|
46
45
|
export * from "./types/0_message_search_filter.js";
|
|
47
46
|
export * from "./types/0_mini_app_button_info.js";
|
|
@@ -72,7 +71,6 @@ export * from "./types/1_document.js";
|
|
|
72
71
|
export * from "./types/1_giveaway.js";
|
|
73
72
|
export * from "./types/1_inline_keyboard_button.js";
|
|
74
73
|
export * from "./types/1_inline_query_result_button.js";
|
|
75
|
-
export * from "./types/1_input_media.js";
|
|
76
74
|
export * from "./types/1_input_story_content.js";
|
|
77
75
|
export * from "./types/1_keyboard_button.js";
|
|
78
76
|
export * from "./types/1_message_reaction.js";
|
|
@@ -80,54 +78,56 @@ export * from "./types/1_mini_app_info.js";
|
|
|
80
78
|
export * from "./types/1_network_statistics.js";
|
|
81
79
|
export * from "./types/1_order_info.js";
|
|
82
80
|
export * from "./types/1_photo.js";
|
|
83
|
-
export * from "./types/1_poll_option.js";
|
|
84
81
|
export * from "./types/1_reaction_count.js";
|
|
85
|
-
export * from "./types/1_reply_quote.js";
|
|
86
82
|
export * from "./types/1_sticker.js";
|
|
87
|
-
export * from "./types/1_story_privacy.js";
|
|
88
83
|
export * from "./types/1_story_reaction.js";
|
|
89
|
-
export * from "./types/1_user.js";
|
|
90
84
|
export * from "./types/1_venue.js";
|
|
91
85
|
export * from "./types/1_video_note.js";
|
|
92
86
|
export * from "./types/1_video.js";
|
|
93
|
-
export * from "./types/2_business_connection.js";
|
|
94
|
-
export * from "./types/2_chat_member.js";
|
|
95
|
-
export * from "./types/2_chat_settings.js";
|
|
96
87
|
export * from "./types/2_chat.js";
|
|
97
|
-
export * from "./types/2_chosen_inline_result.js";
|
|
98
|
-
export * from "./types/2_forward_header.js";
|
|
99
|
-
export * from "./types/2_game.js";
|
|
100
|
-
export * from "./types/2_gift_upgraded_component.js";
|
|
101
88
|
export * from "./types/2_inactive_chat.js";
|
|
102
|
-
export * from "./types/
|
|
103
|
-
export * from "./types/2_invite_link.js";
|
|
89
|
+
export * from "./types/2_message_entity.js";
|
|
104
90
|
export * from "./types/2_message_interactions.js";
|
|
105
91
|
export * from "./types/2_message_reaction_count.js";
|
|
106
|
-
export * from "./types/2_message_reactions.js";
|
|
107
92
|
export * from "./types/2_poll_answer.js";
|
|
108
|
-
export * from "./types/2_poll.js";
|
|
109
|
-
export * from "./types/2_pre_checkout_query.js";
|
|
110
93
|
export * from "./types/2_reply_markup.js";
|
|
111
|
-
export * from "./types/2_reply_to.js";
|
|
112
94
|
export * from "./types/2_sticker_set.js";
|
|
113
95
|
export * from "./types/2_story_content.js";
|
|
114
96
|
export * from "./types/2_story_interactions.js";
|
|
115
97
|
export * from "./types/2_story_interactive_area.js";
|
|
98
|
+
export * from "./types/2_story_privacy.js";
|
|
116
99
|
export * from "./types/2_successful_payment.js";
|
|
117
|
-
export * from "./types/
|
|
118
|
-
export * from "./types/
|
|
119
|
-
export * from "./types/
|
|
100
|
+
export * from "./types/2_user.js";
|
|
101
|
+
export * from "./types/3_business_connection.js";
|
|
102
|
+
export * from "./types/3_chat_member.js";
|
|
103
|
+
export * from "./types/3_chat_settings.js";
|
|
104
|
+
export * from "./types/3_chosen_inline_result.js";
|
|
105
|
+
export * from "./types/3_forward_header.js";
|
|
106
|
+
export * from "./types/3_game.js";
|
|
107
|
+
export * from "./types/3_gift_upgraded_component.js";
|
|
108
|
+
export * from "./types/3_inline_query.js";
|
|
109
|
+
export * from "./types/3_input_media.js";
|
|
110
|
+
export * from "./types/3_invite_link.js";
|
|
111
|
+
export * from "./types/3_message_reactions.js";
|
|
112
|
+
export * from "./types/3_poll_option.js";
|
|
113
|
+
export * from "./types/3_pre_checkout_query.js";
|
|
114
|
+
export * from "./types/3_reply_quote.js";
|
|
120
115
|
export * from "./types/3_story.js";
|
|
121
|
-
export * from "./types/
|
|
122
|
-
export * from "./types/
|
|
123
|
-
export * from "./types/
|
|
124
|
-
export * from "./types/
|
|
125
|
-
export * from "./types/
|
|
126
|
-
export * from "./types/
|
|
127
|
-
export * from "./types/
|
|
128
|
-
export * from "./types/
|
|
129
|
-
export * from "./types/
|
|
130
|
-
export * from "./types/
|
|
131
|
-
export * from "./types/
|
|
132
|
-
export * from "./types/
|
|
133
|
-
export * from "./types/
|
|
116
|
+
export * from "./types/4_chat_member_updated.js";
|
|
117
|
+
export * from "./types/4_gift.js";
|
|
118
|
+
export * from "./types/4_join_request.js";
|
|
119
|
+
export * from "./types/4_poll.js";
|
|
120
|
+
export * from "./types/4_reply_to.js";
|
|
121
|
+
export * from "./types/5_claimed_gift.js";
|
|
122
|
+
export * from "./types/5_link_preview.js";
|
|
123
|
+
export * from "./types/6_claimed_gifts.js";
|
|
124
|
+
export * from "./types/6_message_content.js";
|
|
125
|
+
export * from "./types/6_message.js";
|
|
126
|
+
export * from "./types/7_callback_query.js";
|
|
127
|
+
export * from "./types/7_chat_list_item.js";
|
|
128
|
+
export * from "./types/7_inline_query_result.js";
|
|
129
|
+
export * from "./types/7_saved_chat.js";
|
|
130
|
+
export * from "./types/7_topic.js";
|
|
131
|
+
export * from "./types/8_inline_query_answer.js";
|
|
132
|
+
export * from "./types/8_saved_chats.js";
|
|
133
|
+
export * from "./types/8_update.js";
|
package/esm/_dnt.polyfills.d.ts
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface ArrayConstructor {
|
|
3
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | Promise<T>> | ArrayLike<T | Promise<T>>): Promise<T[]>;
|
|
4
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export {};
|
|
1
8
|
declare global {
|
|
2
9
|
interface Error {
|
|
3
10
|
cause?: unknown;
|
|
4
11
|
}
|
|
5
12
|
}
|
|
6
13
|
export {};
|
|
14
|
+
declare global {
|
|
15
|
+
interface PromiseConstructor {
|
|
16
|
+
/**
|
|
17
|
+
* Creates a Promise that can be resolved or rejected using provided functions.
|
|
18
|
+
* @returns An object containing `promise` promise object, `resolve` and `reject` functions.
|
|
19
|
+
*/
|
|
20
|
+
withResolvers<T>(): {
|
|
21
|
+
promise: Promise<T>;
|
|
22
|
+
resolve: (value: T | PromiseLike<T>) => void;
|
|
23
|
+
reject: (reason?: any) => void;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
7
27
|
/**
|
|
8
28
|
* Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
|
|
9
29
|
* but instead of using npm to install additional dependencies,
|
|
@@ -103,17 +123,4 @@ interface ImportMetaPonyfill extends ImportMetaPonyfillCommonjs, ImportMetaPonyf
|
|
|
103
123
|
export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
|
|
104
124
|
export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
|
|
105
125
|
export declare let import_meta_ponyfill: ImportMetaPonyfill;
|
|
106
|
-
declare global {
|
|
107
|
-
interface PromiseConstructor {
|
|
108
|
-
/**
|
|
109
|
-
* Creates a Promise that can be resolved or rejected using provided functions.
|
|
110
|
-
* @returns An object containing `promise` promise object, `resolve` and `reject` functions.
|
|
111
|
-
*/
|
|
112
|
-
withResolvers<T>(): {
|
|
113
|
-
promise: Promise<T>;
|
|
114
|
-
resolve: (value: T | PromiseLike<T>) => void;
|
|
115
|
-
reject: (reason?: any) => void;
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
126
|
//# sourceMappingURL=_dnt.polyfills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,gBAAgB;QACxB,SAAS,CAAC,CAAC,EACP,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAC7F,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;QAEhB,SAAS,CAAC,CAAC,EAAE,CAAC,EACV,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAClE,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,EAC/B,OAAO,CAAC,EAAE,GAAG,GACd,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KAC1B;CACF;AAoID,OAAO,EAAE,CAAC;AAAA,OAAO,CAAC,MAAM,CAAC;IACvB,UAAU,KAAK;QACb,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,OAAO,EAAE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AAO,IAAI,6BAA6B,EA2BnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,6BAA6B,EA4DnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,oBAAoB,EAoB1B,kBAAkB,CAAC"}
|
package/esm/_dnt.polyfills.js
CHANGED
|
@@ -1,3 +1,123 @@
|
|
|
1
|
+
// From https://github.com/es-shims/array-from-async/blob/4a5ff83947b861f35b380d5d4f20da2f07698638/index.mjs
|
|
2
|
+
// Tried to have dnt depend on the package instead, but it distributes as an
|
|
3
|
+
// ES module, so doesn't work with CommonJS.
|
|
4
|
+
//
|
|
5
|
+
// Code below:
|
|
6
|
+
//
|
|
7
|
+
// Copyright 2021 J. S. Choi
|
|
8
|
+
//
|
|
9
|
+
// Redistribution and use in source and binary forms, with or without
|
|
10
|
+
// modification, are permitted provided that the following conditions
|
|
11
|
+
// are met:
|
|
12
|
+
//
|
|
13
|
+
// 1. Redistributions of source code must retain the above copyright
|
|
14
|
+
// notice, this list of conditions and the following disclaimer.
|
|
15
|
+
//
|
|
16
|
+
// 2. Redistributions in binary form must reproduce the above copyright
|
|
17
|
+
// notice, this list of conditions and the following disclaimer in the
|
|
18
|
+
// documentation and/or other materials provided with the distribution.
|
|
19
|
+
//
|
|
20
|
+
// 3. Neither the name of the copyright holder nor the names of its
|
|
21
|
+
// contributors may be used to endorse or promote products derived from
|
|
22
|
+
// this software without specific prior written permission.
|
|
23
|
+
//
|
|
24
|
+
// **This software is provided by the copyright holders and contributors
|
|
25
|
+
// "as is" and any express or implied warranties, including, but not
|
|
26
|
+
// limited to, the implied warranties of merchantability and fitness for a
|
|
27
|
+
// particular purpose are disclaimed. In no event shall the copyright
|
|
28
|
+
// holder or contributors be liable for any direct, indirect, incidental,
|
|
29
|
+
// special, exemplary, or consequential damages (including, but not limited
|
|
30
|
+
// to, procurement of substitute goods or services; loss of use, data, or
|
|
31
|
+
// profits; or business interruption) however caused and on any theory of
|
|
32
|
+
// liability, whether in contract, strict liability, or tort (including
|
|
33
|
+
// negligence or otherwise) arising in any way out of the use of this
|
|
34
|
+
// software, even if advised of the possibility of such damage.**
|
|
35
|
+
const { MAX_SAFE_INTEGER } = Number;
|
|
36
|
+
const iteratorSymbol = Symbol.iterator;
|
|
37
|
+
const asyncIteratorSymbol = Symbol.asyncIterator;
|
|
38
|
+
const IntrinsicArray = Array;
|
|
39
|
+
const tooLongErrorMessage = 'Input is too long and exceeded Number.MAX_SAFE_INTEGER times.';
|
|
40
|
+
function isConstructor(obj) {
|
|
41
|
+
if (obj != null) {
|
|
42
|
+
const prox = new Proxy(obj, {
|
|
43
|
+
construct() {
|
|
44
|
+
return prox;
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
try {
|
|
48
|
+
new prox;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
async function fromAsync(items, mapfn, thisArg) {
|
|
60
|
+
const itemsAreIterable = (asyncIteratorSymbol in items ||
|
|
61
|
+
iteratorSymbol in items);
|
|
62
|
+
if (itemsAreIterable) {
|
|
63
|
+
const result = isConstructor(this)
|
|
64
|
+
? new this
|
|
65
|
+
: IntrinsicArray(0);
|
|
66
|
+
let i = 0;
|
|
67
|
+
for await (const v of items) {
|
|
68
|
+
if (i > MAX_SAFE_INTEGER) {
|
|
69
|
+
throw TypeError(tooLongErrorMessage);
|
|
70
|
+
}
|
|
71
|
+
else if (mapfn) {
|
|
72
|
+
result[i] = await mapfn.call(thisArg, v, i);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
result[i] = v;
|
|
76
|
+
}
|
|
77
|
+
i++;
|
|
78
|
+
}
|
|
79
|
+
result.length = i;
|
|
80
|
+
return result;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
// In this case, the items are assumed to be an arraylike object with
|
|
84
|
+
// a length property and integer properties for each element.
|
|
85
|
+
const { length } = items;
|
|
86
|
+
const result = isConstructor(this)
|
|
87
|
+
? new this(length)
|
|
88
|
+
: IntrinsicArray(length);
|
|
89
|
+
let i = 0;
|
|
90
|
+
while (i < length) {
|
|
91
|
+
if (i > MAX_SAFE_INTEGER) {
|
|
92
|
+
throw TypeError(tooLongErrorMessage);
|
|
93
|
+
}
|
|
94
|
+
const v = await items[i];
|
|
95
|
+
if (mapfn) {
|
|
96
|
+
result[i] = await mapfn.call(thisArg, v, i);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
result[i] = v;
|
|
100
|
+
}
|
|
101
|
+
i++;
|
|
102
|
+
}
|
|
103
|
+
result.length = i;
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (!Array.fromAsync) {
|
|
108
|
+
Array.fromAsync = fromAsync;
|
|
109
|
+
}
|
|
110
|
+
// https://github.com/tc39/proposal-promise-with-resolvers/blob/3a78801e073e99217dbeb2c43ba7212f3bdc8b83/polyfills.js#L1C1-L9C2
|
|
111
|
+
if (Promise.withResolvers === undefined) {
|
|
112
|
+
Promise.withResolvers = () => {
|
|
113
|
+
const out = {};
|
|
114
|
+
out.promise = new Promise((resolve_, reject_) => {
|
|
115
|
+
out.resolve = resolve_;
|
|
116
|
+
out.reject = reject_;
|
|
117
|
+
});
|
|
118
|
+
return out;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
1
121
|
/**
|
|
2
122
|
* Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
|
|
3
123
|
* but instead of using npm to install additional dependencies,
|
|
@@ -125,14 +245,3 @@ export let import_meta_ponyfill = ((...args) => {
|
|
|
125
245
|
//@ts-ignore
|
|
126
246
|
return import_meta_ponyfill(...args);
|
|
127
247
|
});
|
|
128
|
-
// https://github.com/tc39/proposal-promise-with-resolvers/blob/3a78801e073e99217dbeb2c43ba7212f3bdc8b83/polyfills.js#L1C1-L9C2
|
|
129
|
-
if (Promise.withResolvers === undefined) {
|
|
130
|
-
Promise.withResolvers = () => {
|
|
131
|
-
const out = {};
|
|
132
|
-
out.promise = new Promise((resolve_, reject_) => {
|
|
133
|
-
out.resolve = resolve_;
|
|
134
|
-
out.reject = reject_;
|
|
135
|
-
});
|
|
136
|
-
return out;
|
|
137
|
-
};
|
|
138
|
-
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { type MaybePromise } from "../1_utilities.js";
|
|
21
|
+
export declare class AbortableLoop {
|
|
22
|
+
#private;
|
|
23
|
+
constructor(body: (loop: AbortableLoop, signal: AbortSignal) => MaybePromise<void>, onError: (loop: AbortableLoop, err: unknown) => void);
|
|
24
|
+
abort(): void;
|
|
25
|
+
start(): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=0_abortable_loop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0_abortable_loop.d.ts","sourceRoot":"","sources":["../../src/client/0_abortable_loop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE5D,qBAAa,aAAa;;gBAIZ,IAAI,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,KAAK,YAAY,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,OAAO,KAAK,IAAI;IAOxI,KAAK;IAIL,KAAK;CAiBN"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { drop } from "../1_utilities.js";
|
|
21
|
+
export class AbortableLoop {
|
|
22
|
+
#body;
|
|
23
|
+
#onError;
|
|
24
|
+
constructor(body, onError) {
|
|
25
|
+
this.#body = body;
|
|
26
|
+
this.#onError = onError;
|
|
27
|
+
}
|
|
28
|
+
#controller;
|
|
29
|
+
abort() {
|
|
30
|
+
this.#controller?.abort();
|
|
31
|
+
}
|
|
32
|
+
start() {
|
|
33
|
+
drop(this.#loop());
|
|
34
|
+
}
|
|
35
|
+
async #loop() {
|
|
36
|
+
this.#controller?.abort();
|
|
37
|
+
const controller = this.#controller = new AbortController();
|
|
38
|
+
do {
|
|
39
|
+
try {
|
|
40
|
+
await this.#body(this, controller.signal);
|
|
41
|
+
}
|
|
42
|
+
catch (err) {
|
|
43
|
+
if (!controller.signal.aborted) {
|
|
44
|
+
this.#onError(this, err);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
} while (!controller.signal.aborted);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_client_abstract.d.ts","sourceRoot":"","sources":["../../src/client/0_client_abstract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,8BAAsB,cAAc;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,IAAI,EAAE,IAAI,EAAE,CAEX;IAED,IAAI,GAAG,IAAI,OAAO,CAEjB;IAED,IAAI,UAAU,CAAC,UAAU,EAAE,MAAM,EAEhC;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAEK,OAAO;IAIb,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,UAAU;IAIV,IAAI,kBAAkB,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,EAExE;IAED,IAAI,uBAAuB,CAAC,uBAAuB,EAAE,UAAU,CAAC,oBAAoB,CAAC,EAEpF;CACF"}
|
|
1
|
+
{"version":3,"file":"0_client_abstract.d.ts","sourceRoot":"","sources":["../../src/client/0_client_abstract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,8BAAsB,cAAc;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,IAAI,EAAE,IAAI,EAAE,CAEX;IAED,IAAI,GAAG,IAAI,OAAO,CAEjB;IAED,IAAI,UAAU,CAAC,UAAU,EAAE,MAAM,EAEhC;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAEK,OAAO;IAIb,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,UAAU;IAIV,IAAI,kBAAkB,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,EAExE;IAED,IAAI,uBAAuB,CAAC,uBAAuB,EAAE,UAAU,CAAC,oBAAoB,CAAC,EAEpF;CACF"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* You should have received a copy of the GNU Lesser General Public License
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
|
+
import type { Api } from "../2_tl.js";
|
|
20
21
|
import type { CallbackQuery, ChosenInlineResult, MessageTypes, UpdateIntersection, UpdateMap } from "../3_types.js";
|
|
21
22
|
type AnyLevel1 = keyof UpdateMap;
|
|
22
23
|
type GetLevel1Type<L1 extends AnyLevel1> = UpdateMap[L1];
|
|
@@ -42,14 +43,19 @@ type GetLevel2Type<L1 extends string, L2 extends string> = L2 extends keyof Mess
|
|
|
42
43
|
[P in L2]-?: P extends keyof Level2TypeMap[L1] ? NonNullable<Level2TypeMap[L1][P]> : never;
|
|
43
44
|
};
|
|
44
45
|
} : never : never;
|
|
45
|
-
type AnyLevelX = AnyLevel1 | AnyLevel2;
|
|
46
|
-
type FilterCore<Q extends AnyLevelX = AnyLevelX> = Q extends AnyLevel1 ? GetLevel1Type<Q> : Q extends `${infer L1}:${infer L2}` ? GetLevel2Type<L1, L2> :
|
|
46
|
+
type AnyLevelX = AnyLevel1 | AnyLevel2 | Api.Update["_"];
|
|
47
|
+
type FilterCore<Q extends AnyLevelX = AnyLevelX> = Q extends AnyLevel1 ? GetLevel1Type<Q> : Q extends `${infer L1}:${infer L2}` ? GetLevel2Type<L1, L2> : Q extends Api.Update["_"] ? {
|
|
48
|
+
update: Extract<Api.Update, {
|
|
49
|
+
_: Q;
|
|
50
|
+
}>;
|
|
51
|
+
} : 1;
|
|
47
52
|
interface Shortcuts<T extends UpdateIntersection> {
|
|
48
53
|
msg: T["message"] extends object ? T["message"] : T["editedMessage"] extends object ? T["editedMessage"] : T["scheduledMessage"] extends object ? T["scheduledMessage"] : T["callbackQuery"] extends object ? T["callbackQuery"]["message"] : undefined;
|
|
49
54
|
chat: T["callbackQuery"] extends object ? NonNullable<T["callbackQuery"]["message"]>["chat"] | undefined : Shortcuts<T>["msg"] extends object ? Shortcuts<T>["msg"]["chat"] : T["messageReactions"] extends object ? T["messageReactions"]["chat"] : T["messageReactionCount"] extends object ? T["messageReactionCount"]["chat"] : T["myChatMember"] extends object ? T["myChatMember"]["chat"] : T["chatMember"] extends object ? T["chatMember"]["chat"] : T["joinRequest"] extends object ? T["joinRequest"]["chat"] : undefined;
|
|
50
55
|
from: T["callbackQuery"] extends object ? T["callbackQuery"]["from"] : T["inlineQuery"] extends object ? T["inlineQuery"]["from"] : T["chosenInlineResult"] extends object ? T["chosenInlineResult"]["from"] : T["message"] extends object ? T["message"]["from"] : T["editedMessage"] extends object ? T["editedMessage"]["from"] : T["scheduledMessage"] extends object ? T["scheduledMessage"]["from"] : T["preCheckoutQuery"] extends object ? T["preCheckoutQuery"]["from"] : T["joinRequest"] extends object ? T["joinRequest"]["from"] : T["pollAnswer"] extends object ? T["pollAnswer"]["from"] : undefined;
|
|
51
56
|
}
|
|
52
|
-
type
|
|
57
|
+
type GetShortcuts<T> = T extends UpdateIntersection ? T["update"] extends object ? Record<string, never> : Shortcuts<T> : Record<string, never>;
|
|
58
|
+
type Filter<Q extends AnyLevelX> = FilterCore<Q> & GetShortcuts<FilterCore<Q>>;
|
|
53
59
|
export type FilterQuery = AnyLevelX;
|
|
54
60
|
export type WithFilter<T, Q extends FilterQuery> = T & Filter<Q>;
|
|
55
61
|
export declare function match<Q extends FilterQuery, T extends object>(filter: Q, value: T): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_filters.d.ts","sourceRoot":"","sources":["../../src/client/0_filters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEpH,KAAK,SAAS,GAAG,MAAM,SAAS,CAAC;AACjC,KAAK,aAAa,CAAC,EAAE,SAAS,SAAS,IAAI,SAAS,CAAC,EAAE,CAAC,CAAC;AAEzD,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,YAAY,CAAC;IAC9B,eAAe,EAAE,MAAM,YAAY,CAAC;IACpC,kBAAkB,EAAE,MAAM,YAAY,CAAC;IACvC,eAAe,EAAE,SAAS,GAAG,iBAAiB,GAAG,MAAM,GAAG,eAAe,CAAC;IAC1E,oBAAoB,EAAE,iBAAiB,CAAC;CACzC;AAED,UAAU,aAAa;IACrB,eAAe,EAAE,aAAa,CAAC;IAC/B,oBAAoB,EAAE,kBAAkB,CAAC;CAC1C;AAED,KAAK,YAAY,CAAC,EAAE,SAAS,SAAS,IAAI,EAAE,SAAS,MAAM,SAAS,GAAG,SAAS,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC;AAC7F,KAAK,SAAS,CAAC,EAAE,SAAS,SAAS,GAAG,SAAS,IAAI,EAAE,SAAS,OAAO,GAAG,GAAG,EA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