@mtkruto/node 0.77.1 → 0.78.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 +1 -1
- package/esm/0_deps.js +1 -1
- package/esm/0_errors.d.ts +1 -1
- package/esm/0_errors.js +1 -1
- package/esm/1_utilities.d.ts +1 -1
- package/esm/1_utilities.js +1 -1
- package/esm/2_connection.d.ts +1 -1
- package/esm/2_connection.js +1 -1
- package/esm/2_storage.d.ts +1 -1
- package/esm/2_storage.js +1 -1
- package/esm/2_tl.d.ts +1 -1
- package/esm/2_tl.js +1 -1
- package/esm/3_errors.d.ts +7 -1
- package/esm/3_errors.d.ts.map +1 -1
- package/esm/3_errors.js +7 -1
- package/esm/3_transport.d.ts +1 -1
- package/esm/3_transport.js +1 -1
- package/esm/3_types.d.ts +1 -1
- package/esm/3_types.js +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/4_errors.d.ts +1 -1
- package/esm/4_errors.js +1 -1
- package/esm/4_session.d.ts +1 -1
- package/esm/4_session.js +1 -1
- package/esm/5_client.d.ts +1 -1
- package/esm/5_client.js +1 -1
- package/esm/client/0_abortable_loop.d.ts +1 -1
- package/esm/client/0_abortable_loop.js +1 -1
- package/esm/client/0_client_abstract.d.ts +1 -1
- package/esm/client/0_client_abstract.js +1 -1
- package/esm/client/0_filters.d.ts +1 -1
- package/esm/client/0_filters.js +1 -1
- package/esm/client/0_html.d.ts +1 -1
- package/esm/client/0_html.js +1 -1
- package/esm/client/0_markdown.d.ts +1 -1
- package/esm/client/0_markdown.js +1 -1
- package/esm/client/0_params.d.ts +8 -2
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_params.js +1 -1
- package/esm/client/0_password.js +1 -1
- package/esm/client/0_storage_operations.d.ts +1 -1
- package/esm/client/0_storage_operations.js +1 -1
- package/esm/client/0_update_processor.d.ts +1 -1
- package/esm/client/0_update_processor.js +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 +1 -1
- package/esm/client/1_client_plain.d.ts +1 -1
- package/esm/client/1_client_plain.js +1 -1
- package/esm/client/1_composer.d.ts +1 -1
- package/esm/client/1_composer.js +1 -1
- package/esm/client/1_types.d.ts +1 -1
- package/esm/client/1_types.js +1 -1
- package/esm/client/2_account_manager.d.ts +1 -1
- package/esm/client/2_account_manager.js +1 -1
- package/esm/client/2_bot_info_manager.d.ts +1 -1
- package/esm/client/2_bot_info_manager.js +1 -1
- package/esm/client/2_business_connection_manager.d.ts +1 -1
- package/esm/client/2_business_connection_manager.js +1 -1
- package/esm/client/2_client_encrypted.d.ts +1 -1
- package/esm/client/2_client_encrypted.js +1 -1
- package/esm/client/2_file_manager.d.ts.map +1 -1
- package/esm/client/2_file_manager.js +11 -3
- package/esm/client/2_network_statistics_manager.d.ts +1 -1
- package/esm/client/2_network_statistics_manager.js +1 -1
- package/esm/client/2_payment_manager.d.ts +1 -1
- package/esm/client/2_payment_manager.js +1 -1
- package/esm/client/2_reaction_manager.d.ts +1 -1
- package/esm/client/2_reaction_manager.js +1 -1
- package/esm/client/2_translations_manager.d.ts +1 -1
- package/esm/client/2_translations_manager.js +1 -1
- package/esm/client/2_update_manager.d.ts +1 -1
- package/esm/client/2_update_manager.js +1 -1
- package/esm/client/3_client_encrypted_pool.d.ts +1 -1
- package/esm/client/3_client_encrypted_pool.js +1 -1
- package/esm/client/3_message_manager.d.ts +1 -1
- package/esm/client/3_message_manager.js +1 -1
- package/esm/client/3_video_chat_manager.d.ts +3 -3
- package/esm/client/3_video_chat_manager.d.ts.map +1 -1
- package/esm/client/3_video_chat_manager.js +14 -9
- package/esm/client/4_callback_query_manager.d.ts +1 -1
- package/esm/client/4_callback_query_manager.js +1 -1
- package/esm/client/4_chat_list_manager.d.ts +1 -1
- package/esm/client/4_chat_list_manager.js +1 -1
- package/esm/client/4_chat_manager.d.ts +1 -1
- package/esm/client/4_chat_manager.js +1 -1
- package/esm/client/4_forum_manager.d.ts +1 -1
- package/esm/client/4_forum_manager.js +1 -1
- package/esm/client/4_gift_manager.d.ts +1 -1
- package/esm/client/4_gift_manager.js +1 -1
- package/esm/client/4_inline_query_manager.d.ts +1 -1
- package/esm/client/4_inline_query_manager.js +1 -1
- package/esm/client/4_link_preview_manager.d.ts +1 -1
- package/esm/client/4_link_preview_manager.js +1 -1
- package/esm/client/4_poll_manager.d.ts +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.js +1 -1
- package/esm/client/5_client.d.ts +19 -4
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +26 -4
- package/esm/connection/0_connection.d.ts +1 -1
- package/esm/connection/0_connection.js +1 -1
- package/esm/connection/1_connection_tcp.node.d.ts +1 -1
- package/esm/connection/1_connection_tcp.node.js +1 -1
- package/esm/connection/1_connection_web_socket.js +1 -1
- package/esm/mod.d.ts +1 -1
- package/esm/mod.js +1 -1
- package/esm/session/0_session_error.d.ts +1 -1
- package/esm/session/0_session_error.js +1 -1
- package/esm/session/0_session_state.d.ts +1 -1
- package/esm/session/0_session_state.js +1 -1
- package/esm/session/1_session.js +1 -1
- package/esm/session/2_session_encrypted.d.ts +1 -1
- package/esm/session/2_session_encrypted.js +1 -1
- package/esm/session/2_session_plain.d.ts +1 -1
- package/esm/session/2_session_plain.js +1 -1
- package/esm/storage/0_storage.d.ts +1 -1
- package/esm/storage/0_storage.js +1 -1
- package/esm/storage/1_utilities.d.ts +1 -1
- package/esm/storage/1_utilities.js +1 -1
- package/esm/storage/2_storage_indexed_db.d.ts +1 -1
- package/esm/storage/2_storage_indexed_db.js +1 -1
- package/esm/storage/2_storage_local_storage.node.d.ts +1 -1
- package/esm/storage/2_storage_local_storage.node.js +1 -1
- package/esm/storage/2_storage_memory.d.ts +1 -1
- package/esm/storage/2_storage_memory.js +1 -1
- package/esm/storage/2_storage_session_storage.d.ts +1 -1
- package/esm/storage/2_storage_session_storage.js +1 -1
- package/esm/tl/0_types.d.ts +1 -1
- package/esm/tl/0_types.js +1 -1
- package/esm/tl/0_utilities.d.ts +1 -1
- package/esm/tl/0_utilities.js +1 -1
- package/esm/tl/1_mtproto_api.d.ts +1 -1
- package/esm/tl/1_mtproto_api.js +1 -1
- package/esm/tl/1_telegram_api.d.ts +624 -29
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +791 -61
- package/esm/tl/1_tl_reader.d.ts +1 -1
- package/esm/tl/1_tl_reader.js +1 -1
- package/esm/tl/1_tl_writer.d.ts +1 -1
- package/esm/tl/1_tl_writer.js +1 -1
- package/esm/tl/1_utilities.d.ts +1 -1
- package/esm/tl/1_utilities.js +1 -1
- package/esm/tl/2_message.d.ts +1 -1
- package/esm/tl/2_message.js +1 -1
- package/esm/tl/2_mtproto.d.ts +1 -1
- package/esm/tl/2_mtproto.js +1 -1
- package/esm/tl/2_telegram.d.ts +1 -1
- package/esm/tl/2_telegram.js +1 -1
- package/esm/transport/0_obfuscation.js +1 -1
- package/esm/transport/0_transport.d.ts +1 -1
- package/esm/transport/0_transport.js +1 -1
- package/esm/transport/1_transport_abridged.d.ts +1 -1
- package/esm/transport/1_transport_abridged.js +1 -1
- package/esm/transport/1_transport_intermediate.d.ts +1 -1
- package/esm/transport/1_transport_intermediate.js +1 -1
- package/esm/transport/1_transport_provider.d.ts +1 -1
- package/esm/transport/1_transport_provider.js +1 -1
- package/esm/transport/2_transport_provider_tcp.d.ts +1 -1
- package/esm/transport/2_transport_provider_tcp.js +1 -1
- package/esm/transport/2_transport_provider_web_socket.d.ts +1 -1
- package/esm/transport/2_transport_provider_web_socket.js +1 -1
- package/esm/types/0_authorization_state.d.ts +1 -1
- package/esm/types/0_authorization_state.js +1 -1
- package/esm/types/0_birthday.d.ts +1 -1
- package/esm/types/0_birthday.js +1 -1
- package/esm/types/0_bot_command.d.ts +1 -1
- package/esm/types/0_bot_command.js +1 -1
- package/esm/types/0_callback_query_answer.d.ts +1 -1
- package/esm/types/0_callback_query_answer.js +1 -1
- package/esm/types/0_callback_query_question.d.ts +1 -1
- package/esm/types/0_callback_query_question.js +1 -1
- package/esm/types/0_chat_action.d.ts +1 -1
- package/esm/types/0_chat_action.js +1 -1
- package/esm/types/0_chat_administrator_rights.d.ts +1 -1
- package/esm/types/0_chat_administrator_rights.js +1 -1
- package/esm/types/0_chat_member_rights.d.ts +1 -1
- package/esm/types/0_chat_member_rights.js +1 -1
- package/esm/types/0_chat_photo.d.ts +1 -1
- package/esm/types/0_chat_photo.js +1 -1
- package/esm/types/0_connection_state.d.ts +1 -1
- package/esm/types/0_connection_state.js +1 -1
- package/esm/types/0_contact.d.ts +1 -1
- package/esm/types/0_contact.js +1 -1
- package/esm/types/0_dice.d.ts +1 -1
- package/esm/types/0_dice.js +1 -1
- package/esm/types/0_failed_invitation.d.ts +1 -1
- package/esm/types/0_failed_invitation.js +1 -1
- package/esm/types/0_file_source.d.ts +1 -1
- package/esm/types/0_file_source.js +1 -1
- package/esm/types/0_gift_value.d.ts +1 -1
- package/esm/types/0_gift_value.js +1 -1
- package/esm/types/0_giveaway_parameters.d.ts +1 -1
- package/esm/types/0_giveaway_parameters.js +1 -1
- package/esm/types/0_id.d.ts +1 -1
- package/esm/types/0_id.js +1 -1
- package/esm/types/0_invoice.d.ts +1 -1
- package/esm/types/0_invoice.js +1 -1
- package/esm/types/0_keyboard_button_poll_type.d.ts +1 -1
- package/esm/types/0_keyboard_button_poll_type.js +1 -1
- package/esm/types/0_link_preview_media_size.d.ts +1 -1
- package/esm/types/0_link_preview_media_size.js +1 -1
- package/esm/types/0_live_stream_channel.d.ts +1 -1
- package/esm/types/0_live_stream_channel.js +1 -1
- package/esm/types/0_location.d.ts +1 -1
- package/esm/types/0_location.js +1 -1
- package/esm/types/0_login_url.d.ts +1 -1
- package/esm/types/0_login_url.js +1 -1
- package/esm/types/0_mask_position.d.ts +1 -1
- package/esm/types/0_mask_position.js +1 -1
- package/esm/types/0_message_reference.d.ts +1 -1
- package/esm/types/0_message_reference.js +1 -1
- package/esm/types/0_message_search_filter.d.ts +1 -1
- package/esm/types/0_message_search_filter.js +1 -1
- package/esm/types/0_mini_app_button_info.d.ts +1 -1
- package/esm/types/0_mini_app_button_info.js +1 -1
- package/esm/types/0_mini_app_mode.d.ts +1 -1
- package/esm/types/0_mini_app_mode.js +1 -1
- package/esm/types/0_network_statistics_entry.d.ts +1 -1
- package/esm/types/0_network_statistics_entry.js +1 -1
- package/esm/types/0_opening_hours.d.ts +1 -1
- package/esm/types/0_opening_hours.js +1 -1
- package/esm/types/0_parse_mode.d.ts +1 -1
- package/esm/types/0_parse_mode.js +1 -1
- package/esm/types/0_price_tag.d.ts +1 -1
- package/esm/types/0_price_tag.js +1 -1
- package/esm/types/0_reaction.d.ts +1 -1
- package/esm/types/0_reaction.js +1 -1
- package/esm/types/0_refunded_payment.d.ts +1 -1
- package/esm/types/0_refunded_payment.js +1 -1
- package/esm/types/0_restriction_reason.d.ts +1 -1
- package/esm/types/0_restriction_reason.js +1 -1
- package/esm/types/0_self_destruct_option.d.ts +1 -1
- package/esm/types/0_self_destruct_option.js +1 -1
- package/esm/types/0_shipping_address.d.ts +1 -1
- package/esm/types/0_shipping_address.js +1 -1
- package/esm/types/0_slow_mode_duration.d.ts +1 -1
- package/esm/types/0_slow_mode_duration.js +1 -1
- package/esm/types/0_story_reference.d.ts +1 -1
- package/esm/types/0_story_reference.js +1 -1
- package/esm/types/0_switch_inline_query_chosen_chats.d.ts +1 -1
- package/esm/types/0_switch_inline_query_chosen_chats.js +1 -1
- package/esm/types/0_thumbnail.d.ts +1 -1
- package/esm/types/0_thumbnail.js +1 -1
- package/esm/types/0_translation.d.ts +1 -1
- package/esm/types/0_translation.js +1 -1
- package/esm/types/0_upload_progress.d.ts +1 -1
- package/esm/types/0_upload_progress.js +1 -1
- package/esm/types/0_video_chat.d.ts +1 -1
- package/esm/types/0_video_chat.js +1 -1
- package/esm/types/0_voice.d.ts +1 -1
- package/esm/types/0_voice.js +1 -1
- package/esm/types/0_voice_transcription.d.ts +1 -1
- package/esm/types/0_voice_transcription.js +1 -1
- package/esm/types/1_animation.d.ts +1 -1
- package/esm/types/1_animation.js +1 -1
- package/esm/types/1_audio.d.ts +1 -1
- package/esm/types/1_audio.js +1 -1
- package/esm/types/1_bot_command_scope.d.ts +1 -1
- package/esm/types/1_bot_command_scope.js +1 -1
- package/esm/types/1_chat_p.d.ts +3 -3
- package/esm/types/1_chat_p.d.ts.map +1 -1
- package/esm/types/1_chat_p.js +10 -3
- package/esm/types/1_document.d.ts +1 -1
- package/esm/types/1_document.js +1 -1
- package/esm/types/1_giveaway.d.ts +1 -1
- package/esm/types/1_giveaway.js +1 -1
- package/esm/types/1_inline_keyboard_button.d.ts +1 -1
- package/esm/types/1_inline_keyboard_button.js +1 -1
- package/esm/types/1_inline_query_result_button.d.ts +1 -1
- package/esm/types/1_inline_query_result_button.js +1 -1
- package/esm/types/1_input_story_content.d.ts +1 -1
- package/esm/types/1_input_story_content.js +1 -1
- package/esm/types/1_keyboard_button.d.ts +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.js +1 -1
- package/esm/types/1_mini_app_info.d.ts +1 -1
- package/esm/types/1_mini_app_info.js +1 -1
- package/esm/types/1_network_statistics.d.ts +1 -1
- package/esm/types/1_network_statistics.js +1 -1
- package/esm/types/1_order_info.d.ts +1 -1
- package/esm/types/1_order_info.js +1 -1
- package/esm/types/1_photo.d.ts +1 -1
- package/esm/types/1_photo.js +1 -1
- package/esm/types/1_reaction_count.d.ts +1 -1
- package/esm/types/1_reaction_count.js +1 -1
- package/esm/types/1_sticker.d.ts +1 -1
- package/esm/types/1_sticker.js +1 -1
- package/esm/types/1_story_reaction.d.ts +1 -1
- package/esm/types/1_story_reaction.js +1 -1
- package/esm/types/1_venue.d.ts +1 -1
- package/esm/types/1_venue.js +1 -1
- package/esm/types/1_video.d.ts +1 -1
- package/esm/types/1_video.js +1 -1
- package/esm/types/1_video_note.d.ts +1 -1
- package/esm/types/1_video_note.js +1 -1
- package/esm/types/2_chat.d.ts +4 -4
- package/esm/types/2_chat.d.ts.map +1 -1
- package/esm/types/2_chat.js +1 -1
- package/esm/types/2_chat_member.d.ts +1 -1
- package/esm/types/2_chat_member.js +1 -1
- package/esm/types/2_inactive_chat.d.ts +1 -1
- package/esm/types/2_inactive_chat.js +1 -1
- package/esm/types/2_message_entity.d.ts +1 -1
- package/esm/types/2_message_entity.js +1 -1
- package/esm/types/2_message_interactions.d.ts +1 -1
- package/esm/types/2_message_interactions.js +1 -1
- package/esm/types/2_message_reaction_count.d.ts +1 -1
- package/esm/types/2_message_reaction_count.js +1 -1
- package/esm/types/2_message_reaction_list_item.d.ts +1 -1
- package/esm/types/2_message_reaction_list_item.js +1 -1
- package/esm/types/2_poll_answer.d.ts +1 -1
- package/esm/types/2_poll_answer.js +1 -1
- package/esm/types/2_reply_markup.d.ts +1 -1
- package/esm/types/2_reply_markup.js +1 -1
- package/esm/types/2_sticker_set.d.ts +1 -1
- package/esm/types/2_sticker_set.js +1 -1
- package/esm/types/2_story_content.d.ts +1 -1
- package/esm/types/2_story_content.js +1 -1
- package/esm/types/2_story_interactions.d.ts +1 -1
- package/esm/types/2_story_interactions.js +1 -1
- package/esm/types/2_story_interactive_area.d.ts +1 -1
- package/esm/types/2_story_interactive_area.js +1 -1
- package/esm/types/2_story_privacy.d.ts +1 -1
- package/esm/types/2_story_privacy.js +1 -1
- package/esm/types/2_successful_payment.d.ts +1 -1
- package/esm/types/2_successful_payment.js +1 -1
- package/esm/types/2_user.d.ts +1 -1
- package/esm/types/2_user.js +1 -1
- package/esm/types/3_business_connection.d.ts +1 -1
- package/esm/types/3_business_connection.js +1 -1
- package/esm/types/3_chat_settings.d.ts +1 -1
- package/esm/types/3_chat_settings.js +1 -1
- package/esm/types/3_chosen_inline_result.d.ts +1 -1
- package/esm/types/3_chosen_inline_result.js +1 -1
- package/esm/types/3_forward_header.d.ts +1 -1
- package/esm/types/3_forward_header.js +1 -1
- package/esm/types/3_game.d.ts +1 -1
- package/esm/types/3_game.js +1 -1
- package/esm/types/3_gift_upgraded_component.d.ts +1 -1
- package/esm/types/3_gift_upgraded_component.js +1 -1
- package/esm/types/3_inline_query.d.ts +1 -1
- package/esm/types/3_inline_query.js +1 -1
- package/esm/types/3_input_media.d.ts +1 -1
- package/esm/types/3_input_media.js +1 -1
- package/esm/types/3_invite_link.d.ts +1 -1
- package/esm/types/3_invite_link.js +1 -1
- package/esm/types/3_message_reaction_list.d.ts +1 -1
- package/esm/types/3_message_reaction_list.js +1 -1
- package/esm/types/3_message_reactions.d.ts +1 -1
- package/esm/types/3_message_reactions.js +1 -1
- package/esm/types/3_poll_option.d.ts +1 -1
- package/esm/types/3_poll_option.js +1 -1
- package/esm/types/3_pre_checkout_query.d.ts +1 -1
- package/esm/types/3_pre_checkout_query.js +1 -1
- package/esm/types/3_reply_quote.d.ts +1 -1
- package/esm/types/3_reply_quote.js +1 -1
- package/esm/types/3_story.d.ts +1 -1
- package/esm/types/3_story.js +1 -1
- package/esm/types/4_chat_member_updated.d.ts +1 -1
- package/esm/types/4_chat_member_updated.js +1 -1
- package/esm/types/4_gift.d.ts +1 -1
- package/esm/types/4_gift.js +1 -1
- package/esm/types/4_join_request.d.ts +1 -1
- package/esm/types/4_join_request.js +1 -1
- package/esm/types/4_poll.d.ts +1 -1
- package/esm/types/4_poll.js +1 -1
- package/esm/types/4_reply_to.d.ts +1 -1
- package/esm/types/4_reply_to.js +1 -1
- package/esm/types/5_claimed_gift.d.ts +1 -1
- package/esm/types/5_claimed_gift.js +1 -1
- package/esm/types/5_link_preview.d.ts +1 -1
- package/esm/types/5_link_preview.js +1 -1
- package/esm/types/6_claimed_gifts.d.ts +1 -1
- package/esm/types/6_claimed_gifts.js +1 -1
- package/esm/types/6_message.d.ts +1 -1
- package/esm/types/6_message.js +1 -1
- package/esm/types/6_message_content.d.ts +1 -1
- package/esm/types/6_message_content.js +1 -1
- package/esm/types/7_callback_query.d.ts +1 -1
- package/esm/types/7_callback_query.js +1 -1
- package/esm/types/7_chat_list_item.d.ts +1 -1
- package/esm/types/7_chat_list_item.js +1 -1
- package/esm/types/7_inline_query_result.d.ts +1 -1
- package/esm/types/7_inline_query_result.js +1 -1
- package/esm/types/7_saved_chat.d.ts +1 -1
- package/esm/types/7_saved_chat.js +1 -1
- package/esm/types/7_topic.d.ts +1 -1
- package/esm/types/7_topic.js +1 -1
- package/esm/types/8_inline_query_answer.d.ts +1 -1
- package/esm/types/8_inline_query_answer.js +1 -1
- package/esm/types/8_saved_chats.d.ts +1 -1
- package/esm/types/8_saved_chats.js +1 -1
- package/esm/types/8_update.d.ts +1 -1
- package/esm/types/8_update.js +1 -1
- package/esm/types/_file_id.d.ts +1 -1
- package/esm/types/_file_id.js +1 -1
- package/esm/types/_getters.d.ts +1 -1
- package/esm/types/_getters.js +1 -1
- package/esm/utilities/0_color.d.ts +1 -1
- package/esm/utilities/0_color.js +1 -1
- package/esm/utilities/0_env.js +1 -1
- package/esm/utilities/0_gzip.d.ts +1 -1
- package/esm/utilities/0_gzip.js +1 -1
- package/esm/utilities/0_hash.js +1 -1
- package/esm/utilities/0_int.js +1 -1
- package/esm/utilities/0_misc.js +1 -1
- package/esm/utilities/0_mutex.d.ts +1 -1
- package/esm/utilities/0_mutex.js +1 -1
- package/esm/utilities/0_object.d.ts +1 -1
- package/esm/utilities/0_object.js +1 -1
- package/esm/utilities/0_part_stream.d.ts +1 -1
- package/esm/utilities/0_part_stream.js +1 -1
- package/esm/utilities/0_rle.d.ts +1 -1
- package/esm/utilities/0_rle.js +1 -1
- package/esm/utilities/0_text.d.ts +1 -1
- package/esm/utilities/0_text.js +1 -1
- package/esm/utilities/0_types.d.ts +1 -1
- package/esm/utilities/0_types.js +1 -1
- package/esm/utilities/0_units.d.ts +1 -1
- package/esm/utilities/0_units.js +1 -1
- package/esm/utilities/1_auth.js +1 -1
- package/esm/utilities/1_base64.d.ts +1 -1
- package/esm/utilities/1_base64.js +1 -1
- package/esm/utilities/1_crypto.d.ts +1 -1
- package/esm/utilities/1_crypto.js +1 -1
- package/esm/utilities/1_logger.d.ts +1 -1
- package/esm/utilities/1_logger.js +1 -1
- package/esm/utilities/1_math.d.ts +1 -1
- package/esm/utilities/1_math.js +1 -1
- package/esm/utilities/2_queue.d.ts +1 -1
- package/esm/utilities/2_queue.js +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +1 -1
- package/script/0_deps.js +1 -1
- package/script/0_errors.d.ts +1 -1
- package/script/0_errors.js +1 -1
- package/script/1_utilities.d.ts +1 -1
- package/script/1_utilities.js +1 -1
- package/script/2_connection.d.ts +1 -1
- package/script/2_connection.js +1 -1
- package/script/2_storage.d.ts +1 -1
- package/script/2_storage.js +1 -1
- package/script/2_tl.d.ts +1 -1
- package/script/2_tl.js +1 -1
- package/script/3_errors.d.ts +7 -1
- package/script/3_errors.d.ts.map +1 -1
- package/script/3_errors.js +12 -4
- package/script/3_transport.d.ts +1 -1
- package/script/3_transport.js +1 -1
- package/script/3_types.d.ts +1 -1
- package/script/3_types.js +1 -1
- package/script/4_constants.js +1 -1
- package/script/4_errors.d.ts +1 -1
- package/script/4_errors.js +1 -1
- package/script/4_session.d.ts +1 -1
- package/script/4_session.js +1 -1
- package/script/5_client.d.ts +1 -1
- package/script/5_client.js +1 -1
- package/script/client/0_abortable_loop.d.ts +1 -1
- package/script/client/0_abortable_loop.js +1 -1
- package/script/client/0_client_abstract.d.ts +1 -1
- package/script/client/0_client_abstract.js +1 -1
- package/script/client/0_filters.d.ts +1 -1
- package/script/client/0_filters.js +1 -1
- package/script/client/0_html.d.ts +1 -1
- package/script/client/0_html.js +1 -1
- package/script/client/0_markdown.d.ts +1 -1
- package/script/client/0_markdown.js +1 -1
- package/script/client/0_params.d.ts +8 -2
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_params.js +1 -1
- package/script/client/0_password.js +1 -1
- package/script/client/0_storage_operations.d.ts +1 -1
- package/script/client/0_storage_operations.js +1 -1
- package/script/client/0_update_processor.d.ts +1 -1
- package/script/client/0_update_processor.js +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 +1 -1
- package/script/client/1_client_plain.d.ts +1 -1
- package/script/client/1_client_plain.js +1 -1
- package/script/client/1_composer.d.ts +1 -1
- package/script/client/1_composer.js +1 -1
- package/script/client/1_types.d.ts +1 -1
- package/script/client/1_types.js +1 -1
- package/script/client/2_account_manager.d.ts +1 -1
- package/script/client/2_account_manager.js +1 -1
- package/script/client/2_bot_info_manager.d.ts +1 -1
- package/script/client/2_bot_info_manager.js +1 -1
- package/script/client/2_business_connection_manager.d.ts +1 -1
- package/script/client/2_business_connection_manager.js +1 -1
- package/script/client/2_client_encrypted.d.ts +1 -1
- package/script/client/2_client_encrypted.js +1 -1
- package/script/client/2_file_manager.d.ts.map +1 -1
- package/script/client/2_file_manager.js +10 -2
- package/script/client/2_network_statistics_manager.d.ts +1 -1
- package/script/client/2_network_statistics_manager.js +1 -1
- package/script/client/2_payment_manager.d.ts +1 -1
- package/script/client/2_payment_manager.js +1 -1
- package/script/client/2_reaction_manager.d.ts +1 -1
- package/script/client/2_reaction_manager.js +1 -1
- package/script/client/2_translations_manager.d.ts +1 -1
- package/script/client/2_translations_manager.js +1 -1
- package/script/client/2_update_manager.d.ts +1 -1
- package/script/client/2_update_manager.js +1 -1
- package/script/client/3_client_encrypted_pool.d.ts +1 -1
- package/script/client/3_client_encrypted_pool.js +1 -1
- package/script/client/3_message_manager.d.ts +1 -1
- package/script/client/3_message_manager.js +1 -1
- package/script/client/3_video_chat_manager.d.ts +3 -3
- package/script/client/3_video_chat_manager.d.ts.map +1 -1
- package/script/client/3_video_chat_manager.js +12 -7
- package/script/client/4_callback_query_manager.d.ts +1 -1
- package/script/client/4_callback_query_manager.js +1 -1
- package/script/client/4_chat_list_manager.d.ts +1 -1
- package/script/client/4_chat_list_manager.js +1 -1
- package/script/client/4_chat_manager.d.ts +1 -1
- package/script/client/4_chat_manager.js +1 -1
- package/script/client/4_forum_manager.d.ts +1 -1
- package/script/client/4_forum_manager.js +1 -1
- package/script/client/4_gift_manager.d.ts +1 -1
- package/script/client/4_gift_manager.js +1 -1
- package/script/client/4_inline_query_manager.d.ts +1 -1
- package/script/client/4_inline_query_manager.js +1 -1
- package/script/client/4_link_preview_manager.d.ts +1 -1
- package/script/client/4_link_preview_manager.js +1 -1
- package/script/client/4_poll_manager.d.ts +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.js +1 -1
- package/script/client/5_client.d.ts +19 -4
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +26 -4
- package/script/connection/0_connection.d.ts +1 -1
- package/script/connection/0_connection.js +1 -1
- package/script/connection/1_connection_tcp.node.d.ts +1 -1
- package/script/connection/1_connection_tcp.node.js +1 -1
- package/script/connection/1_connection_web_socket.js +1 -1
- package/script/mod.d.ts +1 -1
- package/script/mod.js +1 -1
- package/script/session/0_session_error.d.ts +1 -1
- package/script/session/0_session_error.js +1 -1
- package/script/session/0_session_state.d.ts +1 -1
- package/script/session/0_session_state.js +1 -1
- package/script/session/1_session.js +1 -1
- package/script/session/2_session_encrypted.d.ts +1 -1
- package/script/session/2_session_encrypted.js +1 -1
- package/script/session/2_session_plain.d.ts +1 -1
- package/script/session/2_session_plain.js +1 -1
- package/script/storage/0_storage.d.ts +1 -1
- package/script/storage/0_storage.js +1 -1
- package/script/storage/1_utilities.d.ts +1 -1
- package/script/storage/1_utilities.js +1 -1
- package/script/storage/2_storage_indexed_db.d.ts +1 -1
- package/script/storage/2_storage_indexed_db.js +1 -1
- package/script/storage/2_storage_local_storage.node.d.ts +1 -1
- package/script/storage/2_storage_local_storage.node.js +1 -1
- package/script/storage/2_storage_memory.d.ts +1 -1
- package/script/storage/2_storage_memory.js +1 -1
- package/script/storage/2_storage_session_storage.d.ts +1 -1
- package/script/storage/2_storage_session_storage.js +1 -1
- package/script/tl/0_types.d.ts +1 -1
- package/script/tl/0_types.js +1 -1
- package/script/tl/0_utilities.d.ts +1 -1
- package/script/tl/0_utilities.js +1 -1
- package/script/tl/1_mtproto_api.d.ts +1 -1
- package/script/tl/1_mtproto_api.js +1 -1
- package/script/tl/1_telegram_api.d.ts +624 -29
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +791 -61
- package/script/tl/1_tl_reader.d.ts +1 -1
- package/script/tl/1_tl_reader.js +1 -1
- package/script/tl/1_tl_writer.d.ts +1 -1
- package/script/tl/1_tl_writer.js +1 -1
- package/script/tl/1_utilities.d.ts +1 -1
- package/script/tl/1_utilities.js +1 -1
- package/script/tl/2_message.d.ts +1 -1
- package/script/tl/2_message.js +1 -1
- package/script/tl/2_mtproto.d.ts +1 -1
- package/script/tl/2_mtproto.js +1 -1
- package/script/tl/2_telegram.d.ts +1 -1
- package/script/tl/2_telegram.js +1 -1
- package/script/transport/0_obfuscation.js +1 -1
- package/script/transport/0_transport.d.ts +1 -1
- package/script/transport/0_transport.js +1 -1
- package/script/transport/1_transport_abridged.d.ts +1 -1
- package/script/transport/1_transport_abridged.js +1 -1
- package/script/transport/1_transport_intermediate.d.ts +1 -1
- package/script/transport/1_transport_intermediate.js +1 -1
- package/script/transport/1_transport_provider.d.ts +1 -1
- package/script/transport/1_transport_provider.js +1 -1
- package/script/transport/2_transport_provider_tcp.d.ts +1 -1
- package/script/transport/2_transport_provider_tcp.js +1 -1
- package/script/transport/2_transport_provider_web_socket.d.ts +1 -1
- package/script/transport/2_transport_provider_web_socket.js +1 -1
- package/script/types/0_authorization_state.d.ts +1 -1
- package/script/types/0_authorization_state.js +1 -1
- package/script/types/0_birthday.d.ts +1 -1
- package/script/types/0_birthday.js +1 -1
- package/script/types/0_bot_command.d.ts +1 -1
- package/script/types/0_bot_command.js +1 -1
- package/script/types/0_callback_query_answer.d.ts +1 -1
- package/script/types/0_callback_query_answer.js +1 -1
- package/script/types/0_callback_query_question.d.ts +1 -1
- package/script/types/0_callback_query_question.js +1 -1
- package/script/types/0_chat_action.d.ts +1 -1
- package/script/types/0_chat_action.js +1 -1
- package/script/types/0_chat_administrator_rights.d.ts +1 -1
- package/script/types/0_chat_administrator_rights.js +1 -1
- package/script/types/0_chat_member_rights.d.ts +1 -1
- package/script/types/0_chat_member_rights.js +1 -1
- package/script/types/0_chat_photo.d.ts +1 -1
- package/script/types/0_chat_photo.js +1 -1
- package/script/types/0_connection_state.d.ts +1 -1
- package/script/types/0_connection_state.js +1 -1
- package/script/types/0_contact.d.ts +1 -1
- package/script/types/0_contact.js +1 -1
- package/script/types/0_dice.d.ts +1 -1
- package/script/types/0_dice.js +1 -1
- package/script/types/0_failed_invitation.d.ts +1 -1
- package/script/types/0_failed_invitation.js +1 -1
- package/script/types/0_file_source.d.ts +1 -1
- package/script/types/0_file_source.js +1 -1
- package/script/types/0_gift_value.d.ts +1 -1
- package/script/types/0_gift_value.js +1 -1
- package/script/types/0_giveaway_parameters.d.ts +1 -1
- package/script/types/0_giveaway_parameters.js +1 -1
- package/script/types/0_id.d.ts +1 -1
- package/script/types/0_id.js +1 -1
- package/script/types/0_invoice.d.ts +1 -1
- package/script/types/0_invoice.js +1 -1
- package/script/types/0_keyboard_button_poll_type.d.ts +1 -1
- package/script/types/0_keyboard_button_poll_type.js +1 -1
- package/script/types/0_link_preview_media_size.d.ts +1 -1
- package/script/types/0_link_preview_media_size.js +1 -1
- package/script/types/0_live_stream_channel.d.ts +1 -1
- package/script/types/0_live_stream_channel.js +1 -1
- package/script/types/0_location.d.ts +1 -1
- package/script/types/0_location.js +1 -1
- package/script/types/0_login_url.d.ts +1 -1
- package/script/types/0_login_url.js +1 -1
- package/script/types/0_mask_position.d.ts +1 -1
- package/script/types/0_mask_position.js +1 -1
- package/script/types/0_message_reference.d.ts +1 -1
- package/script/types/0_message_reference.js +1 -1
- package/script/types/0_message_search_filter.d.ts +1 -1
- package/script/types/0_message_search_filter.js +1 -1
- package/script/types/0_mini_app_button_info.d.ts +1 -1
- package/script/types/0_mini_app_button_info.js +1 -1
- package/script/types/0_mini_app_mode.d.ts +1 -1
- package/script/types/0_mini_app_mode.js +1 -1
- package/script/types/0_network_statistics_entry.d.ts +1 -1
- package/script/types/0_network_statistics_entry.js +1 -1
- package/script/types/0_opening_hours.d.ts +1 -1
- package/script/types/0_opening_hours.js +1 -1
- package/script/types/0_parse_mode.d.ts +1 -1
- package/script/types/0_parse_mode.js +1 -1
- package/script/types/0_price_tag.d.ts +1 -1
- package/script/types/0_price_tag.js +1 -1
- package/script/types/0_reaction.d.ts +1 -1
- package/script/types/0_reaction.js +1 -1
- package/script/types/0_refunded_payment.d.ts +1 -1
- package/script/types/0_refunded_payment.js +1 -1
- package/script/types/0_restriction_reason.d.ts +1 -1
- package/script/types/0_restriction_reason.js +1 -1
- package/script/types/0_self_destruct_option.d.ts +1 -1
- package/script/types/0_self_destruct_option.js +1 -1
- package/script/types/0_shipping_address.d.ts +1 -1
- package/script/types/0_shipping_address.js +1 -1
- package/script/types/0_slow_mode_duration.d.ts +1 -1
- package/script/types/0_slow_mode_duration.js +1 -1
- package/script/types/0_story_reference.d.ts +1 -1
- package/script/types/0_story_reference.js +1 -1
- package/script/types/0_switch_inline_query_chosen_chats.d.ts +1 -1
- package/script/types/0_switch_inline_query_chosen_chats.js +1 -1
- package/script/types/0_thumbnail.d.ts +1 -1
- package/script/types/0_thumbnail.js +1 -1
- package/script/types/0_translation.d.ts +1 -1
- package/script/types/0_translation.js +1 -1
- package/script/types/0_upload_progress.d.ts +1 -1
- package/script/types/0_upload_progress.js +1 -1
- package/script/types/0_video_chat.d.ts +1 -1
- package/script/types/0_video_chat.js +1 -1
- package/script/types/0_voice.d.ts +1 -1
- package/script/types/0_voice.js +1 -1
- package/script/types/0_voice_transcription.d.ts +1 -1
- package/script/types/0_voice_transcription.js +1 -1
- package/script/types/1_animation.d.ts +1 -1
- package/script/types/1_animation.js +1 -1
- package/script/types/1_audio.d.ts +1 -1
- package/script/types/1_audio.js +1 -1
- package/script/types/1_bot_command_scope.d.ts +1 -1
- package/script/types/1_bot_command_scope.js +1 -1
- package/script/types/1_chat_p.d.ts +3 -3
- package/script/types/1_chat_p.d.ts.map +1 -1
- package/script/types/1_chat_p.js +10 -3
- package/script/types/1_document.d.ts +1 -1
- package/script/types/1_document.js +1 -1
- package/script/types/1_giveaway.d.ts +1 -1
- package/script/types/1_giveaway.js +1 -1
- package/script/types/1_inline_keyboard_button.d.ts +1 -1
- package/script/types/1_inline_keyboard_button.js +1 -1
- package/script/types/1_inline_query_result_button.d.ts +1 -1
- package/script/types/1_inline_query_result_button.js +1 -1
- package/script/types/1_input_story_content.d.ts +1 -1
- package/script/types/1_input_story_content.js +1 -1
- package/script/types/1_keyboard_button.d.ts +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.js +1 -1
- package/script/types/1_mini_app_info.d.ts +1 -1
- package/script/types/1_mini_app_info.js +1 -1
- package/script/types/1_network_statistics.d.ts +1 -1
- package/script/types/1_network_statistics.js +1 -1
- package/script/types/1_order_info.d.ts +1 -1
- package/script/types/1_order_info.js +1 -1
- package/script/types/1_photo.d.ts +1 -1
- package/script/types/1_photo.js +1 -1
- package/script/types/1_reaction_count.d.ts +1 -1
- package/script/types/1_reaction_count.js +1 -1
- package/script/types/1_sticker.d.ts +1 -1
- package/script/types/1_sticker.js +1 -1
- package/script/types/1_story_reaction.d.ts +1 -1
- package/script/types/1_story_reaction.js +1 -1
- package/script/types/1_venue.d.ts +1 -1
- package/script/types/1_venue.js +1 -1
- package/script/types/1_video.d.ts +1 -1
- package/script/types/1_video.js +1 -1
- package/script/types/1_video_note.d.ts +1 -1
- package/script/types/1_video_note.js +1 -1
- package/script/types/2_chat.d.ts +4 -4
- package/script/types/2_chat.d.ts.map +1 -1
- package/script/types/2_chat.js +1 -1
- package/script/types/2_chat_member.d.ts +1 -1
- package/script/types/2_chat_member.js +1 -1
- package/script/types/2_inactive_chat.d.ts +1 -1
- package/script/types/2_inactive_chat.js +1 -1
- package/script/types/2_message_entity.d.ts +1 -1
- package/script/types/2_message_entity.js +1 -1
- package/script/types/2_message_interactions.d.ts +1 -1
- package/script/types/2_message_interactions.js +1 -1
- package/script/types/2_message_reaction_count.d.ts +1 -1
- package/script/types/2_message_reaction_count.js +1 -1
- package/script/types/2_message_reaction_list_item.d.ts +1 -1
- package/script/types/2_message_reaction_list_item.js +1 -1
- package/script/types/2_poll_answer.d.ts +1 -1
- package/script/types/2_poll_answer.js +1 -1
- package/script/types/2_reply_markup.d.ts +1 -1
- package/script/types/2_reply_markup.js +1 -1
- package/script/types/2_sticker_set.d.ts +1 -1
- package/script/types/2_sticker_set.js +1 -1
- package/script/types/2_story_content.d.ts +1 -1
- package/script/types/2_story_content.js +1 -1
- package/script/types/2_story_interactions.d.ts +1 -1
- package/script/types/2_story_interactions.js +1 -1
- package/script/types/2_story_interactive_area.d.ts +1 -1
- package/script/types/2_story_interactive_area.js +1 -1
- package/script/types/2_story_privacy.d.ts +1 -1
- package/script/types/2_story_privacy.js +1 -1
- package/script/types/2_successful_payment.d.ts +1 -1
- package/script/types/2_successful_payment.js +1 -1
- package/script/types/2_user.d.ts +1 -1
- package/script/types/2_user.js +1 -1
- package/script/types/3_business_connection.d.ts +1 -1
- package/script/types/3_business_connection.js +1 -1
- package/script/types/3_chat_settings.d.ts +1 -1
- package/script/types/3_chat_settings.js +1 -1
- package/script/types/3_chosen_inline_result.d.ts +1 -1
- package/script/types/3_chosen_inline_result.js +1 -1
- package/script/types/3_forward_header.d.ts +1 -1
- package/script/types/3_forward_header.js +1 -1
- package/script/types/3_game.d.ts +1 -1
- package/script/types/3_game.js +1 -1
- package/script/types/3_gift_upgraded_component.d.ts +1 -1
- package/script/types/3_gift_upgraded_component.js +1 -1
- package/script/types/3_inline_query.d.ts +1 -1
- package/script/types/3_inline_query.js +1 -1
- package/script/types/3_input_media.d.ts +1 -1
- package/script/types/3_input_media.js +1 -1
- package/script/types/3_invite_link.d.ts +1 -1
- package/script/types/3_invite_link.js +1 -1
- package/script/types/3_message_reaction_list.d.ts +1 -1
- package/script/types/3_message_reaction_list.js +1 -1
- package/script/types/3_message_reactions.d.ts +1 -1
- package/script/types/3_message_reactions.js +1 -1
- package/script/types/3_poll_option.d.ts +1 -1
- package/script/types/3_poll_option.js +1 -1
- package/script/types/3_pre_checkout_query.d.ts +1 -1
- package/script/types/3_pre_checkout_query.js +1 -1
- package/script/types/3_reply_quote.d.ts +1 -1
- package/script/types/3_reply_quote.js +1 -1
- package/script/types/3_story.d.ts +1 -1
- package/script/types/3_story.js +1 -1
- package/script/types/4_chat_member_updated.d.ts +1 -1
- package/script/types/4_chat_member_updated.js +1 -1
- package/script/types/4_gift.d.ts +1 -1
- package/script/types/4_gift.js +1 -1
- package/script/types/4_join_request.d.ts +1 -1
- package/script/types/4_join_request.js +1 -1
- package/script/types/4_poll.d.ts +1 -1
- package/script/types/4_poll.js +1 -1
- package/script/types/4_reply_to.d.ts +1 -1
- package/script/types/4_reply_to.js +1 -1
- package/script/types/5_claimed_gift.d.ts +1 -1
- package/script/types/5_claimed_gift.js +1 -1
- package/script/types/5_link_preview.d.ts +1 -1
- package/script/types/5_link_preview.js +1 -1
- package/script/types/6_claimed_gifts.d.ts +1 -1
- package/script/types/6_claimed_gifts.js +1 -1
- package/script/types/6_message.d.ts +1 -1
- package/script/types/6_message.js +1 -1
- package/script/types/6_message_content.d.ts +1 -1
- package/script/types/6_message_content.js +1 -1
- package/script/types/7_callback_query.d.ts +1 -1
- package/script/types/7_callback_query.js +1 -1
- package/script/types/7_chat_list_item.d.ts +1 -1
- package/script/types/7_chat_list_item.js +1 -1
- package/script/types/7_inline_query_result.d.ts +1 -1
- package/script/types/7_inline_query_result.js +1 -1
- package/script/types/7_saved_chat.d.ts +1 -1
- package/script/types/7_saved_chat.js +1 -1
- package/script/types/7_topic.d.ts +1 -1
- package/script/types/7_topic.js +1 -1
- package/script/types/8_inline_query_answer.d.ts +1 -1
- package/script/types/8_inline_query_answer.js +1 -1
- package/script/types/8_saved_chats.d.ts +1 -1
- package/script/types/8_saved_chats.js +1 -1
- package/script/types/8_update.d.ts +1 -1
- package/script/types/8_update.js +1 -1
- package/script/types/_file_id.d.ts +1 -1
- package/script/types/_file_id.js +1 -1
- package/script/types/_getters.d.ts +1 -1
- package/script/types/_getters.js +1 -1
- package/script/utilities/0_color.d.ts +1 -1
- package/script/utilities/0_color.js +1 -1
- package/script/utilities/0_env.js +1 -1
- package/script/utilities/0_gzip.d.ts +1 -1
- package/script/utilities/0_gzip.js +1 -1
- package/script/utilities/0_hash.js +1 -1
- package/script/utilities/0_int.js +1 -1
- package/script/utilities/0_misc.js +1 -1
- package/script/utilities/0_mutex.d.ts +1 -1
- package/script/utilities/0_mutex.js +1 -1
- package/script/utilities/0_object.d.ts +1 -1
- package/script/utilities/0_object.js +1 -1
- package/script/utilities/0_part_stream.d.ts +1 -1
- package/script/utilities/0_part_stream.js +1 -1
- package/script/utilities/0_rle.d.ts +1 -1
- package/script/utilities/0_rle.js +1 -1
- package/script/utilities/0_text.d.ts +1 -1
- package/script/utilities/0_text.js +1 -1
- package/script/utilities/0_types.d.ts +1 -1
- package/script/utilities/0_types.js +1 -1
- package/script/utilities/0_units.d.ts +1 -1
- package/script/utilities/0_units.js +1 -1
- package/script/utilities/1_auth.js +1 -1
- package/script/utilities/1_base64.d.ts +1 -1
- package/script/utilities/1_base64.js +1 -1
- package/script/utilities/1_crypto.d.ts +1 -1
- package/script/utilities/1_crypto.js +1 -1
- package/script/utilities/1_logger.d.ts +1 -1
- package/script/utilities/1_logger.js +1 -1
- package/script/utilities/1_math.d.ts +1 -1
- package/script/utilities/1_math.js +1 -1
- package/script/utilities/2_queue.d.ts +1 -1
- package/script/utilities/2_queue.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_file_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_file_manager.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"2_file_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_file_manager.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,EAAoD,KAAK,UAAU,EAA8C,KAAK,OAAO,EAAkB,MAAM,eAAe,CAAC;AAG5K,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,qBAAa,WAAW;;gBAOV,CAAC,EAAE,CAAC;IAQhB,aAAa;IASP,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,EAAE,WAAW,UAAO,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;IAwP1I,aAAa,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,SAAS;IA4EtG,MAAM,CAAC,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAevD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM;IAY7B,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc;IAgEjD,iBAAiB,CAAC,eAAe,EAAE,GAAG,CAAC,iBAAiB,EAAE,IAAI,SAAI;IAqBlE,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE;CA6CnD"}
|
|
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.FileManager = void 0;
|
|
38
38
|
/**
|
|
39
39
|
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
40
|
-
* Copyright (C) 2023-
|
|
40
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
41
41
|
*
|
|
42
42
|
* This file is part of MTKruto.
|
|
43
43
|
*
|
|
@@ -59,6 +59,7 @@ const _0_deps_js_1 = require("../0_deps.js");
|
|
|
59
59
|
const _0_errors_js_1 = require("../0_errors.js");
|
|
60
60
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
61
61
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
62
|
+
const _3_errors_js_1 = require("../3_errors.js");
|
|
62
63
|
const _3_transport_js_1 = require("../3_transport.js");
|
|
63
64
|
const _3_types_js_1 = require("../3_types.js");
|
|
64
65
|
const _4_constants_js_1 = require("../4_constants.js");
|
|
@@ -231,7 +232,14 @@ class FileManager {
|
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
async #handleError(err, retryIn, logPrefix) {
|
|
234
|
-
if (
|
|
235
|
+
if (err instanceof _3_errors_js_1.TimeTooBig || err instanceof _3_errors_js_1.TimeTooSmall) {
|
|
236
|
+
throw err;
|
|
237
|
+
}
|
|
238
|
+
else if (err instanceof _4_errors_js_1.FloodWait) {
|
|
239
|
+
this.#Lupload.warning(`${logPrefix} retrying in ${err.seconds} seconds:`, err);
|
|
240
|
+
await (0, _0_deps_js_1.delay)(err.seconds * _0_deps_js_1.SECOND);
|
|
241
|
+
}
|
|
242
|
+
else if (retryIn > 0) {
|
|
235
243
|
this.#Lupload.warning(`${logPrefix} retrying in ${retryIn} seconds:`, err);
|
|
236
244
|
await (0, _0_deps_js_1.delay)(retryIn * _0_deps_js_1.SECOND);
|
|
237
245
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
4
|
*
|
|
5
5
|
* This file is part of MTKruto.
|
|
6
6
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { Api } from "../2_tl.js";
|
|
21
21
|
import { type ID, type Update, type VideoChatActive, type VideoChatScheduled } from "../3_types.js";
|
|
22
|
-
import type {
|
|
22
|
+
import type { DownloadLiveStreamSegmentParams, JoinVideoChatParams, StartVideoChatParams } from "./0_params.js";
|
|
23
23
|
import type { UpdateProcessor } from "./0_update_processor.js";
|
|
24
24
|
import type { C as C_ } from "./1_types.js";
|
|
25
25
|
import type { FileManager } from "./2_file_manager.js";
|
|
@@ -40,7 +40,7 @@ export declare class VideoChatManager implements UpdateProcessor<VideoChatManage
|
|
|
40
40
|
canHandleUpdate(update: Api.Update): update is VideoChatManagerUpdate;
|
|
41
41
|
handleUpdate(update: VideoChatManagerUpdate): Promise<Update | null>;
|
|
42
42
|
getLiveStreamChannels(id: string): Promise<import("../3_types.js").LiveStreamChannel[]>;
|
|
43
|
-
|
|
43
|
+
downloadLiveStreamSegment(id: string, channel: number, scale: number, timestamp: number, params?: DownloadLiveStreamSegmentParams): Promise<Uint8Array<ArrayBuffer>>;
|
|
44
44
|
}
|
|
45
45
|
export {};
|
|
46
46
|
//# sourceMappingURL=3_video_chat_manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_video_chat_manager.d.ts","sourceRoot":"","sources":["../../src/client/3_video_chat_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAkD,KAAK,EAAE,EAAE,KAAK,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"3_video_chat_manager.d.ts","sourceRoot":"","sources":["../../src/client/3_video_chat_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAkD,KAAK,EAAE,EAAE,KAAK,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEpJ,OAAO,KAAK,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAChH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,UAAU,CAAE,SAAQ,EAAE;IACpB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,QAAA,MAAM,uBAAuB,8BAEnB,CAAC;AAEX,KAAK,sBAAsB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAElF,qBAAa,gBAAiB,YAAW,eAAe,CAAC,sBAAsB,EAAE,IAAI,CAAC;;gBAGxE,CAAC,EAAE,CAAC;IAkBV,cAAc,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,oBAAoB;IAKxD,iBAAiB,CAAC,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB;IAc5E,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB;IAUvE,cAAc,CAAC,EAAE,EAAE,MAAM;IAKzB,cAAc,CAAC,EAAE,EAAE,MAAM;IA+BzB,YAAY,CAAC,EAAE,EAAE,MAAM;IAK7B,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,sBAAsB;IAI/D,YAAY,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA8BpE,qBAAqB,CAAC,EAAE,EAAE,MAAM;IAWhC,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,+BAA+B;CAyBxI"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
4
|
-
* Copyright (C) 2023-
|
|
4
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
5
5
|
*
|
|
6
6
|
* This file is part of MTKruto.
|
|
7
7
|
*
|
|
@@ -26,6 +26,7 @@ const _1_utilities_js_1 = require("../1_utilities.js");
|
|
|
26
26
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
27
27
|
const _3_transport_js_1 = require("../3_transport.js");
|
|
28
28
|
const _3_types_js_1 = require("../3_types.js");
|
|
29
|
+
const _2_telegram_js_1 = require("../tl/2_telegram.js");
|
|
29
30
|
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
30
31
|
const videoChatManagerUpdates = [
|
|
31
32
|
"updateGroupCall",
|
|
@@ -117,11 +118,11 @@ class VideoChatManager {
|
|
|
117
118
|
return _2_tl_js_1.Api.isOneOf(videoChatManagerUpdates, update);
|
|
118
119
|
}
|
|
119
120
|
async handleUpdate(update) {
|
|
120
|
-
if (!update.
|
|
121
|
+
if (!update.peer) {
|
|
121
122
|
return null; // TODO: handle updates with unspecified chat_id
|
|
122
123
|
}
|
|
123
|
-
|
|
124
|
-
const fullChat = await this.#c.messageStorage.getFullChat(chatId).then((v) => v === null ? this.#c.messageStorage.getFullChat(chatId
|
|
124
|
+
const chatId = (0, _2_telegram_js_1.peerToChatId)(update.peer);
|
|
125
|
+
const fullChat = await this.#c.messageStorage.getFullChat(chatId).then((v) => v === null ? this.#c.messageStorage.getFullChat(chatId) : v);
|
|
125
126
|
let updateFullChat = false;
|
|
126
127
|
if (_2_tl_js_1.Api.is("groupCallDiscarded", update.call)) {
|
|
127
128
|
await this.#c.messageStorage.setGroupCall(update.call.id, null);
|
|
@@ -156,8 +157,8 @@ class VideoChatManager {
|
|
|
156
157
|
const streams = await this.#c.invoke({ _: "phone.getGroupCallStreamChannels", call: await this.#getInputGroupCall(id) }, { dc, type: "download" });
|
|
157
158
|
return streams.channels.map(_3_types_js_1.constructLiveStreamChannel);
|
|
158
159
|
}
|
|
159
|
-
async
|
|
160
|
-
this.#c.storage.assertUser("
|
|
160
|
+
async downloadLiveStreamSegment(id, channel, scale, timestamp, params) {
|
|
161
|
+
this.#c.storage.assertUser("downloadLiveStreamSegment");
|
|
161
162
|
const call = await this.#getCall(id);
|
|
162
163
|
if (!(_2_tl_js_1.Api.is("groupCall", call)) || !call.rtmp_stream) {
|
|
163
164
|
throw new _0_errors_js_1.InputError("Not a live stream.");
|
|
@@ -173,7 +174,11 @@ class VideoChatManager {
|
|
|
173
174
|
throw new _0_errors_js_1.InputError("Got invalid quality.");
|
|
174
175
|
})(),
|
|
175
176
|
};
|
|
176
|
-
|
|
177
|
+
const chunks = new Array();
|
|
178
|
+
for await (const chunk of this.#c.fileManager.downloadInner(location, call.stream_dc_id ?? (0, _0_deps_js_1.unreachable)(), params)) {
|
|
179
|
+
chunks.push(chunk);
|
|
180
|
+
}
|
|
181
|
+
return (0, _0_deps_js_1.concat)(chunks);
|
|
177
182
|
}
|
|
178
183
|
}
|
|
179
184
|
exports.VideoChatManager = VideoChatManager;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
4
|
*
|
|
5
5
|
* This file is part of MTKruto.
|
|
6
6
|
*
|
|
@@ -23,7 +23,7 @@ import { Api, Mtproto } from "../2_tl.js";
|
|
|
23
23
|
import { type DC } from "../3_transport.js";
|
|
24
24
|
import { type BotCommand, type BusinessConnection, type CallbackQueryAnswer, type CallbackQueryQuestion, type Chat, type ChatAction, type ChatListItem, type ChatMember, type ChatP, type ChatPChannel, type ChatPGroup, type ChatPSupergroup, type ChatSettings, type ClaimedGifts, type FailedInvitation, type FileSource, type Gift, type ID, type InactiveChat, type InlineQueryAnswer, type InlineQueryResult, type InputMedia, type InputStoryContent, type InviteLink, type JoinRequest, type LinkPreview, type LiveStreamChannel, type Message, type MessageAnimation, type MessageAudio, type MessageContact, type MessageDice, type MessageDocument, type MessageInvoice, type MessageLocation, type MessagePhoto, type MessagePoll, type MessageReactionList, type MessageSticker, type MessageText, type MessageVenue, type MessageVideo, type MessageVideoNote, type MessageVoice, type MiniAppInfo, type NetworkStatistics, type ParseMode, type Poll, type PriceTag, type Reaction, type SavedChats, type SlowModeDuration, type Sticker, type StickerSet, type Story, type Topic, type Translation, type User, type VideoChat, type VideoChatActive, type VideoChatScheduled, type VoiceTranscription } from "../3_types.js";
|
|
25
25
|
import { Migrate } from "../4_errors.js";
|
|
26
|
-
import type { AddChatMemberParams, AddContactParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateChannelParams, CreateGroupParams, CreateInviteLinkParams, CreateStoryParams, CreateSupergroupParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteMessageParams, DeleteMessagesParams,
|
|
26
|
+
import type { AddChatMemberParams, AddContactParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateChannelParams, CreateGroupParams, CreateInviteLinkParams, CreateStoryParams, CreateSupergroupParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamSegmentParams, DownloadParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageTextParams, EditTopicParams, ForwardMessagesParams, GetChatMembersParams, GetChatsParams, GetClaimedGiftsParams, GetCommonChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetJoinRequestsParams, GetLinkPreviewParams, GetMessageReactionsParams, GetMyCommandsParams, GetSavedChatsParams, GetSavedMessagesParams, GetTranslationsParams, InvokeParams, JoinVideoChatParams, OpenChatParams, OpenMiniAppParams, PinMessageParams, PromoteChatMemberParams, ReplyParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendGiftParams, SendInlineQueryParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetBirthdayParams, SetChatMemberRightsParams, SetChatPhotoParams, SetEmojiStatusParams, SetLocationParams, SetMyCommandsParams, SetNameColorParams, SetPersonalChannelParams, SetProfileColorParams, SetReactionsParams, SetSignaturesEnabledParams, SignInParams, StartBotParams, StartVideoChatParams, StopPollParams, UnpinMessageParams, UpdateProfileParams } from "./0_params.js";
|
|
27
27
|
import { StorageOperations } from "./0_storage_operations.js";
|
|
28
28
|
import type { ClientPlainParams } from "./1_client_plain.js";
|
|
29
29
|
import { Composer as Composer_, type Middleware, type MiddlewareFn, type MiddlewareObj, type NextFunction } from "./1_composer.js";
|
|
@@ -346,6 +346,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
346
346
|
* Get information on the currently authorized user.
|
|
347
347
|
*
|
|
348
348
|
* @method ac
|
|
349
|
+
* @returns Information on the currently authorized user.
|
|
349
350
|
*/
|
|
350
351
|
getMe(): Promise<User>;
|
|
351
352
|
/**
|
|
@@ -378,6 +379,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
378
379
|
*
|
|
379
380
|
* @method ac
|
|
380
381
|
* @param id A supergroup ID or a channel ID.
|
|
382
|
+
* @returns Whether any username was hidden.
|
|
381
383
|
*/
|
|
382
384
|
hideUsernames(id: ID): Promise<boolean>;
|
|
383
385
|
/**
|
|
@@ -940,6 +942,18 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
940
942
|
* @param messageId The identifier of the message that includes the poll.
|
|
941
943
|
*/
|
|
942
944
|
retractVote(chatId: ID, messageId: number): Promise<void>;
|
|
945
|
+
/**
|
|
946
|
+
* Download a chunk of a file.
|
|
947
|
+
*
|
|
948
|
+
* @method fs
|
|
949
|
+
* @param fileId The identifier of a file.
|
|
950
|
+
* @example ```ts
|
|
951
|
+
* const chunk = await client.download(fileId, { chunkSize: 256 * 1024 });
|
|
952
|
+
* ```
|
|
953
|
+
* @returns The downloaded chunk.
|
|
954
|
+
* @cache file
|
|
955
|
+
*/
|
|
956
|
+
downloadChunk(fileId: string, params?: DownloadParams): Promise<Uint8Array>;
|
|
943
957
|
/**
|
|
944
958
|
* Download a file.
|
|
945
959
|
*
|
|
@@ -1187,6 +1201,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
1187
1201
|
* @method ch
|
|
1188
1202
|
* @param chatId The identifier of the channel or supergroup to add the users to.
|
|
1189
1203
|
* @param userId The identifiers of the users to add to the channel or supergroup.
|
|
1204
|
+
* @returns An array of FailedInvitation that has at most a length that is the same as that of the parameter userIds. If empty, it means that all the provided users were added.
|
|
1190
1205
|
*/
|
|
1191
1206
|
addChatMembers(chatId: ID, userIds: ID[]): Promise<FailedInvitation[]>;
|
|
1192
1207
|
/**
|
|
@@ -1739,7 +1754,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
1739
1754
|
*/
|
|
1740
1755
|
getLiveStreamChannels(id: string): Promise<LiveStreamChannel[]>;
|
|
1741
1756
|
/**
|
|
1742
|
-
* Download a live stream
|
|
1757
|
+
* Download a live stream segment. User-only.
|
|
1743
1758
|
*
|
|
1744
1759
|
* @method vc
|
|
1745
1760
|
* @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
|
|
@@ -1747,7 +1762,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
|
|
|
1747
1762
|
* @param scale Stream channel scale.
|
|
1748
1763
|
* @param timestamp Millisecond timestamp of the chunk to download.
|
|
1749
1764
|
*/
|
|
1750
|
-
|
|
1765
|
+
downloadLiveStreamSegment(id: string, channelId: number, scale: number, timestamp: number, params?: DownloadLiveStreamSegmentParams): Promise<Uint8Array>;
|
|
1751
1766
|
/**
|
|
1752
1767
|
* Answer a pre-checkout query. Bot-only.
|
|
1753
1768
|
*
|