@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
|
@@ -29,7 +29,6 @@ import { type Gift } from "./4_gift.js";
|
|
|
29
29
|
* @unlisted
|
|
30
30
|
*/
|
|
31
31
|
export interface InputLinkPreview {
|
|
32
|
-
/** @discriminator */
|
|
33
32
|
type: "input";
|
|
34
33
|
/** Whether link preview is disabled. */
|
|
35
34
|
isDisabled?: boolean;
|
|
@@ -57,7 +56,6 @@ export interface _LinkPreviewBase {
|
|
|
57
56
|
* @unlisted
|
|
58
57
|
*/
|
|
59
58
|
export interface LinkPreviewLoading extends _LinkPreviewBase {
|
|
60
|
-
/** @discriminator */
|
|
61
59
|
type: "loading";
|
|
62
60
|
/** The URL of the link preview. */
|
|
63
61
|
url?: string;
|
|
@@ -69,7 +67,6 @@ export interface LinkPreviewLoading extends _LinkPreviewBase {
|
|
|
69
67
|
* @unlisted
|
|
70
68
|
*/
|
|
71
69
|
export interface LinkPreviewNotLoaded extends _LinkPreviewBase {
|
|
72
|
-
/** @discriminator */
|
|
73
70
|
type: "notLoaded";
|
|
74
71
|
/** The URL of the link preview. */
|
|
75
72
|
url?: string;
|
|
@@ -84,7 +81,6 @@ export interface _LinkPreviewLoadedBase extends _LinkPreviewBase {
|
|
|
84
81
|
* @unlisted
|
|
85
82
|
*/
|
|
86
83
|
export interface LinkPreviewUnknown extends _LinkPreviewLoadedBase {
|
|
87
|
-
/** @discriminator */
|
|
88
84
|
type: "unknown";
|
|
89
85
|
}
|
|
90
86
|
/**
|
|
@@ -92,13 +88,10 @@ export interface LinkPreviewUnknown extends _LinkPreviewLoadedBase {
|
|
|
92
88
|
* @unlisted
|
|
93
89
|
*/
|
|
94
90
|
export interface LinkPreviewPhoto extends _LinkPreviewLoadedBase {
|
|
95
|
-
/** @discriminator */
|
|
96
91
|
type: "photo";
|
|
97
92
|
photo: Photo;
|
|
98
93
|
}
|
|
99
|
-
/**
|
|
100
|
-
* @unlisted
|
|
101
|
-
*/
|
|
94
|
+
/** @unlisted */
|
|
102
95
|
export interface _LinkPreviewEmbeddedBase extends _LinkPreviewLoadedBase {
|
|
103
96
|
embedUrl: string;
|
|
104
97
|
width: number;
|
|
@@ -110,7 +103,6 @@ export interface _LinkPreviewEmbeddedBase extends _LinkPreviewLoadedBase {
|
|
|
110
103
|
* @unlisted
|
|
111
104
|
*/
|
|
112
105
|
export interface LinkPreviewEmbeddedVideo extends _LinkPreviewEmbeddedBase {
|
|
113
|
-
/** @discriminator */
|
|
114
106
|
type: "embeddedVideo";
|
|
115
107
|
thumbnail?: Photo;
|
|
116
108
|
}
|
|
@@ -119,18 +111,14 @@ export interface LinkPreviewEmbeddedVideo extends _LinkPreviewEmbeddedBase {
|
|
|
119
111
|
* @unlisted
|
|
120
112
|
*/
|
|
121
113
|
export interface LinkPreviewExternalVideo extends _LinkPreviewEmbeddedBase {
|
|
122
|
-
/** @discriminator */
|
|
123
114
|
type: "externalVideo";
|
|
124
115
|
mimeType: string;
|
|
125
116
|
width: number;
|
|
126
117
|
height: number;
|
|
127
118
|
duration: number;
|
|
128
119
|
}
|
|
129
|
-
/**
|
|
130
|
-
* @unlisted
|
|
131
|
-
*/
|
|
120
|
+
/** @unlisted */
|
|
132
121
|
export interface LinkPreviewVideo extends _LinkPreviewLoadedBase {
|
|
133
|
-
/** @discriminator */
|
|
134
122
|
type: "video";
|
|
135
123
|
video: Document;
|
|
136
124
|
startTimestamp?: number;
|
|
@@ -141,7 +129,6 @@ export interface LinkPreviewVideo extends _LinkPreviewLoadedBase {
|
|
|
141
129
|
* @unlisted
|
|
142
130
|
*/
|
|
143
131
|
export interface LinkPreviewEmbeddedAudio extends _LinkPreviewEmbeddedBase {
|
|
144
|
-
/** @discriminator */
|
|
145
132
|
type: "embeddedAudio";
|
|
146
133
|
duration: number;
|
|
147
134
|
width: number;
|
|
@@ -152,7 +139,6 @@ export interface LinkPreviewEmbeddedAudio extends _LinkPreviewEmbeddedBase {
|
|
|
152
139
|
* @unlisted
|
|
153
140
|
*/
|
|
154
141
|
export interface LinkPreviewExternalAudio extends _LinkPreviewEmbeddedBase {
|
|
155
|
-
/** @discriminator */
|
|
156
142
|
type: "externalAudio";
|
|
157
143
|
mimeType: string;
|
|
158
144
|
duration: number;
|
|
@@ -162,7 +148,6 @@ export interface LinkPreviewExternalAudio extends _LinkPreviewEmbeddedBase {
|
|
|
162
148
|
* @unlisted
|
|
163
149
|
*/
|
|
164
150
|
export interface LinkPreviewAudio extends _LinkPreviewLoadedBase {
|
|
165
|
-
/** @discriminator */
|
|
166
151
|
type: "audio";
|
|
167
152
|
audio: Audio;
|
|
168
153
|
}
|
|
@@ -171,7 +156,6 @@ export interface LinkPreviewAudio extends _LinkPreviewLoadedBase {
|
|
|
171
156
|
* @unlisted
|
|
172
157
|
*/
|
|
173
158
|
export interface LinkPreviewGift extends _LinkPreviewLoadedBase {
|
|
174
|
-
/** @discriminator */
|
|
175
159
|
type: "gift";
|
|
176
160
|
gift: Gift;
|
|
177
161
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"5_link_preview.d.ts","sourceRoot":"","sources":["../../src/types/5_link_preview.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAkB,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,
|
|
1
|
+
{"version":3,"file":"5_link_preview.d.ts","sourceRoot":"","sources":["../../src/types/5_link_preview.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAkB,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,E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