@mtkruto/node 0.137.0 → 0.139.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/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 +6 -0
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/1_client_generic.d.ts +14 -9
- 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/1_types.d.ts +1 -0
- package/esm/client/1_types.d.ts.map +1 -1
- 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_story_album_manager.d.ts.map +1 -1
- package/esm/client/2_story_album_manager.js +1 -2
- package/esm/client/2_translations_manager.js +2 -2
- package/esm/client/2_update_manager.js +1 -1
- 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 +16 -19
- 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.d.ts.map +1 -1
- package/esm/client/4_chat_manager.js +4 -5
- package/esm/client/4_context.d.ts +154 -462
- package/esm/client/4_context.d.ts.map +1 -1
- package/esm/client/4_context.js +220 -505
- 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.js +2 -2
- package/esm/client/4_story_manager.js +5 -5
- package/esm/client/6_client.d.ts +13 -14
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +26 -14
- package/esm/client/6_client_dispatcher.d.ts +14 -9
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +15 -6
- package/esm/session/1_session.d.ts +2 -6
- package/esm/session/1_session.d.ts.map +1 -1
- 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_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_reaction.d.ts +0 -3
- package/esm/types/0_reaction.d.ts.map +1 -1
- package/esm/types/0_user_status.d.ts +0 -5
- 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 +0 -7
- 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/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 +4 -12
- 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 +6 -7
- 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_input_media.d.ts +10 -20
- package/esm/types/3_input_media.d.ts.map +1 -1
- package/esm/types/4_gift.d.ts +0 -2
- 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_link_preview.d.ts +2 -18
- package/esm/types/5_link_preview.d.ts.map +1 -1
- package/esm/types/6_message.d.ts +90 -179
- package/esm/types/6_message.d.ts.map +1 -1
- package/esm/types/6_message.js +104 -120
- package/esm/types/6_message_content.d.ts +0 -5
- 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/8_update.d.ts +58 -105
- 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/package.json +1 -1
- 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 +6 -0
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/1_client_generic.d.ts +14 -9
- 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/1_types.d.ts +1 -0
- package/script/client/1_types.d.ts.map +1 -1
- 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_story_album_manager.d.ts.map +1 -1
- package/script/client/2_story_album_manager.js +1 -2
- package/script/client/2_translations_manager.js +2 -2
- package/script/client/2_update_manager.js +1 -1
- 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 +15 -18
- 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.d.ts.map +1 -1
- package/script/client/4_chat_manager.js +4 -5
- package/script/client/4_context.d.ts +154 -462
- package/script/client/4_context.d.ts.map +1 -1
- package/script/client/4_context.js +220 -505
- 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.js +2 -2
- package/script/client/4_story_manager.js +5 -5
- package/script/client/6_client.d.ts +13 -14
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +25 -13
- package/script/client/6_client_dispatcher.d.ts +14 -9
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +15 -6
- package/script/session/1_session.d.ts +2 -6
- package/script/session/1_session.d.ts.map +1 -1
- 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_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_reaction.d.ts +0 -3
- package/script/types/0_reaction.d.ts.map +1 -1
- package/script/types/0_user_status.d.ts +0 -5
- 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 +0 -7
- 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/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 +4 -12
- 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 +6 -7
- 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_input_media.d.ts +10 -20
- package/script/types/3_input_media.d.ts.map +1 -1
- package/script/types/4_gift.d.ts +0 -2
- 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_link_preview.d.ts +2 -18
- package/script/types/5_link_preview.d.ts.map +1 -1
- package/script/types/6_message.d.ts +90 -179
- package/script/types/6_message.d.ts.map +1 -1
- package/script/types/6_message.js +105 -121
- package/script/types/6_message_content.d.ts +0 -5
- 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/8_update.d.ts +58 -105
- 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/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
|
@@ -25,10 +25,7 @@ import { type MessageEntity } from "./2_message_entity.js";
|
|
|
25
25
|
import { type ReplyMarkupInlineKeyboard } from "./2_reply_markup.js";
|
|
26
26
|
import type { MessageContent } from "./6_message_content.js";
|
|
27
27
|
/** @unlisted */
|
|
28
|
-
export type InlineQueryResultType = "article" | "audio" | "document" | "gif" | "mpeg4Gif" | "photo" | "sticker" | "video" | "voice" | "game" | "location" | "venue";
|
|
29
|
-
/** @unlisted */
|
|
30
28
|
export interface _InlineQueryResultBase {
|
|
31
|
-
type: InlineQueryResultType;
|
|
32
29
|
id: string;
|
|
33
30
|
}
|
|
34
31
|
/** @unlisted */
|
|
@@ -50,7 +47,6 @@ export interface _InlineQueryResultThumbnailCommon {
|
|
|
50
47
|
}
|
|
51
48
|
/** @unlisted */
|
|
52
49
|
export interface InlineQueryResultArticle extends _InlineQueryResultBase, _InlineQueryResultThumbnailCommon {
|
|
53
|
-
/** @discriminator */
|
|
54
50
|
type: "article";
|
|
55
51
|
title: string;
|
|
56
52
|
messageContent: MessageContent;
|
|
@@ -61,7 +57,6 @@ export interface InlineQueryResultArticle extends _InlineQueryResultBase, _Inlin
|
|
|
61
57
|
}
|
|
62
58
|
/** @unlisted */
|
|
63
59
|
export interface InlineQueryResultAudio extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
64
|
-
/** @discriminator */
|
|
65
60
|
type: "audio";
|
|
66
61
|
title: string;
|
|
67
62
|
url: string;
|
|
@@ -70,73 +65,56 @@ export interface InlineQueryResultAudio extends _InlineQueryResultBase, _InlineQ
|
|
|
70
65
|
}
|
|
71
66
|
/** @unlisted */
|
|
72
67
|
export interface InlineQueryResultCachedAudio extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
73
|
-
|
|
74
|
-
type: "audio";
|
|
75
|
-
/** @discriminator */
|
|
68
|
+
type: "cachedAudio";
|
|
76
69
|
fileId: string;
|
|
77
70
|
}
|
|
78
71
|
/** @unlisted */
|
|
79
72
|
export interface InlineQueryResultCachedDocument extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
80
|
-
|
|
81
|
-
type: "document";
|
|
82
|
-
/** @discriminator */
|
|
73
|
+
type: "cachedDocument";
|
|
83
74
|
fileId: string;
|
|
84
75
|
description?: string;
|
|
85
76
|
}
|
|
86
77
|
/** @unlisted */
|
|
87
78
|
export interface InlineQueryResultCachedGif extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
88
|
-
|
|
89
|
-
type: "gif";
|
|
90
|
-
/** @discriminator */
|
|
79
|
+
type: "cachedGif";
|
|
91
80
|
fileId: string;
|
|
92
81
|
title?: string;
|
|
93
82
|
}
|
|
94
83
|
/** @unlisted */
|
|
95
84
|
export interface InlineQueryResultCachedMpeg4Gif extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
96
|
-
|
|
97
|
-
type: "mpeg4Gif";
|
|
98
|
-
/** @discriminator */
|
|
85
|
+
type: "cachedMpeg4Gif";
|
|
99
86
|
fileId: string;
|
|
100
87
|
title?: string;
|
|
101
88
|
}
|
|
102
89
|
/** @unlisted */
|
|
103
90
|
export interface InlineQueryResultCachedPhoto extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
104
|
-
|
|
105
|
-
type: "photo";
|
|
106
|
-
/** @discriminator */
|
|
91
|
+
type: "cachedPhoto";
|
|
107
92
|
fileId: string;
|
|
108
93
|
thumbnails?: Thumbnail[];
|
|
109
94
|
title?: string;
|
|
110
95
|
description?: string;
|
|
111
96
|
}
|
|
112
97
|
/** @unlisted */
|
|
113
|
-
export interface
|
|
114
|
-
/** @discriminator */
|
|
98
|
+
export interface InlineQueryResultSticker extends _InlineQueryResultBase, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
115
99
|
type: "sticker";
|
|
116
|
-
/** @discriminator */
|
|
117
100
|
fileId: string;
|
|
118
101
|
}
|
|
119
102
|
/** @unlisted */
|
|
120
103
|
export interface InlineQueryResultCachedVideo extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
121
|
-
|
|
122
|
-
type: "video";
|
|
104
|
+
type: "cachedVideo";
|
|
123
105
|
title: string;
|
|
124
|
-
/** @discriminator */
|
|
125
106
|
fileId: string;
|
|
126
107
|
description?: string;
|
|
127
108
|
}
|
|
128
109
|
/** @unlisted */
|
|
129
110
|
export interface InlineQueryResultCachedVoice extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
130
|
-
|
|
131
|
-
type: "voice";
|
|
111
|
+
type: "cachedVoice";
|
|
132
112
|
title: string;
|
|
133
|
-
/** @discriminator */
|
|
134
113
|
fileId: string;
|
|
135
114
|
}
|
|
136
115
|
/** @unlisted */
|
|
137
116
|
export interface InlineQueryResultContact extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon, _InlineQueryResultThumbnailCommon {
|
|
138
|
-
|
|
139
|
-
type: "game";
|
|
117
|
+
type: "contact";
|
|
140
118
|
phoneNumber: string;
|
|
141
119
|
firstName: string;
|
|
142
120
|
lastName?: string;
|
|
@@ -144,25 +122,20 @@ export interface InlineQueryResultContact extends _InlineQueryResultBase, _Inlin
|
|
|
144
122
|
}
|
|
145
123
|
/** @unlisted */
|
|
146
124
|
export interface InlineQueryResultDocument extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon, _InlineQueryResultThumbnailCommon {
|
|
147
|
-
/** @discriminator */
|
|
148
125
|
type: "document";
|
|
149
126
|
title: string;
|
|
150
|
-
/** @discriminator */
|
|
151
127
|
url: string;
|
|
152
128
|
}
|
|
153
129
|
/** @unlisted */
|
|
154
130
|
export interface InlineQueryResultGame extends _InlineQueryResultBase {
|
|
155
|
-
/** @discriminator */
|
|
156
131
|
type: "game";
|
|
157
132
|
gameShortName: string;
|
|
158
133
|
replyMarkup?: ReplyMarkupInlineKeyboard;
|
|
159
134
|
}
|
|
160
135
|
/** @unlisted */
|
|
161
136
|
export interface InlineQueryResultGif extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
162
|
-
/** @discriminator */
|
|
163
137
|
type: "gif";
|
|
164
138
|
title?: string;
|
|
165
|
-
/** @discriminator */
|
|
166
139
|
url: string;
|
|
167
140
|
width?: number;
|
|
168
141
|
height?: number;
|
|
@@ -172,7 +145,6 @@ export interface InlineQueryResultGif extends _InlineQueryResultBase, _InlineQue
|
|
|
172
145
|
}
|
|
173
146
|
/** @unlisted */
|
|
174
147
|
export interface InlineQueryResultLocation extends _InlineQueryResultBase, _InlineQueryResultMessageContentReplyMarkupCommon, _InlineQueryResultThumbnailCommon {
|
|
175
|
-
/** @discriminator */
|
|
176
148
|
type: "location";
|
|
177
149
|
title: string;
|
|
178
150
|
latitude: number;
|
|
@@ -184,9 +156,7 @@ export interface InlineQueryResultLocation extends _InlineQueryResultBase, _Inli
|
|
|
184
156
|
}
|
|
185
157
|
/** @unlisted */
|
|
186
158
|
export interface InlineQueryResultMpeg4Gif extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
187
|
-
/** @discriminator */
|
|
188
159
|
type: "mpeg4Gif";
|
|
189
|
-
/** @discriminator */
|
|
190
160
|
url: string;
|
|
191
161
|
title?: string;
|
|
192
162
|
width?: number;
|
|
@@ -197,9 +167,7 @@ export interface InlineQueryResultMpeg4Gif extends _InlineQueryResultBase, _Inli
|
|
|
197
167
|
}
|
|
198
168
|
/** @unlisted */
|
|
199
169
|
export interface InlineQueryResultPhoto extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
200
|
-
/** @discriminator */
|
|
201
170
|
type: "photo";
|
|
202
|
-
/** @discriminator */
|
|
203
171
|
url: string;
|
|
204
172
|
thumbnailUrl: string;
|
|
205
173
|
title?: string;
|
|
@@ -209,7 +177,6 @@ export interface InlineQueryResultPhoto extends _InlineQueryResultBase, _InlineQ
|
|
|
209
177
|
}
|
|
210
178
|
/** @unlisted */
|
|
211
179
|
export interface InlineQueryResultVenue extends _InlineQueryResultBase, _InlineQueryResultMessageContentReplyMarkupCommon, _InlineQueryResultThumbnailCommon {
|
|
212
|
-
/** @discriminator */
|
|
213
180
|
type: "venue";
|
|
214
181
|
title: string;
|
|
215
182
|
latitude: number;
|
|
@@ -220,11 +187,9 @@ export interface InlineQueryResultVenue extends _InlineQueryResultBase, _InlineQ
|
|
|
220
187
|
}
|
|
221
188
|
/** @unlisted */
|
|
222
189
|
export interface InlineQueryResultVideo extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
223
|
-
/** @discriminator */
|
|
224
190
|
type: "video";
|
|
225
191
|
title: string;
|
|
226
192
|
description?: string;
|
|
227
|
-
/** @discriminator */
|
|
228
193
|
url: string;
|
|
229
194
|
mimeType: string;
|
|
230
195
|
thumbnailUrl: string;
|
|
@@ -234,15 +199,13 @@ export interface InlineQueryResultVideo extends _InlineQueryResultBase, _InlineQ
|
|
|
234
199
|
}
|
|
235
200
|
/** @unlisted */
|
|
236
201
|
export interface InlineQueryResultVoice extends _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon {
|
|
237
|
-
/** @discriminator */
|
|
238
202
|
type: "voice";
|
|
239
203
|
title: string;
|
|
240
|
-
/** @discriminator */
|
|
241
204
|
url: string;
|
|
242
205
|
voiceDuration?: number;
|
|
243
206
|
}
|
|
244
207
|
/** A single inline query result. */
|
|
245
|
-
export type InlineQueryResult = InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto |
|
|
208
|
+
export type InlineQueryResult = InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultSticker | InlineQueryResultVoice;
|
|
246
209
|
export declare function constructInlineQueryResult(result: Api.botInlineResult | Api.botInlineMediaResult): InlineQueryResult;
|
|
247
210
|
export declare function inlineQueryResultToTlObject(result_: InlineQueryResult, parseText: (text: string, params?: {
|
|
248
211
|
parseMode?: ParseMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"7_inline_query_result.d.ts","sourceRoot":"","sources":["../../src/types/7_inline_query_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAwB,KAAK,yBAAyB,EAAyB,MAAM,qBAAqB,CAAC;AAClH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,gBAAgB;AAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"7_inline_query_result.d.ts","sourceRoot":"","sources":["../../src/types/7_inline_query_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAwB,KAAK,yBAAyB,EAAyB,MAAM,qBAAqB,CAAC;AAClH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,gBAAgB;AAChB,MAAM,WAAW,+BAA+B;IAC9C,OAAO,C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