@mtkruto/browser 0.136.0 → 0.138.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.js +3 -3
- package/esm/3_errors.d.ts +2 -2
- package/esm/3_errors.d.ts.map +1 -1
- package/esm/3_errors.js +2 -2
- package/esm/3_types.d.ts +2 -3
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +2 -3
- package/esm/client/0_markdown.d.ts.map +1 -1
- package/esm/client/0_markdown.js +1 -3
- package/esm/client/0_params.d.ts +17 -11
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +1 -1
- package/esm/client/1_client_generic.d.ts +19 -14
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/1_client_generic.js +1 -3
- package/esm/client/1_client_plain.d.ts +2 -6
- package/esm/client/1_client_plain.d.ts.map +1 -1
- package/esm/client/1_client_plain.js +1 -3
- package/esm/client/2_bot_info_manager.js +1 -1
- package/esm/client/2_business_connection_manager.js +1 -1
- package/esm/client/2_file_manager.d.ts.map +1 -1
- package/esm/client/2_file_manager.js +2 -0
- package/esm/client/2_payment_manager.js +1 -1
- package/esm/client/2_reaction_manager.js +4 -4
- package/esm/client/2_translations_manager.js +2 -2
- package/esm/client/2_update_manager.js +2 -2
- package/esm/client/3_account_manager.d.ts +2 -1
- package/esm/client/3_account_manager.d.ts.map +1 -1
- package/esm/client/3_account_manager.js +11 -4
- package/esm/client/3_filters.d.ts +94 -18
- package/esm/client/3_filters.d.ts.map +1 -1
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +18 -21
- package/esm/client/3_video_chat_manager.js +1 -1
- package/esm/client/4_callback_query_manager.js +1 -1
- package/esm/client/4_chat_manager.js +3 -3
- package/esm/client/4_context.d.ts +155 -463
- package/esm/client/4_context.d.ts.map +1 -1
- package/esm/client/4_context.js +221 -506
- package/esm/client/4_inline_query_manager.js +3 -3
- package/esm/client/4_link_preview_manager.js +1 -1
- package/esm/client/4_poll_manager.d.ts.map +1 -1
- package/esm/client/4_poll_manager.js +4 -2
- package/esm/client/4_story_manager.js +4 -4
- package/esm/client/6_client.d.ts +20 -21
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +22 -19
- package/esm/client/6_client_dispatcher.d.ts +19 -14
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +20 -11
- package/esm/connection/1_connection_socks5.js +3 -3
- package/esm/connection/1_connection_socks5.node.js +3 -3
- package/esm/session/1_session.d.ts +2 -6
- package/esm/session/1_session.d.ts.map +1 -1
- package/esm/storage/2_storage_local_storage.d.ts.map +1 -1
- package/esm/storage/2_storage_local_storage.js +10 -6
- package/esm/storage/2_storage_memory.d.ts.map +1 -1
- package/esm/storage/2_storage_memory.js +9 -5
- package/esm/storage/2_storage_session_storage.d.ts.map +1 -1
- package/esm/storage/2_storage_session_storage.js +10 -6
- package/esm/types/0_bot_token_check_result.d.ts +0 -1
- package/esm/types/0_bot_token_check_result.d.ts.map +1 -1
- package/esm/types/0_callback_query_question.d.ts +0 -3
- package/esm/types/0_callback_query_question.d.ts.map +1 -1
- package/esm/types/0_chat_action_type.d.ts +0 -13
- package/esm/types/0_chat_action_type.d.ts.map +1 -1
- package/esm/types/0_chat_administrator_rights.d.ts +4 -4
- package/esm/types/0_chat_administrator_rights.d.ts.map +1 -1
- package/esm/types/0_code_check_result.d.ts +0 -3
- package/esm/types/0_code_check_result.d.ts.map +1 -1
- package/esm/types/0_emoji_status.d.ts +0 -2
- package/esm/types/0_emoji_status.d.ts.map +1 -1
- package/esm/types/0_gift_component_rarity.d.ts +0 -5
- package/esm/types/0_gift_component_rarity.d.ts.map +1 -1
- package/esm/types/0_id.d.ts +1 -3
- package/esm/types/0_id.d.ts.map +1 -1
- package/{script/types/1_inline_query_result_button.d.ts → esm/types/0_inline_query_result_button.d.ts} +3 -4
- package/esm/types/0_inline_query_result_button.d.ts.map +1 -0
- package/esm/types/0_input_emoji_status.d.ts +0 -2
- package/esm/types/0_input_emoji_status.d.ts.map +1 -1
- package/esm/types/0_password_check_result.d.ts +0 -2
- package/esm/types/0_password_check_result.d.ts.map +1 -1
- package/esm/types/0_premium_subscription_duration.d.ts +1 -0
- package/esm/types/0_premium_subscription_duration.d.ts.map +1 -1
- package/esm/types/0_reaction.d.ts +0 -3
- package/esm/types/0_reaction.d.ts.map +1 -1
- package/esm/types/0_user_status.d.ts +3 -8
- package/esm/types/0_user_status.d.ts.map +1 -1
- package/esm/types/0_video_chat.d.ts +0 -3
- package/esm/types/0_video_chat.d.ts.map +1 -1
- package/esm/types/1_available_reactions.d.ts +0 -3
- package/esm/types/1_available_reactions.d.ts.map +1 -1
- package/esm/types/1_bot_command_scope.d.ts +1 -8
- package/esm/types/1_bot_command_scope.d.ts.map +1 -1
- package/esm/types/1_chat_p.d.ts +1 -7
- package/esm/types/1_chat_p.d.ts.map +1 -1
- package/esm/types/1_inline_keyboard_button.d.ts +25 -42
- package/esm/types/1_inline_keyboard_button.d.ts.map +1 -1
- package/esm/types/1_inline_keyboard_button.js +57 -64
- package/esm/types/1_input_gift.d.ts +0 -3
- package/esm/types/1_input_gift.d.ts.map +1 -1
- package/esm/types/1_input_story_content.d.ts +2 -2
- package/esm/types/1_input_story_content.d.ts.map +1 -1
- package/esm/types/1_keyboard_button.d.ts +33 -34
- package/esm/types/1_keyboard_button.d.ts.map +1 -1
- package/esm/types/1_keyboard_button.js +81 -88
- package/esm/types/1_order_info.d.ts +1 -1
- package/esm/types/2_chat.d.ts +1 -3
- package/esm/types/2_chat.d.ts.map +1 -1
- package/esm/types/2_chat_member.d.ts +6 -24
- package/esm/types/2_chat_member.d.ts.map +1 -1
- package/esm/types/2_message_entity.d.ts +0 -20
- package/esm/types/2_message_entity.d.ts.map +1 -1
- package/esm/types/{0_mini_app_button_info.js → 2_profile_photo_list.d.ts} +10 -2
- package/esm/types/2_profile_photo_list.d.ts.map +1 -0
- package/esm/types/{0_keyboard_button_poll_type.d.ts → 2_profile_photo_list.js} +6 -5
- package/esm/types/2_reply_markup.d.ts +5 -13
- package/esm/types/2_reply_markup.d.ts.map +1 -1
- package/esm/types/2_reply_markup.js +13 -17
- package/esm/types/2_star_transaction_peer.d.ts +0 -8
- package/esm/types/2_star_transaction_peer.d.ts.map +1 -1
- package/esm/types/2_story_album_icon.d.ts +0 -2
- package/esm/types/2_story_album_icon.d.ts.map +1 -1
- package/esm/types/2_story_content.d.ts +3 -4
- package/esm/types/2_story_content.d.ts.map +1 -1
- package/esm/types/2_story_content.js +3 -3
- package/esm/types/2_story_privacy.d.ts +8 -9
- package/esm/types/2_story_privacy.d.ts.map +1 -1
- package/esm/types/2_story_privacy.js +23 -20
- package/esm/types/3_checklist_item.d.ts +2 -8
- package/esm/types/3_checklist_item.d.ts.map +1 -1
- package/esm/types/3_forward_header.d.ts +0 -5
- package/esm/types/3_forward_header.d.ts.map +1 -1
- package/esm/types/3_gift_upgraded_component.d.ts +0 -4
- package/esm/types/3_gift_upgraded_component.d.ts.map +1 -1
- package/esm/types/3_inline_query.d.ts.map +1 -1
- package/esm/types/3_inline_query.js +3 -2
- package/esm/types/3_input_media.d.ts +10 -20
- package/esm/types/3_input_media.d.ts.map +1 -1
- package/esm/types/3_invite_link.d.ts +0 -2
- package/esm/types/3_invite_link.d.ts.map +1 -1
- package/esm/types/3_invite_link.js +3 -4
- package/esm/types/4_gift.d.ts +1 -3
- package/esm/types/4_gift.d.ts.map +1 -1
- package/esm/types/4_reply_to.d.ts +6 -14
- package/esm/types/4_reply_to.d.ts.map +1 -1
- package/esm/types/5_gift_upgraded_information.d.ts +1 -1
- package/esm/types/5_gift_upgraded_information.d.ts.map +1 -1
- package/esm/types/5_gift_upgraded_information.js +2 -2
- package/esm/types/5_link_preview.d.ts +2 -18
- package/esm/types/5_link_preview.d.ts.map +1 -1
- package/esm/types/6_message.d.ts +91 -180
- package/esm/types/6_message.d.ts.map +1 -1
- package/esm/types/6_message.js +105 -121
- package/esm/types/6_message_content.d.ts +2 -7
- package/esm/types/6_message_content.d.ts.map +1 -1
- package/esm/types/7_inline_query_result.d.ts +10 -47
- package/esm/types/7_inline_query_result.d.ts.map +1 -1
- package/esm/types/7_inline_query_result.js +219 -152
- package/esm/types/7_topic.js +3 -3
- package/esm/types/8_update.d.ts +59 -106
- package/esm/types/8_update.d.ts.map +1 -1
- package/esm/utilities/0_int.d.ts +1 -3
- package/esm/utilities/0_int.d.ts.map +1 -1
- package/esm/utilities/1_logger.js +1 -1
- package/package.json +1 -1
- package/script/0_deps.js +3 -3
- package/script/3_errors.d.ts +2 -2
- package/script/3_errors.d.ts.map +1 -1
- package/script/3_errors.js +4 -4
- package/script/3_types.d.ts +2 -3
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +2 -3
- package/script/client/0_markdown.d.ts.map +1 -1
- package/script/client/0_markdown.js +1 -3
- package/script/client/0_params.d.ts +17 -11
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +1 -1
- package/script/client/1_client_generic.d.ts +19 -14
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/1_client_generic.js +1 -3
- package/script/client/1_client_plain.d.ts +2 -6
- package/script/client/1_client_plain.d.ts.map +1 -1
- package/script/client/1_client_plain.js +1 -3
- package/script/client/2_bot_info_manager.js +1 -1
- package/script/client/2_business_connection_manager.js +1 -1
- package/script/client/2_file_manager.d.ts.map +1 -1
- package/script/client/2_file_manager.js +2 -0
- package/script/client/2_payment_manager.js +1 -1
- package/script/client/2_reaction_manager.js +4 -4
- package/script/client/2_translations_manager.js +2 -2
- package/script/client/2_update_manager.js +2 -2
- package/script/client/3_account_manager.d.ts +2 -1
- package/script/client/3_account_manager.d.ts.map +1 -1
- package/script/client/3_account_manager.js +9 -2
- package/script/client/3_filters.d.ts +94 -18
- package/script/client/3_filters.d.ts.map +1 -1
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +17 -20
- package/script/client/3_video_chat_manager.js +1 -1
- package/script/client/4_callback_query_manager.js +1 -1
- package/script/client/4_chat_manager.js +3 -3
- package/script/client/4_context.d.ts +155 -463
- package/script/client/4_context.d.ts.map +1 -1
- package/script/client/4_context.js +221 -506
- package/script/client/4_inline_query_manager.js +3 -3
- package/script/client/4_link_preview_manager.js +1 -1
- package/script/client/4_poll_manager.d.ts.map +1 -1
- package/script/client/4_poll_manager.js +4 -2
- package/script/client/4_story_manager.js +4 -4
- package/script/client/6_client.d.ts +20 -21
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +22 -19
- package/script/client/6_client_dispatcher.d.ts +19 -14
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +20 -11
- package/script/connection/1_connection_socks5.js +3 -3
- package/script/connection/1_connection_socks5.node.js +3 -3
- package/script/session/1_session.d.ts +2 -6
- package/script/session/1_session.d.ts.map +1 -1
- package/script/storage/2_storage_local_storage.d.ts.map +1 -1
- package/script/storage/2_storage_local_storage.js +10 -6
- package/script/storage/2_storage_memory.d.ts.map +1 -1
- package/script/storage/2_storage_memory.js +9 -5
- package/script/storage/2_storage_session_storage.d.ts.map +1 -1
- package/script/storage/2_storage_session_storage.js +10 -6
- package/script/types/0_bot_token_check_result.d.ts +0 -1
- package/script/types/0_bot_token_check_result.d.ts.map +1 -1
- package/script/types/0_callback_query_question.d.ts +0 -3
- package/script/types/0_callback_query_question.d.ts.map +1 -1
- package/script/types/0_chat_action_type.d.ts +0 -13
- package/script/types/0_chat_action_type.d.ts.map +1 -1
- package/script/types/0_chat_administrator_rights.d.ts +4 -4
- package/script/types/0_chat_administrator_rights.d.ts.map +1 -1
- package/script/types/0_code_check_result.d.ts +0 -3
- package/script/types/0_code_check_result.d.ts.map +1 -1
- package/script/types/0_emoji_status.d.ts +0 -2
- package/script/types/0_emoji_status.d.ts.map +1 -1
- package/script/types/0_gift_component_rarity.d.ts +0 -5
- package/script/types/0_gift_component_rarity.d.ts.map +1 -1
- package/script/types/0_id.d.ts +1 -3
- package/script/types/0_id.d.ts.map +1 -1
- package/{esm/types/1_inline_query_result_button.d.ts → script/types/0_inline_query_result_button.d.ts} +3 -4
- package/script/types/0_inline_query_result_button.d.ts.map +1 -0
- package/script/types/0_input_emoji_status.d.ts +0 -2
- package/script/types/0_input_emoji_status.d.ts.map +1 -1
- package/script/types/0_password_check_result.d.ts +0 -2
- package/script/types/0_password_check_result.d.ts.map +1 -1
- package/script/types/0_premium_subscription_duration.d.ts +1 -0
- package/script/types/0_premium_subscription_duration.d.ts.map +1 -1
- package/script/types/0_reaction.d.ts +0 -3
- package/script/types/0_reaction.d.ts.map +1 -1
- package/script/types/0_user_status.d.ts +3 -8
- package/script/types/0_user_status.d.ts.map +1 -1
- package/script/types/0_video_chat.d.ts +0 -3
- package/script/types/0_video_chat.d.ts.map +1 -1
- package/script/types/1_available_reactions.d.ts +0 -3
- package/script/types/1_available_reactions.d.ts.map +1 -1
- package/script/types/1_bot_command_scope.d.ts +1 -8
- package/script/types/1_bot_command_scope.d.ts.map +1 -1
- package/script/types/1_chat_p.d.ts +1 -7
- package/script/types/1_chat_p.d.ts.map +1 -1
- package/script/types/1_inline_keyboard_button.d.ts +25 -42
- package/script/types/1_inline_keyboard_button.d.ts.map +1 -1
- package/script/types/1_inline_keyboard_button.js +57 -64
- package/script/types/1_input_gift.d.ts +0 -3
- package/script/types/1_input_gift.d.ts.map +1 -1
- package/script/types/1_input_story_content.d.ts +2 -2
- package/script/types/1_input_story_content.d.ts.map +1 -1
- package/script/types/1_keyboard_button.d.ts +33 -34
- package/script/types/1_keyboard_button.d.ts.map +1 -1
- package/script/types/1_keyboard_button.js +81 -88
- package/script/types/1_order_info.d.ts +1 -1
- package/script/types/2_chat.d.ts +1 -3
- package/script/types/2_chat.d.ts.map +1 -1
- package/script/types/2_chat_member.d.ts +6 -24
- package/script/types/2_chat_member.d.ts.map +1 -1
- package/script/types/2_message_entity.d.ts +0 -20
- package/script/types/2_message_entity.d.ts.map +1 -1
- package/script/types/{0_keyboard_button_poll_type.d.ts → 2_profile_photo_list.d.ts} +10 -5
- package/script/types/2_profile_photo_list.d.ts.map +1 -0
- package/script/types/{0_mini_app_button_info.js → 2_profile_photo_list.js} +7 -3
- package/script/types/2_reply_markup.d.ts +5 -13
- package/script/types/2_reply_markup.d.ts.map +1 -1
- package/script/types/2_reply_markup.js +13 -17
- package/script/types/2_star_transaction_peer.d.ts +0 -8
- package/script/types/2_star_transaction_peer.d.ts.map +1 -1
- package/script/types/2_story_album_icon.d.ts +0 -2
- package/script/types/2_story_album_icon.d.ts.map +1 -1
- package/script/types/2_story_content.d.ts +3 -4
- package/script/types/2_story_content.d.ts.map +1 -1
- package/script/types/2_story_content.js +3 -3
- package/script/types/2_story_privacy.d.ts +8 -9
- package/script/types/2_story_privacy.d.ts.map +1 -1
- package/script/types/2_story_privacy.js +23 -20
- package/script/types/3_checklist_item.d.ts +2 -8
- package/script/types/3_checklist_item.d.ts.map +1 -1
- package/script/types/3_forward_header.d.ts +0 -5
- package/script/types/3_forward_header.d.ts.map +1 -1
- package/script/types/3_gift_upgraded_component.d.ts +0 -4
- package/script/types/3_gift_upgraded_component.d.ts.map +1 -1
- package/script/types/3_inline_query.d.ts.map +1 -1
- package/script/types/3_inline_query.js +3 -2
- package/script/types/3_input_media.d.ts +10 -20
- package/script/types/3_input_media.d.ts.map +1 -1
- package/script/types/3_invite_link.d.ts +0 -2
- package/script/types/3_invite_link.d.ts.map +1 -1
- package/script/types/3_invite_link.js +3 -4
- package/script/types/4_gift.d.ts +1 -3
- package/script/types/4_gift.d.ts.map +1 -1
- package/script/types/4_reply_to.d.ts +6 -14
- package/script/types/4_reply_to.d.ts.map +1 -1
- package/script/types/5_gift_upgraded_information.d.ts +1 -1
- package/script/types/5_gift_upgraded_information.d.ts.map +1 -1
- package/script/types/5_gift_upgraded_information.js +2 -2
- package/script/types/5_link_preview.d.ts +2 -18
- package/script/types/5_link_preview.d.ts.map +1 -1
- package/script/types/6_message.d.ts +91 -180
- package/script/types/6_message.d.ts.map +1 -1
- package/script/types/6_message.js +106 -122
- package/script/types/6_message_content.d.ts +2 -7
- package/script/types/6_message_content.d.ts.map +1 -1
- package/script/types/7_inline_query_result.d.ts +10 -47
- package/script/types/7_inline_query_result.d.ts.map +1 -1
- package/script/types/7_inline_query_result.js +219 -152
- package/script/types/7_topic.js +3 -3
- package/script/types/8_update.d.ts +59 -106
- package/script/types/8_update.d.ts.map +1 -1
- package/script/utilities/0_int.d.ts +1 -3
- package/script/utilities/0_int.d.ts.map +1 -1
- package/script/utilities/1_logger.js +1 -1
- package/esm/types/0_keyboard_button_poll_type.d.ts.map +0 -1
- package/esm/types/0_mini_app_button_info.d.ts +0 -26
- package/esm/types/0_mini_app_button_info.d.ts.map +0 -1
- package/esm/types/1_inline_query_result_button.d.ts.map +0 -1
- package/esm/types/1_inline_query_result_button.js +0 -20
- package/script/types/0_keyboard_button_poll_type.d.ts.map +0 -1
- package/script/types/0_mini_app_button_info.d.ts +0 -26
- package/script/types/0_mini_app_button_info.d.ts.map +0 -1
- package/script/types/1_inline_query_result_button.d.ts.map +0 -1
- package/script/types/1_inline_query_result_button.js +0 -21
- /package/esm/types/{0_keyboard_button_poll_type.js → 0_inline_query_result_button.js} +0 -0
- /package/script/types/{0_keyboard_button_poll_type.js → 0_inline_query_result_button.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_callback_query_question.d.ts","sourceRoot":"","sources":["../../src/types/0_callback_query_question.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,
|
|
1
|
+
{"version":3,"file":"0_callback_query_question.d.ts","sourceRoot":"","sources":["../../src/types/0_callback_query_question.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,UAAU,CAAC;IACjB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,QAAQ,CAAC;IACf,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,+DAA+D;AAC/D,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,GAAG,6BAA6B,GAAG,2BAA2B,CAAC;AAE5H,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,qBAAqB,QAUrE"}
|
|
@@ -20,72 +20,59 @@
|
|
|
20
20
|
import type { Api } from "../2_tl.js";
|
|
21
21
|
/** @unlisted */
|
|
22
22
|
export interface ChatActionTypeTyping {
|
|
23
|
-
/** @discriminator */
|
|
24
23
|
type: "typing";
|
|
25
24
|
}
|
|
26
25
|
/** @unlisted */
|
|
27
26
|
export interface ChatActionTypeUploadingPhoto {
|
|
28
|
-
/** @discriminator */
|
|
29
27
|
type: "uploadingPhoto";
|
|
30
28
|
progress?: number;
|
|
31
29
|
}
|
|
32
30
|
/** @unlisted */
|
|
33
31
|
export interface ChatActionTypeRecordingVideo {
|
|
34
|
-
/** @discriminator */
|
|
35
32
|
type: "recordingVideo";
|
|
36
33
|
}
|
|
37
34
|
/** @unlisted */
|
|
38
35
|
export interface ChatActionTypeUploadingVideo {
|
|
39
|
-
/** @discriminator */
|
|
40
36
|
type: "uploadingVideo";
|
|
41
37
|
progress?: number;
|
|
42
38
|
}
|
|
43
39
|
/** @unlisted */
|
|
44
40
|
export interface ChatActionTypeRecordingVoice {
|
|
45
|
-
/** @discriminator */
|
|
46
41
|
type: "recordingVoice";
|
|
47
42
|
}
|
|
48
43
|
/** @unlisted */
|
|
49
44
|
export interface ChatActionTypeUploadingAudio {
|
|
50
|
-
/** @discriminator */
|
|
51
45
|
type: "uploadingAudio";
|
|
52
46
|
progress?: number;
|
|
53
47
|
}
|
|
54
48
|
/** @unlisted */
|
|
55
49
|
export interface ChatActionTypeUploadingDocument {
|
|
56
|
-
/** @discriminator */
|
|
57
50
|
type: "uploadingDocument";
|
|
58
51
|
progress?: number;
|
|
59
52
|
}
|
|
60
53
|
/** @unlisted */
|
|
61
54
|
export interface ChatActionTypeChoosingSticker {
|
|
62
|
-
/** @discriminator */
|
|
63
55
|
type: "choosingSticker";
|
|
64
56
|
}
|
|
65
57
|
/** @unlisted */
|
|
66
58
|
export interface ChatActionTypeChoosingLocation {
|
|
67
|
-
/** @discriminator */
|
|
68
59
|
type: "choosingLocation";
|
|
69
60
|
}
|
|
70
61
|
/** @unlisted */
|
|
71
62
|
export interface ChatActionTypeRecordingVideoNote {
|
|
72
|
-
/** @discriminator */
|
|
73
63
|
type: "recordingVideoNote";
|
|
74
64
|
}
|
|
75
65
|
/** @unlisted */
|
|
76
66
|
export interface ChatActionTypeUploadingTypeVideoNote {
|
|
77
|
-
/** @discriminator */
|
|
78
67
|
type: "uploadingVideoNote";
|
|
79
68
|
progress?: number;
|
|
80
69
|
}
|
|
81
70
|
/** @unlisted */
|
|
82
71
|
export interface ChatActionTypePlayingGame {
|
|
83
|
-
/** @discriminator */
|
|
84
72
|
type: "playingGame";
|
|
85
73
|
}
|
|
86
74
|
/** @unlisted */
|
|
87
75
|
export interface ChatActionTypeCancel {
|
|
88
|
-
/** @discriminator */
|
|
89
76
|
type: "cancel";
|
|
90
77
|
}
|
|
91
78
|
/** A type of a chat action. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_chat_action_type.d.ts","sourceRoot":"","sources":["../../src/types/0_chat_action_type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;I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MAAM,CAAC;CACnB;AAED,gBAAgB;AAChB,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,+BAA+B;AAC/B,MAAM,MAAM,cAAc,GACtB,oBAAoB,GACpB,4BAA4B,GAC5B,4BAA4B,GAC5B,4BAA4B,GAC5B,4BAA4B,GAC5B,4BAA4B,GAC5B,+BAA+B,GAC/B,6BAA6B,GAC7B,8BAA8B,GAC9B,gCAAgC,GAChC,oCAAoC,GACpC,yBAAyB,GACzB,oBAAoB,CAAC;AAEzB,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,iBAAiB,GAAG,cAAc,GAAG,IAAI,CA0C5F"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import type { Api } from "../2_tl.js";
|
|
21
21
|
/** The rights of a chat administrator. */
|
|
22
22
|
export interface ChatAdministratorRights {
|
|
23
|
-
/** Whether the
|
|
23
|
+
/** Whether the administrator's presence in the chat is hidden. */
|
|
24
24
|
isAnonymous: boolean;
|
|
25
25
|
/** Whether the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and surpass slow mode. */
|
|
26
26
|
canManageChat: boolean;
|
|
@@ -30,7 +30,7 @@ export interface ChatAdministratorRights {
|
|
|
30
30
|
canManageVideoChats: boolean;
|
|
31
31
|
/** Whether the administrator can restrict, ban or unban chat members. */
|
|
32
32
|
canRestrictMembers: boolean;
|
|
33
|
-
/** Whether the administrator can promote regular members to
|
|
33
|
+
/** Whether the administrator can promote regular members to administrators. */
|
|
34
34
|
canPromoteMembers: boolean;
|
|
35
35
|
/** Whether the administrator can change the name of the chat, its photo, description and some other settings. */
|
|
36
36
|
canChangeInfo: boolean;
|
|
@@ -50,9 +50,9 @@ export interface ChatAdministratorRights {
|
|
|
50
50
|
canEditStories: boolean;
|
|
51
51
|
/** Whether the administrator can delete stories. */
|
|
52
52
|
canDeleteStories: boolean;
|
|
53
|
-
/** Whether the administrator manage direct messages. */
|
|
53
|
+
/** Whether the administrator can manage direct messages. */
|
|
54
54
|
canManageDirectMessages: boolean;
|
|
55
|
-
/** Whether the administrator manage member tags. */
|
|
55
|
+
/** Whether the administrator can manage member tags. */
|
|
56
56
|
canManageTags: boolean;
|
|
57
57
|
}
|
|
58
58
|
export declare function constructChatAdministratorRights(rights_: Api.ChatAdminRights): ChatAdministratorRights;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_chat_administrator_rights.d.ts","sourceRoot":"","sources":["../../src/types/0_chat_administrator_rights.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,0CAA0C;AAC1C,MAAM,WAAW,uBAAuB;IACtC,
|
|
1
|
+
{"version":3,"file":"0_chat_administrator_rights.d.ts","sourceRoot":"","sources":["../../src/types/0_chat_administrator_rights.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,0CAA0C;AAC1C,MAAM,WAAW,uBAAuB;IACtC,kEAAkE;IAClE,WAAW,EAAE,OAAO,CAAC;IACrB,wMAAwM;IACxM,aAAa,EAAE,OAAO,CAAC;IACvB,oEAAoE;IACpE,iBAAiB,EAAE,OAAO,CAAC;IAC3B,wDAAwD;IACxD,mBAAmB,EAAE,OAAO,CAAC;IAC7B,yEAAyE;IACzE,kBAAkB,EAAE,OAAO,CAAC;IAC5B,+EAA+E;IAC/E,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iHAAiH;IACjH,aAAa,EAAE,OAAO,CAAC;IACvB,8DAA8D;IAC9D,cAAc,EAAE,OAAO,CAAC;IACxB,4FAA4F;IAC5F,eAAe,EAAE,OAAO,CAAC;IACzB,4GAA4G;IAC5G,eAAe,EAAE,OAAO,CAAC;IACzB,6FAA6F;IAC7F,cAAc,EAAE,OAAO,CAAC;IACxB,mFAAmF;IACnF,eAAe,EAAE,OAAO,CAAC;IACzB,kDAAkD;IAClD,cAAc,EAAE,OAAO,CAAC;IACxB,kDAAkD;IAClD,cAAc,EAAE,OAAO,CAAC;IACxB,oDAAoD;IACpD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,4DAA4D;IAC5D,uBAAuB,EAAE,OAAO,CAAC;IACjC,wDAAwD;IACxD,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,GAAG,CAAC,eAAe,GAAG,uBAAuB,CAoBtG;AAED,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,OAAO,CAAC,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,uBAAuB,GAAG,GAAG,CAAC,eAAe,GAAG,OAAO,CAqBpL"}
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
* @unlisted
|
|
23
23
|
*/
|
|
24
24
|
export interface CodeCheckResultPasswordRequired {
|
|
25
|
-
/** @discriminator */
|
|
26
25
|
type: "passwordRequired";
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
@@ -30,7 +29,6 @@ export interface CodeCheckResultPasswordRequired {
|
|
|
30
29
|
* @unlisted
|
|
31
30
|
*/
|
|
32
31
|
export interface CodeCheckResultInvalidCode {
|
|
33
|
-
/** @discriminator */
|
|
34
32
|
type: "invalidCode";
|
|
35
33
|
}
|
|
36
34
|
/**
|
|
@@ -38,7 +36,6 @@ export interface CodeCheckResultInvalidCode {
|
|
|
38
36
|
* @unlisted
|
|
39
37
|
*/
|
|
40
38
|
export interface CodeCheckResultSignedIn {
|
|
41
|
-
/** @discriminator */
|
|
42
39
|
type: "signedIn";
|
|
43
40
|
userId: number;
|
|
44
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_code_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_code_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,
|
|
1
|
+
{"version":3,"file":"0_code_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_code_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,+BAA+B,GAAG,0BAA0B,GAAG,uBAAuB,CAAC"}
|
|
@@ -24,13 +24,11 @@ export interface _EmojiStatusBase {
|
|
|
24
24
|
}
|
|
25
25
|
/** @unlisted */
|
|
26
26
|
export interface EmojiStatusCustomEmoji extends _EmojiStatusBase {
|
|
27
|
-
/** @discriminator */
|
|
28
27
|
type: "customEmoji";
|
|
29
28
|
customEmojiId: string;
|
|
30
29
|
}
|
|
31
30
|
/** @unlisted */
|
|
32
31
|
export interface EmojiStatusGift extends _EmojiStatusBase {
|
|
33
|
-
/** @discriminator */
|
|
34
32
|
type: "gift";
|
|
35
33
|
giftId: string;
|
|
36
34
|
customEmojiId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_emoji_status.d.ts","sourceRoot":"","sources":["../../src/types/0_emoji_status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D,
|
|
1
|
+
{"version":3,"file":"0_emoji_status.d.ts","sourceRoot":"","sources":["../../src/types/0_emoji_status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D,IAAI,EAAE,aAAa,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,gBAAgB;AAChB,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,gCAAgC;AAChC,MAAM,MAAM,WAAW,GAAG,sBAAsB,GAAG,eAAe,CAAC;AAEnE,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,GAAG,CAAC,WAAW,GAAG,WAAW,CAY9E"}
|
|
@@ -20,28 +20,23 @@
|
|
|
20
20
|
import type { Api } from "../2_tl.js";
|
|
21
21
|
/** @unlisted */
|
|
22
22
|
export interface GiftComponentRarityPerMille {
|
|
23
|
-
/** @discriminator */
|
|
24
23
|
type: "perMille";
|
|
25
24
|
perMille: number;
|
|
26
25
|
}
|
|
27
26
|
/** @unlisted */
|
|
28
27
|
export interface GiftComponentRarityUncommon {
|
|
29
|
-
/** @discriminator */
|
|
30
28
|
type: "uncommon";
|
|
31
29
|
}
|
|
32
30
|
/** @unlisted */
|
|
33
31
|
export interface GiftComponentRarityRare {
|
|
34
|
-
/** @discriminator */
|
|
35
32
|
type: "rare";
|
|
36
33
|
}
|
|
37
34
|
/** @unlisted */
|
|
38
35
|
export interface GiftComponentRarityEpic {
|
|
39
|
-
/** @discriminator */
|
|
40
36
|
type: "epic";
|
|
41
37
|
}
|
|
42
38
|
/** @unlisted */
|
|
43
39
|
export interface GiftComponentRarityLegendary {
|
|
44
|
-
/** @discriminator */
|
|
45
40
|
type: "legendary";
|
|
46
41
|
}
|
|
47
42
|
/** The rarity of a gift component. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_gift_component_rarity.d.ts","sourceRoot":"","sources":["../../src/types/0_gift_component_rarity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,gBAAgB;AAChB,MAAM,WAAW,2BAA2B;IAC1C,
|
|
1
|
+
{"version":3,"file":"0_gift_component_rarity.d.ts","sourceRoot":"","sources":["../../src/types/0_gift_component_rarity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,gBAAgB;AAChB,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,gBAAgB;AAChB,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,sCAAsC;AACtC,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,GAAG,2BAA2B,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,4BAA4B,CAAC;AAE/K,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,GAAG,CAAC,uBAAuB,GAAG,mBAAmB,CAsBrG"}
|
package/script/types/0_id.d.ts
CHANGED
|
@@ -17,8 +17,6 @@
|
|
|
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
|
-
/**
|
|
21
|
-
* The identifier of a channel, a group, or a user (as provided by MTKruto), a username, a phone number (for users), or a chat link (e.g., https://mtkruto.t.me, https://telegram.me/mtkruto). `"me"` resolves to the current account.
|
|
22
|
-
*/
|
|
20
|
+
/** The identifier of a channel, a group, or a user (as provided by MTKruto), a username, a phone number (for users), or a chat link (e.g., https://mtkruto.t.me, https://telegram.me/mtkruto). `"me"` resolves to the current account. */
|
|
23
21
|
export type ID = number | string | "me";
|
|
24
22
|
//# sourceMappingURL=0_id.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_id.d.ts","sourceRoot":"","sources":["../../src/types/0_id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH
|
|
1
|
+
{"version":3,"file":"0_id.d.ts","sourceRoot":"","sources":["../../src/types/0_id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,0OAA0O;AAC1O,MAAM,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC"}
|
|
@@ -17,14 +17,13 @@
|
|
|
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 { MiniAppButtonInfo } from "./0_mini_app_button_info.js";
|
|
21
20
|
/** A button to be shown along with the results of an inline query. */
|
|
22
21
|
export interface InlineQueryResultButton {
|
|
23
22
|
/** Label text on the button. */
|
|
24
23
|
text: string;
|
|
25
|
-
/**
|
|
26
|
-
|
|
24
|
+
/** An HTTPS URL of the mini app to be opened with additional data. */
|
|
25
|
+
url?: string;
|
|
27
26
|
/** Deep linking parameter for the /start message. */
|
|
28
27
|
startParameter?: string;
|
|
29
28
|
}
|
|
30
|
-
//# sourceMappingURL=
|
|
29
|
+
//# sourceMappingURL=0_inline_query_result_button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0_inline_query_result_button.d.ts","sourceRoot":"","sources":["../../src/types/0_inline_query_result_button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,sEAAsE;AACtE,MAAM,WAAW,uBAAuB;IACtC,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -19,14 +19,12 @@
|
|
|
19
19
|
*/
|
|
20
20
|
/** @unlisted */
|
|
21
21
|
export interface InputEmojiStatusCustomEmoji {
|
|
22
|
-
/** @discriminator */
|
|
23
22
|
type: "customEmoji";
|
|
24
23
|
/** The identifier of a custom emoji. */
|
|
25
24
|
customEmojiId: string;
|
|
26
25
|
}
|
|
27
26
|
/** @unlisted */
|
|
28
27
|
export interface InputEmojiStatusGift {
|
|
29
|
-
/** @discriminator */
|
|
30
28
|
type: "gift";
|
|
31
29
|
/** The gift's ID. */
|
|
32
30
|
giftId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_input_emoji_status.d.ts","sourceRoot":"","sources":["../../src/types/0_input_emoji_status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,gBAAgB;AAChB,MAAM,WAAW,2BAA2B;IAC1C,
|
|
1
|
+
{"version":3,"file":"0_input_emoji_status.d.ts","sourceRoot":"","sources":["../../src/types/0_input_emoji_status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,gBAAgB;AAChB,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,aAAa,CAAC;IACpB,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,gDAAgD;AAChD,MAAM,MAAM,gBAAgB,GAAG,2BAA2B,GAAG,oBAAoB,CAAC"}
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
* @unlisted
|
|
23
23
|
*/
|
|
24
24
|
export interface PasswordCheckResultInvalidPassword {
|
|
25
|
-
/** @discriminator */
|
|
26
25
|
type: "invalidPassword";
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
@@ -30,7 +29,6 @@ export interface PasswordCheckResultInvalidPassword {
|
|
|
30
29
|
* @unlisted
|
|
31
30
|
*/
|
|
32
31
|
export interface PasswordCheckResultSignedIn {
|
|
33
|
-
/** @discriminator */
|
|
34
32
|
type: "signedIn";
|
|
35
33
|
userId: number;
|
|
36
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_password_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_password_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD,
|
|
1
|
+
{"version":3,"file":"0_password_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_password_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,0CAA0C;AAC1C,MAAM,MAAM,mBAAmB,GAAG,kCAAkC,GAAG,2BAA2B,CAAC"}
|
|
@@ -17,5 +17,6 @@
|
|
|
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
|
+
/** The duration of a Telegram Premium subscription. */
|
|
20
21
|
export type PremiumSubscriptionDuration = 3 | 6 | 12;
|
|
21
22
|
//# sourceMappingURL=0_premium_subscription_duration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_premium_subscription_duration.d.ts","sourceRoot":"","sources":["../../src/types/0_premium_subscription_duration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"0_premium_subscription_duration.d.ts","sourceRoot":"","sources":["../../src/types/0_premium_subscription_duration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,uDAAuD;AACvD,MAAM,MAAM,2BAA2B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -23,7 +23,6 @@ import { Api } from "../2_tl.js";
|
|
|
23
23
|
* @unlisted
|
|
24
24
|
*/
|
|
25
25
|
export interface ReactionEmoji {
|
|
26
|
-
/** @discriminator */
|
|
27
26
|
type: "emoji";
|
|
28
27
|
emoji: string;
|
|
29
28
|
}
|
|
@@ -32,7 +31,6 @@ export interface ReactionEmoji {
|
|
|
32
31
|
* @unlisted
|
|
33
32
|
*/
|
|
34
33
|
export interface ReactionCustom {
|
|
35
|
-
/** @discriminator */
|
|
36
34
|
type: "custom";
|
|
37
35
|
id: string;
|
|
38
36
|
}
|
|
@@ -41,7 +39,6 @@ export interface ReactionCustom {
|
|
|
41
39
|
* @unlisted
|
|
42
40
|
*/
|
|
43
41
|
export interface ReactionPaid {
|
|
44
|
-
/** @discriminator */
|
|
45
42
|
type: "paid";
|
|
46
43
|
}
|
|
47
44
|
/** A reaction type. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_reaction.d.ts","sourceRoot":"","sources":["../../src/types/0_reaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,
|
|
1
|
+
{"version":3,"file":"0_reaction.d.ts","sourceRoot":"","sources":["../../src/types/0_reaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,uBAAuB;AACvB,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,cAAc,GAAG,YAAY,CAAC;AAErE,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAUlE;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAEnE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,GAAG,OAAO,CAWtE"}
|
|
@@ -23,7 +23,6 @@ import type { Api } from "../2_tl.js";
|
|
|
23
23
|
* @unlisted
|
|
24
24
|
*/
|
|
25
25
|
export interface UserStatusOnline {
|
|
26
|
-
/** @discriminator */
|
|
27
26
|
type: "online";
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
@@ -31,33 +30,29 @@ export interface UserStatusOnline {
|
|
|
31
30
|
* @unlisted
|
|
32
31
|
*/
|
|
33
32
|
export interface UserStatusOffline {
|
|
34
|
-
/** @discriminator */
|
|
35
33
|
type: "offline";
|
|
36
34
|
/** A point in time in which the user was last seen online. */
|
|
37
35
|
lastSeenAt: number;
|
|
38
36
|
}
|
|
39
37
|
/**
|
|
40
|
-
* A user status
|
|
38
|
+
* A user status indicating that the user was last seen online recently.
|
|
41
39
|
* @unlisted
|
|
42
40
|
*/
|
|
43
41
|
export interface UserStatusLastSeenRecently {
|
|
44
|
-
/** @discriminator */
|
|
45
42
|
type: "lastSeenRecently";
|
|
46
43
|
}
|
|
47
44
|
/**
|
|
48
|
-
* A user status
|
|
45
|
+
* A user status indicating that the user was last seen online around a week ago.
|
|
49
46
|
* @unlisted
|
|
50
47
|
*/
|
|
51
48
|
export interface UserStatusLastSeenLastWeek {
|
|
52
|
-
/** @discriminator */
|
|
53
49
|
type: "lastSeenLastWeek";
|
|
54
50
|
}
|
|
55
51
|
/**
|
|
56
|
-
* A user status
|
|
52
|
+
* A user status indicating that the user was last seen online around a month ago.
|
|
57
53
|
* @unlisted
|
|
58
54
|
*/
|
|
59
55
|
export interface UserStatusLastSeenLastMonth {
|
|
60
|
-
/** @discriminator */
|
|
61
56
|
type: "lastSeenLastMonth";
|
|
62
57
|
}
|
|
63
58
|
/** Any type of a user's status. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_user_status.d.ts","sourceRoot":"","sources":["../../src/types/0_user_status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,
|
|
1
|
+
{"version":3,"file":"0_user_status.d.ts","sourceRoot":"","sources":["../../src/types/0_user_status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,0BAA0B,GAAG,0BAA0B,GAAG,2BAA2B,CAAC;AAEtJ,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,GAAG,UAAU,CAe1E"}
|
|
@@ -37,7 +37,6 @@ export interface _VideoChatNotEndedCommon {
|
|
|
37
37
|
* @unlisted
|
|
38
38
|
*/
|
|
39
39
|
export interface VideoChatActive extends _VideoChatCommon, _VideoChatNotEndedCommon {
|
|
40
|
-
/** @discriminator */
|
|
41
40
|
type: "active";
|
|
42
41
|
/** Whether the video chat is being recorded. */
|
|
43
42
|
isRecording: boolean;
|
|
@@ -47,7 +46,6 @@ export interface VideoChatActive extends _VideoChatCommon, _VideoChatNotEndedCom
|
|
|
47
46
|
* @unlisted
|
|
48
47
|
*/
|
|
49
48
|
export interface VideoChatScheduled extends _VideoChatCommon, _VideoChatNotEndedCommon {
|
|
50
|
-
/** @discriminator */
|
|
51
49
|
type: "scheduled";
|
|
52
50
|
/** The point in time in which the video chat will be started. */
|
|
53
51
|
scheduledFor: number;
|
|
@@ -57,7 +55,6 @@ export interface VideoChatScheduled extends _VideoChatCommon, _VideoChatNotEnded
|
|
|
57
55
|
* @unlisted
|
|
58
56
|
*/
|
|
59
57
|
export interface VideoChatEnded extends _VideoChatCommon {
|
|
60
|
-
/** @discriminator */
|
|
61
58
|
type: "ended";
|
|
62
59
|
/** The duration of the video chat in seconds. */
|
|
63
60
|
duration: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_video_chat.d.ts","sourceRoot":"","sources":["../../src/types/0_video_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,0CAA0C;IAC1C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,wBAAwB;IACjF,
|
|
1
|
+
{"version":3,"file":"0_video_chat.d.ts","sourceRoot":"","sources":["../../src/types/0_video_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,0CAA0C;IAC1C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,wBAAwB;IACjF,IAAI,EAAE,QAAQ,CAAC;IACf,gDAAgD;IAChD,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB,EAAE,wBAAwB;IACpF,IAAI,EAAE,WAAW,CAAC;IAClB,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,IAAI,EAAE,OAAO,CAAC;IACd,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,oBAAoB;AACpB,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,kBAAkB,GAAG,cAAc,CAAC;AAE9E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,SAAS,GAAG,SAAS,CAgCjE"}
|
|
@@ -24,7 +24,6 @@ import { type Reaction } from "./0_reaction.js";
|
|
|
24
24
|
* @unlisted
|
|
25
25
|
*/
|
|
26
26
|
export interface AvailableReactionsNone {
|
|
27
|
-
/** @discriminator */
|
|
28
27
|
type: "none";
|
|
29
28
|
}
|
|
30
29
|
/**
|
|
@@ -32,7 +31,6 @@ export interface AvailableReactionsNone {
|
|
|
32
31
|
* @unlisted
|
|
33
32
|
*/
|
|
34
33
|
export interface AvailableReactionsSome {
|
|
35
|
-
/** @discriminator */
|
|
36
34
|
type: "some";
|
|
37
35
|
/** The allowed reactions. */
|
|
38
36
|
reactions: Reaction[];
|
|
@@ -44,7 +42,6 @@ export interface AvailableReactionsSome {
|
|
|
44
42
|
* @unlisted
|
|
45
43
|
*/
|
|
46
44
|
export interface AvailableReactionsAll {
|
|
47
|
-
/** @discriminator */
|
|
48
45
|
type: "all";
|
|
49
46
|
/** The maximum number of allowed reactions on a single message. */
|
|
50
47
|
maxReactionCount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_available_reactions.d.ts","sourceRoot":"","sources":["../../src/types/1_available_reactions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,QAAQ,EAAsB,MAAM,iBAAiB,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,
|
|
1
|
+
{"version":3,"file":"1_available_reactions.d.ts","sourceRoot":"","sources":["../../src/types/1_available_reactions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,QAAQ,EAAsB,MAAM,iBAAiB,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,KAAK,CAAC;IACZ,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,oCAAoC;AACpC,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAEzG,wBAAgB,4BAA4B,CAAC,sBAAsB,EAAE,kBAAkB,GAAG,GAAG,CAAC,aAAa,CAS1G"}
|
|
@@ -22,44 +22,37 @@ import type { InputPeerGetter } from "./_getters.js";
|
|
|
22
22
|
import type { ID } from "./0_id.js";
|
|
23
23
|
/** @unlisted */
|
|
24
24
|
export interface BotCommandScopeDefault {
|
|
25
|
-
/** @discriminator */
|
|
26
25
|
type: "default";
|
|
27
26
|
}
|
|
28
27
|
/** @unlisted */
|
|
29
28
|
export interface BotCommandScopeAllPrivateChats {
|
|
30
|
-
/** @discriminator */
|
|
31
29
|
type: "allPrivateChats";
|
|
32
30
|
}
|
|
33
31
|
/** @unlisted */
|
|
34
32
|
export interface BotCommandScopeAllGroupChats {
|
|
35
|
-
/** @discriminator */
|
|
36
33
|
type: "allGroupChats";
|
|
37
34
|
}
|
|
38
35
|
/** @unlisted */
|
|
39
36
|
export interface BotCommandScopeAllChatAdministrators {
|
|
40
|
-
/** @discriminator */
|
|
41
37
|
type: "allChatAdministrators";
|
|
42
38
|
}
|
|
43
39
|
/** @unlisted */
|
|
44
40
|
export interface BotCommandScopeChat {
|
|
45
|
-
/** @discriminator */
|
|
46
41
|
type: "chat";
|
|
47
42
|
chatId: ID;
|
|
48
43
|
}
|
|
49
44
|
/** @unlisted */
|
|
50
45
|
export interface BotCommandScopeChatAdministrators {
|
|
51
|
-
/** @discriminator */
|
|
52
46
|
type: "chatAdministrators";
|
|
53
47
|
chatId: ID;
|
|
54
48
|
}
|
|
55
49
|
/** @unlisted */
|
|
56
50
|
export interface BotCommandScopeChatMember {
|
|
57
|
-
/** @discriminator */
|
|
58
51
|
type: "chatMember";
|
|
59
52
|
chatId: ID;
|
|
60
53
|
userId: number;
|
|
61
54
|
}
|
|
62
|
-
/** A type specifying where bot
|
|
55
|
+
/** A type specifying where bot commands are available. */
|
|
63
56
|
export type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
|
|
64
57
|
export declare function botCommandScopeToTlObject(scope: BotCommandScope, getInputPeer: InputPeerGetter): Promise<Api.BotCommandScope>;
|
|
65
58
|
//# sourceMappingURL=1_bot_command_scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_bot_command_scope.d.ts","sourceRoot":"","sources":["../../src/types/1_bot_command_scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAEpC,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,
|
|
1
|
+
{"version":3,"file":"1_bot_command_scope.d.ts","sourceRoot":"","sources":["../../src/types/1_bot_command_scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAEpC,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,gBAAgB;AAChB,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,gBAAgB;AAChB,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,gBAAgB;AAChB,MAAM,WAAW,oCAAoC;IACnD,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED,gBAAgB;AAChB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,EAAE,CAAC;CACZ;AAED,gBAAgB;AAChB,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,EAAE,EAAE,CAAC;CACZ;AAED,gBAAgB;AAChB,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,EAAE,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,0DAA0D;AAC1D,MAAM,MAAM,eAAe,GAAG,sBAAsB,GAAG,8BAA8B,GAAG,4BAA4B,GAAG,oCAAoC,GAAG,mBAAmB,GAAG,iCAAiC,GAAG,yBAAyB,CAAC;AAElP,wBAAsB,yBAAyB,CAAC,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAwBnI"}
|
|
@@ -37,7 +37,6 @@ export interface _ChatPBase {
|
|
|
37
37
|
}
|
|
38
38
|
/** @unlisted */
|
|
39
39
|
export interface ChatPPrivate extends _ChatPBase {
|
|
40
|
-
/** @discriminator */
|
|
41
40
|
type: "private";
|
|
42
41
|
/** Whether this is a bot's chat. */
|
|
43
42
|
isBot: boolean;
|
|
@@ -88,7 +87,6 @@ export interface ChatPPrivate extends _ChatPBase {
|
|
|
88
87
|
}
|
|
89
88
|
/** @unlisted */
|
|
90
89
|
export interface ChatPGroup extends _ChatPBase {
|
|
91
|
-
/** @discriminator */
|
|
92
90
|
type: "group";
|
|
93
91
|
/** The title of the chat. */
|
|
94
92
|
title: string;
|
|
@@ -116,21 +114,17 @@ export interface ChatPChannelBase extends _ChatPBase {
|
|
|
116
114
|
}
|
|
117
115
|
/** @unlisted */
|
|
118
116
|
export interface ChatPChannel extends ChatPChannelBase {
|
|
119
|
-
/** @discriminator */
|
|
120
117
|
type: "channel";
|
|
121
118
|
/** The channel's emoji status. */
|
|
122
119
|
emojiStatus?: EmojiStatus;
|
|
123
120
|
}
|
|
124
121
|
/** @unlisted */
|
|
125
122
|
export interface ChatPSupergroup extends ChatPChannelBase {
|
|
126
|
-
/** @discriminator */
|
|
127
123
|
type: "supergroup";
|
|
128
124
|
/** Whether the chat is a forum. */
|
|
129
125
|
isForum: boolean;
|
|
130
126
|
}
|
|
131
|
-
/**
|
|
132
|
-
* A chat with lesser fields.
|
|
133
|
-
*/
|
|
127
|
+
/** A chat with lesser fields. */
|
|
134
128
|
export type ChatP = ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel;
|
|
135
129
|
export declare function constructChatP(chat: Api.user): ChatPPrivate;
|
|
136
130
|
export declare function constructChatP(chat: Api.chat | Api.chatForbidden): ChatPGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_chat_p.d.ts","sourceRoot":"","sources":["../../src/types/1_chat_p.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE1E,gBAAgB;AAChB,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,OAAO,GACP,YAAY,GACZ,SAAS,CAAC;AAEd,gBAAgB;AAChB,MAAM,WAAW,UAAU;IACzB,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,gBAAgB;AAChB,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,
|
|
1
|
+
{"version":3,"file":"1_chat_p.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