@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
|
@@ -57,10 +57,8 @@ import type { ChatListItem } from "./7_chat_list_item.js";
|
|
|
57
57
|
* @unlisted
|
|
58
58
|
*/
|
|
59
59
|
export interface UpdateConnectionState {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* @discriminator
|
|
63
|
-
*/
|
|
60
|
+
type: "connectionState";
|
|
61
|
+
/** The client's new connection state */
|
|
64
62
|
connectionState: ConnectionState;
|
|
65
63
|
}
|
|
66
64
|
/**
|
|
@@ -79,10 +77,8 @@ export interface UpdateConnectionState {
|
|
|
79
77
|
* @unlisted
|
|
80
78
|
*/
|
|
81
79
|
export interface UpdateAuthorizationState {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
* @discriminator
|
|
85
|
-
*/
|
|
80
|
+
type: "authorizationState";
|
|
81
|
+
/** The client's new authorization state */
|
|
86
82
|
authorizationState: AuthorizationState;
|
|
87
83
|
}
|
|
88
84
|
/**
|
|
@@ -96,10 +92,8 @@ export interface UpdateAuthorizationState {
|
|
|
96
92
|
* @unlisted
|
|
97
93
|
*/
|
|
98
94
|
export interface UpdateLowLevel {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
* @discriminator
|
|
102
|
-
*/
|
|
95
|
+
type: "update";
|
|
96
|
+
/** The Telegram API update. */
|
|
103
97
|
update: Api.Update;
|
|
104
98
|
}
|
|
105
99
|
/**
|
|
@@ -124,10 +118,8 @@ export interface UpdateLowLevel {
|
|
|
124
118
|
* @unlisted
|
|
125
119
|
*/
|
|
126
120
|
export interface UpdateNewMessage {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
* @discriminator
|
|
130
|
-
*/
|
|
121
|
+
type: "message";
|
|
122
|
+
/** The sent or received message */
|
|
131
123
|
message: Message;
|
|
132
124
|
}
|
|
133
125
|
/**
|
|
@@ -142,10 +134,8 @@ export interface UpdateNewMessage {
|
|
|
142
134
|
* @unlisted
|
|
143
135
|
*/
|
|
144
136
|
export interface UpdateMessageEdited {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
* @discriminator
|
|
148
|
-
*/
|
|
137
|
+
type: "editedMessage";
|
|
138
|
+
/** The edited message. */
|
|
149
139
|
editedMessage: Message;
|
|
150
140
|
}
|
|
151
141
|
/**
|
|
@@ -160,10 +150,8 @@ export interface UpdateMessageEdited {
|
|
|
160
150
|
* @unlisted
|
|
161
151
|
*/
|
|
162
152
|
export interface UpdateMessageScheduled {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
* @discriminator
|
|
166
|
-
*/
|
|
153
|
+
type: "scheduledMessage";
|
|
154
|
+
/** The scheduled message. */
|
|
167
155
|
scheduledMessage: Message;
|
|
168
156
|
}
|
|
169
157
|
/**
|
|
@@ -179,10 +167,8 @@ export interface UpdateMessageScheduled {
|
|
|
179
167
|
* @unlisted
|
|
180
168
|
*/
|
|
181
169
|
export interface UpdateMessagesDeleted {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
* @discriminator
|
|
185
|
-
*/
|
|
170
|
+
type: "deletedMessages";
|
|
171
|
+
/** The deleted messages */
|
|
186
172
|
deletedMessages: MessageReference[];
|
|
187
173
|
isScheduled?: boolean;
|
|
188
174
|
businessConnectionId?: string;
|
|
@@ -192,16 +178,14 @@ export interface UpdateMessagesDeleted {
|
|
|
192
178
|
*
|
|
193
179
|
* ```
|
|
194
180
|
* client.on("callbackQuery", async (ctx) => {
|
|
195
|
-
* await ctx.answerCallbackQuery(ctx.update.callbackQuery.data, {
|
|
181
|
+
* await ctx.answerCallbackQuery(ctx.update.callbackQuery.data, { isAlert: true });
|
|
196
182
|
* });
|
|
197
183
|
* ```
|
|
198
184
|
* @unlisted
|
|
199
185
|
*/
|
|
200
186
|
export interface UpdateCallbackQuery {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
* @discriminator
|
|
204
|
-
*/
|
|
187
|
+
type: "callbackQuery";
|
|
188
|
+
/** The received callback query */
|
|
205
189
|
callbackQuery: CallbackQuery;
|
|
206
190
|
}
|
|
207
191
|
/**
|
|
@@ -216,10 +200,8 @@ export interface UpdateCallbackQuery {
|
|
|
216
200
|
* @unlisted
|
|
217
201
|
*/
|
|
218
202
|
export interface UpdateInlineQuery {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
* @discriminator
|
|
222
|
-
*/
|
|
203
|
+
type: "inlineQuery";
|
|
204
|
+
/** The received inline query */
|
|
223
205
|
inlineQuery: InlineQuery;
|
|
224
206
|
}
|
|
225
207
|
/**
|
|
@@ -227,10 +209,8 @@ export interface UpdateInlineQuery {
|
|
|
227
209
|
* @unlisted
|
|
228
210
|
*/
|
|
229
211
|
export interface UpdateChosenInlineResult {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
* @discriminator
|
|
233
|
-
*/
|
|
212
|
+
type: "chosenInlineResult";
|
|
213
|
+
/** The chosen inline query result */
|
|
234
214
|
chosenInlineResult: ChosenInlineResult;
|
|
235
215
|
}
|
|
236
216
|
/**
|
|
@@ -238,10 +218,8 @@ export interface UpdateChosenInlineResult {
|
|
|
238
218
|
* @unlisted
|
|
239
219
|
*/
|
|
240
220
|
export interface UpdateNewChat {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
* @discriminator
|
|
244
|
-
*/
|
|
221
|
+
type: "newChat";
|
|
222
|
+
/** The newly added chat */
|
|
245
223
|
newChat: ChatListItem;
|
|
246
224
|
}
|
|
247
225
|
/**
|
|
@@ -249,7 +227,7 @@ export interface UpdateNewChat {
|
|
|
249
227
|
* @unlisted
|
|
250
228
|
*/
|
|
251
229
|
export interface UpdateEditedChat {
|
|
252
|
-
|
|
230
|
+
type: "editedChat";
|
|
253
231
|
editedChat: ChatListItem;
|
|
254
232
|
}
|
|
255
233
|
/**
|
|
@@ -257,10 +235,8 @@ export interface UpdateEditedChat {
|
|
|
257
235
|
* @unlisted
|
|
258
236
|
*/
|
|
259
237
|
export interface UpdateDeletedChat {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
* @discriminator
|
|
263
|
-
*/
|
|
238
|
+
type: "deletedChat";
|
|
239
|
+
/** The chat that was deleted */
|
|
264
240
|
deletedChat: {
|
|
265
241
|
chatId: number;
|
|
266
242
|
};
|
|
@@ -270,10 +246,8 @@ export interface UpdateDeletedChat {
|
|
|
270
246
|
* @unlisted
|
|
271
247
|
*/
|
|
272
248
|
export interface UpdateMessageInteractions {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
* @discriminator
|
|
276
|
-
*/
|
|
249
|
+
type: "messageInteractions";
|
|
250
|
+
/** The new message interactions */
|
|
277
251
|
messageInteractions: MessageInteractions;
|
|
278
252
|
}
|
|
279
253
|
/**
|
|
@@ -281,10 +255,8 @@ export interface UpdateMessageInteractions {
|
|
|
281
255
|
* @unlisted
|
|
282
256
|
*/
|
|
283
257
|
export interface UpdateMessageReactionCount {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
* @discriminator
|
|
287
|
-
*/
|
|
258
|
+
type: "messageReactionCount";
|
|
259
|
+
/** The new message reactions */
|
|
288
260
|
messageReactionCount: MessageReactionCount;
|
|
289
261
|
}
|
|
290
262
|
/**
|
|
@@ -292,7 +264,7 @@ export interface UpdateMessageReactionCount {
|
|
|
292
264
|
* @unlisted
|
|
293
265
|
*/
|
|
294
266
|
export interface UpdateMessageReactions {
|
|
295
|
-
|
|
267
|
+
type: "messageReactions";
|
|
296
268
|
messageReactions: MessageReactions;
|
|
297
269
|
}
|
|
298
270
|
/**
|
|
@@ -300,7 +272,7 @@ export interface UpdateMessageReactions {
|
|
|
300
272
|
* @unlisted
|
|
301
273
|
*/
|
|
302
274
|
export interface UpdateChatMember {
|
|
303
|
-
|
|
275
|
+
type: "chatMember";
|
|
304
276
|
chatMember: ChatMemberUpdated;
|
|
305
277
|
}
|
|
306
278
|
/**
|
|
@@ -308,7 +280,7 @@ export interface UpdateChatMember {
|
|
|
308
280
|
* @unlisted
|
|
309
281
|
*/
|
|
310
282
|
export interface UpdateMyChatMember {
|
|
311
|
-
|
|
283
|
+
type: "myChatMember";
|
|
312
284
|
myChatMember: ChatMemberUpdated;
|
|
313
285
|
}
|
|
314
286
|
/**
|
|
@@ -322,7 +294,7 @@ export interface UpdateMyChatMember {
|
|
|
322
294
|
* @unlisted
|
|
323
295
|
*/
|
|
324
296
|
export interface UpdateDeletedStory {
|
|
325
|
-
|
|
297
|
+
type: "deletedStory";
|
|
326
298
|
deletedStory: StoryReference;
|
|
327
299
|
}
|
|
328
300
|
/**
|
|
@@ -337,7 +309,7 @@ export interface UpdateDeletedStory {
|
|
|
337
309
|
* @unlisted
|
|
338
310
|
*/
|
|
339
311
|
export interface UpdateNewStory {
|
|
340
|
-
|
|
312
|
+
type: "story";
|
|
341
313
|
story: Story;
|
|
342
314
|
}
|
|
343
315
|
/**
|
|
@@ -352,7 +324,7 @@ export interface UpdateNewStory {
|
|
|
352
324
|
* @unlisted
|
|
353
325
|
*/
|
|
354
326
|
export interface UpdateBusinessConnection {
|
|
355
|
-
|
|
327
|
+
type: "businessConnection";
|
|
356
328
|
businessConnection: BusinessConnection;
|
|
357
329
|
}
|
|
358
330
|
/**
|
|
@@ -367,12 +339,12 @@ export interface UpdateBusinessConnection {
|
|
|
367
339
|
* @unlisted
|
|
368
340
|
*/
|
|
369
341
|
export interface UpdateVideoChat {
|
|
370
|
-
|
|
342
|
+
type: "videoChat";
|
|
371
343
|
videoChat: VideoChat;
|
|
372
344
|
}
|
|
373
345
|
/** @unlisted */
|
|
374
346
|
export interface UpdatePreCheckoutQuery {
|
|
375
|
-
|
|
347
|
+
type: "preCheckoutQuery";
|
|
376
348
|
preCheckoutQuery: PreCheckoutQuery;
|
|
377
349
|
}
|
|
378
350
|
/**
|
|
@@ -380,7 +352,7 @@ export interface UpdatePreCheckoutQuery {
|
|
|
380
352
|
* @unlisted
|
|
381
353
|
*/
|
|
382
354
|
export interface UpdateJoinRequest {
|
|
383
|
-
|
|
355
|
+
type: "joinRequest";
|
|
384
356
|
joinRequest: JoinRequest;
|
|
385
357
|
}
|
|
386
358
|
/**
|
|
@@ -395,10 +367,8 @@ export interface UpdateJoinRequest {
|
|
|
395
367
|
* @unlisted
|
|
396
368
|
*/
|
|
397
369
|
export interface UpdateTranslations {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
* @discriminator
|
|
401
|
-
*/
|
|
370
|
+
type: "translations";
|
|
371
|
+
/** The new translations. */
|
|
402
372
|
translations: Translation[];
|
|
403
373
|
/** The platform of the translations that were updated. */
|
|
404
374
|
platform: string;
|
|
@@ -417,10 +387,8 @@ export interface UpdateTranslations {
|
|
|
417
387
|
* @unlisted
|
|
418
388
|
*/
|
|
419
389
|
export interface UpdatePoll {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
* @discriminator
|
|
423
|
-
*/
|
|
390
|
+
type: "poll";
|
|
391
|
+
/** The poll with its new state. */
|
|
424
392
|
poll: Poll;
|
|
425
393
|
}
|
|
426
394
|
/**
|
|
@@ -435,10 +403,8 @@ export interface UpdatePoll {
|
|
|
435
403
|
* @unlisted
|
|
436
404
|
*/
|
|
437
405
|
export interface UpdatePollAnswer {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
* @discriminator
|
|
441
|
-
*/
|
|
406
|
+
type: "pollAnswer";
|
|
407
|
+
/** The poll answer. */
|
|
442
408
|
pollAnswer: PollAnswer;
|
|
443
409
|
}
|
|
444
410
|
/**
|
|
@@ -452,10 +418,8 @@ export interface UpdatePollAnswer {
|
|
|
452
418
|
* @unlisted
|
|
453
419
|
*/
|
|
454
420
|
export interface UpdateVoiceTranscription {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
* @discriminator
|
|
458
|
-
*/
|
|
421
|
+
type: "voiceTranscription";
|
|
422
|
+
/** The new voice transcription. */
|
|
459
423
|
voiceTranscription: VoiceTranscription;
|
|
460
424
|
}
|
|
461
425
|
/**
|
|
@@ -469,10 +433,8 @@ export interface UpdateVoiceTranscription {
|
|
|
469
433
|
* @unlisted
|
|
470
434
|
*/
|
|
471
435
|
export interface UpdateLinkPreview {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
* @discriminator
|
|
475
|
-
*/
|
|
436
|
+
type: "linkPreview";
|
|
437
|
+
/** The new link preview. */
|
|
476
438
|
linkPreview: LinkPreview;
|
|
477
439
|
}
|
|
478
440
|
/**
|
|
@@ -486,10 +448,8 @@ export interface UpdateLinkPreview {
|
|
|
486
448
|
* @unlisted
|
|
487
449
|
*/
|
|
488
450
|
export interface UpdateUploadProgress {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
* @discriminator
|
|
492
|
-
*/
|
|
451
|
+
type: "uploadProgress";
|
|
452
|
+
/** The new progress of the upload. */
|
|
493
453
|
uploadProgress: UploadProgress;
|
|
494
454
|
}
|
|
495
455
|
/**
|
|
@@ -503,10 +463,8 @@ export interface UpdateUploadProgress {
|
|
|
503
463
|
* @unlisted
|
|
504
464
|
*/
|
|
505
465
|
export interface UpdateBotCommands {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
* @discriminator
|
|
509
|
-
*/
|
|
466
|
+
type: "botCommands";
|
|
467
|
+
/** The new command list. */
|
|
510
468
|
botCommands: BotCommands;
|
|
511
469
|
}
|
|
512
470
|
/**
|
|
@@ -520,10 +478,8 @@ export interface UpdateBotCommands {
|
|
|
520
478
|
* @unlisted
|
|
521
479
|
*/
|
|
522
480
|
export interface UpdateEmojiStatus {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
* @discriminator
|
|
526
|
-
*/
|
|
481
|
+
type: "emojiStatus";
|
|
482
|
+
/** The new emoji status. */
|
|
527
483
|
emojiStatus: EmojiStatus;
|
|
528
484
|
userId: number;
|
|
529
485
|
}
|
|
@@ -538,8 +494,7 @@ export interface UpdateEmojiStatus {
|
|
|
538
494
|
* @unlisted
|
|
539
495
|
*/
|
|
540
496
|
export interface UpdateEmojiStatusRemoved {
|
|
541
|
-
|
|
542
|
-
emojiStatusRemoved: true;
|
|
497
|
+
type: "emojiStatusRemoved";
|
|
543
498
|
userId: number;
|
|
544
499
|
}
|
|
545
500
|
/**
|
|
@@ -553,7 +508,7 @@ export interface UpdateEmojiStatusRemoved {
|
|
|
553
508
|
* @unlisted
|
|
554
509
|
*/
|
|
555
510
|
export interface UpdateChatAction {
|
|
556
|
-
|
|
511
|
+
type: "chatAction";
|
|
557
512
|
chatAction: ChatAction;
|
|
558
513
|
}
|
|
559
514
|
/**
|
|
@@ -567,7 +522,7 @@ export interface UpdateChatAction {
|
|
|
567
522
|
* @unlisted
|
|
568
523
|
*/
|
|
569
524
|
export interface UpdateMessageDraft {
|
|
570
|
-
|
|
525
|
+
type: "messageDraft";
|
|
571
526
|
messageDraft: MessageDraft;
|
|
572
527
|
}
|
|
573
528
|
/** @unlisted */
|
|
@@ -608,8 +563,6 @@ export interface UpdateMap {
|
|
|
608
563
|
chatAction: UpdateChatAction;
|
|
609
564
|
messageDraft: UpdateMessageDraft;
|
|
610
565
|
}
|
|
611
|
-
/** @unlisted */
|
|
612
|
-
export type UpdateIntersection = Partial<UpdateConnectionState & UpdateAuthorizationState & UpdateLowLevel & UpdateNewMessage & UpdateMessageEdited & UpdateMessageScheduled & UpdateMessagesDeleted & UpdateCallbackQuery & UpdateInlineQuery & UpdateChosenInlineResult & UpdateNewChat & UpdateEditedChat & UpdateDeletedChat & UpdateMessageInteractions & UpdateMessageReactionCount & UpdateMessageReactions & UpdateChatMember & UpdateMyChatMember & UpdateDeletedStory & UpdateNewStory & UpdateBusinessConnection & UpdateVideoChat & UpdatePreCheckoutQuery & UpdateJoinRequest & UpdateTranslations & UpdatePoll & UpdatePollAnswer & UpdateVoiceTranscription & UpdateLinkPreview & UpdateUploadProgress & UpdateBotCommands & UpdateEmojiStatus & UpdateEmojiStatusRemoved & UpdateChatAction & UpdateMessageDraft>;
|
|
613
566
|
/** An incoming update. */
|
|
614
567
|
export type Update = UpdateConnectionState | UpdateAuthorizationState | UpdateLowLevel | UpdateNewMessage | UpdateMessageEdited | UpdateMessageScheduled | UpdateMessagesDeleted | UpdateCallbackQuery | UpdateInlineQuery | UpdateChosenInlineResult | UpdateNewChat | UpdateEditedChat | UpdateDeletedChat | UpdateMessageInteractions | UpdateMessageReactionCount | UpdateMessageReactions | UpdateChatMember | UpdateMyChatMember | UpdateDeletedStory | UpdateNewStory | UpdateBusinessConnection | UpdateVideoChat | UpdatePreCheckoutQuery | UpdateJoinRequest | UpdateTranslations | UpdatePoll | UpdatePollAnswer | UpdateVoiceTranscription | UpdateLinkPreview | UpdateUploadProgress | UpdateBotCommands | UpdateEmojiStatus | UpdateEmojiStatusRemoved | UpdateChatAction | UpdateMessageDraft;
|
|
615
568
|
//# sourceMappingURL=8_update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"8_update.d.ts","sourceRoot":"","sources":["../../src/types/8_update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,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kBAAkB,EAAE,wBAAwB,CAAC;IAC7C,SAAS,EAAE,eAAe,CAAC;IAC3B,gBAAgB,EAAE,sBAAsB,CAAC;IACzC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,YAAY,EAAE,kBAAkB,CAAC;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,kBAAkB,EAAE,wBAAwB,CAAC;IAC7C,WAAW,EAAE,iBAAiB,CAAC;IAC/B,cAAc,EAAE,oBAAoB,CAAC;IACrC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,kBAAkB,EAAE,wBAAwB,CAAC;IAC7C,UAAU,EAAE,gBAAgB,CAAC;IAC7B,YAAY,EAAE,kBAAkB,CAAC;CAClC;AAED,0BAA0B;AAC1B,MAAM,MAAM,MAAM,GACd,qBAAqB,GACrB,wBAAwB,GACxB,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GACnB,sBAAsB,GACtB,qBAAqB,GACrB,mBAAmB,GACnB,iBAAiB,GACjB,wBAAwB,GACxB,aAAa,GACb,gBAAgB,GAChB,iBAAiB,GACjB,yBAAyB,GACzB,0BAA0B,GAC1B,sBAAsB,GACtB,gBAAgB,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,wBAAwB,GACxB,eAAe,GACf,sBAAsB,GACtB,iBAAiB,GACjB,kBAAkB,GAClB,UAAU,GACV,gBAAgB,GAChB,wBAAwB,GACxB,iBAAiB,GACjB,oBAAoB,GACpB,iBAAiB,GACjB,iBAAiB,GACjB,wBAAwB,GACxB,gBAAgB,GAChB,kBAAkB,CAAC"}
|
|
@@ -2,9 +2,7 @@ export type ByteOrder = "little" | "big";
|
|
|
2
2
|
export declare function modExp(a: bigint, b: bigint, n: bigint): bigint;
|
|
3
3
|
export declare function mod(n: bigint, m: bigint): bigint;
|
|
4
4
|
export declare function mod(n: number, m: number): number;
|
|
5
|
-
/**
|
|
6
|
-
* Additional parameters for {@link intFromBytes}.
|
|
7
|
-
*/
|
|
5
|
+
/** Additional parameters for {@link intFromBytes}. */
|
|
8
6
|
export interface IntFromBytesParams {
|
|
9
7
|
/** The byte order of the representation. Defaults to `little`. */
|
|
10
8
|
byteOrder?: ByteOrder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_int.d.ts","sourceRoot":"","sources":["../../src/utilities/0_int.ts"],"names":[],"mappings":"AAwBA,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEzC,wBAAgB,MAAM,CACpB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,UAgBV;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;AAClD,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;AAOlD
|
|
1
|
+
{"version":3,"file":"0_int.d.ts","sourceRoot":"","sources":["../../src/utilities/0_int.ts"],"names":[],"mappings":"AAwBA,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEzC,wBAAgB,MAAM,CACpB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,UAgBV;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;AAClD,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;AAOlD,sDAAsD;AACtD,MAAM,WAAW,kBAAkB;IACjC,kEAAkE;IAClE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,SAAoB,EAAE,QAAe,EAAE,GAAE,kBAAuB,UAcjH;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,UAAO,UAI/D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,IAAI,GAAG,MAAM,CAAC;AACpD,wBAAgB,WAAW,IAAI,MAAM,CAAC;AAStC,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAwBvC;AAID,qDAAqD;AACrD,MAAM,WAAW,sBAAsB;IACrC,0EAA0E;IAC1E,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAClE,SAAoB,EACpB,QAAe,EACf,IAAS,GACV,GAAE,sBAA2B,GAAG,UAAU,CAAC,WAAW,CAAC,CAoCvD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"0_keyboard_button_poll_type.d.ts","sourceRoot":"","sources":["../../src/types/0_keyboard_button_poll_type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,2FAA2F;AAC3F,MAAM,WAAW,sBAAsB;IACrC,kFAAkF;IAClF,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC3B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
/** Information on a mini app button. */
|
|
21
|
-
export interface MiniAppButtonInfo {
|
|
22
|
-
/** An HTTPS URL of the mini app to be opened with additional data. */
|
|
23
|
-
url: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function constructMiniAppButtonInfo(url: string): MiniAppButtonInfo;
|
|
26
|
-
//# sourceMappingURL=0_mini_app_button_info.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"0_mini_app_button_info.d.ts","sourceRoot":"","sources":["../../src/types/0_mini_app_button_info.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wCAAwC;AACxC,MAAM,WAAW,iBAAiB;IAChC,sEAAsE;IACtE,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAEzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1_inline_query_result_button.d.ts","sourceRoot":"","sources":["../../src/types/1_inline_query_result_button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,sEAAsE;AACtE,MAAM,WAAW,uBAAuB;IACtC,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,0FAA0F;IAC1F,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"0_keyboard_button_poll_type.d.ts","sourceRoot":"","sources":["../../src/types/0_keyboard_button_poll_type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,2FAA2F;AAC3F,MAAM,WAAW,sBAAsB;IACrC,kFAAkF;IAClF,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC3B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
-
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
-
*
|
|
5
|
-
* This file is part of MTKruto.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU Lesser General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
/** Information on a mini app button. */
|
|
21
|
-
export interface MiniAppButtonInfo {
|
|
22
|
-
/** An HTTPS URL of the mini app to be opened with additional data. */
|
|
23
|
-
url: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function constructMiniAppButtonInfo(url: string): MiniAppButtonInfo;
|
|
26
|
-
//# sourceMappingURL=0_mini_app_button_info.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"0_mini_app_button_info.d.ts","sourceRoot":"","sources":["../../src/types/0_mini_app_button_info.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wCAAwC;AACxC,MAAM,WAAW,iBAAiB;IAChC,sEAAsE;IACtE,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAEzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1_inline_query_result_button.d.ts","sourceRoot":"","sources":["../../src/types/1_inline_query_result_button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,sEAAsE;AACtE,MAAM,WAAW,uBAAuB;IACtC,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,0FAA0F;IAC1F,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
4
|
-
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
5
|
-
*
|
|
6
|
-
* This file is part of MTKruto.
|
|
7
|
-
*
|
|
8
|
-
* This program is free software: you can redistribute it and/or modify
|
|
9
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
10
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
-
* (at your option) any later version.
|
|
12
|
-
*
|
|
13
|
-
* This program is distributed in the hope that it will be useful,
|
|
14
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
* GNU Lesser General Public License for more details.
|
|
17
|
-
*
|
|
18
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
19
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
|
-
*/
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
File without changes
|
|
File without changes
|